/* Aurovia — clean, modern car-hire microsite */

:root {
	--brand-1: #0b4f6c;
	--brand-2: #20bf55;
	--accent: #ff9f1c;
	--bg: #f7f9fb;
	--surface: #ffffff;
	--ink: #1f2937;
	--muted: #6b7280;
	--border: #e5e7eb;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--radius: 14px;
	--max-w: 1180px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family:
		"Inter",
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		"Helvetica Neue",
		Arial,
		sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--brand-1);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	width: min(92%, var(--max-w));
	margin-inline: auto;
}

.section-padding {
	padding: 84px 0;
}

.section-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.section-head h2 {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	margin: 0 0 12px;
	color: var(--ink);
}

.section-head p {
	color: var(--muted);
	font-size: 1.05rem;
	margin: 0;
}

/* Header */
#site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: box-shadow 0.2s var(--ease);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--brand-1);
	font-size: 1.25rem;
	letter-spacing: -0.02em;
}

.brand img,
.brand svg {
	width: 36px;
	height: 36px;
}

.nav-list {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	position: relative;
}

.nav-list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: var(--brand-2);
	transition: width 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
	width: 100%;
}

.header-contacts {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 0.88rem;
	color: var(--muted);
}

.header-contacts a {
	color: var(--muted);
	text-decoration: underline;
}
.header-contacts span {
	white-space: nowrap;
}

.burger {
	display: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 6px;
}

.burger svg {
	width: 28px;
	height: 28px;
	stroke: var(--ink);
}

/* Hero */
.hero {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	color: #fff;
	background: linear-gradient(
		120deg,
		var(--brand-1) 0%,
		#0a3a50 60%,
		#05232f 100%
	);
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(
			circle at 80% 20%,
			rgba(32, 191, 85, 0.25),
			transparent 35%
		),
		radial-gradient(
			circle at 20% 90%,
			rgba(255, 159, 28, 0.15),
			transparent 35%
		);
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-size: clamp(2.2rem, 5.5vw, 4rem);
	line-height: 1.1;
	margin: 0 0 20px;
	max-width: 760px;
}

.hero p {
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	margin: 0 0 32px;
	max-width: 620px;
	opacity: 0.9;
}

.hero .btn {
	margin-right: 14px;
}

.hero img {
	position: absolute;
	right: -4%;
	bottom: -6%;
	max-width: 52%;
	opacity: 0.22;
	transform: scaleX(-1);
	pointer-events: none;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
	border: 0;
	cursor: pointer;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
	text-decoration: none;
}

.btn-primary {
	background: var(--brand-2);
	color: #fff;
}
.btn-outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.75);
}
.btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
}
.btn-ghost {
	background: var(--bg);
	color: var(--brand-1);
	border: 1px solid var(--border);
}

/* Cards / grids */
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

@media (max-width: 900px) {
	.grid-3 {
		grid-template-columns: 1fr 1fr;
	}
	.grid-4 {
		grid-template-columns: 1fr 1fr;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}
}

.card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 30px;
	box-shadow: var(--shadow);
	transition:
		transform 0.2s var(--ease),
		box-shadow 0.2s var(--ease);
	height: 100%;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.11);
}

.card img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 18px;
	background: var(--bg);
}

.card h3 {
	margin: 0 0 10px;
	font-size: 1.18rem;
	color: var(--brand-1);
}

.card p,
.card li {
	color: var(--muted);
	font-size: 0.96rem;
	margin: 0;
}

.card .price {
	display: inline-block;
	margin-top: 14px;
	font-weight: 800;
	color: var(--brand-2);
	font-size: 1.1rem;
}

/* Service page hero smaller */
.page-hero {
	padding: 110px 0 70px;
	background: linear-gradient(
		110deg,
		#062c3d 0%,
		var(--brand-1) 55%,
		#0f3d53 100%
	);
	color: #fff;
	text-align: center;
}

.page-hero h1 {
	font-size: clamp(1.8rem, 4.5vw, 3rem);
	margin: 0 0 14px;
}

.page-hero p {
	max-width: 680px;
	margin: 0 auto;
	opacity: 0.9;
}

/* Lists */
.feature-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
}
.feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	color: var(--ink);
}

.feature-list li svg,
.icon-check {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--brand-2);
}

/* Stats */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	text-align: center;
}

.stat {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 32px 20px;
	box-shadow: var(--shadow);
}

.stat strong {
	display: block;
	font-size: clamp(2rem, 4vw, 2.7rem);
	color: var(--brand-1);
	margin-bottom: 6px;
}

.stat span {
	color: var(--muted);
	font-size: 0.95rem;
}

@media (max-width: 720px) {
	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	counter-reset: step;
}

.step {
	position: relative;
	background: var(--surface);
	border-radius: var(--radius);
	padding: 28px 22px;
	box-shadow: var(--shadow);
}

.step::before {
	counter-increment: step;
	content: counter(step);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brand-2);
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
	margin-bottom: 14px;
}

@media (max-width: 900px) {
	.steps {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

/* Forms */
.form-card {
	max-width: 680px;
	margin-inline: auto;
	background: var(--surface);
	padding: 36px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.form-group {
	margin-bottom: 20px;
}

label {
	display: block;
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 6px;
}

input,
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: var(--ink);
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--brand-2);
	box-shadow: 0 0 0 3px rgba(32, 191, 85, 0.18);
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
	border-color: #ef4444;
}

.error-hint {
	color: #ef4444;
	font-size: 0.8rem;
	margin-top: 4px;
	display: none;
}

input:invalid:not(:placeholder-shown) + .error-hint,
textarea:invalid:not(:placeholder-shown) + .error-hint {
	display: block;
}

.success-msg {
	display: none;
	padding: 16px;
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	border-radius: 10px;
	margin-bottom: 18px;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal.open {
	display: flex;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.modal-card {
	position: relative;
	background: var(--surface);
	padding: 36px;
	border-radius: var(--radius);
	max-width: 420px;
	width: 100%;
	box-shadow: var(--shadow);
	text-align: center;
	z-index: 1;
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--muted);
	padding: 4px;
}

.modal-close svg {
	width: 24px;
	height: 24px;
}

/* Footer */
#site-footer {
	background: #081c24;
	color: #cbd5e1;
	padding: 64px 0 28px;
	font-size: 0.94rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr;
	gap: 40px;
	margin-bottom: 40px;
}

.footer-col h4 {
	color: #fff;
	margin: 0 0 16px;
	font-size: 1.05rem;
}

.footer-col a {
	color: #cbd5e1;
	display: block;
	margin-bottom: 8px;
}
.footer-col a:hover {
	color: #fff;
	text-decoration: none;
}

.footer-contacts {
	line-height: 1.8;
}
.footer-contacts p {
	margin: 0 0 6px;
}

.legal-block {
	border-top: 1px solid #143240;
	padding-top: 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: space-between;
	align-items: center;
}

.legal-block p {
	margin: 0;
}

@media (max-width: 900px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 560px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

/* Mobile menu */
@media (max-width: 980px) {
	.nav-list {
		display: none;
	}
	.header-contacts {
		display: none;
	}
	.burger {
		display: block;
	}

	.nav-list.open {
		display: flex;
		flex-direction: column;
		gap: 18px;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		padding: 24px;
		box-shadow: var(--shadow);
	}

	.nav-list.open .header-contacts {
		display: flex;
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
		margin-top: 12px;
		padding-top: 16px;
		border-top: 1px solid var(--border);
	}
}

/* Legal pages */
.legal h2 {
	margin-top: 0;
	color: var(--brand-1);
}
.legal h3 {
	color: var(--brand-1);
	margin: 30px 0 12px;
}
.legal p,
.legal li {
	color: var(--muted);
}
.legal ul {
	padding-left: 22px;
	margin-bottom: 16px;
}

/* Cookie banner */
.cookie-banner {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 300;
	background: #081c24;
	color: #cbd5e1;
	padding: 18px 24px;
	border-top: 1px solid #143240;
}

.cookie-banner.open {
	display: block;
}

.cookie-banner .cookie-banner-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
}

.cookie-banner p {
	margin: 0;
}

.cookie-banner a {
	color: #fff;
	text-decoration: underline;
}

.cookie-actions {
	display: flex;
	gap: 10px;
}

.cookie-banner .btn {
	font-size: 0.9rem;
	padding: 8px 18px;
}

@media (max-width: 560px) {
	.cookie-banner .cookie-banner-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Utility */
.text-center {
	text-align: center;
}
.mb-0 {
	margin-bottom: 0;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
