/*
Theme Name: КонстантинЪ и Товарищи
Theme URI: https://gazel62.ru
Author: КонстантинЪ и Товарищи
Author URI: https://gazel62.ru
Description: Современная тема для сайта грузоперевозок «КонстантинЪ и Товарищи» — Рязань и Россия. Калькулятор стоимости, тарифы, автопарк, услуги, отзывы и новости.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gazel62
Tags: business, custom-menu, featured-images, one-column, two-columns, right-sidebar, translation-ready
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Neutrals (zinc) */
	--bg: #ffffff;
	--bg-soft: #fafafa;
	--bg-subtle: #f4f4f5;
	--surface: #ffffff;
	--border: #e4e4e7;
	--border-strong: #d4d4d8;

	--text: #18181b;
	--text-muted: #52525b;
	--text-soft: #71717a;

	/* Primary (blue) */
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--primary-active: #1e40af;
	--primary-foreground: #ffffff;
	--primary-soft: #eff6ff;
	--primary-border: #bfdbfe;

	/* Accent for highlights */
	--accent: #059669;

	/* Radii */
	--radius-sm: 6px;
	--radius: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--radius-full: 999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.05);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.05);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.09), 0 4px 6px -4px rgb(0 0 0 / 0.05);
	--shadow-xl: 0 20px 40px -8px rgb(0 0 0 / 0.14);

	--ring: 0 0 0 3px rgb(37 99 235 / 0.25);

	--container: 1180px;
	--header-h: 68px;
}

/* ============================================================
   2. Base / reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 140px; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
	margin: 0 0 0.6em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: none;
	box-shadow: var(--ring);
	border-radius: var(--radius-sm);
}
::selection { background: var(--primary-soft); color: var(--text); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon { display: inline-block; vertical-align: -0.125em; flex: none; }

/* ============================================================
   3. Layout helpers
   ============================================================ */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

.section { padding-block: 72px; }
.section--soft { background: var(--bg-soft); }
.section--subtle { background: var(--bg-subtle); }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.section-title { font-size: 34px; margin: 0; }
.section-sub { margin: 8px 0 0; color: var(--text-muted); max-width: 60ch; }
.section-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; font-size: 15px; white-space: nowrap;
}
.section-link .icon { transition: transform 0.15s ease; }
.section-link:hover .icon { transform: translateX(3px); }

.muted { color: var(--text-muted); }
.lead { font-size: 18px; color: var(--text-muted); }

/* ============================================================
   4. Header
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: 8px; text-decoration: none; }
.brand:hover .brand-name { color: var(--text); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name, .brand-tagline { display: block; }
.brand-mark {
	display: grid; place-items: center;
	width: 40px; height: 40px; flex: none;
	background: var(--primary); color: #fff;
	border-radius: var(--radius);
	font-weight: 800; font-size: 14px; letter-spacing: -0.03em;
}
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.brand-tagline { font-size: 12px; color: var(--text-soft); line-height: 1.2; }

.header-spacer { flex: 1 1 auto; }

.header-contact {
	display: flex; align-items: center; gap: 16px;
}
.header-phone {
	display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2;
}
.header-phone a { font-weight: 700; font-size: 16px; color: var(--text); }
.header-phone span { font-size: 12px; color: var(--text-soft); }

.main-nav { display: flex; align-items: center; }
.main-nav .menu {
	display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0;
}
.main-nav .menu a {
	display: inline-block; padding: 8px 12px;
	font-size: 15px; font-weight: 500; color: var(--text-muted);
	border-radius: var(--radius-sm);
}
.main-nav .menu a:hover { color: var(--text); background: var(--bg-subtle); }
.main-nav .menu .current-menu-item > a,
.main-nav .menu .current_page_item > a {
	color: var(--text); background: var(--bg-subtle); font-weight: 600;
}

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--border);
	background: var(--surface); color: var(--text); border-radius: var(--radius-sm);
	cursor: pointer;
}

/* Two-row header: nav on its own line on desktop */
.header-nav {
	border-top: 1px solid var(--border);
	background: var(--bg);
}
.header-nav .container { display: flex; align-items: center; justify-content: space-between; }
.header-nav .main-nav { flex: 1; }

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1;
	padding: 11px 20px; border-radius: var(--radius);
	border: 1px solid transparent; cursor: pointer; text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { flex: none; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-subtle); color: var(--text); border-color: var(--border-strong); }

.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-hover); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary-border); }
.btn-outline:hover { background: var(--primary-soft); }

.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }

/* ============================================================
   6. Forms
   ============================================================ */
.field { margin-bottom: 20px; }
.field > label {
	display: block; font-size: 14px; font-weight: 600; color: var(--text);
	margin-bottom: 7px;
}
.field-hint { font-size: 13px; color: var(--text-soft); margin-top: 5px; }

.input, select.input, textarea.input {
	width: 100%; padding: 10px 13px;
	font: inherit; font-size: 15px; color: var(--text);
	background: var(--surface); border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
}
select.input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
	padding-right: 38px;
}
.input:hover { border-color: var(--text-soft); }
.input:focus-visible { border-color: var(--primary); box-shadow: var(--ring); border-radius: var(--radius); }

input[type="range"].input {
	padding: 0; height: 6px; background: var(--bg-subtle); border: none; border-radius: var(--radius-full);
	cursor: pointer; accent-color: var(--primary);
}
input[type="range"].input:focus-visible { box-shadow: var(--ring); }

.checkbox {
	display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
	font-size: 15px; color: var(--text);
}
.checkbox input {
	width: 18px; height: 18px; margin-top: 2px; flex: none;
	accent-color: var(--primary); cursor: pointer;
}

/* ============================================================
   7. Cards
   ============================================================ */
.card {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }

.card-media { aspect-ratio: 16 / 10; background: var(--bg-subtle); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.card-kicker {
	font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
	color: var(--primary);
}
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin: 0; }
a .card-title:hover { color: var(--primary); }
.card-text { font-size: 15px; color: var(--text-muted); margin: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); margin-top: auto; }

/* ============================================================
   8. Tags / badges
   ============================================================ */
.tag {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12px; font-weight: 600; padding: 4px 10px;
	border-radius: var(--radius-full);
	background: var(--bg-subtle); color: var(--text-muted);
}
.tag-primary { background: var(--primary-soft); color: var(--primary-hover); }
.tag-accent { background: #ecfdf5; color: #047857; }

/* ============================================================
   9. Tables
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table th {
	text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
	color: var(--text-soft); padding: 12px 16px;
	background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }

/* ============================================================
   10. Hero
   ============================================================ */
.hero { padding-block: 64px 72px; }
.hero-inner {
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center;
}
.hero-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; color: var(--primary);
	background: var(--primary-soft); padding: 6px 14px;
	border-radius: var(--radius-full); margin-bottom: 20px;
}
.hero-title {
	font-size: clamp(38px, 5.2vw, 60px);
	line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 32px; }
.hero-stat { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); }
.hero-stat .icon { color: var(--primary); flex: none; }
.hero-stat strong { color: var(--text); font-weight: 700; }

.hero-media { position: relative; }
.hero-media .media-frame {
	aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden;
	border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}

/* Editable hero copy (content of the «Главная» page) — matches the original hero */
.hero-copy h1 {
	font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04;
	letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-copy p {
	font-size: 19px; line-height: 1.6; color: var(--text-muted);
	max-width: 46ch; margin-bottom: 28px;
}
.hero-copy .wp-block-buttons { gap: 12px; margin-bottom: 36px; }
.entry-content.hero-copy .wp-block-button__link {
	padding: 14px 26px; font-size: 16px; border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.entry-content.hero-copy .wp-block-button.is-style-outline .wp-block-button__link {
	background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.entry-content.hero-copy .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bg-subtle); color: var(--text);
}

/* ============================================================
   11. Media placeholders
   ============================================================ */
.media-frame { position: relative; background: var(--bg-subtle); }
.media-frame img.media-img, .media-img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
	display: grid; place-items: center; height: 100%; min-height: 200px;
	color: var(--border-strong);
	background:
		linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-subtle) 100%);
}
.media-placeholder .icon { color: var(--border-strong); }

/* ============================================================
   12. Calculator
   ============================================================ */
.calc {
	display: grid; grid-template-columns: 1.1fr 0.9fr;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden;
}
.calc-form { padding: 32px; }
.calc-form .section-title { font-size: 26px; }
.calc-form .section-sub { margin-bottom: 24px; }

.calc-result {
	display: flex; flex-direction: column;
	padding: 32px; background: var(--primary-soft); border-left: 1px solid var(--primary-border);
}
.calc-result-label {
	font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
	color: var(--primary-hover);
}
.calc-price { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; margin: 12px 0; }
.calc-note { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.calc-result .btn { margin-top: 24px; }
.calc-fineprint { font-size: 13px; color: var(--text-soft); margin-top: 12px; }

/* ============================================================
   13. Feature grid (Что перевозим)
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
	padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg);
	background: var(--surface);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-icon {
	display: grid; place-items: center; width: 46px; height: 46px;
	background: var(--primary-soft); color: var(--primary);
	border-radius: var(--radius); margin-bottom: 16px;
}
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.feature-text { font-size: 15px; color: var(--text-muted); margin: 0; }

/* ============================================================
   14. Reviews
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
	display: flex; flex-direction: column; gap: 16px;
	padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
	background: var(--surface);
}
.review-quote { color: var(--primary); }
.review-text { font-size: 17px; line-height: 1.6; color: var(--text); margin: 0; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
	display: grid; place-items: center; width: 40px; height: 40px; flex: none;
	background: var(--primary); color: #fff; border-radius: var(--radius-full);
	font-weight: 700; font-size: 15px;
}
.review-name { font-weight: 700; font-size: 15px; }
.review-what { font-size: 13px; color: var(--text-soft); }

/* ============================================================
   15. News grid
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   16. Page hero (inner pages)
   ============================================================ */
.page-hero { padding-block: 48px 40px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.page-hero .container { max-width: var(--container); }
.page-hero-title { font-size: clamp(34px, 4vw, 48px); margin-bottom: 12px; }
.page-hero-sub { font-size: 18px; color: var(--text-muted); max-width: 62ch; margin: 0; }

/* ============================================================
   17. Footer
   ============================================================ */
.site-footer { background: #18181b; color: #a1a1aa; margin-top: 72px; }
.footer-inner {
	display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px;
	padding-block: 64px 48px;
}
.footer-brand-name { color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.footer-brand-text { font-size: 15px; color: #a1a1aa; max-width: 32ch; }
.footer-col-title { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #a1a1aa; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: 15px; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact a:hover { color: #dbeafe; }
.footer-bottom {
	border-top: 1px solid #27272a; padding-block: 22px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-size: 13px; color: #71717a;
}
.footer-bottom a { color: #a1a1aa; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   18. Content / article
   ============================================================ */
.entry-content { font-size: 17px; line-height: 1.7; color: var(--text); }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--primary); font-size: 19px; color: var(--text-muted);
}
.entry-content img { border-radius: var(--radius-lg); }

/* WordPress blocks (editable page content) */
.entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-sans); font-weight: 600; font-size: 15px; line-height: 1;
	padding: 11px 20px; border-radius: var(--radius); text-decoration: none;
	background: var(--primary); color: #fff; border: 1px solid transparent;
}
.entry-content .wp-block-button__link:hover { background: var(--primary-hover); color: #fff; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--primary); border-color: var(--primary-border);
}
.entry-content .wp-block-quote {
	margin: 1.6em 0; padding: 4px 0 4px 20px;
	border-left: 3px solid var(--primary); font-size: 19px; color: var(--text-muted);
}
.entry-content .wp-block-image img { border-radius: var(--radius-lg); }
.entry-content .wp-block-image figcaption { font-size: 13px; color: var(--text-soft); margin-top: 8px; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content .alignwide { max-width: 1080px; margin-inline: auto; }

/* ============================================================
   19. Pagination
   ============================================================ */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	font-size: 15px; font-weight: 600; color: var(--text-muted);
	border: 1px solid var(--border); border-radius: var(--radius);
}
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers:hover { background: var(--bg-subtle); color: var(--text); }
.pagination .page-numbers.current:hover { background: var(--primary); color: #fff; }

/* ============================================================
   20. Search
   ============================================================ */
.search-form { display: flex; gap: 10px; max-width: 460px; }
.search-form .input { flex: 1; }

/* ============================================================
   21. Misc
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.stack { display: grid; gap: 16px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

.vehicle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.service { display: grid; gap: 10px; align-content: start; }
.service-num { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--primary); }
.service-name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.service-desc { font-size: 16px; color: var(--text-muted); margin: 0; }
.service-price { font-size: 16px; font-weight: 700; color: var(--text); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline-item { border-top: 3px solid var(--primary); padding-top: 16px; }
.timeline-year { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.timeline-text { font-size: 15px; color: var(--text-muted); margin: 6px 0 0; }

.contact-card { display: grid; gap: 20px; }
.contact-item-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-soft); margin-bottom: 4px; }
.contact-item-value { font-size: 20px; color: var(--text); }
.contact-item-value a { color: var(--text); }
.contact-item-value a:hover { color: var(--primary); }

/* ============================================================
   22. Modal (order form)
   ============================================================ */
.modal-backdrop {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center; padding: 20px;
	background: rgb(0 0 0 / 0.5);
	opacity: 0; visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
	position: relative;
	width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
	padding: 28px;
}
.modal-close {
	position: absolute; top: 16px; right: 16px;
	display: grid; place-items: center; width: 36px; height: 36px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.modal-close:hover { color: var(--text); background: var(--bg-subtle); }
.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; padding-right: 40px; }
.modal-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.form-msg.is-success { background: #ecfdf5; color: #047857; }
.form-msg.is-error { background: #fef2f2; color: #b91c1c; }

/* ============================================================
   23. Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.reviews { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.hero-inner { grid-template-columns: 1fr; gap: 40px; }
	.hero-media .media-frame { aspect-ratio: 16 / 10; }
	.calc { grid-template-columns: 1fr; }
	.calc-result { border-left: 0; border-top: 1px solid var(--primary-border); }
	.vehicle-list, .service-list, .grid-2 { grid-template-columns: 1fr; }
	.article-layout { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.section { padding-block: 48px; }
	.section-title { font-size: 28px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }

	.header-contact { margin-left: auto; }
	.header-phone span { display: none; }
	.header-cta { display: none; }

	.brand { min-width: 0; gap: 10px; }
	.brand-text { min-width: 0; overflow: hidden; }
	.brand-tagline { display: none; }
	.brand-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.header-inner { gap: 12px; }
	.header-contact { gap: 10px; }
	.header-phone { flex: none; }
	.header-phone a { font-size: 15px; white-space: nowrap; }
	.nav-toggle { flex: none; }

	.header-nav { display: none; }
	.header-nav.is-open { display: block; }
	.header-nav .main-nav { display: block; padding: 12px 0; }
	.header-nav .main-nav .menu { flex-direction: column; gap: 2px; }
	.header-nav .main-nav .menu a { display: block; padding: 10px 12px; }
	.nav-toggle { display: inline-flex; }

	.features { grid-template-columns: 1fr; }
	.news-grid, .news-grid--2 { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: 1fr; }
	.footer-inner { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.calc-form, .calc-result { padding: 24px; }
	.calc-price { font-size: 42px; }
	.hero { padding-block: 40px 48px; }
	.hero-stats { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
