/* ===== Hero ===== */
.hero {
	position: relative;
	margin-bottom: 60px;
}

.hero__media {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	overflow: hidden;
	background: #1d2940;
}

.hero__poster,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero__video[data-src] {
	opacity: 0;
}

.hero__video[data-src].is-playing {
	opacity: 1;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 14, 40, 0.65) 0%, rgba(10, 14, 40, 0.25) 45%, rgba(10, 14, 40, 0.05) 75%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 280px;
	padding-bottom: 90px;
}

.hero__content {
	max-width: 620px;
	color: var(--color-white);
}

.hero__badge {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.hero__badge-line {
	width: 28px;
	height: 2px;
	background: var(--color-accent);
	display: inline-block;
}

.hero__title {
	font-size: 52px;
	font-weight: 800;
	line-height: 1.12;
	margin: 0 0 20px;
}

.hero__text {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 32px;
	max-width: 520px;
}

.hero__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn--primary:hover {
	background: #D5522F;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(231, 97, 67, 0.35);
}

.btn--outline {
	background: var(--color-white);
	color: var(--color-primary);
}

.btn--outline:hover {
	background: #F2F3F8;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--color-accent);
	display: inline-block;
}

/* ===== Quick order card ===== */
.hero__form-card {
	position: relative;
	margin-top: 24px;
}

.qform {
	display: flex;
	align-items: center;
	gap: 40px;
	background: rgba(255, 255, 255, 0.42);
	backdrop-filter: blur(24px) saturate(160%);
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 20px;
	padding: 32px 40px;
	box-shadow: 0 24px 60px rgba(10, 14, 40, 0.18);
}

.qform__info {
	flex: 0 0 240px;
}

.qform__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--color-white);
	margin-bottom: 8px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.qform__sub {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.4;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.qform__fields {
	flex: 1;
}

.qform__fields form.wpcf7-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 20px;
}

.qform__fields form.wpcf7-form > .qform__field {
	flex: 1;
	min-width: 160px;
}

.qform__fields form.wpcf7-form > .qform__submit {
	flex-shrink: 0;
	align-self: flex-end;
	margin-top: 20px;
}

.qform__field {
	flex: 1;
	display: flex;
	flex-flow: column;
	gap: 8px;
}

.qform__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.qform__field input[type="text"],
.qform__field input[type="tel"] {
	border: none;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 15px;
	font-family: var(--font-main);
	color: var(--color-text);
	width: 100%;
}

.qform__field input::placeholder {
	color: #9096A8;
}

.qform__field input[type="text"]:focus,
.qform__field input[type="tel"]:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}

.qform__submit {
	border: none;
	background: var(--color-accent);
	color: var(--color-white);
	font-weight: 700;
	font-size: 15px;
	padding: 15px 44px 15px 28px;
	border-radius: 10px;
	white-space: nowrap;
	position: relative;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.qform__submit::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 14px;
	height: 14px;
	transform: translateY(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.qform__submit:hover {
	background: #D5522F;
	transform: translateY(-2px);
}

.qform__field .wpcf7-form-control-wrap {
	position: relative;
	display: block;
}

.qform__field .wpcf7-not-valid-tip {
	position: absolute;
	left: 2px;
	top: 100%;
	margin-top: 5px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	color: #fff;
	background: var(--color-accent);
	padding: 3px 9px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 2;
}

.qform__field input.wpcf7-not-valid {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
}

.qform__fields form.wpcf7-form.invalid .wpcf7-response-output {
	display: none !important;
}

.qform__fields .wpcf7-response-output {
	flex-basis: 100%;
	width: 100%;
	margin: 4px 0 0 !important;
	padding: 10px 16px !important;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px !important;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	color: #fff;
}

.qform__fields form.sent .qform__field input,
.qform__fields .wpcf7-spinner {
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.hero__title {
		font-size: 40px;
	}
	.qform {
		flex-flow: column;
		align-items: stretch;
		gap: 20px;
		padding: 28px 24px;
		/* на телефоні картка частково заходить на білий фон — тримаємо суцільний фірмовий колір, щоб підписи читались */
		background: rgba(27, 39, 129, 0.94);
		border-color: rgba(255, 255, 255, 0.12);
	}
	.qform__info {
		flex: none;
	}
	.qform__fields {
		flex: none;
	}
	.qform__fields form.wpcf7-form {
		flex-flow: column;
		align-items: stretch;
		gap: 14px;
	}
	.qform__fields form.wpcf7-form > .qform__field,
	.qform__field {
		flex: none;
		min-width: 0;
		gap: 6px;
	}
	.qform__fields form.wpcf7-form > .qform__submit {
		align-self: stretch;
		margin-top: 4px;
		width: 100%;
	}
	.qform__fields form.wpcf7-form > p {
		margin: 0;
	}
	.qform__fields .qform__submit {
		width: 100%;
	}
	.qform__field p {
		margin: 0;
	}
	.qform__field br {
		display: none;
	}
	.qform__field .qform__label {
		display: block;
		margin-bottom: 8px;
	}
}

@media (max-width: 640px) {
	.hero__media {
		height: 880px;
	}
	.hero__inner {
		padding-top: 220px;
	}
	.hero__title {
		font-size: 32px;
	}
	.hero__actions {
		flex-flow: column;
		align-items: stretch;
	}
	.btn {
		justify-content: center;
	}
}
