/**
 * Tire Chains (Цепи противоскольжения) Stylesheet - Living 8085 Design DNA
 * Project: ООО «ГИДРОНА» (8085)
 * Source of Truth: 8084 ID 4556
 * Rules: ZERO forms, non-breaking phones, Apple HIG typography, full responsiveness
 */

:root {
	--t-primary: #ff7a00;
	--t-primary-hover: #ff8c1a;
	--t-primary-glow: rgba(255, 122, 0, 0.28);
	--t-dark: #0e131f;
	--t-dark-surface: #151c2d;
	--t-dark-card: #1c2438;
	--t-dark-border: rgba(255, 255, 255, 0.09);
	--t-light-bg: #f8fafc;
	--t-light-card: #ffffff;
	--t-light-border: #e2e8f0;
	--t-text-dark: #0f172a;
	--t-text-muted: #64748b;
	--t-text-dim: #94a3b8;
	--t-accent-green: #10b981;
	--t-accent-blue: #0284c7;
	--t-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
	--t-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
	--t-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
	--t-radius-sm: 10px;
	--t-radius-md: 16px;
	--t-radius-lg: 24px;
	--t-radius-pill: 9999px;
}

/* ==========================================================================
   Base Layout & Typography
   ========================================================================== */
.t-page-wrapper {
	background-color: var(--t-light-bg);
	color: var(--t-text-dark);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow-x: hidden;
	width: 100%;
}

.t-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

.t-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: var(--t-radius-pill);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.t-badge-orange {
	background: rgba(255, 122, 0, 0.12);
	color: var(--t-primary);
	border: 1px solid rgba(255, 122, 0, 0.3);
}

.t-badge-blue {
	background: rgba(2, 132, 199, 0.12);
	color: var(--t-accent-blue);
	border: 1px solid rgba(2, 132, 199, 0.3);
}

.t-badge-green {
	background: rgba(16, 185, 129, 0.12);
	color: var(--t-accent-green);
	border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Buttons (Zero Forms - Phone CTA Only)
   ========================================================================== */
.t-btn-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 13px 24px;
	border-radius: var(--t-radius-md);
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 8px 24px var(--t-primary-glow);
	cursor: pointer;
	border: none;
	text-align: left;
}

.t-btn-primary {
	background: linear-gradient(135deg, #ff8c1a 0%, #ff6a00 100%);
	color: #ffffff !important;
}

.t-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(255, 122, 0, 0.42);
	background: linear-gradient(135deg, #ffa033 0%, #ff7a00 100%);
	color: #ffffff !important;
}

.t-btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
}

.t-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.35);
	transform: translateY(-2px);
	color: #ffffff !important;
}

.t-btn-content {
	display: flex;
	flex-direction: column;
	white-space: nowrap !important;
}

.t-btn-title {
	font-size: 0.74rem;
	font-weight: 600;
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	line-height: 1.2;
}

.t-btn-number {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.25;
	white-space: nowrap !important;
}

.t-btn-icon {
	font-size: 1.25rem;
	line-height: 1;
	flex-shrink: 0;
}

/* ==========================================================================
   Hero Section: Цепи противоскольжения
   ========================================================================== */
.t-hero-section {
	background-color: var(--t-dark);
	background-image: 
		linear-gradient(90deg, rgba(14, 19, 31, 0.97) 0%, rgba(14, 19, 31, 0.90) 42%, rgba(14, 19, 31, 0.62) 75%, rgba(14, 19, 31, 0.28) 100%),
		url("../images/aktsii-mesyatsa-ot-kompanii-gidrona.webp");
	background-position: right center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #ffffff;
	padding: 110px 0 75px;
	position: relative;
	overflow: hidden;
}

.t-hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 14% 85%, rgba(255, 122, 0, 0.22) 0%, transparent 60%);
	pointer-events: none;
}

.t-breadcrumbs {
	font-size: 0.9rem;
	color: var(--t-text-dim);
	margin-bottom: 22px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.t-breadcrumbs a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.t-breadcrumbs a:hover {
	color: var(--t-primary);
}

.t-hero-title {
	font-size: 2.8rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.8px;
	margin: 16px 0 18px;
	max-width: 900px;
}

.t-hero-title span {
	color: var(--t-primary);
}

.t-hero-subtitle {
	font-size: 1.12rem;
	line-height: 1.65;
	color: #cbd5e1;
	max-width: 820px;
	margin-bottom: 32px;
}

.t-hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.t-hero-perks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.t-hero-perk-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--t-radius-md);
	padding: 20px 18px;
	backdrop-filter: blur(12px);
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.t-hero-perk-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 122, 0, 0.5);
	background: rgba(255, 255, 255, 0.09);
}

.t-perk-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: var(--t-radius-sm);
	background: rgba(255, 122, 0, 0.15);
	color: var(--t-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
}

.t-perk-card-title {
	font-size: 1.02rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.t-perk-card-desc {
	font-size: 0.85rem;
	color: #94a3b8;
	line-height: 1.45;
}

/* ==========================================================================
   Pricing Section: Табы «Лесенка» и «Сота»
   ========================================================================== */
.t-price-section {
	padding: 80px 0 60px;
}

.t-section-header {
	text-align: center;
	margin-bottom: 40px;
}

.t-section-header h2 {
	font-size: 2.3rem;
	font-weight: 800;
	color: var(--t-text-dark);
	letter-spacing: -0.5px;
	margin-top: 14px;
	line-height: 1.2;
}

.t-section-header p {
	font-size: 1.08rem;
	color: var(--t-text-muted);
	max-width: 720px;
	margin: 12px auto 0;
	line-height: 1.6;
}

/* Tabs Switcher */
.t-tabs-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.t-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: var(--t-radius-pill);
	background: #ffffff;
	border: 2px solid var(--t-light-border);
	color: var(--t-text-dark);
	font-size: 1.02rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: var(--t-shadow-sm);
}

.t-tab-btn:hover {
	border-color: rgba(255, 122, 0, 0.5);
	transform: translateY(-2px);
}

.t-tab-btn.active {
	background: linear-gradient(135deg, #ff8c1a 0%, #ff6a00 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.t-tab-badge {
	font-size: 0.78rem;
	padding: 3px 9px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.08);
	font-weight: 800;
}

.t-tab-btn.active .t-tab-badge {
	background: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* Tables Styling */
.t-table-box {
	display: none;
	background: #ffffff;
	border-radius: var(--t-radius-lg);
	border: 1px solid var(--t-light-border);
	box-shadow: var(--t-shadow-lg);
	overflow: hidden;
}

.t-table-box.active {
	display: block;
	animation: tFadeIn 0.3s ease;
}

@keyframes tFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.t-table-header-info {
	background: linear-gradient(135deg, #0e131f 0%, #151c2d 100%);
	padding: 24px 32px;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.t-table-header-info h3 {
	font-size: 1.35rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.t-table-header-info p {
	font-size: 0.9rem;
	color: #94a3b8;
	margin: 0;
}

.t-price-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.t-price-table th {
	background: #f8fafc;
	padding: 16px 24px;
	font-size: 0.88rem;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e2e8f0;
}

.t-price-table td {
	padding: 18px 24px;
	font-size: 0.98rem;
	color: var(--t-text-dark);
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.t-price-table tr:hover td {
	background: #fffaf5;
}

.t-size-code {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--t-text-dark);
}

.t-rod-val {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f1f5f9;
	font-weight: 600;
	font-size: 0.88rem;
	color: #334155;
}

.t-price-val {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--t-primary);
	white-space: nowrap;
}

.t-btn-order-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: var(--t-radius-sm);
	background: rgba(255, 122, 0, 0.12);
	color: var(--t-primary) !important;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.t-btn-order-row:hover {
	background: var(--t-primary);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--t-primary-glow);
}

/* ==========================================================================
   Comparison Section: Лесенка vs Сота
   ========================================================================== */
.t-compare-section {
	padding: 40px 0 70px;
}

.t-compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.t-compare-card {
	background: #ffffff;
	border: 1px solid var(--t-light-border);
	border-radius: var(--t-radius-lg);
	padding: 36px 32px;
	box-shadow: var(--t-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: relative;
	overflow: hidden;
	transition: all 0.25s ease;
}

.t-compare-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--t-shadow-md);
	border-color: rgba(255, 122, 0, 0.4);
}

.t-compare-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: var(--t-primary);
}

.t-compare-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.t-compare-title {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--t-text-dark);
}

.t-compare-desc {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #475569;
}

.t-compare-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.t-compare-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--t-text-dark);
}

.t-compare-check {
	color: #059669;
	font-weight: 800;
	flex-shrink: 0;
}

/* ==========================================================================
   Photo Gallery: Реальное применение цепей
   ========================================================================== */
.t-gallery-section {
	padding: 30px 0 70px;
}

.t-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.t-gallery-item {
	background: #0e131f;
	border-radius: var(--t-radius-md);
	overflow: hidden;
	position: relative;
	min-height: 280px;
	box-shadow: var(--t-shadow-md);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.t-gallery-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-gallery-item:hover .t-gallery-img {
	transform: scale(1.05);
}

.t-gallery-overlay {
	position: relative;
	z-index: 2;
	background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 31, 0.85) 50%, rgba(14, 19, 31, 0.98) 100%);
	padding: 24px 20px;
	color: #ffffff;
}

.t-gallery-tag {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--t-primary);
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.t-gallery-title {
	font-size: 1.08rem;
	font-weight: 800;
	color: #ffffff;
	line-height: 1.35;
	margin: 0;
}

/* ==========================================================================
   Expert Guidelines & Advice (100% текст из 8084)
   ========================================================================== */
.t-advice-section {
	padding: 50px 0 70px;
	background: #ffffff;
	border-top: 1px solid var(--t-light-border);
	border-bottom: 1px solid var(--t-light-border);
}

.t-advice-box {
	background: #f8fafc;
	border: 1px solid var(--t-light-border);
	border-radius: var(--t-radius-lg);
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.t-advice-lead {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #334155;
}

.t-rules-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 10px;
}

.t-rule-card {
	background: #ffffff;
	border: 1px solid var(--t-light-border);
	border-radius: var(--t-radius-sm);
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.t-rule-icon {
	font-size: 1.4rem;
}

.t-rule-title {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--t-text-dark);
}

.t-rule-desc {
	font-size: 0.82rem;
	color: var(--t-text-muted);
	line-height: 1.5;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */
.t-cta-section {
	padding: 60px 0 90px;
}

.t-cta-banner {
	background: linear-gradient(135deg, #0e131f 0%, #151c2d 50%, #1a2236 100%);
	border-radius: var(--t-radius-lg);
	padding: 56px 48px;
	color: #ffffff;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: var(--t-shadow-lg);
	border: 1px solid var(--t-dark-border);
}

.t-cta-banner::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -20%;
	width: 140%;
	height: 200%;
	background: radial-gradient(circle at center, rgba(255, 122, 0, 0.16) 0%, transparent 60%);
	pointer-events: none;
}

.t-cta-banner-content {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
}

.t-cta-banner h2 {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
	margin: 16px 0 14px;
	letter-spacing: -0.4px;
	word-break: normal;
	overflow-wrap: break-word;
}

.t-cta-banner p {
	font-size: 1.12rem;
	color: #cbd5e1;
	line-height: 1.65;
	margin-bottom: 34px;
}

.t-cta-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Typography Safeguards
   ========================================================================== */
@media (max-width: 1024px) {
	.t-hero-perks {
		grid-template-columns: repeat(2, 1fr);
	}
	.t-compare-grid {
		grid-template-columns: 1fr;
	}
	.t-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.t-rules-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.t-hero-section {
		padding: 95px 0 55px;
	}
	.t-hero-title {
		font-size: 2.1rem;
	}
	.t-gallery-grid {
		grid-template-columns: 1fr;
	}
	.t-price-table th, 
	.t-price-table td {
		padding: 12px 14px;
	}
	.t-cta-banner {
		padding: 40px 24px;
	}
	.t-cta-buttons {
		flex-direction: column;
		width: 100%;
	}
	.t-btn-phone {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.t-price-table thead {
		display: none;
	}
	.t-price-table, 
	.t-price-table tbody, 
	.t-price-table tr, 
	.t-price-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}
	.t-price-table tr {
		background: #ffffff;
		border: 1px solid var(--t-light-border);
		border-radius: var(--t-radius-md);
		margin: 12px;
		padding: 14px 16px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	}
	.t-price-table tr:hover {
		border-color: rgba(255, 122, 0, 0.4);
		box-shadow: 0 4px 14px rgba(255, 122, 0, 0.12);
	}
	.t-price-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 7px 0 !important;
		border-bottom: 1px dashed #e2e8f0;
		font-size: 0.9rem;
	}
	.t-price-table td:last-child {
		border-bottom: none;
		padding-top: 12px !important;
		justify-content: center;
	}
	.t-price-table td::before {
		content: attr(data-label);
		font-weight: 700;
		font-size: 0.78rem;
		color: var(--t-text-muted);
		text-transform: uppercase;
		letter-spacing: 0.3px;
	}
	.t-price-table td:last-child::before {
		display: none;
	}
	.t-btn-order-row {
		width: 100%;
		justify-content: center;
		padding: 10px 14px;
		font-size: 0.92rem;
	}
}

@media (max-width: 480px) {
	.t-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.t-hero-section {
		padding: 85px 0 45px;
	}
	.t-hero-title {
		font-size: 1.48rem;
		line-height: 1.25;
		word-break: normal;
		overflow-wrap: break-word;
	}
	.t-hero-subtitle {
		font-size: 0.92rem;
		line-height: 1.55;
	}
	.t-hero-perks {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.t-section-header {
		margin-bottom: 26px;
	}
	.t-section-header h2 {
		font-size: 1.32rem !important;
		line-height: 1.3 !important;
		word-break: normal;
		overflow-wrap: break-word;
		margin-top: 10px;
	}
	.t-section-header p {
		font-size: 0.88rem !important;
		line-height: 1.55 !important;
		margin-top: 8px;
	}
	.t-tab-btn {
		width: 100%;
		justify-content: space-between;
		padding: 12px 18px;
		font-size: 0.95rem;
	}
	.t-table-header-info {
		padding: 18px 16px;
	}
	.t-table-header-info h3 {
		font-size: 1.14rem;
	}
	.t-compare-card {
		padding: 24px 18px;
	}
	.t-compare-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.t-compare-title {
		font-size: 1.18rem;
	}
	.t-advice-box {
		padding: 24px 16px;
	}
	.t-advice-lead {
		font-size: 0.92rem;
		line-height: 1.6;
	}
	.t-rules-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.t-btn-phone {
		width: 100%;
		max-width: 100%;
		padding: 12px 14px;
		gap: 10px;
		box-sizing: border-box;
	}
	.t-btn-title {
		font-size: 0.68rem;
		white-space: normal;
		line-height: 1.25;
	}
	.t-btn-number {
		font-size: 1.05rem;
		white-space: nowrap !important;
	}
	/* Mobile Safeguard: prevent broken words in bottom CTA */
	.t-cta-banner {
		padding: 30px 16px;
		margin: 20px 0;
		border-radius: 16px;
	}
	.t-cta-banner .t-badge {
		font-size: 0.72rem;
		padding: 4px 10px;
		margin-bottom: 12px;
		letter-spacing: 0.4px;
	}
	.t-cta-banner h2 {
		font-size: 1.22rem !important;
		line-height: 1.32 !important;
		margin-bottom: 10px;
		letter-spacing: -0.2px;
		word-break: normal;
		overflow-wrap: break-word;
	}
	.t-cta-banner p {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-bottom: 20px;
	}
}
