/*
Theme Name: ТС Трейд
Description: Тема сайта ТС Трейд: каталог товаров карточками, услуги, о компании, контакты, синяя и красно-белая цветовые схемы.
Version: 1.1.0
Author: ТС Трейд
Requires PHP: 7.4
Text Domain: tstrade
*/

/* ================= Цветовые схемы ================= */

:root {
	--c-primary: #0b5cad;
	--c-primary-dark: #08427e;
	--c-primary-soft: #e8f1fb;
	--c-primary-rgb: 11, 92, 173;
	--c-ink: #0a2540;          /* тёмный фирменный: верхняя строка, подвал, главный экран */
	--c-ink-2: #0f3157;
	--c-on-ink: #ffffff;
	--c-on-ink-muted: #9fb6cf;
	--c-bg: #ffffff;
	--c-bg-alt: #f2f6fb;
	--c-surface: #ffffff;
	--c-text: #14202e;
	--c-muted: #5a6b7e;
	--c-border: #dbe4ee;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 4px 14px rgba(10, 37, 64, .06);
	--shadow-hover: 0 14px 34px rgba(10, 37, 64, .16);
	--wrap: 1240px;
	--font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
	--font-body: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

html[data-scheme="red"] {
	--c-primary: #c8102e;
	--c-primary-dark: #9c0c23;
	--c-primary-soft: #fdeef0;
	--c-primary-rgb: 200, 16, 46;
	--c-ink: #1f1f22;
	--c-ink-2: #2b2b30;
	--c-on-ink-muted: #b4b4bb;
	--c-bg-alt: #f6f6f7;
	--c-text: #1d1d1f;
	--c-muted: #66666e;
	--c-border: #e6e6ea;
	--shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 14px rgba(0, 0, 0, .05);
	--shadow-hover: 0 14px 34px rgba(200, 16, 46, .16);
}

/* ================= База ================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0; background: var(--c-bg); color: var(--c-text);
	font: 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
body, .site-header, .card, .service, .btn { transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 20px; height: 20px; flex: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.section-title { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
	font: 700 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--c-primary);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================= Кнопки ================= */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 12px 22px; border-radius: var(--radius-sm); border: 2px solid var(--c-primary);
	background: var(--c-primary); color: #fff; font: 700 15px/1.2 var(--font-head); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-outline { background: transparent; color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--c-ink); }
.btn-light:hover { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--c-ink); }
.btn small { font-weight: 600; opacity: .7; font-size: 12px; margin-left: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ================= Верхняя строка ================= */

.topbar { background: var(--c-ink); color: var(--c-on-ink-muted); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.topbar-info { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.topbar-info li { display: flex; align-items: center; gap: 7px; }
.topbar-info .ico { width: 15px; height: 15px; color: var(--c-on-ink); opacity: .75; }
.topbar a { color: var(--c-on-ink-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }

.scheme-switch { display: flex; align-items: center; gap: 6px; }
.scheme-caption { margin-right: 4px; }
.scheme-btn {
	width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
	border: 2px solid rgba(255,255,255,.35); box-shadow: inset 0 0 0 3px var(--c-ink);
}
.scheme-blue { background: #0b5cad; }
.scheme-red { background: linear-gradient(135deg, #c8102e 50%, #fff 50%); }
.scheme-btn:hover { border-color: rgba(255,255,255,.8); }
html:not([data-scheme="red"]) .scheme-blue, html[data-scheme="red"] .scheme-red { border-color: #fff; }

/* ================= Шапка ================= */

.site-header {
	position: sticky; top: 0; z-index: 50; background: var(--c-surface);
	border-bottom: 1px solid var(--c-border); box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 80px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--c-text); text-decoration: none; }
.logo:hover { color: var(--c-text); }
.logo-mark { width: 46px; height: 46px; color: var(--c-primary); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font: 800 22px/1.1 var(--font-head); letter-spacing: .01em; white-space: nowrap; }
.logo-text small { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; white-space: nowrap; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
	position: relative; display: block; padding: 10px 16px; color: var(--c-text); text-decoration: none;
	font: 700 14px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
}
.main-nav ul a::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 3px; border-radius: 2px;
	background: var(--c-primary); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:hover { color: var(--c-primary); }
.main-nav a:hover::after, .main-nav .is-current > a::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); }
.main-nav .is-current > a, .main-nav .current-menu-item > a { color: var(--c-primary); }
.nav-phone { display: none !important; }

.phone-link { display: flex; align-items: center; gap: 12px; color: var(--c-text); text-decoration: none; }
.phone-link:hover { color: var(--c-primary); }
.phone-icon {
	width: 46px; height: 46px; border-radius: 50%; background: var(--c-primary); color: #fff;
	display: grid; place-items: center; flex: none; box-shadow: 0 0 0 6px rgba(var(--c-primary-rgb), .12);
	animation: ring-pulse 2.6s infinite;
}
.phone-icon .ico { width: 22px; height: 22px; }
.phone-link:hover .phone-icon .ico { animation: ring 0.6s; }
.phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.phone-text strong { font: 800 19px/1.2 var(--font-head); white-space: nowrap; }
.phone-text small { font-size: 12px; color: var(--c-muted); }
@keyframes ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--c-primary-rgb), .35); } 60% { box-shadow: 0 0 0 10px rgba(var(--c-primary-rgb), 0); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }

.nav-toggle { display: none; background: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm); color: var(--c-text); padding: 9px; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

/* ================= Главный экран ================= */

.hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		linear-gradient(100deg, var(--c-ink) 0%, rgba(var(--c-primary-rgb), .82) 55%, rgba(var(--c-primary-rgb), .35) 100%),
		var(--hero-img, none) center / cover no-repeat,
		var(--c-ink);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
	background-size: 48px 48px;
}
.hero-inner { position: relative; padding-top: 110px; padding-bottom: 110px; }
.hero-copy { max-width: 700px; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -.015em; line-height: 1.08; margin-bottom: 22px; }
.hero-lead { font-size: 19px; line-height: 1.6; opacity: .92; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn-primary { background: #fff; border-color: #fff; color: var(--c-ink); }
.hero .btn-primary:hover { background: var(--c-primary-soft); border-color: var(--c-primary-soft); }

.hero-bar { position: relative; background: rgba(0,0,0,.28); backdrop-filter: blur(6px); border-top: 1px solid rgba(255,255,255,.12); }
.hero-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-fact { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.hero-fact:first-child { border-left: 0; padding-left: 0; }
.hero-fact .ico { width: 30px; height: 30px; opacity: .95; }
.hero-fact strong { display: block; font: 700 15px/1.3 var(--font-head); margin-bottom: 4px; }
.hero-fact span { font-size: 13px; line-height: 1.45; opacity: .78; }

/* ================= Фильтр и карточки ================= */

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.filter button, .filter a {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
	border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
	font: 600 14px/1.2 var(--font-body); cursor: pointer; text-decoration: none; transition: all .2s;
}
.filter span { font-size: 12px; color: var(--c-muted); background: var(--c-bg-alt); border-radius: 999px; padding: 2px 8px; }
.filter button:hover, .filter a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter .is-active, .filter .is-active:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.filter .is-active span { background: rgba(255,255,255,.2); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }
.card {
	display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(var(--c-primary-rgb), .45); color: inherit; }
.card[hidden] { display: none; }
.card.is-entering { animation: card-in .35s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--c-bg-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-img img { transform: scale(1.06); }
.no-photo { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; color: var(--c-muted); font-size: 14px; }
.no-photo .ico { width: 44px; height: 44px; color: var(--c-primary); opacity: .6; }
.card-cat {
	position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px;
	background: rgba(255,255,255,.94); color: var(--c-primary); box-shadow: 0 2px 8px rgba(0,0,0,.12);
	font: 700 11px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.card-text { font-size: 14px; line-height: 1.6; color: var(--c-muted); margin: 0 0 18px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.card-price { font: 700 14px/1.2 var(--font-head); white-space: nowrap; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.card-more .ico { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-more .ico, .service:hover .card-more .ico { transform: translateX(4px); }

.empty { padding: 50px; text-align: center; background: var(--c-bg-alt); border: 1px dashed var(--c-border); border-radius: var(--radius); color: var(--c-muted); }

/* ================= О компании (на главной) ================= */

.about-teaser { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: start; }
.about-copy p { font-size: 17px; color: var(--c-muted); }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checklist .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-primary); color: #fff; stroke-width: 2.6; margin-top: 1px; }

.steps { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.steps h3 { font-size: 22px; margin-bottom: 22px; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 50px; bottom: 4px; width: 2px; background: var(--c-border); }
.steps li > span { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; flex: none; }
.steps li > span::after {
	content: counter(step); position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--c-primary); color: #fff; font: 700 11px/20px var(--font-head); text-align: center;
}
.steps strong { display: block; font: 700 16px/1.3 var(--font-head); margin-bottom: 3px; }
.steps li div { color: var(--c-muted); font-size: 15px; }

/* ================= Услуги ================= */

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.service {
	display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border);
	border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); color: inherit; text-decoration: none;
	position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); color: inherit; }
.service:hover::before { transform: scaleX(1); }
.service-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); display: grid; place-items: center; margin-bottom: 20px; }
.service-icon .ico { width: 28px; height: 28px; }
.service h3 { font-size: 20px; }
.service p { color: var(--c-muted); font-size: 15px; margin-bottom: 18px; }
.service .card-more { margin-top: auto; }

/* ================= Внутренние страницы ================= */

.page-head { position: relative; background: var(--c-ink); color: #fff; padding: 52px 0 56px; overflow: hidden; }
.page-head::before {
	content: ""; position: absolute; inset: 0; opacity: .06;
	background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 48px 48px;
}
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-primary-rgb), .55), transparent 70%); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: 42px; font-weight: 800; margin: 0; max-width: 900px; }
.page-lead { margin: 14px 0 0; max-width: 720px; font-size: 18px; opacity: .85; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--c-on-ink-muted); margin-bottom: 14px; }
.crumbs a { color: var(--c-on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

.content { font-size: 16px; }
.content > *:first-child { margin-top: 0; }
.content h2 { font-size: 26px; margin-top: 1.4em; }
.content h3 { font-size: 20px; margin-top: 1.3em; }
.content ul { padding: 0; list-style: none; }
.content ul li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--c-border); }
.content ul li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 9px; height: 9px; border-radius: 2px; background: var(--c-primary); transform: rotate(45deg); }
.content figure { margin: 1.5em 0; }
.content img { border-radius: var(--radius-sm); }
.box { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }

/* ================= Товар ================= */

.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-bg-alt); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-main .no-photo { aspect-ratio: auto; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 84px; height: 84px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--c-border); background: none; cursor: pointer; opacity: .75; transition: all .2s; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.is-active { border-color: var(--c-primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product-info .card-cat { position: static; display: inline-block; background: var(--c-primary-soft); box-shadow: none; margin-bottom: 14px; text-decoration: none; }
.product-info h2 { font-size: 30px; font-weight: 800; }
.product-excerpt { font-size: 17px; color: var(--c-muted); }
.buy-box { margin: 24px 0 30px; padding: 24px; border-radius: var(--radius); background: var(--c-bg-alt); border: 1px solid var(--c-border); }
.buy-box .product-price { font: 800 28px/1.2 var(--font-head); color: var(--c-text); margin: 0 0 4px; }
.buy-box .price-note { font-size: 14px; color: var(--c-muted); margin: 0 0 18px; }
.buy-box .btn-row { margin-top: 0; }
.buy-perks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--c-border); display: grid; gap: 8px; font-size: 14px; color: var(--c-muted); }
.buy-perks li { display: flex; gap: 10px; align-items: center; }
.buy-perks .ico { width: 18px; height: 18px; color: var(--c-primary); }

/* ================= О компании (страница) ================= */

.about-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.about-layout .content p { font-size: 17px; }
.doc-card { position: sticky; top: 110px; background: var(--c-ink); color: #fff; border-radius: var(--radius); padding: 30px; overflow: hidden; }
.doc-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-primary-rgb), .7), transparent 70%); }
.doc-card > * { position: relative; z-index: 1; }
.doc-card .doc-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--c-primary); display: grid; place-items: center; margin-bottom: 18px; }
.doc-card .doc-ico .ico { width: 30px; height: 30px; }
.doc-card h3 { font-size: 21px; }
.doc-card p { color: var(--c-on-ink-muted); font-size: 15px; }
.doc-card dl { margin: 0 0 22px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.doc-card dt { color: var(--c-on-ink-muted); }
.doc-card dd { margin: 0; font-weight: 600; }
.doc-card .btn { width: 100%; }

.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.adv .ico { width: 34px; height: 34px; color: var(--c-primary); margin-bottom: 14px; }
.adv strong { display: block; font: 700 17px/1.3 var(--font-head); margin-bottom: 6px; }
.adv p { margin: 0; color: var(--c-muted); font-size: 15px; }

.requisites { width: 100%; border-collapse: collapse; font-size: 15px; }
.requisites th, .requisites td { padding: 14px 18px; border-bottom: 1px solid var(--c-border); vertical-align: top; text-align: left; }
.requisites th { width: 38%; color: var(--c-muted); font-weight: 600; }
.requisites td { font-weight: 600; }
.requisites tr:last-child th, .requisites tr:last-child td { border-bottom: 0; }
.requisites tr:nth-child(odd) { background: var(--c-bg-alt); }
.copy-btn { margin-left: 8px; padding: 2px 8px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-surface); color: var(--c-muted); font-size: 12px; cursor: pointer; vertical-align: middle; }
.copy-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.table-box { padding: 0; overflow: hidden; }
.table-box .table-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--c-border); flex-wrap: wrap; }
.table-box .table-head h2 { margin: 0; font-size: 22px; }

/* ================= Контакты ================= */

.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-item { display: flex; flex-direction: column; gap: 10px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.contact-item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-hover); color: inherit; }
.contact-item .ico { width: 30px; height: 30px; color: var(--c-primary); }
.contact-item span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.contact-item strong { font: 700 17px/1.4 var(--font-head); word-break: break-word; }
.map-box { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); height: 380px; background: var(--c-bg-alt); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ================= Полоса звонка и подвал ================= */

.cta { background: linear-gradient(110deg, var(--c-primary-dark), var(--c-primary)); color: #fff; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: 8%; top: -80px; width: 260px; height: 260px; border: 40px solid rgba(255,255,255,.06); border-radius: 50%; }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 50px; padding-bottom: 50px; }
.cta h2 { margin: 0 0 6px; font-size: 28px; }
.cta p { margin: 0; opacity: .88; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn-light { color: var(--c-primary-dark); }

.site-footer { background: var(--c-ink); color: var(--c-on-ink-muted); padding: 64px 0 28px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-cols { display: grid; grid-template-columns: 1.5fr .8fr 1.3fr 1fr; gap: 40px; }
.footer-cols h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin: 0 0 18px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.logo-footer { color: #fff; margin-bottom: 18px; }
.logo-footer:hover { color: #fff; text-decoration: none !important; }
.logo-footer .logo-mark { color: var(--c-primary); }
.logo-footer small { color: var(--c-on-ink-muted); }
.footer-brand p { line-height: 1.7; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .ico { width: 17px; height: 17px; margin-top: 2px; color: #fff; opacity: .7; }
.footer-card { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); }
.footer-card:hover { border-color: #fff; text-decoration: none !important; }
.footer-card .ico { width: 18px; height: 18px; }
.footer-card small { opacity: .6; margin-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; opacity: .75; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ================= Адаптив ================= */

@media (max-width: 1100px) {
	.site-header .wrap { gap: 20px; }
	.main-nav a { padding: 10px 11px; }
	.phone-text small { display: none; }
	.contacts-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.section { padding: 60px 0; }
	.hero h1 { font-size: 40px; }
	.hero-inner { padding-top: 70px; padding-bottom: 70px; }
	.hero-bar .wrap { grid-template-columns: 1fr 1fr; }
	.hero-fact { border-left: 0; padding-left: 0; }
	.about-teaser, .about-layout, .product { grid-template-columns: 1fr; gap: 36px; }
	.doc-card { position: static; }

	.site-header .wrap { min-height: 68px; }
	.logo { flex: 1; }
	.nav-toggle { display: block; }
	.phone-text { display: none; }
	.phone-icon { width: 42px; height: 42px; }
	.main-nav {
		position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column;
		background: var(--c-surface); border-bottom: 1px solid var(--c-border); box-shadow: 0 14px 24px rgba(0,0,0,.08); padding: 8px 24px 20px;
	}
	.main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav ul a { padding: 15px 0; border-bottom: 1px solid var(--c-border); }
	.main-nav ul a::after { display: none; }
	.nav-phone { display: inline-flex !important; align-items: center; gap: 10px; margin-top: 16px; color: var(--c-primary) !important; font-size: 18px !important; }
}

@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.section { padding: 48px 0; }
	.section-title { font-size: 26px; }
	.topbar-info { display: none; }
	.topbar .wrap { justify-content: flex-end; min-height: 38px; }
	.hero-inner { padding-top: 48px; padding-bottom: 48px; }
	.hero h1 { font-size: 31px; }
	.hero-lead { font-size: 16px; }
	.hero-actions .btn { flex: 1 1 auto; }
	.hero-bar .wrap { grid-template-columns: 1fr; }
	.hero-fact { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); }
	.hero-fact:first-child { border-top: 0; }
	.logo-text small { display: none; }
	.logo-text strong { font-size: 19px; }
	.logo-mark { width: 40px; height: 40px; }
	.page-head { padding: 36px 0 40px; }
	.page-head h1 { font-size: 28px; }
	.contacts-grid, .adv-grid, .footer-cols { grid-template-columns: 1fr; }
	.steps, .box, .doc-card { padding: 24px; }
	.requisites th, .requisites td { display: block; width: auto; padding: 4px 16px; border: 0; }
	.requisites th { padding-top: 12px; }
	.requisites td { padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
	.cta h2 { font-size: 23px; }
	.cta-actions, .cta-actions .btn { width: 100%; }
	.gallery-thumbs button { width: 64px; height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
