/*
Theme Name: Клиника Тийе Бари
Author: Клиника Тийе Бари
Description: Классическая тема клиники на основе исходного дизайна сайта.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: guf
*/

/* Page and clinic header. */
* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: #a9a9a9;
	color: #666;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	line-height: 1.45;
}

.site {
	width: 1000px;
	max-width: 100%;
	margin: 12px auto 0;
}

.site-header {
	position: relative;
	height: 421px;
	overflow: hidden;
	border: 3px solid #eee;
	border-radius: 10px;
	background: url("assets/images/woman.avif") center center / cover no-repeat;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 0 2px rgba(255, 255, 255, 0.8);
	color: #fff;
}

.clinic-intro {
	position: absolute;
	top: 53px;
	left: 34px;
	width: 310px;
	text-align: center;
	font-size: 25px;
	line-height: 1.45;
	text-shadow: 1px 1px 2px #000, 0 0 3px rgba(0, 0, 0, 0.6);
}

.clinic-logo {
	position: absolute;
	top: 48px;
	left: 50%;
	width: 88px;
	height: 88px;
	transform: translateX(-50%);
}

.clinic-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.phone {
	position: absolute;
	top: 235px;
	left: 0;
	width: 100%;
	text-align: center;
	font-family: "Arial Narrow", Arial, sans-serif;
	font-size: 25px;
	font-weight: bold;
	text-shadow: 1px 1px 2px #000, 0 0 3px rgba(0, 0, 0, 0.8);
}

.phone a {
	color: inherit;
	text-decoration: none;
}

.tagline {
	position: absolute;
	top: 300px;
	left: 0;
	width: 100%;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-style: italic;
	font-weight: bold;
	text-shadow: 1px 1px 2px #000;
}

.header-socials {
	position: absolute;
	top: 182px;
	right: 40px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	overflow: hidden;
	border-radius: 3px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
}

.facebook {
	background: #3b5998;
}

.ok {
	background: #ee8208;
}

.ok-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.x {
	background: #000;
}

.vk {
	background: #4c75a3;
}

.youtube {
	background: #cf3d32;
}

/* One WordPress menu serves desktop and mobile. */
.main-navigation {
	position: relative;
	z-index: 5;
	width: 970px;
	max-width: 100%;
	margin: 0 auto 15px;
	border-radius: 0 0 7px 7px;
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
}

.main-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	display: flex;
}

.main-navigation li {
	position: relative;
	min-width: 0;
}

.primary-menu > li {
	flex: 1;
}

.main-navigation a {
	display: block;
	padding: 10px 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(to bottom, #ba6957 0%, #984d3e 100%);
	color: #f5f5f5;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.primary-menu > li > a {
	height: 100%;
}

.primary-menu > li:first-child > a {
	border-bottom-left-radius: 7px;
}

.primary-menu > li:last-child > a {
	border-right: 0;
	border-bottom-right-radius: 7px;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
	background: linear-gradient(to bottom, #eee 0%, #cfcfcf 100%);
	color: #333;
}

/* These rules also retain the current color while hovering or focusing. */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: linear-gradient(to bottom, #777 0%, #555 100%);
	color: #f5f5f5;
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	width: 220px;
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	border-right: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	text-align: left;
}

.main-navigation .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.primary-menu > li:last-child > .sub-menu {
	right: 0;
	left: auto;
}

.primary-menu > li:last-child .sub-menu .sub-menu {
	right: 100%;
	left: auto;
}

.hamburger {
	display: none;
}

/* WordPress content uses the typography from the reference article. */
.content {
	padding: 45px 70px 90px;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
	background: #f2f2f2;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 0 2px rgba(255, 255, 255, 0.8);
	overflow-wrap: anywhere;
}

.site-header + .content {
	margin-top: 15px;
}

.content article {
	max-width: 860px;
	margin: 0 auto;
}

.content-entry + .content-entry {
	margin-top: 40px;
	padding-top: 35px;
	border-top: 1px solid #d5d5d5;
}

.content p {
	margin: 0 0 18px;
	color: #000000;
}

.content strong,
.content b {
	color: #000000;
}

.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
	margin: 28px 0 10px;
	color: #5d5d5d;
	font-size: 15px;
	font-weight: bold;
}

.content h3 {
	font-size: 14px;
}

.content h4,
.content h5,
.content h6 {
	font-size: 13px;
}

.content .post-title {
	margin: 0 0 24px;
	color: #377c9a;
	text-align: center;
	font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	font-size: 27px;
	font-weight: 700;
}

.content a {
	color: #377c9a;
	text-underline-offset: 2px;
}

.post-title a {
	color: inherit;
	text-decoration: none;
}

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

.content .excerpt-link,
.content .excerpt-link:hover {
	display: block;
	color: inherit;
	text-decoration: none;
}

.entry-content {
	display: flow-root;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 18px;
	padding-left: 25px;
}

.entry-content li {
	margin-bottom: 6px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-top: 6px;
	margin-bottom: 0;
}

.content blockquote {
	margin: 24px 0;
	padding: 10px 20px;
	border-left: 4px solid #b47962;
	font-style: italic;
}

.content blockquote > :last-child {
	margin-bottom: 0;
}

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

.content figure,
.content .wp-caption {
	max-width: 100%;
	margin: 0 0 18px;
}

.content figcaption,
.content .wp-caption-text {
	margin: 8px 0 18px;
	text-align: center;
	font-size: 12px;
}

.post-thumbnail {
	margin-bottom: 24px;
	text-align: center;
}

.content .listing-thumbnail {
	width: 150px;
	height: 150px;
	object-fit: cover;
}

.listing-with-thumbnail {
	display: grid;
	grid-template-columns: min(150px, 30%) minmax(0, 1fr);
	column-gap: 20px;
	align-items: start;
}

.listing-with-thumbnail > .post-title {
	grid-column: 1 / -1;
}

.listing-with-thumbnail > .post-thumbnail {
	margin-bottom: 0;
}

.listing-with-thumbnail .post-thumbnail a {
	display: block;
}

.listing-with-thumbnail .listing-thumbnail {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}

.alignleft {
	float: left;
	margin: 0 20px 18px 0 !important;
}

.alignright {
	float: right;
	margin: 0 0 18px 20px !important;
}

.aligncenter {
	display: block;
	margin-right: auto !important;
	margin-left: auto !important;
}

.content iframe,
.content video,
.content audio {
	max-width: 100%;
}

.content video {
	height: auto;
}

.content pre {
	overflow-x: auto;
	padding: 16px;
	background: #e8e8e8;
}

.content table {
	width: 100%;
	margin-bottom: 18px;
	border-collapse: collapse;
}

.content th,
.content td {
	padding: 8px;
	border: 1px solid #ccc;
	text-align: left;
}

.content hr {
	margin: 28px 0;
	border: 0;
	border-top: 1px solid #ccc;
}

.page-links,
.pagination,
.post-navigation,
.comments-pagination {
	clear: both;
	margin-top: 30px;
}

.page-links a,
.pagination .page-numbers,
.comments-pagination .page-numbers {
	display: inline-block;
	padding: 5px 10px;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.nav-next {
	margin-left: auto;
	text-align: right;
}

.comments-area {
	clear: both;
	margin-top: 35px;
	padding-top: 15px;
	border-top: 1px solid #ccc;
}

.comment-list,
.comment-list .children {
	padding-left: 20px;
	list-style: none;
}

.comment-list {
	padding-left: 0;
}

.comment-body {
	margin-bottom: 24px;
}

.comment-author .avatar {
	float: left;
	margin: 0 10px 10px 0;
}

.comment-metadata {
	margin-bottom: 10px;
	font-size: 12px;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
}

.comment-form-cookies-consent label {
	display: inline;
}

button,
input,
textarea,
select {
	max-width: 100%;
	font: inherit;
}

.content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.content textarea,
.content select {
	padding: 9px;
	border: 1px solid #bbb;
	border-radius: 3px;
	background: #fff;
	color: #5c5c5c;
}

.content textarea {
	width: 100%;
}

.content button,
.content input[type="submit"] {
	padding: 10px 18px;
	border: 0;
	border-radius: 3px;
	background: linear-gradient(to bottom, #ba6957 0%, #984d3e 100%);
	color: #f5f5f5;
	cursor: pointer;
}

/* Footer. */
.site-footer {
	min-height: 150px;
	padding: 22px 30px;
	border-top: 1px solid #8f5a47;
	background: #b47962;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45), inset 0 0 2px rgba(0, 0, 0, 0.8);
	color: #fff;
}

.footer-navigation ul {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-navigation li {
	border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.footer-navigation li:last-child {
	border-right: 0;
}

.footer-navigation a {
	display: block;
	padding: 0 16px;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.footer-navigation a:hover,
.footer-navigation .current-menu-item > a,
.footer-navigation .current_page_item > a {
	text-decoration: underline;
}

.footer-navigation .sub-menu {
	display: block;
	margin-top: 10px;
}

.footer-navigation .sub-menu li {
	margin-bottom: 8px;
	border: 0;
}

.footer-note {
	margin-top: 40px;
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	font-size: 12px;
}

/* Keyboard access without changing the reference layout. */
:focus-visible {
	outline: 3px solid #377c9a;
	outline-offset: 3px;
}

.site-header :focus-visible,
.main-navigation :focus-visible {
	outline-color: #fff;
	outline-offset: -3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip-path: none;
	background: #fff;
	color: #377c9a;
}

/* Tablet: remove the desktop side margins. */
@media (max-width: 1000px) {
	body {
		background: #f2f2f2;
	}

	.site {
		width: 100%;
		margin-top: 0;
	}

	.site-header {
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.main-navigation {
		width: 100%;
		border-radius: 0;
	}

	.primary-menu {
		flex-wrap: wrap;
	}

	.primary-menu > li {
		flex: 1 1 25%;
	}

	.primary-menu > li > a {
		border-radius: 0;
	}

	.content {
		padding-right: 40px;
		padding-left: 40px;
	}
}

/* Mobile: preserve the reference's social → intro → logo → phone order. */
@media (max-width: 650px) {
	.pagination .page-numbers {
		min-width: 44px;
		min-height: 44px;
		padding: 10px 14px;
		font-size: 18px;
		text-align: center;
	}

	.primary-menu > li:first-child > a {
	border-bottom-left-radius: 0px;
}

.primary-menu > li:last-child > a {
	border-right: 0;
	border-bottom-right-radius: 0px;
}
	.site-header {
		height: 430px;
		background-position: 48% center;
	}

	.header-socials {
		top: 16px;
		right: auto;
		left: 20px;
		gap: 8px;
	}

	.social-icon {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.clinic-intro {
		top: 72px;
		left: 20px;
		width: 250px;
		max-width: calc(100% - 40px);
		font-size: 20px;
		font-weight: bold;
	}

	.clinic-logo {
		top: 195px;
		width: 76px;
		height: 76px;
	}

	.phone {
		top: 285px;
		font-size: 19px;
	}

	.tagline {
		top: 325px;
		padding: 0 20px;
		font-size: 20px;
	}

	.has-menu-toggle .hamburger {
		display: block;
		width: 100%;
		padding: 12px 20px;
		border: 0;
		border-radius: 0;
		background: linear-gradient(to bottom, #ba6957 0%, #984d3e 100%);
		color: #fff;
		text-align: left;
		text-transform: uppercase;
		font-size: 16px;
		cursor: pointer;
	}

	.primary-menu {
		display: block;
	}

	/* Without JavaScript the links remain available. */
	.has-menu-toggle .primary-menu {
		display: none;
	}

	.has-menu-toggle.is-open .primary-menu {
		display: block;
	}

	.main-navigation li {
		width: 100%;
	}

	.main-navigation a {
		padding: 12px 20px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
		text-align: left;
	}

	.main-navigation .sub-menu,
	.main-navigation .sub-menu .sub-menu {
		position: static;
		display: block;
		width: 100%;
		box-shadow: none;
	}

	.main-navigation .sub-menu a {
		padding-left: 35px;
	}

	.main-navigation .sub-menu .sub-menu a {
		padding-left: 50px;
	}

	.content {
		padding: 35px 25px 60px;
	}

	.content .post-title {
		font-size: 24px;
	}

	.footer-navigation li {
		margin-bottom: 10px;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 auto 18px !important;
	}
}
