/*
Theme Name: ОлАн-Тур
Theme URI: https://moscbobr.local/
Author: ОлАн-Тур
Description: Самостоятельная тема сайта автобусов ОлАн-Тур. Не использует Global Logistics.
Version: 1.0.0
Text Domain: olan
*/

:root {
	--ink: #1c2130;
	--muted: #5c564c;
	--paper: #fff;
	--line: #ece7dc;
	--gold: #fab700;
	--green: #19bc00;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: #3d4450;
	background: var(--paper);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a {
	color: #e2a200;
	text-decoration: none;
}

a:hover { color: #c48f00; }

.skip-link {
	position: absolute;
	left: 12px;
	top: 12px;
	z-index: 400;
	padding: 8px 12px;
	background: #1c2130;
	color: #fff;
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
}

.skip-link:focus {
	clip-path: none;
	width: auto;
	height: auto;
	overflow: visible;
	color: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid #eee;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1170px, calc(100% - 48px));
	height: 78px;
	margin: 0 auto;
}

.site-logo__img,
.olan-footer__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 52px;
	aspect-ratio: 1774 / 404;
	object-fit: contain;
}

.olan-footer__logo { max-height: 42px; }

.site-nav .menu,
.nav-panel .menu {
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a,
.nav-panel .menu a {
	color: var(--ink);
	font-size: 16px;
	text-decoration: none;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.nav-panel .current-menu-item > a {
	color: var(--gold);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	margin: 5px 0;
	background: var(--ink);
}

.nav-panel {
	display: none;
}

.page-hero {
	padding: 54px 0 42px;
	background: #f4f5f7;
	text-align: center;
}

.page-hero h1 {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: clamp(34px, 4vw, 48px);
	line-height: 1.15;
}

.crumbs {
	color: #6d7278;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.crumbs a {
	color: inherit;
	text-decoration: none;
}

.wrap {
	width: min(1170px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.entry-content {
	padding-bottom: 24px;
}

body.page:not(.home) .entry-content {
	padding-top: 36px;
	padding-bottom: 56px;
}

body.page:not(.home) .entry-content > .vc_row {
	box-sizing: border-box;
	width: min(1170px, calc(100% - 48px));
	margin-left: auto !important;
	margin-right: auto !important;
}

.entry-content.wrap,
.home .entry-content {
	padding-top: 0;
}

.entry-content:not(.wrap) > p,
.entry-content:not(.wrap) > h2,
.entry-content:not(.wrap) > h3,
.entry-content:not(.wrap) > ul,
.entry-content:not(.wrap) > ol {
	width: min(1170px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--ink);
	line-height: 1.25;
}

.entry-content a {
	color: #e2a200;
	font-weight: 600;
	text-decoration: none;
}

.entry-content a:hover { color: #c48f00; }

.entry-content h1 > a,
.entry-content h2 > a,
.entry-content h3 > a,
.entry-content h4 > a,
.entry-content h5 > a,
.entry-content h6 > a {
	display: inline;
	color: #e2a200;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.entry-content img { height: auto; }

.post-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 360px;
	padding: 24px;
	background: #1c2130 center / cover no-repeat;
	color: #fff;
	text-align: center;
}

.post-banner__inner { max-width: 980px; }

.post-banner h1 {
	margin: 12px 0 0;
	color: #fff;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.15;
}

.olan-title-extra {
	display: block;
	margin-top: 0.45em;
	font-size: 0.38em;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.post-cats { margin: 0; }

.post-cats a {
	display: inline-block;
	margin: 3px;
	padding: 4px 17px 5px;
	background: var(--green);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.8px;
	line-height: 14px;
	text-decoration: none;
	text-transform: uppercase;
}

.post-tags {
	margin-top: 28px;
	color: #8a8172;
	font-size: 16px;
}

.post-tags a {
	display: inline;
	margin-right: 14px;
	color: #e2a200;
	font-weight: 600;
	text-decoration: none;
}

.post-tags a:hover { color: #c48f00; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin: 8px auto 36px;
}

.post-nav a {
	display: block;
	color: #e2a200;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	background: none;
}

.post-nav a:hover { color: #c48f00; }

.post-nav a + a { text-align: right; }

.post-nav span {
	display: block;
	margin-bottom: 6px;
	color: #8a8172;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.post-nav .olan-title-extra {
	display: block;
	margin-top: 6px;
	color: #8a8172;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: none;
}

.related { margin: 12px auto 36px; }

.related h2 { margin: 0 0 16px; }

.related__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.related a { color: var(--ink); text-decoration: none; }

.related img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 12px;
}

.related h3 {
	margin: 12px 0 0;
	font-size: 22px;
	line-height: 1.35;
}

.list { padding: 36px 0; }

.list__item { margin: 0 0 28px; }

.list__item h2 { margin: 0 0 8px; font-size: 28px; }

.olan-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 560px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	color: #fff;
	background: #12151c;
}

.olan-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}

.olan-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(100deg, rgba(10, 14, 24, 0.88) 0%, rgba(10, 14, 24, 0.62) 46%, rgba(10, 14, 24, 0.28) 100%);
}

.olan-hero__inner {
	position: relative;
	z-index: 2;
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
	padding: 72px 0;
}

.olan-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.olan-hero h1 {
	margin: 0 0 16px;
	max-width: 12em;
	color: #fff;
	font-size: clamp(36px, 5vw, 58px);
	line-height: 1.05;
}

.olan-hero__lead {
	max-width: 38em;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	line-height: 1.5;
}

.olan-hero__routes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 22px;
}

.olan-hero__routes a {
	display: inline-flex;
	padding: 10px 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

.olan-hero__routes a:hover,
.entry-content a.olan-hero__buy:hover {
	background: #fff;
	color: #12151c;
}

.olan-hero__buy,
.entry-content a.olan-hero__buy {
	display: inline-flex;
	align-items: center;
	padding: 14px 26px;
	border-radius: 6px;
	background: var(--gold);
	color: #12151c;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.olan-hero-row .legacy-trx-content {
	box-sizing: border-box;
	width: min(1170px, calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
	padding: 48px 0 56px;
}

.olan-hero-row .legacy-trx-column {
	padding: 22px 22px 8px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(18, 21, 28, 0.06);
}

.olan-stations {
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
	padding: 64px 0 24px;
}

.olan-stations h2 {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 40px);
}

.olan-stations__lead {
	max-width: 36em;
	margin: 0 0 28px;
	color: var(--muted);
}

.olan-stations__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.olan-stations__list > li { display: flex; }

.olan-stations__list a {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 112px;
	padding: 28px 26px;
	border-radius: 16px;
	background: #f6f3ee;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.olan-stations__list a:hover { background: var(--gold); color: var(--ink); }

.olan-stations__figure {
	margin: 36px 0 0;
}

.olan-stations__photo {
	display: block;
	width: 100%;
	height: 420px;
	object-fit: cover;
	border-radius: 20px;
}

.olan-stations figcaption {
	margin-top: 10px;
	color: #6d675e;
	font-size: 14px;
}

.olan-fleet {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 22px 0 28px;
}

.olan-fleet img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
}

.olan-footer {
	margin-top: 48px;
	padding: 56px 0 28px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
}

.olan-footer a { color: #fff; text-decoration: none; }
.olan-footer a:hover { color: var(--gold); }

.olan-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	width: min(1170px, calc(100% - 48px));
	margin: 0 auto;
}

.olan-footer h2 {
	margin: 0 0 14px;
	color: var(--gold);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.olan-footer p,
.olan-footer li { margin: 0 0 8px; }

.olan-footer ul { margin: 0; padding: 0; list-style: none; }

.olan-footer__bottom {
	width: min(1170px, calc(100% - 48px));
	margin: 28px auto 0;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
}

.entry-content a[href^="viber:"] {
	display: table;
	margin: 16px auto;
	background: none;
}

.entry-content a[href^="viber:"] img {
	display: block;
	width: 91px;
	height: auto;
}

.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(18, 21, 28, 0.22);
}

.to-top svg {
	display: block;
	width: 22px;
	height: 22px;
}

.to-top:hover {
	background: #e2a200;
	color: #1c2130;
}

.trx_addons_scroll_to_top { display: none !important; }

@media (max-width: 767px) {
	.site-nav { display: none; }

	.nav-toggle { display: block; }

	body.nav-open { overflow: hidden; }

	.nav-panel.is-ready,
	.nav-panel.is-open,
	.nav-panel.is-closing {
		display: flex;
		flex-direction: column;
		position: fixed;
		z-index: 300;
		top: 0;
		right: 0;
		left: 0;
		height: 0;
		overflow: hidden;
		background: #0e173b;
		color: #b0b3bc;
		transition: height 0.45s cubic-bezier(0.5, 1, 0.89, 1);
	}

	.nav-panel.is-open { height: 100%; }

	.nav-panel__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: min(1170px, calc(100% - 48px));
		height: 78px;
		margin: 0 auto;
		flex: 0 0 auto;
	}

	.nav-close {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 0 8px 12px;
		border: 0;
		background: transparent;
		color: #9497a0;
		font: inherit;
		font-size: 17px;
		line-height: 1;
		cursor: pointer;
	}

	.nav-close__icon {
		position: relative;
		width: 18px;
		height: 18px;
		transform: rotate(0);
		transform-origin: 50% 54%;
		transition: transform 0.3s ease-out;
	}

	.nav-close__icon::before,
	.nav-close__icon::after {
		content: "";
		position: absolute;
		left: 0;
		top: 8px;
		width: 18px;
		height: 2px;
		background: #f9f9f9;
	}

	.nav-close__icon::before { transform: rotate(45deg); }
	.nav-close__icon::after { transform: rotate(-45deg); }

	.nav-panel.is-open .nav-close__text {
		animation: olanFadeIn 0.6s 0.3s both;
	}

	.nav-panel.is-open .nav-close__icon {
		animation: olanCloseIn 0.6s backwards;
	}

	.nav-panel.is-closing .nav-close__text,
	.nav-panel.is-closing .nav-close__icon {
		animation: olanFadeOut 0.35s both;
	}

	.nav-close:hover { color: #f9f9f9; }
	.nav-close:hover .nav-close__icon { transform: rotate(180deg); }

	.nav-panel nav {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		justify-content: center;
		min-height: 0;
		overflow: auto;
	}

	.nav-panel .menu {
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}

	.nav-panel .menu a {
		color: #b0b3bc;
		font-size: 28px;
		font-weight: 500;
		line-height: 1.45;
	}

	.nav-panel .menu a:hover,
	.nav-panel .current-menu-item > a,
	.nav-panel .current_page_item > a {
		color: #f9f9f9;
	}

	.nav-panel__contacts {
		flex: 0 0 auto;
		padding: 8px 24px 32px;
		color: #9497a0;
		font-size: 16px;
		text-align: center;
	}

	.nav-panel__contacts p { margin: 0; }
	.nav-panel__contacts ul { margin: 10px 0 0; padding: 0; list-style: none; }
	.nav-panel__contacts a { color: #f9f9f9; text-decoration: none; }

	.post-banner { height: 240px; }
	.post-cats { display: none; }

	.post-nav,
	.related__grid,
	.olan-stations__list,
	.olan-footer__grid,
	.olan-fleet {
		grid-template-columns: 1fr 1fr;
	}

	.post-nav,
	.olan-stations__list,
	.olan-footer__grid { grid-template-columns: 1fr; }

	.post-nav a + a { text-align: left; }

	.olan-stations__photo { height: 240px; }

	.olan-hero { min-height: 0; }
	.olan-hero__lead { font-size: 16px; }
}

@keyframes olanCloseIn {
	from { opacity: 0; transform: scale(0.2) rotate(0); }
	to { opacity: 1; transform: scale(1) rotate(180deg); }
}

@keyframes olanFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes olanFadeOut {
	from { opacity: 1; }
	to { opacity: 0; }
}
