/*
Theme Name: ФЛИМ-ФЛАМ
Theme URI: https://example.com/
Author: ФЛИМ-ФЛАМ
Description: Тема для сети автономных клубов настольного тенниса: главная, клубы, цены, вопросы, контакты. Кнопки бронирования ведут в приложение бронирования.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flim-flam
*/

:root {
	--ff-ink: #14202E;
	--ff-ink-2: #1E2C3D;
	--ff-line-dark: #2A3A4E;
	--ff-accent: #C5DB4F;
	--ff-blue: #1F4E79;
	--ff-blue-dark: #163A5A;
	--ff-ground: #F4F6F8;
	--ff-soft: #E9EDF1;
	--ff-line: #DCE2E8;
	--ff-line-2: #B8C3CE;
	--ff-muted: #3F4D5C;
	--ff-muted-dark: #C9D1DB;
	--ff-white: #FFFFFF;
	--ff-display: 'Unbounded', 'Arial Black', sans-serif;
	--ff-body: 'Manrope', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ff-ground);
	color: var(--ff-ink);
	font-family: var(--ff-body);
	font-size: 17px;
	line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--ff-blue); }
a:hover { color: var(--ff-blue-dark); }
h1, h2, h3 { font-family: var(--ff-display); margin: 0; line-height: 1.15; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); letter-spacing: -1px; line-height: 1.08; }
h2 { font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-weight: 700; font-size: 22px; }
p { margin: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; left: 16px; top: 16px; z-index: 1000;
	padding: 12px 18px; background: var(--ff-white); color: var(--ff-ink);
}

.ff-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ff-narrow { max-width: 880px; }
.ff-section { padding: 88px 0; }
.ff-section--white { background: var(--ff-white); border-top: 1px solid var(--ff-line); border-bottom: 1px solid var(--ff-line); }
.ff-section--dark { background: var(--ff-ink); color: var(--ff-white); }
.ff-stack { display: flex; flex-direction: column; gap: 40px; }
.ff-lead { font-size: 20px; color: var(--ff-muted); max-width: 560px; }
.ff-muted { color: var(--ff-muted); }

/* Buttons */
.ff-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px; border-radius: 999px;
	font-weight: 700; text-decoration: none; border: 2px solid transparent;
	cursor: pointer; font-family: var(--ff-body); font-size: 16px;
}
.ff-btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.ff-btn--ink { background: var(--ff-ink); color: var(--ff-white); }
.ff-btn--ink:hover { background: var(--ff-ink-2); color: var(--ff-white); }
.ff-btn--accent { background: var(--ff-accent); color: var(--ff-ink); }
.ff-btn--accent:hover { filter: brightness(0.95); color: var(--ff-ink); }
.ff-btn--outline { border-color: var(--ff-ink); color: var(--ff-ink); background: transparent; }
.ff-btn--outline:hover { background: var(--ff-ink); color: var(--ff-white); }

/* Header */
.ff-header { background: var(--ff-ground); border-bottom: 1px solid var(--ff-line); }
.ff-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 18px; padding-bottom: 18px; }
.ff-logo img, .ff-logo .custom-logo { height: 52px; width: auto; display: block; }
.ff-nav { flex: 1 1 auto; }
.ff-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ff-nav a { color: var(--ff-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.ff-nav a:hover { color: var(--ff-blue); }

/* Hero */
.ff-hero { padding: 72px 0 88px; }
.ff-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.ff-hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.ff-hero__art { flex: 1 1 460px; min-width: 0; }
.ff-pill {
	display: inline-flex; align-self: flex-start; padding: 8px 16px; border-radius: 999px;
	background: var(--ff-white); border: 1px solid var(--ff-line); font-weight: 600; font-size: 15px;
}
.ff-hero__title { display: flex; flex-direction: column; gap: 28px; }
.ff-hero__title .ff-pill { font-family: var(--ff-body); font-weight: 600; font-size: 15px; letter-spacing: 0; line-height: 1.55; }
.ff-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ff-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; font-size: 15px; color: var(--ff-muted); }
.ff-table-art { position: relative; height: 420px; border-radius: 28px; background: var(--ff-ink); overflow: hidden; }
.ff-table-art__top { position: absolute; left: 12%; right: 12%; top: 16%; bottom: 16%; background: var(--ff-blue); border: 6px solid var(--ff-white); border-radius: 6px; }
.ff-table-art__line { position: absolute; left: 50%; top: 16%; bottom: 16%; border-left: 3px solid var(--ff-white); }
.ff-table-art__net { position: absolute; left: 10%; right: 10%; top: 50%; height: 10px; margin-top: -5px; background: var(--ff-soft); border-radius: 3px; }
.ff-table-art__ball { position: absolute; left: 66%; top: 26%; width: 34px; height: 34px; border-radius: 50%; background: var(--ff-accent); }
.ff-table-art__code { position: absolute; left: 24px; bottom: 22px; padding: 10px 16px; border-radius: 14px; background: var(--ff-white); font-weight: 700; font-size: 15px; }
.ff-table-art__code span { font-family: var(--ff-display); letter-spacing: 3px; }

/* Steps */
.ff-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ff-grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ff-step { padding: 28px; border-radius: 22px; background: var(--ff-ground); display: flex; flex-direction: column; gap: 12px; }
.ff-step--dark { background: var(--ff-ink); color: var(--ff-white); }
.ff-step__num { font-family: var(--ff-display); font-weight: 800; font-size: 32px; color: var(--ff-blue); }
.ff-step--dark .ff-step__num { color: var(--ff-accent); }
.ff-step__title { font-weight: 700; font-size: 20px; }
.ff-step__text { color: var(--ff-muted); }
.ff-step--dark .ff-step__text { color: var(--ff-muted-dark); }

/* Clubs */
.ff-heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ff-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.ff-select {
	min-height: 48px; min-width: 240px; padding: 0 14px; border-radius: 12px;
	border: 1px solid var(--ff-line-2); background: var(--ff-white); font: inherit; font-size: 16px; color: var(--ff-ink);
}
.ff-card { border-radius: 24px; background: var(--ff-white); border: 1px solid var(--ff-line); overflow: hidden; display: flex; flex-direction: column; }
.ff-card[hidden] { display: none; }
.ff-card__img { height: 190px; background: var(--ff-blue); display: flex; align-items: center; justify-content: center; color: var(--ff-white); font-weight: 600; overflow: hidden; }
.ff-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ff-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ff-card__city { font-weight: 600; font-size: 14px; color: var(--ff-blue); text-transform: uppercase; letter-spacing: 1px; }
.ff-card__title a { color: inherit; text-decoration: none; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ff-chip { padding: 6px 12px; border-radius: 999px; background: var(--ff-ground); font-weight: 600; font-size: 14px; }
.ff-chip--white { background: var(--ff-white); border: 1px solid var(--ff-line); padding: 8px 14px; font-size: 15px; }
.ff-card__btn { margin-top: auto; }
.ff-card--soon { background: var(--ff-soft); border: 2px dashed var(--ff-line-2); padding: 32px; justify-content: center; gap: 12px; }

/* Features */
.ff-feature { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--ff-accent); padding-top: 20px; }
.ff-feature__title { font-weight: 700; font-size: 20px; }
.ff-feature__text { color: var(--ff-muted-dark); }

/* Prices */
.ff-price { padding: 32px; border-radius: 24px; background: var(--ff-white); border: 1px solid var(--ff-line); display: flex; flex-direction: column; gap: 10px; }
.ff-price--hl { background: var(--ff-blue); color: var(--ff-white); border-color: var(--ff-blue); }
.ff-price__name { font-weight: 700; font-size: 18px; }
.ff-price__value { font-family: var(--ff-display); font-weight: 800; font-size: 40px; line-height: 1.2; }
.ff-price__note { color: var(--ff-muted); }
.ff-price--hl .ff-price__note { color: #DCE8F3; }

/* FAQ */
.ff-faq details { border-bottom: 1px solid var(--ff-line); padding: 22px 0; }
.ff-faq summary { cursor: pointer; font-weight: 700; font-size: 19px; }
.ff-faq details p { margin-top: 12px; color: var(--ff-muted); }

/* Breadcrumbs */
.ff-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-weight: 600; font-size: 15px; }
.ff-crumbs li { color: var(--ff-muted); }
.ff-crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--ff-line-2); }
.ff-crumbs a { text-decoration: none; }
.ff-crumbs a:hover { text-decoration: underline; }
.ff-section--top { padding-top: 48px; }

/* Club page */
.ff-club-head { padding: 48px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.ff-back { font-weight: 600; font-size: 15px; text-decoration: none; }
.ff-club-main { padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.ff-club-content { flex: 999 1 560px; min-width: 0; padding: 32px; border-radius: 28px; background: var(--ff-white); border: 1px solid var(--ff-line); display: flex; flex-direction: column; gap: 20px; }
.ff-club-content .ff-gallery img { border-radius: 16px; }
.ff-aside { flex: 1 1 320px; min-width: 0; padding: 28px; border-radius: 28px; background: var(--ff-ink); color: var(--ff-white); display: flex; flex-direction: column; gap: 18px; }
.ff-aside__row { display: flex; justify-content: space-between; gap: 12px; }
.ff-aside__row span:first-child { color: var(--ff-muted-dark); }
.ff-aside__row span:last-child { font-weight: 700; text-align: right; }
.ff-aside__note { font-size: 14px; color: var(--ff-muted-dark); }
.ff-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.ff-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ff-muted); }
.ff-map { min-height: 220px; border-radius: 20px; background: var(--ff-soft); border: 1px solid var(--ff-line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--ff-muted); font-weight: 600; }
.ff-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Regular pages */
.ff-page { padding: 64px 0 88px; }
.ff-content { background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: 28px; padding: 40px; }
.ff-content > * + * { margin-top: 1em; }
.ff-content h2 { font-size: 28px; margin-top: 1.5em; }
.ff-content h3 { font-size: 20px; margin-top: 1.3em; }

/* Footer */
.ff-footer { background: var(--ff-ink); color: var(--ff-muted-dark); }
.ff-footer a { color: var(--ff-muted-dark); }
.ff-footer a:hover { color: var(--ff-white); }
.ff-footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 40px 64px; }
.ff-footer__col { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.ff-footer__col--brand { flex-basis: 280px; gap: 14px; }
.ff-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ff-footer__title { font-weight: 700; color: var(--ff-white); }
.ff-footer__logo { height: 56px; width: auto; align-self: flex-start; }
.ff-footer__legal { flex: 1 1 100%; border-top: 1px solid var(--ff-line-dark); padding-top: 24px; font-size: 14px; }

@media (max-width: 640px) {
	.ff-section { padding: 64px 0; }
	.ff-hero { padding: 48px 0 64px; }
	.ff-table-art { height: 300px; }
	.ff-content { padding: 24px; }
	.ff-select { min-width: 0; width: 100%; }
}
