/*
Theme Name: City Escort
Theme URI: https://moscowescort.city/
Author: Night Int
Description: Тёмная серверная тема каталога профилей для moscowescort.city. Вся разметка отдаётся в HTML без JS-сборки, чтобы поисковые роботы видели каталог. Типы записей и таксономии регистрирует плагин city-listings, поэтому тема сменяемая.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cityescort
*/

/* ============ токены ============ */
:root {
	--bg: #171a21;
	--bg-2: #1d212a;
	--bg-3: #232833;
	--line: rgba(188, 164, 125, 0.18);
	--line-2: rgba(255, 255, 255, 0.07);
	--gold: #bca47d;
	--gold-2: #d6c09b;
	--text: #e9e6e0;
	--muted: #9c9791;
	--radius: 4px;
	--wrap: 1240px;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ============ база ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	font-weight: 400;
	overflow-x: hidden;
}

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

a {
	color: var(--gold);
	text-decoration: none;
	transition: color 0.18s ease;
}

a:hover {
	color: var(--gold-2);
}

h1,
h2,
h3,
h4 {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.18;
	color: #fff;
	margin: 0 0 0.6em;
	letter-spacing: 0.2px;
}

h1 {
	font-size: clamp(28px, 4vw, 42px);
}

h2 {
	font-size: clamp(23px, 3vw, 31px);
}

h3 {
	font-size: 20px;
}

p {
	margin: 0 0 1em;
}

hr {
	border: 0;
	border-top: 1px solid var(--line-2);
	margin: 32px 0;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.narrow {
	max-width: 860px;
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 12px;
	top: 12px;
	z-index: 99;
	background: var(--gold);
	color: #11141a;
	padding: 8px 14px;
}

/* ============ шапка ============ */
.site-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(23, 26, 33, 0.96);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.head-in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 68px;
}

.brand {
	font-family: var(--serif);
	font-size: 23px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.4px;
	white-space: nowrap;
}

.brand span {
	color: var(--gold);
}

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

.nav a {
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current] {
	color: var(--gold);
}

.nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid var(--line);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 8px 12px;
	border-radius: var(--radius);
	cursor: pointer;
}

@media (max-width: 900px) {
	.nav {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
		padding: 10px 0 16px;
		margin-left: 0;
	}

	.head-in {
		flex-wrap: wrap;
		gap: 12px;
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		padding: 9px 0;
		width: 100%;
		border-bottom: 1px solid var(--line-2);
	}

	.nav-toggle {
		display: block;
	}
}

/* ============ hero ============ */
.hero {
	padding: 52px 0 8px;
}

.hero h1 {
	margin-bottom: 14px;
	max-width: 22ch;
}

.hero .lead {
	color: var(--muted);
	font-size: 17px;
	max-width: 68ch;
}

.stats {
	display: flex;
	gap: 34px;
	flex-wrap: wrap;
	margin: 26px 0 4px;
	padding: 0;
	list-style: none;
}

.stats b {
	display: block;
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
	font-family: var(--serif);
	font-size: 28px;
	color: var(--gold);
	line-height: 1.1;
}

.stats span {
	font-size: 13px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

/* ============ секции ============ */
.section {
	padding: 40px 0;
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--line-2);
	padding-bottom: 12px;
}

.section-head h2 {
	margin: 0;
}

.section-head a {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
}

/* ============ сетка профилей ============ */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

@media (max-width: 560px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

.card {
	position: relative;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
	border-color: var(--gold);
	transform: translateY(-3px);
}

.card-media {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	background: var(--bg-3);
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card-media img {
	transform: scale(1.04);
}

.card-media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 55%;
	background: linear-gradient(to top, rgba(15, 17, 22, 0.92), transparent);
	pointer-events: none;
}

.card-tags {
	position: absolute;
	top: 9px;
	left: 9px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 2;
}

.tag {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 2px;
	background: rgba(15, 17, 22, 0.8);
	color: var(--gold);
	border: 1px solid var(--line);
}

.tag-gold {
	background: var(--gold);
	color: #14171d;
	border-color: var(--gold);
}

.card-body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 12px;
	z-index: 2;
}

.card-name {
	font-variant-numeric: lining-nums;
	font-feature-settings: "lnum" 1;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	line-height: 1.15;
	margin: 0;
}

.card-name a {
	color: #fff;
}

.card-name a:hover {
	color: var(--gold-2);
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: #cfc9c0;
	margin-top: 3px;
}

.card-price {
	color: var(--gold);
	font-weight: 700;
}

/* ============ плитки категорий ============ */
.cats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}

.cat-tile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 15px;
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 14.5px;
	font-weight: 600;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.cat-tile:hover {
	border-color: var(--gold);
	background: var(--bg-3);
	color: #fff;
}

.cat-tile em {
	font-style: normal;
	font-size: 12px;
	color: var(--muted);
	font-weight: 400;
}

/* ============ карточка профиля ============ */
.profile {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 38px;
	padding: 34px 0 8px;
	align-items: start;
}

@media (max-width: 940px) {
	.profile {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

.gal-main {
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-2);
}

.gal-main img {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.gal-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	margin-top: 8px;
}

.gal-thumbs a {
	display: block;
	border: 1px solid var(--line-2);
	border-radius: 2px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
}

.gal-thumbs a:hover {
	border-color: var(--gold);
}

.gal-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.p-title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.p-title h1 {
	margin: 0;
}

.p-sub {
	color: var(--muted);
	font-size: 15px;
	margin-bottom: 20px;
}

.p-badges {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 1px;
	background: var(--line-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 24px;
}

.specs div {
	background: var(--bg-2);
	padding: 12px 10px;
	text-align: center;
}

.specs dt {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--muted);
	margin-bottom: 3px;
}

.specs dd {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.rates {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
	font-size: 15px;
}

.rates caption {
	text-align: left;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	padding-bottom: 10px;
}

.rates th,
.rates td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line-2);
	text-align: right;
}

.rates th:first-child,
.rates td:first-child {
	text-align: left;
}

.rates thead th {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--muted);
	font-weight: 700;
}

.rates tbody td {
	color: var(--gold);
	font-weight: 700;
}

.rates tbody th {
	font-weight: 600;
	color: var(--text);
}

.rates .no {
	color: var(--muted);
	font-weight: 400;
}

.cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--radius);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	border: 1px solid var(--gold);
	background: var(--gold);
	color: #14171d;
	transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
	background: var(--gold-2);
	color: #14171d;
}

.btn-ghost {
	background: transparent;
	color: var(--gold);
}

.btn-ghost:hover {
	background: rgba(188, 164, 125, 0.12);
	color: var(--gold-2);
}

.chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.chips a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 100px;
	font-size: 13px;
	color: var(--text);
}

.chips a:hover {
	border-color: var(--gold);
	color: var(--gold);
}

/* ============ текстовые блоки ============ */
.prose {
	max-width: 78ch;
}

.prose h1,
.prose h2,
.prose h3 {
	margin-top: 1.5em;
}

.prose h1:first-child,
.prose h2:first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	padding-left: 22px;
}

.prose li {
	margin-bottom: 6px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
}

.prose th,
.prose td {
	border: 1px solid var(--line-2);
	padding: 9px 12px;
	text-align: left;
}

.prose blockquote {
	margin: 1.2em 0;
	padding: 2px 0 2px 18px;
	border-left: 2px solid var(--gold);
	color: var(--muted);
}

.term-text {
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	padding: 26px 28px;
	margin-top: 34px;
}

@media (max-width: 560px) {
	.term-text {
		padding: 20px 18px;
	}
}

/* ============ блог ============ */
.posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.post-card {
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.post-card:hover {
	border-color: var(--gold);
}

.post-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card-body {
	padding: 16px 18px 20px;
}

.post-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
}

.post-card p {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
}

.post-date {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--gold);
	margin-bottom: 6px;
}

/* ============ пагинация ============ */
.pager {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 34px 0 8px;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 40px;
	text-align: center;
	padding: 9px 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}

.pager .page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.pager .page-numbers.current {
	background: var(--gold);
	border-color: var(--gold);
	color: #14171d;
}

/* ============ поиск ============ */
.searchform {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 0 0 28px;
}

.searchform input[type="search"] {
	flex: 1;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	font: inherit;
	font-size: 15px;
	padding: 12px 14px;
}

.searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--gold);
}

.searchform button {
	background: var(--gold);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	color: #14171d;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.5px;
	padding: 12px 20px;
	cursor: pointer;
}

/* ============ подвал ============ */
.site-foot {
	margin-top: 56px;
	background: #12151b;
	border-top: 1px solid var(--line);
	padding: 40px 0 26px;
	font-size: 14px;
}

.foot-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 30px;
}

.foot-cols h3 {
	font-family: var(--sans);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.9px;
	color: var(--gold);
	margin: 0 0 12px;
}

.foot-cols ul {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 1;
}

.foot-cols li {
	margin-bottom: 7px;
}

.foot-cols a {
	color: #b9b4ad;
}

.foot-cols a:hover {
	color: var(--gold);
}

.foot-wide ul {
	columns: 2;
	column-gap: 24px;
}

.foot-bottom {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 13px;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	flex-wrap: wrap;
}

/* ============ мелочи ============ */
.breadcrumbs {
	font-size: 13px;
	color: var(--muted);
	padding: 18px 0 0;
}

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

.breadcrumbs a:hover {
	color: var(--gold);
}

.empty {
	background: var(--bg-2);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	padding: 26px;
	color: var(--muted);
}

.center {
	text-align: center;
}
.cty-wide{max-width:none}

/* ============ гео-страницы ============ */
.geo-transit {
	max-width: 760px;
	margin: 14px 0 0;
	padding: 12px 16px;
	border-left: 2px solid var(--gold);
	background: var(--bg-2);
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}

.faq {
	max-width: 820px;
}

.faq details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
	margin-bottom: 10px;
}

.faq summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 600;
	color: var(--text);
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	float: right;
	color: var(--gold);
	font-weight: 400;
}

.faq details[open] summary::after {
	content: "–";
}

.faq details p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--muted);
	line-height: 1.7;
}

.geo-cta {
	max-width: 820px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
}

.geo-cta h2 {
	margin: 0 0 10px;
}

.geo-cta p {
	color: var(--muted);
	line-height: 1.7;
	margin: 0 0 14px;
}

.geo-cta p:last-child {
	margin-bottom: 0;
	font-size: 14px;
}
