/*
Theme Name: Anton Theme
Theme URI: https://example.com/
Author: Anton
Description: Минимальная тема WordPress: календарь событий на главной странице.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: anton-theme
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Внутренние страницы (без calendar.css) */

:root {
	--anton-accent: #004b6b;
	--anton-accent-dark: #003852;
	--anton-accent-hover: #002f46;
	--anton-accent-soft: rgba(0, 75, 107, 0.14);
	--anton-accent-muted: rgba(0, 75, 107, 0.45);
}

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

body {
	padding: 0;
	margin: 0;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
}

/* --- Шапка: desktop bar + полноэкранное mobile menu --- */
.site-header {
	position: relative;
	z-index: 200;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
}

.site-header__shell {
	max-width: 1660px;
	width: 100%;
	margin: 0 auto;
}

.site-header__inner {
	width: 100%;
	padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.site-header__inner--top {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.75rem 1rem;
	min-height: 4rem;
	padding-block: 1rem;
}

.site-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.site-header__logo img {
	display: block;
	height: 40px;
	width: auto;
}

.site-header__meta--desktop {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.85rem;
	flex: 1 1 auto;
	min-width: 0;
	margin-left: auto;
}

.site-header__meta-block {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.site-header__meta--desktop .site-header__meta-block {
	flex-wrap: nowrap;
}

.site-header__phone {
	margin: 0 40px 0 0;
	font-size: 1rem;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__phone:hover {
	color: var(--anton-accent);
}

.site-header__address {
	margin: 0;
	max-width: 14rem;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #5c5c5c;
	text-align: right;
}

.site-header__social {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

.site-header__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	color: #444;
	background: #f3f3f3;
	border: 1px solid #e5e5e5;
	text-decoration: none;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-header__social-link:hover {
	color: var(--anton-accent);
	background: var(--anton-accent-soft);
	border-color: rgba(0, 75, 107, 0.28);
}

.site-header__social-link:active {
	transform: scale(0.98);
}

.site-header__social-link:focus-visible {
	outline: 2px solid var(--anton-accent);
	outline-offset: 2px;
}

.site-header__social-svg {
	display: block;
}

.site-header__divider {
	height: 1px;
	background: #e8e8e8;
	margin: 0;
	border: none;
}

.site-header__inner--bottom {
	padding-block: 1rem 1rem;
    border-top: 1px solid #61909921;
}

.site-header__nav {
	width: 100%;
	min-width: 0;
}

.site-header__nav-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
}

.site-header__nav-list--bar {
	width: 100%;
	justify-content: space-between;
	gap: 0.35rem 0.5rem;
}

.site-header__nav-list a {
	font-size: 0.875rem;
	font-weight: 700;
	color: #1a1a1a;
	text-decoration: none;
	padding: 0.35rem 0.15rem;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}

.site-header__nav-list a:hover {
	color: var(--anton-accent);
}

.site-header__nav-list a:focus-visible {
	outline: 2px solid var(--anton-accent);
	outline-offset: 2px;
}

/* Бургер (только mobile) */
.site-header__burger {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.site-header__burger:hover {
	background: #f5f5f5;
	border-color: #d0d0d0;
}

.site-header__burger:active {
	transform: scale(0.98);
}

.site-header__burger:focus-visible {
	outline: 2px solid var(--anton-accent);
	outline-offset: 2px;
}

.site-header__burger-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 1.125rem;
	height: 1rem;
}

.site-header__burger-line {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 1px;
	background: currentColor;
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
}

.site-header--menu-open .site-header__burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.site-header--menu-open .site-header__burger-line:nth-child(2) {
	opacity: 0;
}

.site-header--menu-open .site-header__burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Полноэкранная панель */
.site-header__panel {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	flex-direction: column;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		visibility 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header--menu-open .site-header__panel,
.site-header__panel[aria-hidden="false"] {
	pointer-events: auto;
}

.site-header--menu-open .site-header__panel {
	opacity: 1;
	visibility: visible;
}

.site-header__panel-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	min-height: 0;
	overflow: hidden;
	background: #fff;
	padding: 0;
	opacity: 0;
	transform: translateY(-1.25rem) scale(0.985);
	transition:
		opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
		transform 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

.site-header--menu-open .site-header__panel-inner {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.site-header__panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
	min-height: 3.5rem;
	padding: 0.5rem clamp(1rem, 4vw, 1.5rem) 0.35rem;
	background: #fff;
}

.site-header__panel-logo {
	flex-shrink: 0;
}

.site-header__panel-inner > .site-header__nav {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.site-header__panel-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	font-size: 1.65rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}

.site-header__panel-close:hover {
	background: #f5f5f5;
}

.site-header__panel-close:active {
	transform: scale(0.98);
}

.site-header__panel-close:focus-visible {
	outline: 2px solid var(--anton-accent);
	outline-offset: 2px;
}

.site-header__nav-list--stack {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.site-header__nav-list--stack a {
	display: block;
	padding: 0.85rem 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: normal;
	border-bottom: 1px solid #efefef;
	border-radius: 0;
}

.site-header__nav-list--stack li:last-child a {
	border-bottom: none;
}

.site-header__panel-meta {
	flex-shrink: 0;
	margin-top: auto;
	padding: 1.25rem clamp(1rem, 4vw, 1.5rem) calc(1rem + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #e8e8e8;
	background: #fff;
	opacity: 0;
	transform: translateY(0.75rem);
	transition:
		opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.site-header--menu-open .site-header__panel-meta {
	opacity: 1;
	transform: translateY(0);
}

.site-header__panel-meta .site-header__meta-block {
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
}

.site-header__panel-meta .site-header__phone {
	font-size: 1.125rem;
}

.site-header__panel-meta .site-header__address {
	max-width: none;
	text-align: left;
	font-size: 0.875rem;
}

.site-header__panel-theme {
	width: 100%;
}

.site-header__panel-theme .theme-toggle--panel {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	justify-content: flex-start;
	padding: 0.65rem 0.85rem;
	border-radius: 12px;
	border: 1px solid #e8e8e8;
	background: #f8f8f8;
}

.site-header__panel-theme-label {
	font-size: 0.9rem;
	font-weight: 600;
}

body.site-header-menu-open {
	overflow: hidden;
}

@media (max-width: 899px) {
	.site-header {
		position: sticky;
		top: 0;
	}

	.site-header__meta--desktop {
		display: none;
	}

	.site-header__burger {
		display: inline-flex;
		margin-left: auto;
	}

	.site-header__bottom--desktop,
	.site-header__divider--desktop {
		display: none;
	}

	.site-header__inner--top {
		min-height: 3.5rem;
		padding-block: 0.5rem;
	}
}

.site-header__nav-placeholder {
	display: block;
	height: 0;
}

@media (min-width: 900px) {
	.site-header {
		position: relative;
		background: #fff;
		border-bottom: 1px solid #e8e8e8;
	}

	.site-header__top {
		background: transparent;
		border-bottom: none;
	}

	.site-header__divider--desktop {
		display: none;
	}

	.site-header__bottom--desktop {
		position: relative;
		z-index: 1;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.site-header--nav-stuck .site-header__bottom--desktop {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 220;
		background: #fff;
		box-shadow: 0 6px 24px rgba(28, 27, 25, 0.07);
	}

	.site-header--nav-stuck .site-header__bottom--desktop .site-header__inner--bottom {
		max-width: 1660px;
		margin-inline: auto;
	}

	.site-header__inner--top {
		display: grid;
		grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
		align-items: center;
	}

	.site-header__logo {
		grid-column: 1;
	}

	.site-header__meta--desktop {
		grid-column: 2;
		margin-left: 0;
	}

	.site-header__burger {
		grid-column: 3;
	}

	.site-header__panel {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header__burger-line,
	.site-header__social-link,
	.site-header__burger,
	.site-header__panel-close,
	.site-header__panel,
	.site-header__panel-inner,
	.site-header__panel-meta {
		transition: none;
		animation: none;
	}

	.site-header--menu-open .site-header__panel-inner,
	.site-header--menu-open .site-header__panel-meta {
		opacity: 1;
		transform: none;
	}
}

body:not(.home) .main .entry-content {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

.text-section__container {
	margin-top: 50px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	border-top: 1px dashed #e0e0e0;
	max-width: 100%;
}

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

@media (min-width: 1024px) {
	.text-section__container {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.text-section__container p {
	margin-bottom: 0;
	line-height: 1.5;
	padding: 0;
	font-size: 14px;
	color: #646464;
	text-wrap: balance;
}

/* Календарь: основные стили в assets/calendar.css */
