/*
Theme Name: Akron Tur
Description: Лендинг туристической компании «Акрон Тур»
Author: Akron Tur
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akron-tur
*/

:root {
	--navy: #16223A;
	--muted: #55504B;
	--gray: #F4F5F5;
	--line: #BAB5B0;
	--red: #E21B2E;
	--red-dark: #C01727;
	--white: #fff;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--pad: 76px;
	--gap: 30px;
}

/* база */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	color: var(--navy);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

.container {
	width: 100%;
	max-width: 1920px;
	margin-inline: auto;
	padding-inline: var(--pad);
}

.visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* кнопка */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 28px;
	height: 46px;
	background: var(--red);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn--lg { height: 60px; padding: 0 36px; font-size: 18px; }

/* шапка */

.header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 10;
	height: 90px;
	color: var(--white);
}
.header__inner {
	display: flex;
	align-items: center;
	gap: var(--gap);
	height: 90px;
}
.header__brand { display: flex; align-items: center; gap: 30px; flex: none; }
.header__logo { width: 180px; height: 31px; object-fit: contain; flex: none; }
.header__tagline { font-size: 14px; opacity: .85; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__list { display: flex; gap: 30px; font-size: 14px; white-space: nowrap; }
.nav__list a { opacity: .9; transition: opacity .2s ease; }
.nav__list a:hover { opacity: 1; }
.nav__phone { font-size: 18px; font-weight: 600; white-space: nowrap; }

.burger {
	display: none; width: 32px; height: 32px;
	flex-direction: column; justify-content: center; gap: 6px; margin-left: auto;
}
.burger span { display: block; height: 2px; background: currentColor; transition: .25s; }

/* герой */

.hero {
	position: relative;
	min-height: 900px;
	display: flex;
	align-items: center;
	padding-block: 160px 80px;
	color: var(--white);
	background: var(--navy);
	overflow: hidden;
}
.hero__bg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 805px; }

.hero__title {
	font-size: 96px;
	line-height: 1.28;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: -.01em;
}
.hero__subtitle { margin-top: 35px; font-size: 24px; }

.hero__actions {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-top: 35px;
	flex-wrap: wrap;
}
.hero__phone { font-size: 24px; font-weight: 600; white-space: nowrap; }

.tags {
	display: flex; gap: 43px;
	margin-top: 90px; padding-top: 26px;
	border-top: 1px solid rgba(255,255,255,.35);
	max-width: 468px;
}
.tags__title { font-size: 18px; font-weight: 600; }
.tags__sub { font-size: 14px; opacity: .8; }

/* заголовок секции */

.section { padding-block: 100px; }
.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--gap);
	margin-bottom: 60px;
}
.section__title { font-size: clamp(28px, 2.3vw, 44px); line-height: 1.3; font-weight: 700; }
.section__note { font-size: 14px; color: var(--muted); text-align: right; }

/* услуги */

.services__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap);
}
.service {
	display: grid;
	grid-template-columns: 320px 1fr;
	background: var(--gray);
	min-height: 443px;
}
.service__media { position: relative; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: 93px 30px 40px; }
.service__num { font-size: 14px; font-weight: 600; color: var(--red); }
.service__title { margin-top: 25px; font-size: 24px; line-height: 1.33; font-weight: 700; }
.service__lead { margin-top: 5px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.service__text { margin-top: 25px; font-size: 14px; line-height: 1.42; color: var(--muted); }

/* о компании */

.about__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.about__label { font-size: 18px; font-weight: 700; }
.about__text { margin-top: 15px; font-size: 14px; line-height: 1.42; color: var(--muted); }

.stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat { padding-left: 20px; border-left: 1px solid var(--line); color: var(--muted); }
/* 60px на ширине макета; ниже — уменьшается, иначе три цифры не встают в строку */
.stat__num { font-size: clamp(40px, 3.13vw, 60px); line-height: normal; font-weight: 300; }
.stat__label { font-size: 18px; font-weight: 500; }

.contact + .contact { margin-top: 15px; }
.contact__label { font-size: 14px; color: var(--muted); }
.contact__value { display: inline-block; margin-top: 10px; font-size: 28px; line-height: 1.33; font-weight: 600; }
a.contact__value { transition: color .2s ease; }
a.contact__value:hover { color: var(--red); }
.contact__hours { margin-top: 10px; font-size: 20px; line-height: 1.6; font-weight: 500; }

/* форма */

.lead__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.lead__intro { display: flex; gap: var(--gap); }
.lead__subtitle { margin-top: 10px; max-width: 294px; font-size: 14px; line-height: 1.42; color: var(--muted); }
.lead__image { margin-left: auto; width: 251px; align-self: end; }

.form { background: var(--gray); padding: 50px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.form__row + .form__row, .form__field--wide { margin-top: 30px; }
.form__label { display: block; font-size: 14px; font-weight: 500; }
.form__control {
	width: 100%;
	height: 48px;
	margin-top: 7px;
	padding: 0 16px;
	background: var(--white);
	border: 1px solid transparent;
	font-size: 14px;
	transition: border-color .2s ease;
}
.form__control:focus { outline: none; border-color: var(--red); }
.form__foot { position: relative; display: flex; align-items: center; gap: 18px; margin-top: 40px; }
.form__foot .btn { flex: none; }

.checks { flex: 1 1 0; min-width: 0; max-width: 545px; display: grid; gap: 10px; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--red); }

/* Contact Form 7: плагин оборачивает каждое поле в span и ломает ширину */

.wpcf7-form-control-wrap { display: block; }

.check .wpcf7-list-item { margin: 0; }
.check label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check .wpcf7-list-item-label { font-size: 14px; line-height: 1.4; color: var(--muted); }
.check a { color: inherit; text-decoration: underline; transition: color .2s ease; }
.check a:hover { color: var(--red); }

.wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: var(--red); }
.form__control.wpcf7-not-valid { border-color: var(--red); }

/* спиннер виден только при отправке, но место в строке занимает всегда — убираем из потока */
.wpcf7-spinner { position: absolute; left: 0; top: 100%; margin: 8px 0 0; }

.wpcf7-response-output {
	margin: 25px 0 0;
	padding: 12px 16px;
	border: 1px solid currentColor;
	font-size: 14px;
	line-height: 1.4;
}
.wpcf7 form.sent .wpcf7-response-output { color: #1B7F4B; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { color: var(--red); }

/* подвал */

.footer { padding-block: 70px; background: var(--navy); color: var(--white); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.footer__logo { width: 180px; }
.footer__holding { width: 221px; margin-top: 102px; }
.footer__title { font-size: 14px; font-weight: 700; }
.footer__list { margin-top: 8px; font-size: 14px; line-height: 1.75; opacity: .85; }
.footer__list a { transition: opacity .2s ease; }
.footer__list a:hover { opacity: .6; }
.footer__contact { font-size: 18px; font-weight: 600; line-height: 1.7; }

/* адаптив: в макете не отрисован, схема типовая */

@media (max-width: 1440px) {
	:root { --pad: 40px; }
	.header__brand { gap: 20px; }
	.nav, .nav__list { gap: 20px; }
	.service { grid-template-columns: 260px 1fr; }
	.service__body { padding: 40px 25px; }
}

@media (max-width: 1240px) {
	.header__tagline { display: none; }
}

@media (max-width: 1100px) {
	/* кадр сильно обрезается, текст попадает на светлую часть — затемняем */
	.hero::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(
			180deg,
			rgba(11, 18, 33, .88) 0%,
			rgba(11, 18, 33, .62) 55%,
			rgba(11, 18, 33, .3) 100%
		);
	}
	.hero .container { z-index: 2; }
	.hero__title { font-size: 64px; }

	/* меню перестаёт помещаться рядом с логотипом — уходим в бургер */
	.nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
		flex-direction: column; align-items: flex-start; justify-content: center;
		gap: 30px; padding: 40px; background: var(--navy);
		transform: translateX(100%); transition: transform .3s ease;
		z-index: 20;
	}
	.nav.is-open { transform: none; }
	.nav__list { flex-direction: column; gap: 20px; font-size: 18px; }
	.burger { display: flex; }

	.services__grid { grid-template-columns: 1fr; }
	.about__cols, .lead__cols { grid-template-columns: 1fr; gap: 50px; }
	.footer__cols { grid-template-columns: repeat(2, 1fr); gap: 40px; }
	.footer__holding { margin-top: 40px; }
}

@media (max-width: 768px) {
	:root { --pad: 20px; }

	.hero { min-height: 0; padding-block: 140px 60px; }
	.hero__title { font-size: 34px; }
	.tags { flex-direction: column; gap: 20px; margin-top: 50px; }

	.section { padding-block: 60px; }
	.section__head { flex-direction: column; align-items: flex-start; margin-bottom: 35px; }
	.section__note { text-align: left; }

	.service { grid-template-columns: 1fr; min-height: 0; }
	.service__media { height: 220px; }

	.form { padding: 25px; }
	.form__row { grid-template-columns: 1fr; gap: 20px; }
	.form__row + .form__row, .form__field--wide { margin-top: 20px; }
	.lead__image { display: none; }

	.footer__cols { grid-template-columns: 1fr; }
	.footer__holding { margin-top: 25px; }
}

/* на узком экране кнопка и согласие в строку не встают */
@media (max-width: 600px) {
	.form__foot { flex-wrap: wrap; gap: 20px; }
	.checks { flex: 1 0 100%; max-width: none; }
}

/* ── внутренние страницы ───────────────────────────────── */

/* шапка без первого экрана под ней */
.header--solid { position: static; background: var(--navy); }

.textpage { padding-block: 60px 100px; }
.textpage__title {
	max-width: 860px;
	font-size: clamp(28px, 2.3vw, 44px);
	line-height: 1.25;
	font-weight: 700;
}

.entry {
	max-width: 860px;
	margin-top: 35px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--muted);
}
.entry h2 {
	margin: 45px 0 16px;
	font-size: 22px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--navy);
}
.entry h3 {
	margin: 30px 0 12px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--navy);
}
.entry h2:first-child, .entry h3:first-child { margin-top: 0; }
.entry p { margin-bottom: 14px; }
.entry__lead { margin-bottom: 30px; font-size: 18px; line-height: 1.5; color: var(--navy); font-weight: 500; }
.entry strong { color: var(--navy); }
.entry a { color: var(--red); text-decoration: underline; }

.entry ul { margin: 0 0 20px; }
.entry li { position: relative; margin-bottom: 10px; padding-left: 20px; }
.entry li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--red);
}

.entry table {
	width: 100%;
	margin: 20px 0 28px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}
.entry th, .entry td {
	padding: 12px 14px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.entry th { background: var(--gray); color: var(--navy); font-weight: 600; }

@media (max-width: 900px) {
	.textpage { padding-block: 40px 60px; }
	.entry { font-size: 15px; }
	/* широкие таблицы прокручиваются, а не ломают страницу */
	.entry table { display: block; width: max-content; max-width: 100%; overflow-x: auto; }
}
