/*
Theme Name: English Tutor
Theme URI: https://example.com/english-tutor
Author: English Tutor
Author URI: https://example.com
Description: Тема-лендинг для репетитора английского языка. Все тексты, картинки, ссылки и цвета меняются в разделе «Внешний вид → Настроить». Тарифы и отзывы добавляются в отдельных разделах админки.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: english-tutor
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ===== Переменные (перекрываются настройками из Customizer) ===== */
:root {
	--ink: #16243b;
	--muted: #617087;
	--blue: #2858d5;
	--pale: #f3f6ff;
	--orange: #ed7657;
	--cream: #fffbf5;
	--line: #dce3f0;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 400 16px/1.6 Onest, Arial, sans-serif;
}

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

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

/* ===== Шапка ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 251, 245, .86);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(22, 36, 59, .06);
}

.site-header.no-sticky {
	position: relative;
}

body.admin-bar .site-header {
	top: 32px;
}

.nav {
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.logo {
	color: var(--ink);
	font-weight: 800;
	font-size: 18px;
	text-decoration: none;
	letter-spacing: -.7px;
}

.logo span {
	color: var(--blue);
}

.logo .custom-logo {
	display: block;
	max-height: 46px;
	width: auto;
}

.menu {
	display: flex;
	align-items: center;
	gap: 27px;
}

.menu-list {
	display: flex;
	align-items: center;
	gap: 27px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-list li {
	position: relative;
}

.menu-list a {
	display: inline-block;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.menu-list a:hover,
.menu-list .current-menu-item > a,
.menu-list .current_page_item > a,
.menu>a:not(.button):hover,
.text-link:hover {
	color: var(--blue);
}

.menu-list .sub-menu {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	z-index: 20;
	display: none;
	flex-direction: column;
	gap: 10px;
	min-width: 220px;
	margin: 0;
	padding: 14px 18px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 15px 35px rgba(29, 50, 91, .14);
}

.menu-list li:hover > .sub-menu,
.menu-list li:focus-within > .sub-menu {
	display: flex;
}

.menu-list .sub-menu a {
	font-weight: 600;
	white-space: nowrap;
}

/* ===== Кнопки ===== */
.button {
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 15px 23px;
	border-radius: 50px;
	background: var(--orange);
	box-shadow: 0 12px 22px rgba(237, 118, 87, .22);
	color: #fff;
	font: 700 14px Onest, Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
	transition: .25s transform, .25s box-shadow;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 27px rgba(237, 118, 87, .3);
}

.button span {
	font-size: 20px;
	line-height: 10px;
}

.button-small {
	padding: 10px 17px !important;
	color: #fff !important;
}

.button-ghost {
	background: transparent;
	color: var(--ink);
	box-shadow: none;
	border: 1px solid var(--line);
}

.button-ghost:hover {
	box-shadow: none;
	color: var(--blue);
	border-color: var(--blue);
}

.menu-button {
	display: none;
}

/* ===== Hero ===== */
.hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 106px;
	background: linear-gradient(115deg, #f3f6ff 0%, #f8faff 56%, #fff7f0 100%);
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.03fr .97fr;
	gap: 74px;
	align-items: center;
}

.eyebrow {
	margin: 0 0 13px;
	color: var(--blue);
	font-size: 12px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	font-weight: 800;
}

.hero h1,
.section h2 {
	margin: 0;
	font: 600 clamp(34px, 4.3vw, 58px)/1.23 Unbounded, Arial, sans-serif;
	letter-spacing: -2.8px;
}

.hero h1 em {
	color: var(--blue);
	font-style: normal;
}

.hero-text {
	max-width: 570px;
	margin: 24px 0 30px;
	color: var(--muted);
	font-size: 18px;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 25px;
	flex-wrap: wrap;
}

.text-link {
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
}

.hero-note {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 35px;
	color: var(--muted);
	font-size: 13px;
}

.note-icon {
	display: grid;
	place-items: center;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background: #dbe5ff;
	color: var(--blue);
	font-weight: 800;
}

.hero-visual {
	position: relative;
	min-height: 490px;
}

.photo-card {
	position: absolute;
	inset: 0 15px 0 0;
	padding: 14px;
	border-radius: 150px 150px 24px 24px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(38, 71, 145, .13);
}

.teacher-photo {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	border-radius: 138px 138px 15px 15px;
}

.teacher-photo.et-placeholder {
	display: grid;
	place-items: center;
	padding: 26px;
	background: linear-gradient(145deg, #335fcb, #92b6f7);
	color: #fff;
	font: 600 24px/1.4 Unbounded, Arial, sans-serif;
	letter-spacing: -1px;
	text-align: center;
}

.floating-card {
	position: absolute;
	left: -34px;
	bottom: 35px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 19px;
	background: #fff;
	border-radius: 13px;
	box-shadow: 0 15px 35px rgba(29, 50, 91, .14);
}

.card-mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: #edf2ff;
	color: var(--blue);
	border-radius: 11px;
	font-weight: 800;
}

.floating-card b,
.floating-card small {
	display: block;
}

.floating-card b {
	font-size: 13px;
}

.floating-card small {
	color: var(--muted);
	font-size: 11px;
}

.hero-shape {
	position: absolute;
	border-radius: 50%;
	filter: blur(1px);
}

.shape-one {
	left: -70px;
	bottom: -100px;
	width: 250px;
	height: 250px;
	background: #ffdfce;
	opacity: .55;
}

.shape-two {
	right: 5%;
	top: -80px;
	width: 170px;
	height: 170px;
	border: 20px solid #dbe5ff;
}

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

.section-heading {
	text-align: center;
	max-width: 670px;
	margin: 0 auto 52px;
}

.section-heading h2,
.about h2,
.process h2,
.reviews h2,
.contact h2 {
	font-size: 35px;
	line-height: 1.35;
}

.section-heading > p:last-child {
	color: var(--muted);
	margin: 18px auto 0;
}

/* ===== Тарифы ===== */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.card {
	padding: 32px;
	border: 1px solid transparent;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 7px 28px rgba(34, 56, 95, .05);
	transition: .28s;
}

.card:hover {
	transform: translateY(-6px);
	border-color: #d6e0fa;
	box-shadow: 0 15px 38px rgba(34, 56, 95, .1);
}

.card-icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: #e9efff;
	border-radius: 13px;
	color: var(--blue);
	font-size: 13px;
	font-weight: 800;
}

.card:nth-child(2) .card-icon {
	background: #fff0ea;
	color: var(--orange);
}

.card h3 {
	margin: 24px 0 10px;
	font-size: 20px;
	letter-spacing: -.5px;
}

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

.price {
	display: block;
	margin: 0 0 20px;
	color: var(--blue);
	font-size: 20px;
	letter-spacing: -.7px;
}

.price small {
	font-size: 11px;
	color: var(--muted);
	font-weight: 500;
	letter-spacing: 0;
}

.card a {
	color: var(--blue);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.card a span {
	margin-left: 5px;
	font-size: 17px;
}

/* ===== Обо мне ===== */
.about {
	background: var(--pale);
}

.about-grid {
	display: grid;
	grid-template-columns: .9fr 1.1fr;
	gap: 106px;
	align-items: center;
}

.about-image {
	height: 436px;
	position: relative;
}

.abstract-photo {
	position: absolute;
	inset: 0 50px 0 0;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(145deg, #335fcb, #92b6f7);
}

.about-photo {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.location-badge {
	position: absolute;
	right: 0;
	bottom: 33px;
	padding: 18px 23px;
	border-radius: 14px;
	background: #fff;
	font-size: 14px;
	font-weight: 800;
	box-shadow: 0 14px 25px rgba(30, 54, 99, .13);
}

.location-badge small {
	display: block;
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
}

.about-copy > p:not(.eyebrow) {
	color: var(--muted);
	margin: 19px 0;
}

.about-copy > p:not(.eyebrow) a {
	color: var(--blue);
}

.principles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-top: 27px;
	padding-top: 25px;
	border-top: 1px solid #d5deed;
}

.principles b,
.principles span {
	display: block;
}

.principles b {
	font-size: 14px;
}

.principles span {
	font-size: 12px;
	color: var(--muted);
}

/* ===== Как всё устроено ===== */
.process-top {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 53px;
}

.process-top > p {
	max-width: 360px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 61px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: steps;
}

.steps li {
	position: relative;
}

.steps li:not(:last-child):after {
	position: absolute;
	top: 28px;
	left: 72px;
	width: calc(100% + 6px);
	border-top: 1px dashed #aebbd4;
	content: "";
}

.steps span {
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
	width: 57px;
	height: 57px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-weight: 800;
}

.steps h3 {
	margin: 21px 0 8px;
	font-size: 18px;
}

.steps p {
	max-width: 290px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* ===== Отзывы ===== */
.reviews {
	background: var(--pale);
}

.reviews-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.review-card {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 32px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 7px 28px rgba(34, 56, 95, .05);
}

.review-card > p {
	margin: 0;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.65;
	flex-grow: 1;
}

.review-stars {
	color: var(--orange);
	font-size: 15px;
	letter-spacing: 2px;
}

.review-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.review-avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	overflow: hidden;
	border-radius: 50%;
	background: #e9efff;
	color: var(--blue);
	font-size: 12px;
	font-weight: 800;
	flex: 0 0 auto;
}

.review-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.review-author b,
.review-author small {
	display: block;
}

.review-author b {
	font-size: 14px;
}

.review-author small {
	color: var(--muted);
	font-size: 12px;
}

/* ===== Контакты ===== */
.contact {
	padding-top: 36px;
}

.contact-box {
	display: grid;
	grid-template-columns: 1fr .8fr;
	gap: 84px;
	padding: 69px 76px;
	border-radius: 27px;
	background: var(--ink);
	color: #fff;
}

.contact h2 {
	max-width: 550px;
}

.contact .eyebrow {
	color: #aac2ff;
}

.contact-box > div > p:last-child {
	max-width: 500px;
	color: #c4cfdf;
}

.contact-box a {
	color: #fff;
}

.social-links {
	display: grid;
	gap: 10px;
	align-content: start;
}

.social-links a {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 12px 15px;
	border: 1px solid #45536b;
	border-radius: 11px;
	color: #fff;
	text-decoration: none;
	transition: .2s background, .2s transform;
}

.social-links a:hover {
	transform: translateX(4px);
	background: #22344f;
}

.social-icon {
	display: grid;
	place-items: center;
	width: 37px;
	height: 37px;
	border-radius: 10px;
	background: #315bd0;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	flex: 0 0 auto;
}

.social-links a:nth-child(2) .social-icon {
	background: #2b82df;
}

.social-links a:nth-child(3) .social-icon {
	background: #ef7658;
}

.social-links a:nth-child(4) .social-icon {
	background: #7b5bd6;
}

.social-links b,
.social-links small {
	display: block;
}

.social-links b {
	font-size: 13px;
}

.social-links small {
	color: #b8c5d7;
	font-size: 11px;
}

.social-links i {
	margin-left: auto;
	font-style: normal;
	color: #9caeca;
}

/* ===== Формы (для страниц, комментариев, поиска) ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	max-width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: 400 15px/1.5 Onest, Arial, sans-serif;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid rgba(40, 88, 213, .35);
	outline-offset: 1px;
}

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

.form-message {
	min-height: 19px;
	margin: 0;
	color: #b9d1ff;
	font-size: 12px;
}

.search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.search-form .search-field {
	flex: 1 1 auto;
}

.search-form .search-submit {
	flex: 0 0 auto;
	padding: 13px 22px;
	border: 0;
	border-radius: 50px;
	background: var(--blue);
	color: #fff;
	font: 700 14px Onest, Arial, sans-serif;
	cursor: pointer;
}

/* ===== Внутренние страницы и записи ===== */
.page-main {
	padding: 72px 0 110px;
}

.page-main > .container {
	width: min(820px, calc(100% - 40px));
}

.page-main .page-head {
	margin: 0 0 36px;
}

.page-main .page-head .eyebrow span {
	color: var(--muted);
}

.entry-title,
.page-head h1 {
	margin: 0 0 14px;
	font: 600 clamp(28px, 3.6vw, 42px)/1.25 Unbounded, Arial, sans-serif;
	letter-spacing: -1.8px;
}

.entry-meta {
	margin: 0 0 26px;
	color: var(--muted);
	font-size: 13px;
}

.page-thumb {
	margin: 0 0 30px;
}

.page-thumb img {
	border-radius: 20px;
	display: block;
	width: 100%;
}

.entry-content {
	font-size: 17px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 20px;
	color: var(--muted);
}

.entry-content h2 {
	margin: 40px 0 16px;
	font: 600 30px/1.35 Unbounded, Arial, sans-serif;
	letter-spacing: -1.2px;
	color: var(--ink);
}

.entry-content h3 {
	margin: 32px 0 12px;
	font-size: 22px;
	color: var(--ink);
}

.entry-content h4 {
	margin: 26px 0 10px;
	font-size: 18px;
}

.entry-content a {
	color: var(--blue);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 20px;
	padding-left: 22px;
	color: var(--muted);
}

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

.entry-content blockquote {
	margin: 26px 0;
	padding: 18px 24px;
	border-left: 4px solid var(--blue);
	border-radius: 0 12px 12px 0;
	background: #fff;
	color: var(--ink);
}

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

.entry-content img,
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	border-radius: 14px;
}

.entry-content figure {
	margin: 0 0 22px;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.entry-content table {
	width: 100%;
	margin: 0 0 22px;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--pale);
	color: var(--ink);
}

.entry-content pre {
	margin: 0 0 22px;
	padding: 18px;
	border-radius: 12px;
	background: var(--ink);
	color: #e9efff;
	overflow: auto;
	font-size: 14px;
}

.entry-content code {
	padding: 2px 6px;
	border-radius: 5px;
	background: #eef2fb;
	color: var(--ink);
	font-size: .9em;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
}

.entry-content hr {
	margin: 34px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.alignleft {
	float: left;
	margin: 4px 26px 18px 0;
}

.alignright {
	float: right;
	margin: 4px 0 18px 26px;
}

.aligncenter {
	display: block;
	margin: 0 auto 22px;
}

.alignwide {
	margin-left: -60px;
	margin-right: -60px;
	max-width: calc(100% + 120px);
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 22px;
}

.wp-caption-text,
.gallery-caption {
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.sticky .entry-title a {
	color: var(--blue);
}

.edit-link a {
	font-size: 12px;
	color: var(--muted);
}

/* Список записей */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 7px 28px rgba(34, 56, 95, .05);
	color: inherit;
	text-decoration: none;
	transition: .28s transform, .28s box-shadow;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 38px rgba(34, 56, 95, .1);
}

.post-card img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.post-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
	padding: 26px 26px 30px;
}

.post-card h2 {
	margin: 0;
	font-size: 19px;
	letter-spacing: -.4px;
	line-height: 1.4;
}

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

.post-card time {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}

/* Пагинация */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 44px;
}

.pagination .page-numbers,
.pagination a,
.pagination span {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(34, 56, 95, .06);
}

.pagination .current {
	background: var(--blue);
	color: #fff;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 48px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.post-nav a {
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.post-nav .nav-next {
	text-align: right;
}

/* Комментарии */
.comments-area {
	margin-top: 56px;
	padding-top: 36px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 22px;
	margin: 0 0 24px;
}

.comment-list {
	margin: 0 0 34px;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin: 0 0 0 26px;
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 22px;
	padding: 20px 22px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(34, 56, 95, .05);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 14px;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	margin: 4px 0 10px;
	font-size: 12px;
	color: var(--muted);
}

.comment-metadata a {
	color: var(--muted);
	text-decoration: none;
}

.comment-content {
	color: var(--muted);
	font-size: 15px;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-size: 13px;
	font-weight: 700;
	color: var(--blue);
	text-decoration: none;
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
}

.comment-form .form-submit {
	margin: 0;
}

.comment-form .submit {
	border: 0;
	padding: 14px 26px;
	border-radius: 50px;
	background: var(--orange);
	color: #fff;
	font: 700 14px Onest, Arial, sans-serif;
	cursor: pointer;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent label {
	color: var(--muted);
	font-size: 12px;
}

/* ===== Подвал ===== */
footer {
	padding: 35px 0 28px;
}

.footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	flex-wrap: wrap;
}

.legal-info {
	max-width: 650px;
}

.legal-info p {
	margin: 2px 0;
	text-align: center;
}

.footer-content p,
.footer-content > a:last-child {
	color: var(--muted);
	font-size: 12px;
}

.footer-content > a:last-child {
	font-weight: 800;
	text-decoration: none;
}

.footer-widgets {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.footer-widgets .footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 26px;
}

.footer-widgets .widget {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 13px;
}

.footer-widgets .widget-title,
.footer-widgets h2 {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.footer-widgets a {
	color: var(--blue);
	text-decoration: none;
}

.footer-widgets ul {
	margin: 0;
	padding-left: 18px;
}

/* ===== Анимация появления ===== */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
	opacity: 1;
	transform: none;
}

.no-js .reveal {
	opacity: 1;
	transform: none;
}

/* ===== Служебные классы WordPress ===== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	border-radius: 10px;
	background: #fff;
	color: var(--blue);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(22, 36, 59, .16);
}

.et-empty {
	margin: 0;
	padding: 34px;
	border: 1px dashed var(--line);
	border-radius: 16px;
	color: var(--muted);
	text-align: center;
}

/* ===== Дополнения ===== */
.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo-link img {
	max-height: 46px;
	width: auto;
}

.card-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 11px;
}

.post-card-thumb {
	display: block;
	line-height: 0;
}

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

.post-card h2 a:hover {
	color: var(--blue);
}

.post-navigation {
	margin-top: 48px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.post-navigation a {
	color: var(--blue);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.post-navigation .nav-next {
	text-align: right;
}

.footer-menu-wrap {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.footer-menu {
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px;
}

.footer-menu a {
	font-size: 12px;
}

.et-404 {
	max-width: 640px;
}

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

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
	.about-grid {
		gap: 56px;
	}

	.contact-box {
		gap: 46px;
		padding: 56px 48px;
	}

	.alignwide {
		margin-left: -20px;
		margin-right: -20px;
		max-width: calc(100% + 40px);
	}
}

@media (max-width: 800px) {
	.menu-button {
		display: grid;
		gap: 4px;
		width: 38px;
		padding: 8px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.menu-button span {
		display: block;
		height: 2px;
		background: var(--ink);
	}

	.menu {
		display: none;
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		padding: 22px 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: 0 18px 30px rgba(22, 36, 59, .08);
	}

	.menu.open {
		display: flex;
	}

	.menu .button {
		text-align: center;
	}

	.menu-list,
	.menu.open .menu-list {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.menu-list a {
		font-size: 15px;
	}

	.menu-list .sub-menu,
	.menu-list li:hover > .sub-menu,
	.menu-list li:focus-within > .sub-menu {
		position: static;
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 10px;
		padding: 0 0 0 16px;
		background: none;
		box-shadow: none;
	}

	.hero {
		padding: 59px 0 70px;
	}

	.hero-grid,
	.about-grid,
	.contact-box {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.hero-visual {
		width: min(460px, 100%);
		height: 420px;
		min-height: 0;
		margin: auto;
	}

	.photo-card {
		inset: 0 20px 0 0;
	}

	.teacher-photo {
		border-radius: 110px 110px 15px 15px;
	}

	.floating-card {
		left: 0;
		bottom: 18px;
	}

	.section {
		padding: 75px 0;
	}

	.cards,
	.reviews-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.section-heading h2,
	.about h2,
	.process h2,
	.reviews h2,
	.contact h2 {
		font-size: 35px;
	}

	.about-image {
		height: 370px;
		max-width: 460px;
	}

	.about-grid {
		gap: 52px;
	}

	.process-top {
		align-items: start;
		flex-direction: column;
		gap: 16px;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.steps li {
		padding-left: 75px;
	}

	.steps span {
		position: absolute;
		top: 0;
		left: 0;
	}

	.steps li:not(:last-child):after {
		top: 67px;
		left: 28px;
		width: 0;
		height: calc(100% - 15px);
		border-top: 0;
		border-left: 1px dashed #aebbd4;
	}

	.contact {
		padding-top: 15px;
	}

	.contact-box {
		padding: 43px 28px;
		gap: 31px;
	}

	.footer-content {
		align-items: flex-start;
		flex-direction: column;
		gap: 9px;
	}

	.legal-info p {
		text-align: left;
	}

	.page-main {
		padding: 48px 0 78px;
	}

	.post-nav,
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 22px;
	}

	.alignwide {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 430px) {
	.container {
		width: min(100% - 32px, 1160px);
	}

	.hero h1 {
		font-size: 31px;
		letter-spacing: -1.8px;
	}

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

	.hero-actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 17px;
	}

	.hero-visual {
		height: 355px;
	}

	.section-heading h2,
	.about h2,
	.process h2,
	.reviews h2,
	.contact h2 {
		font-size: 27px;
	}

	.abstract-photo {
		right: 25px;
	}

	.location-badge {
		padding: 13px 17px;
	}

	.principles {
		grid-template-columns: 1fr;
	}

	.contact-box {
		padding: 37px 22px;
	}

	.page-main > .container {
		width: min(100% - 32px, 820px);
	}
}
