/*
 * Autoškola Madej – styly webu (vlastní CSS, bez frameworku).
 * Ikony: css/font-awesome.min.css (Font Awesome 4.7). Písmo Roboto: fonts/ (OFL, balíček @fontsource/roboto 5.3.0).
 * Zlom pro mobil/tablet/desktop: 768 px (navigace) a 992 px (sloupce).
 */

/* ---------- Písmo Roboto (latin + latin-ext kvůli češtině) ---------- */
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/roboto-latin-ext-300-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url('../fonts/roboto-latin-300-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/roboto-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/roboto-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/roboto-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/roboto-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Základ ---------- */
:root {
	--blue: #00a8ff;
	/* tmavší modrá pro text na bílé a pro plochy s bílým textem (kontrast min. 4,5 : 1) */
	--blue-dark: #0079b8;
	--blue-light: #31b9ff;
	--ink: #2a3237;
	--muted: #5f6569;
	--gray-bg: #f7f7f7;
	--navy: #1c2441;
	--shadow: 1px 3px 9px rgba(103, 103, 103, 0.59);
	--font: 'Roboto', 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* plynulý scroll na kotvy; odsazení kvůli přichycené navigaci */
	scroll-behavior: smooth;
}

[id] {
	scroll-margin-top: 90px;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.43;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

iframe {
	max-width: 100%;
	border: 0;
}

ul {
	margin: 0;
}

a {
	color: var(--blue-dark);
	text-decoration: none;
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

a:hover {
	color: var(--blue);
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

[hidden] {
	display: none !important;
}

.skip-link {
	position: absolute;
	z-index: 10000;
	top: -100px;
	left: 10px;
	padding: 10px 16px;
	font-size: 16px;
	color: #fff;
	background: var(--blue-dark);
}

.skip-link:focus {
	top: 10px;
	color: #fff;
}

/* ---------- Typografie ---------- */
p {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.5;
	color: var(--muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	position: relative;
	margin: 10px 0;
	font-family: var(--font);
	font-weight: 400;
	line-height: 1.1;
}

h1 {
	font-size: 60px;
}

h2 {
	font-size: 48px;
}

h3 {
	font-size: 30px;
}

h4 {
	font-size: 24px;
}

h5 {
	font-size: 18px;
}

strong {
	font-weight: 700;
}

.muted {
	color: var(--muted);
}

/* ---------- Rozložení ---------- */
.container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

section {
	position: relative;
}

.section {
	padding: 40px 0;
	background: #fff;
}

.gray-bg {
	background: var(--gray-bg);
}

.blue-bg {
	background: var(--blue-dark);
}

.spacer {
	height: 150px;
}

.no-top-pad {
	padding-top: 0;
}

/* Šikmé přechody mezi sekcemi. Element je o 1 px vyšší a zasahuje do sekce, aby mezi nimi nevznikla tenká spára. */
.cut-top,
.cut-bottom {
	position: absolute;
	z-index: 1;
	left: 0;
	width: 100%;
	height: 81px;
	background: #fff;
	pointer-events: none;
}

.cut-top {
	top: -80px;
	-webkit-clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
	clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
}

.cut-bottom {
	bottom: -80px;
	-webkit-clip-path: polygon(0 0, 100% 0, 100% 1px, 0 100%);
	clip-path: polygon(0 0, 100% 0, 100% 1px, 0 100%);
}

/* mřížky: na mobilu pod sebou, od 992 px vedle sebe */
.grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

@media (min-width: 992px) {
	.grid-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.narrow {
	max-width: 760px;
	margin: 0 auto;
}

/* ---------- Navigace ---------- */
.navbar {
	position: absolute;
	z-index: 9500;
	top: 50px;
	left: 0;
	width: 100%;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.navbar-brand {
	display: block;
	padding: 0;
	line-height: 0;
}

.navbar-brand img {
	width: 200px;
	height: 50px;
}

.navbar-nav {
	display: none;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.navbar-nav {
		display: flex;
	}

	.navbar-toggle {
		display: none;
	}
}

.navbar-nav a {
	display: block;
	padding: 15px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.navbar-nav a:hover {
	color: var(--blue-light);
}

.navbar-nav a[aria-current="page"] {
	color: var(--blue-light);
}

/* tmavý text na bílém pozadí: podstránky od začátku, úvodní stránka po odscrollování (třídu is-stuck přidává js/main.js) */
.navbar-light .navbar-nav a,
.navbar.is-stuck .navbar-nav a {
	font-weight: 400;
	color: var(--muted);
}

.navbar-light .navbar-nav a:hover,
.navbar.is-stuck .navbar-nav a:hover {
	color: var(--blue-dark);
}

.navbar-light .navbar-nav a[aria-current="page"],
.navbar.is-stuck .navbar-nav a[aria-current="page"] {
	font-weight: 700;
	color: var(--blue-dark);
}

.navbar.is-stuck {
	position: fixed;
	top: 0;
	padding: 10px 0;
	background: #fff;
	box-shadow: 0 4px 3px rgba(0, 0, 0, 0.05);
}

.navbar-toggle {
	padding: 10px;
	cursor: pointer;
	border: 1px solid transparent;
	border-radius: 4px;
	background: transparent;
}

.icon-bar {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: #fff;
}

.icon-bar + .icon-bar {
	margin-top: 4px;
}

.navbar-light .icon-bar,
.navbar.is-stuck .icon-bar {
	background: var(--muted);
}

/* ---------- Mobilní menu ---------- */
.mobile-nav {
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-align: center;
	opacity: 0;
	background: #fff;
	visibility: hidden;
	transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55), visibility 0s linear 600ms;
	transform: scale(0);
}

.mobile-nav.active {
	visibility: visible;
	transition-delay: 0s;
	opacity: 1;
	transform: scale(1);
}

.mobile-nav ul {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-nav li {
	margin: 12px 0;
}

.mobile-nav li a {
	display: inline-block;
	padding: 8px 20px;
	font-size: 22px;
	color: var(--muted);
}

.mobile-nav li a[aria-current="page"] {
	font-weight: 700;
	color: var(--blue-dark);
}

.mobile-nav a.close-link {
	display: block;
	width: 100%;
	padding: 16px 0;
	font-size: 28px;
	line-height: 1;
	color: #fff;
	background: var(--blue-dark);
}

.mobile-nav a.close-link:hover {
	color: #fff;
	background: var(--blue);
}

/* ---------- Úvodní obrázek ---------- */
.hero {
	position: relative;
	width: 100%;
	height: calc(66.6667vh + 80px);
	height: calc(66.6667svh + 80px);
	min-height: 460px;
	color: #fff;
	background: url('../img/header.webp') center / cover;
}

.hero .container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
}

.hero-kicker {
	margin: 10px 0;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.1;
	color: #fff;
}

.hero h1 {
	display: inline-block;
	margin: 0;
	color: #fff;
}

/* ---------- Tlačítka ---------- */
.btn {
	display: inline-block;
	padding: 15px 30px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.43;
	text-align: center;
	color: #fff;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 10px;
	background: transparent;
	transition: all 0.3s ease;
}

.btn:hover,
.btn:focus {
	color: #fff;
}

.btn-blue {
	background: var(--blue-dark);
}

.btn-blue:hover {
	background: var(--blue);
}

.btn-blue-fill {
	color: var(--blue-dark);
	border-color: var(--blue-dark);
}

.btn-blue-fill:hover {
	color: #fff;
	background: var(--blue-dark);
}

.btn-white-fill {
	color: #fff;
	border-color: #fff;
}

.btn-white-fill:hover {
	color: var(--blue-dark);
	background: #fff;
}

.btn-upper {
	font-weight: 700;
	text-transform: uppercase;
}

.btn-wrap {
	margin-top: 40px;
	text-align: center;
}

/* ---------- Úvod: tři dlaždice ---------- */
.intro-tables {
	position: relative;
	top: -130px;
}

.intro-tables.grid {
	gap: 0 30px;
}

.intro-table {
	position: relative;
	width: 100%;
	height: 300px;
	margin: 20px 0;
	overflow: hidden;
	background-color: var(--blue-dark);
	background-repeat: repeat;
	background-position: 0% 0%;
	background-size: cover;
}

/* ztmavení fotky, aby bílý text měl dostatečný kontrast */
.intro-table::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.22);
}

.intro-table-first {
	background-image: url('../img/table-1.webp');
}

.intro-table-hover {
	background-image: url('../img/table-2.webp');
	transition: background-image 0.3s ease, background-position 0.3s;
}

.intro-table-hover:hover {
	background-image: url('../img/table-2-hover.webp');
	background-position: 50% 50%;
}

.intro-table-third {
	background-image: url('../img/table-3.webp');
}

.intro-table .heading {
	margin: 0;
	padding: 30px;
	color: #fff;
	font-weight: 400;
}

.intro-title {
	font-size: 25px;
}

.intro-title-lg {
	font-size: 35px;
}

.intro-table .bottom {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
}

.intro-table .small-heading {
	margin: 0;
	padding: 0 30px;
	font-size: 20px;
	font-weight: 400;
	color: #fff;
}

.intro-table .pt-heading {
	margin: 0;
	padding: 30px;
	font-size: 22px;
	font-weight: 400;
	color: #fff;
}

.intro-table-hover .small-heading,
.intro-table-hover .pt-heading {
	transform: translateY(170px);
	transition: transform 0.3s;
}

.intro-table-hover .expand {
	margin: 120px 30px 30px;
	opacity: 0;
	transform: scale(0.6);
	transition: transform 0.3s ease, opacity 0.3s;
}

.intro-table-hover .hide-hover {
	transition: opacity 0.3s ease;
}

.intro-table-hover:hover .small-heading,
.intro-table-hover:hover .pt-heading {
	transform: translateY(0);
}

.intro-table-hover:hover .expand {
	opacity: 1;
	transform: scale(1);
}

.intro-table-hover:hover .hide-hover {
	opacity: 0;
}

/* bez myši (dotyk) není :hover spolehlivý, proto je obsah dlaždice vidět rovnou */
@media (hover: none) {

	.intro-table-hover .small-heading,
	.intro-table-hover .pt-heading {
		transform: none;
	}

	.intro-table-hover .expand {
		margin-top: 20px;
		opacity: 1;
		transform: none;
	}

	.intro-table-hover .hide-hover {
		opacity: 1;
	}
}

.schedule {
	position: relative;
	width: 100%;
}

.schedule-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 10px 30px;
	color: #fff;
}

.schedule-row:not(:last-child) {
	border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.schedule-row p {
	margin: 10px 0;
	color: #fff;
}

.schedule-row p:last-child {
	text-align: right;
}

/* ---------- Přepínač s tečkami (reference; js/main.js: .slider = přepínač, jinak statický obsah) ---------- */
.slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* bez JS je vidět jen první položka */
.slider:not(.is-ready) > .item + .item {
	display: none;
}

/* všechny položky ve stejné buňce, aby výška odpovídala nejvyšší z nich */
.slider.is-ready {
	display: grid;
}

.slider.is-ready > .item {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.slider.is-ready > .item.is-active {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.quote {
	margin: 0;
	padding: 30px;
	font-size: 24px;
	line-height: 1.1;
	color: #fff;
}

.author {
	margin: 20px 0 0;
	padding: 0 30px 30px;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.9);
}

.slider-dots {
	position: absolute;
	top: 34px;
	right: 20px;
	line-height: 0;
	text-align: right;
}

.slider-dot {
	position: relative;
	display: inline-block;
	width: 8px;
	height: 8px;
	margin: 5px 7px;
	padding: 0;
	vertical-align: top;
	cursor: pointer;
	border: 2px solid #fff;
	border-radius: 0;
	background: transparent;
	transition: background-color 0.3s ease;
}

.slider-dot::after {
	content: '';
	position: absolute;
	top: -10px;
	right: -9px;
	bottom: -10px;
	left: -9px;
}

.slider-dot.is-active,
.slider-dot:hover {
	background: #fff;
}

/* ---------- Nadpis stránky ---------- */
.page-head {
	padding: 0 5px;
	text-align: center;
}

.page-head h1 {
	margin: 30px 0 10px;
	font-size: clamp(34px, 9vw, 60px);
	line-height: 1.1;
}

.page-head h2 {
	margin: 40px 0 10px;
	font-size: clamp(30px, 8vw, 48px);
}

.page-head h1 a,
.page-head h2 a {
	color: var(--blue-dark);
}

.page-head h1 a:hover,
.page-head h2 a:hover {
	color: var(--blue);
}

.page-sub {
	margin: 10px 0;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.1;
	color: var(--blue-dark);
}

.page-head-dark h2 a,
.page-head-dark h2 {
	color: #fff;
}

.page-head-dark .page-sub {
	color: #8fdcff;
}

/* ---------- Bloky obsahu podstránek ---------- */
.block {
	margin-top: 50px;
	text-align: center;
}

.block-title {
	margin: 0 0 10px;
	font-size: clamp(22px, 5.6vw, 30px);
	font-weight: 700;
	text-decoration: underline;
	text-transform: uppercase;
	color: var(--ink);
}

.block-title.sm {
	font-size: clamp(18px, 5vw, 20px);
	font-weight: 400;
}

.block > .block-title.sm {
	margin-top: 40px;
}

.label {
	margin: 32px 0 8px;
	font-size: 18px;
}

.label.small {
	margin: 16px 0;
	font-size: 16px;
}

.label.small + .pill-line,
.info-text + .pill-line,
.pill-line + .info-text,
.pill-line + .label {
	margin-top: 20px;
}

.pill-line {
	margin: 0;
}

.pill-line + .pill-line {
	margin-top: 20px;
}

.block-title + .pill-line {
	margin-top: 20px;
}

/* modrá „pilulka“ s cenou nebo údajem */
.pill {
	display: inline-block;
	max-width: 100%;
	padding: 10px;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.43;
	color: #fff;
	border-radius: 10px;
	background: var(--blue-dark);
	box-shadow: var(--shadow);
}

.pill.lg {
	font-size: clamp(18px, 5vw, 26px);
}

.pill a,
.pill a:hover {
	color: #fff;
}

.pill a:hover {
	text-decoration: underline;
}

.pill strong {
	font-weight: 700;
}

/* odkaz v podobě pilulky (výuka a materiály) */
.pill-link {
	display: inline-block;
	max-width: 100%;
	padding: 11px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.43;
	text-transform: uppercase;
	color: #fff;
	border-radius: 11px;
	background: var(--blue-dark);
	box-shadow: var(--shadow);
}

.pill-link:hover {
	color: #fff;
	background: var(--blue);
}

.pill-link.android {
	background: #2e7d32;
}

.pill-link.ios {
	background: #4a4f52;
}

.pill-link.android:hover,
.pill-link.ios:hover {
	background: #000;
}

.pill-link.sm {
	font-size: 15px;
}

.arrows {
	margin: 0 4px;
}

.fa-angle-right,
.fa-angle-left {
	color: var(--blue);
}

.ico-navy {
	color: darkblue;
}

.ico-green {
	color: #00a000;
}

.ico-warn {
	color: #c40000;
}

.ico-info {
	color: #d97706;
}

/* karty s údaji (ŘO skupiny B) */
.feature-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	margin-top: 25px;
}

.feature-card {
	width: 270px;
	max-width: 100%;
	padding: 10px;
	font-size: 21px;
	text-align: center;
	border-radius: 10px;
	box-shadow: var(--blue) 1px 3px 9px;
}

.feature-card .fa {
	font-size: 40px;
	color: var(--blue);
}

.feature-card div {
	margin-top: 4px;
}

/* rámeček s odstavcem textu */
.note-box {
	max-width: 870px;
	margin: 25px auto 0;
	padding: 15px;
	font-size: 18px;
	line-height: 1.5;
	text-align: center;
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.note-box p {
	margin: 0;
	font-size: inherit;
	color: var(--ink);
}

.info-text {
	margin-top: 20px;
}

.info-text a,
.terminy-prazdne a,
.note-box a {
	text-decoration: underline;
}

.map {
	display: block;
	width: 500px;
	max-width: 100%;
	height: 333px;
	margin: 35px auto 0;
	border: 0;
	box-shadow: var(--shadow);
}

/* mapa se načte až po kliknutí (Mapy.com/Seznam.cz ukládá cookies a měří návštěvnost) */
.map-box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	text-align: center;
	background: var(--gray-bg);
}

.map-box p {
	margin: 0 0 15px;
	color: var(--muted);
}

.map-box iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.map-box.loaded {
	padding: 0;
}

/* odkazy na konci stránky */
.cta-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 30px;
	margin: 100px 0 0;
}

.cta-links a {
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

/* ochrana osobních údajů */
.legal {
	max-width: 870px;
	margin: 40px auto 0;
	text-align: left;
}

.legal h2 {
	margin: 40px 0 10px;
	font-size: 26px;
	font-weight: 700;
	color: var(--blue-dark);
}

.legal p,
.legal li {
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
}

.legal ul {
	padding-left: 22px;
}

.legal li {
	margin-bottom: 8px;
}

.legal a {
	overflow-wrap: anywhere;
	text-decoration: underline;
}

/* dárkový poukaz */
.gift-icon {
	display: inline-block;
	padding: 10px;
	font-size: 35px;
	line-height: 1.2;
	color: var(--blue-dark);
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.gift-title {
	margin: 30px 0 25px;
	font-size: 25px;
	font-weight: 400;
	color: var(--blue-dark);
}

.voucher {
	padding: 20px;
	border-radius: 15px;
	box-shadow: var(--shadow);
}

.hashtags {
	margin: 10px 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.1;
	color: var(--muted);
}

.gift-text {
	font-size: 16px;
}

.contact-cols {
	margin-top: 10px;
}

/* ---------- Karty kurzů ---------- */
.team-grid {
	margin-top: 60px;
}

.team {
	display: flex;
	flex-direction: column;
	padding-bottom: 20px;
	text-align: center;
	background: #fff;
	box-shadow: grey 1px 14px 16px;
}

.team .cover {
	background-position: center;
	background-size: cover;
}

.cover-vraceni {
	background-image: url('../img/team/team-cover1.webp');
}

.cover-b {
	background-image: url('../img/team/team-cover2.webp');
}

.cover-moto {
	background-image: url('../img/team/moto-cover.webp');
}

.team .cover .overlay {
	height: 250px;
	padding-top: 60px;
	text-align: center;
	opacity: 0;
	background: rgba(0, 121, 184, 0.92);
	transition: opacity 0.45s ease;
}

.team:hover .cover .overlay {
	opacity: 1;
}

@media (hover: none) {
	.team .cover .overlay {
		opacity: 1;
	}
}

.team .price {
	margin: 10px 0;
	font-size: 30px;
	line-height: 1.1;
	color: #fff;
}

.team .overlay p {
	margin: 10px 0;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.9);
}

.team .avatar {
	position: relative;
	z-index: 2;
	top: 2px;
	width: 120px;
	height: 120px;
	margin: -60px auto 0;
	border: 8px solid #fff;
	border-radius: 50%;
	box-shadow: grey 1px 2px 9px;
}

.team-body {
	flex: 1;
	margin: 50px 0 30px;
	padding: 0 10px;
}

.team-body .card-title {
	margin: 10px 0;
	font-size: 24px;
}

.team-body .card-title.lg {
	font-size: 28px;
}

.team-body p {
	margin: 10px 0;
	font-size: 18px;
}

.team-body .rating-label {
	margin-top: 33px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
}

.team-body .stars {
	margin: 10px 0;
	font-size: 24px;
	line-height: 1.1;
	color: gold;
}

.team-body .rating {
	font-size: 19px;
	font-weight: 300;
}

.btn-card {
	display: block;
	width: 260px;
	max-width: calc(100% - 30px);
	margin: auto auto 0;
	padding-right: 12px;
	padding-left: 12px;
}

.btn-contact {
	padding: 10px;
	cursor: default;
}

.btn-contact:hover {
	background: transparent;
}

.btn-contact a {
	font-size: 30px;
	line-height: 1.43;
}

.btn-contact a + a {
	margin-left: 15px;
}

.btn-contact a:hover {
	color: var(--blue);
}

/* ---------- Ceník (úvodní stránka) ---------- */
#pricing {
	color: #fff;
	background: var(--blue-dark) url('../img/pricing1.webp') no-repeat center center / cover;
	transition: background-image 0.6s linear 0.3s;
}

.pricings {
	max-width: 950px;
	margin: 100px auto;
	text-align: center;
}

.pricing {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.pricing .box-main,
.pricing .box-second {
	position: relative;
	min-height: 300px;
	padding: 50px 40px;
	background: #5f6b73;
	transition: background-color 0.3s, opacity 0.3s;
}

.pricing .box-main {
	z-index: 10;
	padding-top: 40px;
}

.pricing .box-main:not(.active) {
	cursor: pointer;
}

.pricing .box-second {
	background: #56616a;
}

.pricing .box-main:not(.active):hover {
	background: #4a555c;
}

.pricing .box-main.active,
.pricing .box-second.active {
	background: var(--blue-dark);
}

.pricing + .pricing {
	margin-top: 0;
}

.pricing .box-main a.btn {
	margin-top: 50px;
}

.pricing .box-main h3 {
	margin: 10px 0;
	font-size: 24px;
	color: #fff;
}

.pricing .box-main p {
	margin: 10px 0;
	font-size: 24px;
	font-weight: 300;
	line-height: 1.1;
	color: #fff;
}

.pricing .box-main p.price {
	font-size: 24px;
}

.info-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 16px;
	pointer-events: none;
	opacity: 0;
	color: #fff;
	transition: opacity 0.3s;
}

.pricing .box-main:not(.active) .info-icon {
	opacity: 1;
	transition-delay: 0.2s;
}

.white-list {
	padding: 0;
	list-style: none;
	text-align: left;
}

.white-list li {
	margin: 10px 0;
	font-size: 18px;
	color: #fff;
}

.white-list li::before {
	content: ' ';
	position: relative;
	top: -3px;
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 15px;
	background: #fff;
}

.gift {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 0 4px;
	text-align: center;
}

.gift .fa-gift {
	font-size: 35px;
	color: #fff;
}

.gift h2 {
	margin: 10px 0;
	font-size: 24px;
	font-weight: 300;
	color: #fff;
}

.gift img {
	padding: 15px;
	box-shadow: #fff 1px 3px 19px;
}

.gift .hashtags {
	padding-top: 25px;
	font-size: 18px;
	color: #fff;
}

.gift .btn-wrap {
	margin-top: 27px;
}

/* ---------- Patička ---------- */
footer {
	padding: 140px 0 40px;
	color: #fff;
	text-align: center;
	background: #1d3e72 url('../img/footer.webp') center / cover;
}

footer h2 {
	margin: 10px 0;
	font-size: 30px;
	color: #fff;
}

footer p {
	color: #fff;
}

footer a {
	color: #fff;
}

footer a:hover {
	color: var(--blue-light);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
}

.footer-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0 30px;
	margin-top: 30px;
}

.opening-hours {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 45px;
	margin-top: 40px;
}

footer .label {
	margin: 20px 0 5px;
	font-size: 18px;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.8);
}

footer .value {
	margin: 10px 0;
	font-size: 20px;
	line-height: 1.1;
	color: #fff;
}

footer .value-lg {
	font-size: 25px;
}

footer .trial-button {
	margin: 40px 0;
	overflow: hidden;
}

.open-blink {
	position: relative;
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0 20px;
	border-radius: 50%;
	background-color: #4caf50;
	animation: flash 1s infinite;
}

.open-blink::before {
	content: ' ';
	position: absolute;
	top: -8px;
	left: -8px;
	display: inline-block;
	width: 30px;
	height: 30px;
	opacity: 0.1;
	border-radius: 50%;
	background-color: #4caf50;
}

.bottom-footer {
	margin-top: 70px;
}

.bottom-footer p {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.bottom-footer a {
	text-decoration: underline;
}

.bottom-footer .operator {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
}

/* bliknutí (původně z animate.css) */
@keyframes flash {

	from,
	50%,
	to {
		opacity: 1;
	}

	25%,
	75% {
		opacity: 0;
	}
}

@media (min-width: 992px) {
	footer {
		text-align: left;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.opening-hours {
		justify-content: flex-start;
		gap: 0 30px;
	}
}

/* ---------- Termíny kurzů (generuje správa; proběhlé termíny skrývá js/main.js podle data-do) ---------- */
.terminy-sekce {
	margin-top: 50px;
	text-align: center;
}

ul.terminy {
	max-width: 870px;
	margin: 30px auto 0;
	padding: 0;
	list-style: none;
}

ul.terminy li {
	margin: 0 0 15px;
	padding: 12px 20px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--navy);
	text-align: center;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--shadow);
}

ul.terminy li strong {
	color: var(--blue-dark);
}

.terminy .stav {
	display: inline-block;
	padding: 1px 12px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
	color: #fff;
	border-radius: 10px;
}

.terminy .stav-volno {
	background: #2e7d32;
}

.terminy .stav-posledni {
	background: #b45309;
}

.terminy .stav-obsazeno {
	background: #5f6b73;
}

/* ---------- Menší displeje ---------- */
@media (max-width: 992px) {
	h1 {
		font-size: 36px;
	}

	h2 {
		font-size: 28px;
	}

	h3 {
		font-size: 24px;
	}

	h4 {
		font-size: 20px;
	}

	h5 {
		font-size: 16px;
	}

	.section {
		padding: 30px 0;
	}

	.hero-kicker {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.pricings {
		margin: 60px auto;
	}

	.pricing {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 30px;
	}

	.info-icon {
		display: none;
	}

	.pricing .box-main,
	.pricing .box-second,
	.pricing .box-main:not(.active):hover {
		min-height: 0;
		padding: 40px 30px 0;
		text-align: left;
		background: var(--blue-dark);
	}

	.pricing .box-second {
		padding-bottom: 20px;
	}

	.pricing .box-main a.btn {
		margin-top: 30px;
		margin-bottom: 20px;
	}

	.map {
		margin-top: 25px;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 30px;
	}

	.hero-kicker {
		font-size: 20px;
	}

	.pill {
		font-size: 19px;
	}

	.cta-links {
		margin-top: 60px;
	}

	.btn {
		padding: 13px 20px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		animation: none !important;
		transition: none !important;
	}
}
