/* ==========================================================================
   Proton3D Child — кастомные стили
   Parent theme: Astra
   Цветовая схема: белый фон (#FFFFFF), чёрный текст (#1A1A1A),
   салатовый акцент (#7EC850, hover #5BA33D)
   ========================================================================== */

/* Переменные также выводятся инлайн через wp_head (functions.php),
   здесь — фолбэк и для случаев прямого просмотра CSS. */
:root {
	--proton3d-accent: #7EC850;
	--proton3d-accent-hover: #5BA33D;
	--proton3d-text: #1A1A1A;
	--proton3d-text-muted: #4A4A4A;
	--proton3d-bg-light: #F8F9FA;
	--proton3d-font-headings: "Barlow Semi Condensed", sans-serif;
	--proton3d-font-body: "Roboto", sans-serif;
}

/* ==========================================================================
   Базовая типографика
   ========================================================================== */

body {
	font-family: var(--proton3d-font-body);
	color: var(--proton3d-text);
	background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6,
.proton3d-section-title,
.proton3d-hero__title {
	font-family: var(--proton3d-font-headings);
	color: var(--proton3d-text);
	font-weight: 700;
}

a {
	color: var(--proton3d-accent);
	transition: color 0.2s ease;
}

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

/* ==========================================================================
   Кнопки Proton3D
   ========================================================================== */

.proton3d-btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 6px;
	font-family: var(--proton3d-font-headings);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.proton3d-btn:hover {
	transform: translateY(-2px);
}

.proton3d-btn--primary {
	background-color: var(--proton3d-accent);
	color: #FFFFFF !important;
	border-color: var(--proton3d-accent);
}

.proton3d-btn--primary:hover,
.proton3d-btn--primary:focus {
	background-color: var(--proton3d-accent-hover);
	border-color: var(--proton3d-accent-hover);
	color: #FFFFFF !important;
}

.proton3d-btn--outline {
	background-color: transparent;
	color: var(--proton3d-text) !important;
	border-color: var(--proton3d-text);
}

.proton3d-btn--outline:hover,
.proton3d-btn--outline:focus {
	background-color: var(--proton3d-text);
	color: #FFFFFF !important;
	border-color: var(--proton3d-text);
}

.proton3d-btn--telegram {
	border-color: var(--proton3d-accent);
	color: var(--proton3d-accent) !important;
}

.proton3d-btn--telegram:hover,
.proton3d-btn--telegram:focus {
	background-color: var(--proton3d-accent);
	color: #FFFFFF !important;
}

/* ==========================================================================
   Общие элементы секций
   ========================================================================== */

.proton3d-section-title {
	font-size: 36px;
	margin: 0 0 40px;
	text-align: center;
}

section[class^="proton3d-"] {
	padding: 70px 0;
}

/* ==========================================================================
   Hero-секция
   ========================================================================== */

.proton3d-hero {
	background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
	padding: 120px 0;
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.proton3d-hero__content {
	max-width: 720px;
}

.proton3d-hero__title {
	font-size: 56px;
	line-height: 1.1;
	margin: 0 0 20px;
}

.proton3d-hero__subtitle {
	font-size: 22px;
	color: var(--proton3d-text-muted);
	margin: 0 0 36px;
	line-height: 1.5;
}

.proton3d-hero__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Категории
   ========================================================================== */

.proton3d-categories {
	background-color: #FFFFFF;
}

.proton3d-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.proton3d-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 36px 24px;
	background: #FFFFFF;
	border: 1px solid #EAEAEA;
	border-radius: 12px;
	text-decoration: none;
	color: var(--proton3d-text);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.proton3d-category-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
	border-color: var(--proton3d-accent);
	color: var(--proton3d-text);
}

.proton3d-category-card__icon {
	font-size: 48px;
	line-height: 1;
	margin-bottom: 16px;
}

.proton3d-category-card__title {
	font-size: 20px;
	margin: 0 0 10px;
}

.proton3d-category-card__desc {
	font-size: 14px;
	color: var(--proton3d-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================================
   Карусель товаров
   ========================================================================== */

.proton3d-product-carousel {
	background-color: var(--proton3d-bg-light);
}

.proton3d-product-carousel .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.proton3d-product-carousel .woocommerce ul.products li.product {
	background: #FFFFFF;
	border: 1px solid #EAEAEA;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proton3d-product-carousel .woocommerce ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Выравнивание кнопок «В корзину» по нижнему краю карточки. */
.proton3d-product-card,
.proton3d-product-carousel .woocommerce ul.products li.product {
	display: flex;
	flex-direction: column;
}

.proton3d-product-card .woocommerce-loop-product__link,
.proton3d-product-carousel .woocommerce ul.products li.product .woocommerce-loop-product__link {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.proton3d-product-card .button,
.proton3d-product-carousel .woocommerce ul.products li.product .button {
	margin-top: auto;
}

/* WooCommerce кнопки в цветовой схеме. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button,
.woocommerce ul.products li.product .button {
	background-color: var(--proton3d-accent);
	color: #FFFFFF;
	border-radius: 6px;
	font-family: var(--proton3d-font-headings);
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
.woocommerce ul.products li.product .button:hover {
	background-color: var(--proton3d-accent-hover);
	color: #FFFFFF;
}

.woocommerce ul.products li.product .price {
	color: var(--proton3d-text);
	font-weight: 700;
	font-size: 18px;
}

/* ==========================================================================
   Промо «Индивидуальные заказы»
   ========================================================================== */

.proton3d-custom-cta {
	background-color: var(--proton3d-text);
	color: #FFFFFF;
	text-align: center;
}

.proton3d-custom-cta__title {
	color: #FFFFFF;
	font-size: 40px;
	margin: 0 0 16px;
}

.proton3d-custom-cta__text {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 640px;
	margin: 0 auto 40px;
	line-height: 1.6;
}

.proton3d-custom-cta__examples {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 40px;
}

.proton3d-custom-cta__placeholder {
	background: rgba(255, 255, 255, 0.08);
	border: 1px dashed rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	padding: 40px 20px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Шаги «Как мы работаем»
   ========================================================================== */

.proton3d-steps {
	background-color: #FFFFFF;
}

.proton3d-steps__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.proton3d-step {
	text-align: center;
}

.proton3d-step__circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: var(--proton3d-accent);
	color: #FFFFFF;
	font-family: var(--proton3d-font-headings);
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}

.proton3d-step__title {
	font-size: 20px;
	margin: 0 0 10px;
}

.proton3d-step__desc {
	font-size: 14px;
	color: var(--proton3d-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ==========================================================================
   Лента постов (портфолио)
   ========================================================================== */

.proton3d-recent-posts {
	background-color: var(--proton3d-bg-light);
}

.proton3d-recent-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 40px;
}

.proton3d-post-card {
	background: #FFFFFF;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #EAEAEA;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.proton3d-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.proton3d-post-card__thumb {
	display: block;
}

.proton3d-post-card__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.proton3d-post-card__body {
	padding: 20px 22px 26px;
}

.proton3d-post-card__date {
	font-size: 13px;
	color: var(--proton3d-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.proton3d-post-card__title {
	font-size: 20px;
	margin: 8px 0 10px;
}

.proton3d-post-card__title a {
	color: var(--proton3d-text);
	text-decoration: none;
}

.proton3d-post-card__title a:hover {
	color: var(--proton3d-accent);
}

.proton3d-post-card__excerpt {
	font-size: 14px;
	color: var(--proton3d-text-muted);
	line-height: 1.6;
	margin: 0;
}

.proton3d-recent-posts__more {
	text-align: center;
}

.proton3d-recent-posts__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--proton3d-text-muted);
}

/* ==========================================================================
   FAQ-превью
   ========================================================================== */

.proton3d-faq-preview {
	background-color: #FFFFFF;
}

.proton3d-faq-preview__list {
	max-width: 800px;
	margin: 0 auto 32px;
}

.proton3d-faq-item {
	border: 1px solid #EAEAEA;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #FFFFFF;
	overflow: hidden;
}

.proton3d-faq-item__question {
	padding: 18px 22px;
	font-family: var(--proton3d-font-headings);
	font-weight: 600;
	font-size: 17px;
	cursor: pointer;
	list-style: none;
	position: relative;
	transition: color 0.2s ease;
}

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

.proton3d-faq-item__question::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	color: var(--proton3d-accent);
	transition: transform 0.2s ease;
}

.proton3d-faq-item[open] .proton3d-faq-item__question::after {
	transform: translateY(-50%) rotate(45deg);
}

.proton3d-faq-item__question:hover {
	color: var(--proton3d-accent);
}

.proton3d-faq-item__answer {
	padding: 0 22px 20px;
	color: var(--proton3d-text-muted);
	line-height: 1.6;
}

.proton3d-faq-item__answer p {
	margin: 0;
}

.proton3d-faq-preview__more {
	text-align: center;
}

/* ==========================================================================
   Финальная CTA-секция
   ========================================================================== */

.proton3d-cta {
	background-color: var(--proton3d-text);
	color: #FFFFFF;
	text-align: center;
}

.proton3d-cta__title {
	color: #FFFFFF;
	font-size: 38px;
	margin: 0 0 32px;
}

.proton3d-cta__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.proton3d-cta .proton3d-btn--outline {
	color: #FFFFFF !important;
	border-color: #FFFFFF;
}

.proton3d-cta .proton3d-btn--outline:hover {
	background-color: #FFFFFF;
	color: var(--proton3d-text) !important;
}

/* ==========================================================================
   Футер (тёмный, 4 колонки через виджеты Astra)
   ========================================================================== */

.site-footer,
.ast-footer-overlay {
	background-color: var(--proton3d-text);
	color: #FFFFFF;
}

.site-footer a,
.ast-footer-overlay a {
	color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover,
.ast-footer-overlay a:hover {
	color: var(--proton3d-accent);
}

.site-footer .widget-title,
.ast-footer-overlay .widget-title {
	color: #FFFFFF;
	font-family: var(--proton3d-font-headings);
}

/* ==========================================================================
   Стрелки каруселей (Spectra / UAG / slick)
   ========================================================================== */

.slick-prev:before,
.slick-next:before,
.swiper-button-prev,
.swiper-button-next {
	color: var(--proton3d-accent);
}

/* ==========================================================================
   Адаптивность: 4 колонки → 2 (планшет) → 1 (мобильный)
   ========================================================================== */

@media (max-width: 1024px) {
	.proton3d-hero__title {
		font-size: 42px;
	}

	.proton3d-categories__grid,
	.proton3d-steps__grid,
	.proton3d-product-carousel .woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
	}

	.proton3d-custom-cta__examples {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 640px) {
	.proton3d-hero {
		padding: 70px 0;
		min-height: auto;
	}

	.proton3d-hero__title {
		font-size: 32px;
	}

	.proton3d-hero__subtitle {
		font-size: 17px;
	}

	.proton3d-section-title {
		font-size: 28px;
	}

	.proton3d-categories__grid,
	.proton3d-steps__grid,
	.proton3d-product-carousel .woocommerce ul.products,
	.proton3d-recent-posts__grid {
		grid-template-columns: 1fr;
	}

	.proton3d-custom-cta__title {
		font-size: 30px;
	}

	.proton3d-cta__title {
		font-size: 28px;
	}

	.proton3d-hero__actions .proton3d-btn,
	.proton3d-cta__actions .proton3d-btn {
		width: 100%;
	}

	section[class^="proton3d-"] {
		padding: 48px 0;
	}
}
