/*
Theme Name: Riviera Travel Minimal
Theme URI: https://vk.ru/rivieratravel
Author: Riviera Travel
Description: Минимальная классическая тема для сайта туроператора автобусных туров. Без Gutenberg. Соответствует брендбуку: зелёный #7CB342, тёмно-зелёный #2E7D32, оранжевый #FF6B00.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: riviera
*/

:root {
	--rv-green: #7CB342;
	--rv-green-dark: #2E7D32;
	--rv-orange: #FF6B00;
	--rv-text: #4A4A4A;
	--rv-white: #FFFFFF;
	--rv-bg: #FBFDF8;
	--rv-line: #E8EFDC;
	--rv-soft: #F5FAF0;
	--rv-shadow: 0 18px 45px rgba(46, 125, 50, 0.08);
	--rv-radius: 20px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--rv-text);
	background:
		radial-gradient(circle at top right, rgba(124, 179, 66, 0.08), transparent 26%),
		radial-gradient(circle at bottom left, rgba(255, 107, 0, 0.05), transparent 22%),
		var(--rv-bg);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--rv-green-dark);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 14px;
	font-family: "Montserrat", Arial, sans-serif;
	color: var(--rv-green-dark);
	line-height: 1.15;
}

h1 {
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 800;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 700;
}

h3 {
	font-size: 24px;
	font-weight: 700;
}

p {
	margin: 0 0 16px;
}

.container {
	width: min(1160px, calc(100% - 32px));
	margin-inline: auto;
}

.container.narrow {
	width: min(880px, calc(100% - 32px));
}

.section {
	padding: 58px 0;
}

.section.alt {
	background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(245,250,240,0.95));
	border-top: 1px solid rgba(124,179,66,0.12);
	border-bottom: 1px solid rgba(124,179,66,0.12);
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
}

.screen-reader-text:focus {
	left: 10px;
	top: 10px;
	z-index: 1000;
	background: #fff;
	padding: 10px 14px;
	border-radius: 10px;
}

/* Brand elements */

.rv-roadline {
	height: 4px;
	border-radius: 999px;
	background-image: linear-gradient(90deg, var(--rv-green) 0 14px, transparent 14px 26px);
	opacity: 0.65;
}

.badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 9px 14px;
	border-radius: 999px;
	background: rgba(124, 179, 66, 0.14);
	border: 1px solid rgba(124, 179, 66, 0.2);
	color: var(--rv-green-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.glass {
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: var(--rv-shadow);
	border-radius: var(--rv-radius);
}

.notice {
	padding: 26px 28px;
	border-left: 5px solid var(--rv-orange);
	background: rgba(255,255,255,0.88);
	border-radius: 24px;
	box-shadow: var(--rv-shadow);
}

.notice h2 {
	margin-top: 0;
}

/* Buttons */

.rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 13px 22px;
	border: 0;
	border-radius: 14px;
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: 0.2s ease;
}

.rv-btn--green {
	background: var(--rv-green);
	color: var(--rv-white);
}

.rv-btn--green:hover,
.rv-btn--green:focus {
	background: var(--rv-green-dark);
	color: var(--rv-white);
}

.rv-btn--orange {
	background: var(--rv-orange);
	color: var(--rv-white);
}

.rv-btn--orange:hover,
.rv-btn--orange:focus {
	background: #E55F00;
	color: var(--rv-white);
}

.rv-btn--ghost {
	background: rgba(255,255,255,0.72);
	color: var(--rv-green-dark);
	border: 1px solid rgba(46,125,50,0.18);
}

.rv-btn--ghost:hover,
.rv-btn--ghost:focus {
	border-color: var(--rv-green);
	color: var(--rv-green-dark);
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(124,179,66,0.14);
}

.rv-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	padding: 14px 0;
}

.site-logo img {
	display: block;
	max-height: 56px;
	width: auto;
}

.site-logo-link {
	display: inline-flex;
	flex-direction: column;
	text-decoration: none;
}

.site-logo-text {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: var(--rv-green-dark);
	line-height: 1.05;
}

.site-logo-sub {
	font-size: 12px;
	color: var(--rv-text);
	opacity: 0.75;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
}

.site-nav a {
	font-weight: 700;
	text-decoration: none;
	color: var(--rv-text);
}

.site-nav a:hover,
.site-nav a:focus {
	color: var(--rv-orange);
}

/* Hero */

.hero {
	position: relative;
	padding: 82px 0 58px;
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 15%, rgba(255,107,0,0.12), transparent 22%),
		radial-gradient(circle at 10% 80%, rgba(124,179,66,0.16), transparent 30%),
		linear-gradient(135deg, rgba(124,179,66,0.08), rgba(255,255,255,0.95));
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle, rgba(124,179,66,0.14) 1px, transparent 1px);
	background-size: 22px 22px;
	opacity: 0.4;
}

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

.hero-sub {
	max-width: 760px;
	margin-bottom: 26px;
	font-size: 20px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.hero .rv-roadline {
	width: min(760px, 85%);
	margin-top: 38px;
}

/* Tables */

.rv-table-wrap {
	overflow: auto;
	border: 1px solid var(--rv-line);
	border-radius: 22px;
	background: var(--rv-white);
	box-shadow: var(--rv-shadow);
}

.rv-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}

.rv-table th {
	padding: 15px 16px;
	background: rgba(124,179,66,0.14);
	color: var(--rv-green-dark);
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 14px;
	text-align: left;
	letter-spacing: 0.03em;
}

.rv-table td {
	padding: 15px 16px;
	border-top: 1px solid #EDF3E5;
	vertical-align: top;
}

/* Schedule table */

.rv-schedule-table td,
.rv-schedule-table th {
	text-align: center;
}

.rv-schedule-table .rv-schedule-program {
	min-width: 260px;
	text-align: left;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
}

.rv-schedule-table .rv-schedule-program a {
	text-decoration: none;
	color: var(--rv-green-dark);
}

.rv-schedule-table .rv-schedule-program a:hover {
	color: var(--rv-orange);
}

.rv-schedule-table td a {
	color: var(--rv-orange);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 107, 0, 0.35);
}

.rv-schedule-table td a:hover {
	color: var(--rv-green-dark);
	border-color: var(--rv-green-dark);
}

/* Tour page */

.tour-hero-img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: 30px;
	box-shadow: var(--rv-shadow);
	margin: 24px 0 30px;
}

.tour-content img {
	border-radius: 22px;
	box-shadow: 0 10px 30px rgba(46,125,50,0.08);
}

.booking-box {
	margin-top: 42px;
	padding: 30px;
	background:
		radial-gradient(circle at top right, rgba(255,107,0,0.08), transparent 28%),
		rgba(255,255,255,0.86);
}

.booking-box h2 {
	margin-top: 0;
}

/* Tabs */

.rv-tabs {
	margin-top: 36px;
}

.rv-tab-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.rv-tab-button {
	padding: 11px 18px;
	border-radius: 999px;
	border: 1px solid var(--rv-line);
	background: var(--rv-white);
	color: var(--rv-green-dark);
	font: 700 15px "Montserrat", Arial, sans-serif;
	cursor: pointer;
	transition: 0.2s ease;
}

.rv-tab-button:hover {
	border-color: var(--rv-green);
}

.rv-tab-button.active {
	background: var(--rv-green);
	border-color: var(--rv-green);
	color: var(--rv-white);
}

.rv-tab-panel {
	display: none;
	background: var(--rv-white);
	border: 1px solid var(--rv-line);
	border-radius: 24px;
	padding: 24px;
	box-shadow: var(--rv-shadow);
}

.rv-tab-panel.active {
	display: block;
}

/* Manual bus seating table */

.rv-bus-table {
	border-collapse: separate;
	border-spacing: 8px;
	margin: 24px 0;
}

.rv-bus-table td,
.rv-bus-table th {
	width: 46px;
	height: 46px;
	min-width: 46px;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	border-radius: 12px;
	border: 1px solid #DFE7D2;
	background: #FFFFFF;
	font-weight: 700;
}

.rv-seat--free {
	background: #EAF6DE;
	color: var(--rv-green-dark);
}

.rv-seat--busy {
	background: #F1F1F1;
	color: #8A8A8A;
	text-decoration: line-through;
}

.rv-seat--selected {
	background: var(--rv-orange);
	color: #FFFFFF;
}

/* Background utility classes: gray, red, yellow */

.rv-bg-gray {
	background-color: #D9D9D9 !important;
	color: #3F3F3F !important;
}

.rv-bg-red {
	background-color: #D64545 !important;
	color: #FFFFFF !important;
}

.rv-bg-yellow {
	background-color: #FFD64D !important;
	color: #4A4A4A !important;
}

/* Forms */

.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	min-height: 52px;
	padding: 13px 14px;
	border: 1px solid #DFE7D2;
	border-radius: 14px;
	background: rgba(255,255,255,0.88);
	color: var(--rv-text);
	font: 400 16px "Open Sans", Arial, sans-serif;
}

.wpcf7 textarea {
	min-height: 130px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--rv-green);
	box-shadow: 0 0 0 3px rgba(124,179,66,0.15);
}

.wpcf7 label {
	display: block;
	margin-bottom: 6px;
	color: var(--rv-green-dark);
	font-weight: 700;
}

.wpcf7 p {
	margin: 0 0 18px;
}

.wpcf7-submit {
	width: auto;
	min-height: 52px;
	padding: 13px 26px;
	border: 0;
	border-radius: 14px;
	background: var(--rv-orange);
	color: var(--rv-white);
	font: 700 17px "Montserrat", Arial, sans-serif;
	cursor: pointer;
	transition: 0.2s ease;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus {
	background: #E55F00;
}

.rv-form-section {
	margin-bottom: 26px;
}

.rv-form-section h3 {
	margin-bottom: 12px;
	font-size: 20px;
}

.rv-form-note {
	margin-top: 10px;
	font-size: 14px;
	opacity: 0.8;
}

.wpcf7-not-valid-tip {
	color: var(--rv-orange);
	font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
	margin-top: 18px;
	border-radius: 14px;
	border-color: rgba(124,179,66,0.4);
	background: rgba(124,179,66,0.08);
}

/* Tourist rows */

.rv-tourist-rows {
	counter-reset: rv-tourist;
	display: grid;
	gap: 12px;
}

.rv-tourist-head,
.rv-tourist-row {
	display: grid;
	grid-template-columns: 36px minmax(150px, 1.25fr) minmax(130px, 1fr) minmax(120px, 1fr) minmax(140px, 1.15fr) minmax(100px, 0.85fr);
	gap: 10px;
	align-items: start;
}

.rv-tourist-head span {
	font-size: 13px;
	font-weight: 700;
	color: var(--rv-green-dark);
	line-height: 1.3;
}

.rv-tourist-row::before {
	counter-increment: rv-tourist;
	content: counter(rv-tourist);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 14px;
	background: rgba(124, 179, 66, 0.14);
	color: var(--rv-green-dark);
	font: 800 16px "Montserrat", Arial, sans-serif;
}

.rv-tourist-row .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* Lists */

.rv-list {
	margin: 0 0 24px;
	padding-left: 0;
	list-style: none;
}

.rv-list li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 30px;
}

.rv-list li::before {
	content: "+";
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	color: var(--rv-green);
	font-weight: 800;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 26px;
}

/* Footer */

.site-footer {
	margin-top: 85px;
	border-top: 1px solid var(--rv-line);
	background:
		linear-gradient(135deg, rgba(124,179,66,0.12), rgba(255,107,0,0.06)),
		#FFFFFF;
}

.rv-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 28px;
	padding: 46px 0 30px;
}

.site-footer h3 {
	margin-bottom: 12px;
	font-size: 20px;
}

.site-footer a {
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--rv-orange);
}

.footer-links {
	display: grid;
	gap: 8px;
}

.site-footer-bottom {
	padding: 18px 0 28px;
	border-top: 1px solid rgba(124,179,66,0.12);
	font-size: 14px;
	opacity: 0.9;
}

.rv-footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rv-footer-bottom-inner a {
	color: var(--rv-green-dark);
	text-decoration: none;
	border-bottom: 1px dashed rgba(46,125,50,0.25);
}

.rv-footer-bottom-inner a:hover {
	color: var(--rv-orange);
	border-color: var(--rv-orange);
}

/* Page */

.page-content {
	background: rgba(255,255,255,0.82);
	border: 1px solid var(--rv-line);
	border-radius: 30px;
	padding: 34px;
	box-shadow: var(--rv-shadow);
}

/* Responsive */

@media (max-width: 1000px) {
	.rv-tourist-head,
	.rv-tourist-row {
		grid-template-columns: 32px minmax(120px, 1fr) minmax(110px, 1fr);
	}
}

@media (max-width: 900px) {
	.rv-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-nav {
		gap: 16px;
	}

	.rv-footer-grid {
		grid-template-columns: 1fr;
	}

	.section {
		padding: 42px 0;
	}
}

@media (max-width: 760px) {
	.rv-tourist-head {
		display: none;
	}

	.rv-tourist-row {
		grid-template-columns: 1fr;
		padding: 18px;
		border: 1px solid var(--rv-line);
		border-radius: 18px;
		background: rgba(255,255,255,0.65);
	}

	.rv-tourist-row::before {
		content: "Турист " counter(rv-tourist);
		justify-content: flex-start;
		min-height: 0;
		margin-bottom: 6px;
		padding: 0;
		background: none;
		font-size: 18px;
	}
}
/* Booking tourist table */

.rv-tourist-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--rv-line);
	border-radius: 16px;
	background: #FFFFFF;
}

.rv-tourist-table {
	width: 100%;
	min-width: 800px;
	border-collapse: collapse;
	table-layout: fixed;
}

.rv-tourist-table th,
.rv-tourist-table td {
	padding: 6px;
	border-bottom: 1px solid #F1F5EA;
	vertical-align: top;
}

.rv-tourist-table th {
	font-size: 12px;
	font-weight: 700;
	color: var(--rv-green-dark);
	text-align: left;
}

.rv-tourist-table td {
	font-size: 14px;
}

.rv-tourist-table .rv-num {
	text-align: center;
	font: 800 15px "Montserrat", Arial, sans-serif;
	color: var(--rv-green-dark);
	background: rgba(124, 179, 66, 0.08);
}

.rv-tourist-table .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin: 0;
}

.rv-tourist-table input[type="text"],
.rv-tourist-table input[type="tel"],
.rv-tourist-table input[type="date"] {
	width: 100% !important;
	min-height: 42px !important;
	padding: 8px 10px !important;
	font-size: 14px !important;
	border-radius: 12px !important;
}

.rv-tourist-table .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.2;
}
/* Fix tourist table number width */

.rv-tourist-table-wrap {
	overflow-x: auto !important;
}

.rv-tourist-table {
	table-layout: auto !important;
}

.rv-tourist-table col:first-child {
	width: 1% !important;
}

.rv-tourist-table th:first-child,
.rv-tourist-table td:first-child {
	width: 1% !important;
	min-width: 24px !important;
	white-space: nowrap !important;
	padding-left: 6px !important;
	padding-right: 6px !important;
}

.rv-tourist-table .rv-num {
	font-size: 13px !important;
}
/* Номер по центру ячейки */

.rv-tourist-table th:first-child,
.rv-tourist-table td:first-child,
.rv-tourist-table td.rv-num {
	text-align: center !important;
	vertical-align: middle !important;
}
/* Contact sender and email row */

.rv-contact-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.rv-contact-col .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.rv-contact-row input[type="text"],
.rv-contact-row input[type="email"] {
	width: 100% !important;
	min-height: 44px !important;
	padding: 9px 10px !important;
	font-size: 14px !important;
	border-radius: 12px !important;
}

@media (max-width: 760px) {
	.rv-contact-row {
		grid-template-columns: 1fr;
	}
}