/**
 * Солнечный Сад — main stylesheet
 */

/* ------------------------------------------------------------------
   CSS Variables
   ------------------------------------------------------------------ */
:root {
	--color-primary: #ff7043;
	--color-primary-dark: #e64a19;
	--color-secondary: #42a5f5;
	--color-secondary-dark: #1e88e5;
	--color-accent: #ffca28;
	--color-success: #66bb6a;
	--color-pink: #f48fb1;

	--color-bg: #fff9f0;
	--color-bg-white: #ffffff;
	--color-text: #37474f;
	--color-text-light: #78909c;
	--color-border: #eceff1;

	--font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-heading: 'Baloo 2', 'Nunito', cursive, sans-serif;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-full: 999px;

	--shadow-sm: 0 2px 8px rgba(55, 71, 79, 0.08);
	--shadow-md: 0 8px 24px rgba(55, 71, 79, 0.12);
	--shadow-lg: 0 16px 48px rgba(55, 71, 79, 0.16);

	--container-width: 1140px;
	--header-height: 72px;
	--transition: 0.25s ease;
}

/* ------------------------------------------------------------------
   Reset & Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-secondary-dark);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus {
	color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text);
	margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg-white);
	border-radius: var(--radius-sm);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 16px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 700;
	border: none;
	border-radius: var(--radius-full);
	cursor: pointer;
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
	text-decoration: none;
}

.btn:hover,
.btn:focus {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-primary {
	background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
	color: #fff;
}

.btn-secondary {
	background: var(--color-bg-white);
	color: var(--color-secondary-dark);
	border: 2px solid var(--color-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
	color: var(--color-secondary-dark);
	background: #e3f2fd;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(12px);
	border-bottom: 2px solid var(--color-border);
	box-shadow: var(--shadow-sm);
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 1rem;
}

.header-top-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.header-nav {
	border-top: 1px solid var(--color-border);
	background: rgba(255, 249, 240, 0.6);
}

.header-nav .main-navigation ul {
	justify-content: center;
	padding: 0.65rem 0;
}

/* Language switcher */
.lang-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-full);
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: 0.9rem;
	line-height: 1;
}

.lang-switcher__link {
	color: var(--color-text-light);
	text-decoration: none;
	padding: 0.15rem 0.25rem;
	transition: color var(--transition);
}

.lang-switcher__link:hover,
.lang-switcher__link:focus {
	color: var(--color-secondary-dark);
}

.lang-switcher__link.is-active {
	color: var(--color-primary);
	cursor: default;
}

.lang-switcher__sep {
	color: var(--color-border);
	user-select: none;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo {
	line-height: 0;
}

.site-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-identity {
	flex: 1;
	padding: 0 1rem;
	text-align: center;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0;
}

.site-title a {
	color: var(--color-primary);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--color-primary-dark);
}

.site-description {
	margin: 0;
	font-size: 0.85rem;
	color: var(--color-text-light);
}

.site-logo img {
	max-width: 100px;
	max-height: 100px;
	width: auto;
	height: auto;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 8px;
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--color-text);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 1rem;
	color: var(--color-text);
	padding: 0.5rem 0;
	position: relative;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 3px;
	background: var(--color-accent);
	border-radius: 2px;
	transition: width var(--transition);
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: var(--color-primary);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
	width: 100%;
}

/* ------------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------------ */
.hero-section {
	position: relative;
	background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 50%, #ffcc80 100%);
	padding: 4rem 0 6rem;
	overflow: hidden;
}

.hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero-badge {
	display: inline-block;
	padding: 0.35rem 1rem;
	background: var(--color-bg-white);
	border-radius: var(--radius-full);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color-primary);
	box-shadow: var(--shadow-sm);
	margin-bottom: 1rem;
}

.hero-title {
	margin-bottom: 1rem;
	color: var(--color-text);
}

.hero-subtitle {
	font-size: 1.15rem;
	color: var(--color-text-light);
	margin-bottom: 2rem;
	max-width: 480px;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.hero-placeholder {
	position: relative;
	width: 280px;
	height: 280px;
	background: linear-gradient(145deg, #fff, #ffe0b2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
}

.hero-icon {
	font-size: 5rem;
	line-height: 1;
}

.hero-icon--cloud {
	position: absolute;
	top: 20%;
	right: -10%;
	font-size: 3rem;
	animation: float 3s ease-in-out infinite;
}

.hero-icon--star {
	position: absolute;
	bottom: 15%;
	left: -5%;
	font-size: 2.5rem;
	animation: float 2.5s ease-in-out infinite reverse;
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

.hero-wave {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 60px;
	background: var(--color-bg);
	clip-path: ellipse(55% 100% at 50% 100%);
}

/* ------------------------------------------------------------------
   Features Section
   ------------------------------------------------------------------ */
.features-section,
.news-section {
	padding: 4rem 0;
}

.section-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem;
}

.section-header p {
	color: var(--color-text-light);
	font-size: 1.1rem;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.feature-card {
	padding: 2rem 1.5rem;
	border-radius: var(--radius-md);
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-md);
}

.feature-card--blue { background: #e3f2fd; }
.feature-card--green { background: #e8f5e9; }
.feature-card--yellow { background: #fff9c4; }
.feature-card--pink { background: #fce4ec; }

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.feature-card h3 {
	margin-bottom: 0.75rem;
}

.feature-card p {
	font-size: 0.95rem;
	color: var(--color-text-light);
	margin: 0;
}

/* ------------------------------------------------------------------
   Posts Grid
   ------------------------------------------------------------------ */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.posts-grid--home {
	margin-bottom: 2rem;
}

.post-card {
	background: var(--color-bg-white);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

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

.post-card-body {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin-bottom: 0.5rem;
}

.post-card-title {
	font-size: 1.2rem;
	margin-bottom: 0.75rem;
}

.post-card-title a {
	color: var(--color-text);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--color-primary);
}

.post-card-excerpt {
	font-size: 0.95rem;
	color: var(--color-text-light);
	flex: 1;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--color-secondary-dark);
}

.section-cta {
	text-align: center;
}

/* ------------------------------------------------------------------
   CTA Section
   ------------------------------------------------------------------ */
.cta-section {
	padding: 4rem 0;
}

.cta-box {
	background: linear-gradient(135deg, var(--color-primary), #ff8a65);
	color: #fff;
	padding: 3rem;
	border-radius: var(--radius-lg);
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.cta-box h2 {
	color: #fff;
	margin-bottom: 1rem;
}

.cta-box p {
	font-size: 1.1rem;
	opacity: 0.95;
	max-width: 560px;
	margin: 0 auto 2rem;
}

.cta-contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.cta-contact {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-full);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	transition: background var(--transition);
}

.cta-contact:hover,
.cta-contact:focus {
	background: rgba(255, 255, 255, 0.35);
	color: #fff;
}

/* ------------------------------------------------------------------
   Page & Single Post
   ------------------------------------------------------------------ */
.site-main--full {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 3rem 1.25rem 4rem;
}

.is-front-page .site-main--full {
	max-width: none;
	padding: 0;
}

.page-content--front {
	background: transparent;
	padding: 0;
	box-shadow: none;
}

.front-page-content {
	padding: 2rem 0;
}

.front-page-content .entry-content {
	max-width: var(--container-width);
	margin: 0 auto;
}

.page-header {
	margin-bottom: 2.5rem;
	text-align: center;
}

.page-title {
	margin-bottom: 0.5rem;
}

.archive-description {
	color: var(--color-text-light);
}

.page-content,
.single-post {
	background: var(--color-bg-white);
	padding: 2.5rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.entry-thumbnail {
	margin-bottom: 2rem;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.entry-content {
	font-size: 1.05rem;
}

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	font-size: 0.9rem;
	color: var(--color-text-light);
}

.entry-footer span + span {
	margin-left: 1rem;
}

/* ------------------------------------------------------------------
   Post Navigation
   ------------------------------------------------------------------ */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2rem;
}

.post-navigation a {
	display: block;
	padding: 1.25rem;
	background: var(--color-bg-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition);
}

.post-navigation a:hover {
	box-shadow: var(--shadow-md);
}

.nav-label {
	display: block;
	font-size: 0.8rem;
	color: var(--color-text-light);
	margin-bottom: 0.25rem;
}

.nav-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-text);
}

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

/* ------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------ */
.pagination,
.navigation.pagination {
	margin-top: 3rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.75rem;
	background: var(--color-bg-white);
	border-radius: var(--radius-sm);
	font-weight: 700;
	color: var(--color-text);
	box-shadow: var(--shadow-sm);
	transition: background var(--transition), color var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
	background: var(--color-primary);
	color: #fff;
}

/* ------------------------------------------------------------------
   Sidebar & Widgets
   ------------------------------------------------------------------ */
.content-area {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2.5rem;
	align-items: start;
	padding: 3rem 0 4rem;
}

.no-sidebar .content-area {
	display: block;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.content-area .site-main {
	padding: 0;
}

.widget-area {
	background: var(--color-bg-white);
	padding: 1.5rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.widget-title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--color-accent);
}

.widget {
	margin-bottom: 2rem;
}

.widget:last-child {
	margin-bottom: 0;
}

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

.widget li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
	border-bottom: none;
}

/* ------------------------------------------------------------------
   Search Form
   ------------------------------------------------------------------ */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
	margin: 1.5rem auto;
}

.search-field {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: 1rem;
	outline: none;
	transition: border-color var(--transition);
}

.search-field:focus {
	border-color: var(--color-secondary);
}

.search-submit {
	flex-shrink: 0;
}

/* ------------------------------------------------------------------
   404 Page
   ------------------------------------------------------------------ */
.error-404-inner {
	text-align: center;
	padding: 4rem 2rem;
	background: var(--color-bg-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

.error-404-icon {
	font-size: 4rem;
	display: block;
	margin-bottom: 1rem;
}

/* ------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------ */
.comments-area {
	margin-top: 3rem;
	background: var(--color-bg-white);
	padding: 2rem;
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

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

.comment-list .comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--color-border);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
	background: #37474f;
	color: #cfd8dc;
	margin-top: auto;
}

.footer-widgets {
	padding: 3rem 0 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.footer-widget-title {
	color: #fff;
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

.footer-widget a {
	color: #b0bec5;
}

.footer-widget a:hover {
	color: var(--color-accent);
}

.footer-bottom {
	padding: 1.5rem 0;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.copyright {
	margin: 0;
	font-size: 0.9rem;
}

.copyright a {
	color: var(--color-accent);
}

.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-navigation a {
	color: #b0bec5;
	font-size: 0.9rem;
}

.footer-navigation a:hover {
	color: #fff;
}

/* ------------------------------------------------------------------
   Block Editor Content Styles
   ------------------------------------------------------------------ */
.entry-content .wp-block-image {
	margin-bottom: 1.5rem;
}

.entry-content .wp-block-image img {
	border-radius: var(--radius-md);
}

.entry-content .wp-block-quote {
	border-left: 4px solid var(--color-accent);
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--color-text-light);
}

.entry-content .wp-block-button__link {
	border-radius: var(--radius-full);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 992px) {
	.hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero-subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.content-area {
		grid-template-columns: 1fr;
	}

	.footer-widgets-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.site-logo img {
		max-width: 100px;
		max-height: 100px;
	}

	.site-identity {
		order: 3;
		flex: 0 0 100%;
		padding: 0 0 0.75rem;
	}

	.menu-toggle {
		display: flex;
	}

	.header-nav {
		position: relative;
		min-height: 0;
		padding: 0;
		border-top: none;
		background: transparent;
	}

	.header-nav .main-navigation {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		background: var(--color-bg-white);
		border-bottom: 2px solid var(--color-border);
		box-shadow: var(--shadow-md);
		max-height: 0;
		overflow: hidden;
		transition: max-height var(--transition);
		z-index: 10;
	}

	.header-nav .main-navigation.is-open {
		max-height: 400px;
	}

	.header-nav .main-navigation ul {
		flex-direction: column;
		align-items: stretch;
		padding: 1rem 1.25rem;
	}

	.header-nav .main-navigation a {
		display: block;
		padding: 0.75rem 0;
	}

	.site-header {
		position: relative;
	}

	.header-top {
		position: relative;
		flex-wrap: wrap;
	}

	.features-grid,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.footer-widgets-grid {
		grid-template-columns: 1fr;
	}

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

	.cta-box {
		padding: 2rem 1.5rem;
	}

	.page-content,
	.single-post {
		padding: 1.5rem;
	}
}

@media (max-width: 480px) {
	.hero-section {
		padding: 2.5rem 0 5rem;
	}

	.search-form {
		flex-direction: column;
	}

	.cta-contacts {
		flex-direction: column;
		align-items: center;
	}
}
