/* H64: основа оформления -- переменные, сброс, типографика, кнопки, поля. Сетка -- bootstrap-grid.css (только сетка, без компонентов). */
:root {
	--red: #e22c3b;
	--red-dark: #c21f2d;
	--red-soft: #fdecee;
	--ink: #101012;
	--text: #2a2a2e;
	--muted: #6b6b73;
	--line: #e6e6ea;
	--line-strong: #cfcfd6;
	--panel: #f5f5f7;
	--field: #fafafb;
	--dark: #141416;
	--dark-2: #1d1d20;
	--ok: #1f7a47;
	--error: #c0392b;

	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 18px;
	--r-xl: 26px;
	--r-pill: 999px;

	--shadow-sm: 0 1px 2px rgba(16, 16, 18, .06), 0 6px 18px rgba(16, 16, 18, .06);
	--shadow-md: 0 14px 40px rgba(16, 16, 18, .14);
	--focus: 0 0 0 3px rgba(226, 44, 59, .25);

	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	font-weight: 400;
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
iframe { max-width: 100%; border: 0; }
a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--font); color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(22px, 2.5vw, 30px); }
h3 { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 16px; font-weight: 700; color: var(--red); }
h6 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; color: var(--ink); }
small { font-size: 85%; }

/* красная черта под заголовками (в содержимом документов стоит <hr> сразу после h1/h2) */
hr {
	display: block;
	width: 64px;
	height: 4px;
	margin: 14px 0 26px;
	border: 0;
	border-radius: 4px;
	background: var(--red);
	opacity: 1;
}

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }
ul.list, .text ul { list-style: none; padding-left: 0; }
ul.list li, .text ul li { position: relative; padding-left: 28px; margin-bottom: .6em; }
ul.list li::before, .text ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.6 7.2 6 9.5l4.4-4.6' fill='none' stroke='%23e22c3b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.text ul ul, .text ul.nav-column ul { margin-top: .4em; }

blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--red); background: var(--panel); border-radius: 0 var(--r-md) var(--r-md) 0; }
table { border-collapse: collapse; border-spacing: 0; max-width: 100%; }
td, th { vertical-align: top; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; padding: 10px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; }
.vertical-align { display: flex; align-items: center; }
.horizontal-align { display: flex; flex-wrap: wrap; }
.clearfix::after { content: ''; display: table; clear: both; }
.img-fluid { max-width: 100%; height: auto; }
.float-start { float: left; margin: 0 20px 12px 0; }
.float-end { float: right; margin: 0 0 12px 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--ink);
	color: #fff;
	font: 700 14px/1 var(--font);
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-success, .btn-red { background: var(--red); }
.btn-success:hover, .btn-red:hover { background: var(--red-dark); }
.btn-block { display: flex; width: 100%; }
.btn-large { min-height: 54px; }
.btn[disabled], .btn.loading { opacity: .7; cursor: progress; transform: none; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* поля форм: общие (формы модуля «Формы», форма записи на странице /car-service/order/ и др.) */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], textarea, select {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md);
	background: var(--field);
	color: var(--ink);
	font: 500 16px/1.4 var(--font);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9a9aa3; font-weight: 400; }
input[type="text"]:hover, input[type="tel"]:hover, input[type="email"]:hover, input[type="date"]:hover, textarea:hover, select:hover { border-color: #b5b5bd; }
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="date"]:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--red);
	background: #fff;
	box-shadow: var(--focus);
}
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--red); cursor: pointer; }
label { cursor: pointer; }

select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101012' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 14px no-repeat; cursor: pointer; }
select:focus { background-color: #fff; }
input[type="date"] { appearance: none; -webkit-appearance: none; min-width: 0; }
.site-form .is-invalid { border-color: var(--error); background: #fff8f7; }
.site-form-error { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--error); }
