/* ============================================================
   «Сын плотника» — дизайн-система
   Палитра: молочно-белый #F5F3EF, уголь #1A1A1A,
   тёмно-коричневый #2C2416, терракота #B85C38, льняной #E8E2D9
   ============================================================ */

:root {
	--bg: #F5F3EF;
	--bg-alt: #E8E2D9;
	--text: #1A1A1A;
	--brown: #2C2416;
	--accent: #B85C38;
	--accent-dark: #9C4A2B;
	--line: rgba(26, 26, 26, 0.12);
	--font-head: 'Manrope', 'TT Norms', sans-serif;
	--font-body: 'Inter', 'PT Root UI', sans-serif;
	--radius: 4px;
	--container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--text);
}

h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.015em; margin-bottom: 24px; }
h3 { font-size: 24px; }
h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--brown); opacity: .65; margin-bottom: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(64px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
/* .section и .container на одном элементе — не теряем боковые поля */
.section.container { padding-left: 24px; padding-right: 24px; }

.section-lead { font-size: 19px; max-width: 560px; opacity: .8; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.04em;
	padding: 16px 36px;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn--ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--text);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }

/* ---------- Шапка ---------- */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	padding: 20px 0;
	transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
	background: rgba(245, 243, 239, .92);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 0 var(--line);
	padding: 12px 0;
}
.site-header.on-dark:not(.is-scrolled):not(.nav-open) { color: #fff; }
/* Мягкая тень под светлой шапкой, чтобы меню читалось на любом фото */
.site-header.on-dark::before {
	content: '';
	position: absolute; inset: 0 0 -40px;
	background: linear-gradient(to bottom, rgba(26,26,26,.38), rgba(26,26,26,0));
	pointer-events: none;
	transition: opacity .3s ease;
	z-index: -1;
}
.site-header.on-dark.is-scrolled::before,
.site-header.on-dark.nav-open::before { opacity: 0; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }

/* Логотип: горизонтальный локап «эмблема + СЫН ПЛОТНИКА», цвет — из палитры */
.site-logo { display: block; flex-shrink: 0; line-height: 0; color: var(--brown); transition: color .25s ease; }
.site-logo:hover { color: var(--accent); }
.site-header.on-dark:not(.is-scrolled):not(.nav-open) .site-logo { color: #fff; }
.site-header.on-dark:not(.is-scrolled):not(.nav-open) .site-logo:hover { color: var(--bg-alt); }
.site-logo__mark {
	display: block;
	height: 46px;
	aspect-ratio: 5301 / 1700;
	background-color: currentColor;
	-webkit-mask: url('../img/logo-lockup.svg') no-repeat center / contain;
	        mask: url('../img/logo-lockup.svg') no-repeat center / contain;
	transition: height .3s ease;
}
.custom-logo { display: block; height: 46px; width: auto; max-height: none; transition: height .3s ease; }
.site-header.is-scrolled .site-logo__mark,
.site-header.is-scrolled .custom-logo { height: 36px; }

.nav-list { display: flex; gap: 28px; list-style: none; }
.nav-list a {
	display: block;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	white-space: nowrap;
	opacity: .85;
	transition: opacity .2s, color .2s;
}
.nav-list a:hover { opacity: 1; color: var(--accent); }
.site-header.on-dark:not(.is-scrolled):not(.nav-open) .nav-list a:hover { color: #fff; }

.header-contacts { display: flex; align-items: center; gap: 20px; }
.header-tg { font-size: 14px; font-weight: 500; opacity: .85; white-space: nowrap; }
.header-cart { position: relative; display: flex; align-items: center; }
.cart-count {
	position: absolute; top: -6px; right: -10px;
	background: var(--accent); color: #fff;
	font-size: 10px; font-weight: 700;
	min-width: 16px; height: 16px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.cart-count:empty, .cart-count[data-empty] { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 6px auto; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(26,26,26,.55) 0%, rgba(26,26,26,.1) 50%, rgba(26,26,26,.25) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(64px, 10vh, 120px); width: 100%; }
.hero__title { color: #fff; margin-bottom: 12px; }
.hero__slogan {
	font-family: var(--font-head);
	font-size: clamp(18px, 2.5vw, 26px);
	font-weight: 300;
	letter-spacing: 0.14em;
	opacity: .9;
}
.hero__scroll {
	position: absolute; bottom: 32px; right: 24px; z-index: 2;
	font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
	writing-mode: vertical-rl; opacity: .7;
}

/* ---------- Сетка изделий ---------- */
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	list-style: none;
}
.product-card { position: relative; }
.product-card__img {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #fff;
	border-radius: var(--radius);
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__meta { padding: 16px 4px 0; }
.product-card__series { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.product-card__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin: 4px 0; }
.product-card__price { font-size: 16px; font-weight: 500; color: var(--brown); }

/* ---------- Секция «Адаптация» ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; margin: 24px 0 32px; }
.check-list li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before {
	content: '';
	position: absolute; left: 0; top: 16px;
	width: 14px; height: 8px;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

/* ---------- UGC masonry ---------- */
.ugc-grid { columns: 3; column-gap: 20px; }
.ugc-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; }
.ugc-item img { width: 100%; transition: transform .5s ease; }
.ugc-item:hover img { transform: scale(1.03); }
.ugc-item figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 16px 14px;
	background: linear-gradient(to top, rgba(26,26,26,.65), transparent);
	color: #fff; font-size: 13px;
	opacity: 0; transition: opacity .3s;
}
.ugc-item:hover figcaption { opacity: 1; }

/* ---------- О мастерской / Процесс ---------- */
.about-text p { max-width: 620px; margin-bottom: 20px; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 24px; counter-increment: step; position: relative; }
.step::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-head);
	font-size: 14px; font-weight: 700;
	color: var(--accent);
	display: block; margin-bottom: 12px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; opacity: .75; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--brown); color: var(--bg); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-logo {
	display: block;
	width: 168px;
	aspect-ratio: 5301 / 2382;
	background-color: var(--bg);
	-webkit-mask: url('../img/logo.svg') no-repeat left center / contain;
	        mask: url('../img/logo.svg') no-repeat left center / contain;
	transition: background-color .25s ease;
}
.footer-logo:hover { background-color: var(--bg-alt); }
.footer-tagline { margin-top: 20px; opacity: .6; font-size: 14px; letter-spacing: .08em; }
.site-footer h4 { color: var(--bg); }
.footer-contacts a, .footer-social a, .footer-contacts span { display: block; padding: 5px 0; opacity: .85; }
.footer-contacts a:hover, .footer-social a:hover { color: var(--accent); opacity: 1; }
.footer-delivery {
	display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
	border-top: 1px solid rgba(245,243,239,.15);
	padding-top: 40px; padding-bottom: 40px;
}
.footer-delivery > :last-child { grid-column: span 2; }
.footer-delivery p { font-size: 14px; opacity: .7; line-height: 1.6; max-width: 480px; }
.footer-bottom { border-top: 1px solid rgba(245,243,239,.15); padding: 20px 24px; font-size: 13px; opacity: .5; }

/* ---------- Эффекты загрузки и скролла (в духе Sætter) ---------- */

/* Плавное появление изображений при загрузке */
.lazy-fade { opacity: 0; transition: opacity .7s ease; }
.lazy-fade.is-loaded { opacity: 1; }

/* Hero: мягкий zoom-out при загрузке страницы */
.hero__bg img, .hero__bg > div { animation: hero-zoom 1.8s cubic-bezier(.2,.6,.2,1) both; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Секции-карточки: следующая секция «наезжает» на предыдущую */
@media (min-width: 1024px) {
	.stack { position: relative; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 48px rgba(44,36,22,.10); }
}

/* Футер, открывающийся из-под контента */
@media (min-width: 1024px) {
	.site-content { position: relative; z-index: 2; background: var(--bg); }
	.site-footer { position: sticky; bottom: 0; z-index: 1; }
}

/* Бегущая строка */
.marquee { overflow: hidden; padding: 22px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__track span {
	font-family: var(--font-head); font-weight: 600; font-size: 15px;
	letter-spacing: .22em; text-transform: uppercase;
	color: var(--brown); opacity: .65;
	padding-right: 72px; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Второе фото товара при наведении (как у Sætter) */
.product-card__img { position: relative; }
.product-card__hover-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .45s ease;
}
.product-card:hover .product-card__hover-img { opacity: 1; }

/* ---------- Журнал ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head__link {
	font-family: var(--font-head); font-size: 15px; font-weight: 600;
	letter-spacing: .04em; color: var(--accent);
	border-bottom: 1px solid transparent; transition: border-color .2s;
	white-space: nowrap;
}
.section-head__link:hover { border-color: var(--accent); color: var(--accent); }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journal-card { display: block; color: inherit; }
.journal-card:hover { color: inherit; }
.journal-card__img { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: #D8CBB8; }
.journal-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.journal-card:hover .journal-card__img img { transform: scale(1.04); }
.journal-card__meta { padding: 18px 4px 0; }
.journal-card__date { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; }
.journal-card__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin: 8px 0; line-height: 1.3; }
.journal-card__excerpt { font-size: 15px; opacity: .7; line-height: 1.55; }

/* Страница записи журнала */
.single-hero { padding-top: 180px; padding-bottom: 48px; }
.single-hero .journal-card__date { font-size: 13px; }
.entry-content { max-width: 760px; font-size: 18px; }
.entry-content p { margin-bottom: 24px; }
.entry-content h2 { font-size: 30px; margin: 48px 0 20px; }
.entry-content h3 { font-size: 24px; margin: 40px 0 16px; }
.entry-content img { border-radius: var(--radius); margin: 32px 0; }
.entry-content blockquote {
	border-left: 3px solid var(--accent);
	padding: 8px 0 8px 24px;
	margin: 32px 0;
	font-family: var(--font-head);
	font-size: 22px; font-weight: 500; line-height: 1.4;
}

/* ---------- Оффер-бейдж ---------- */.offer-badge {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 20px;
	background: rgba(184, 92, 56, .1);
	border: 1px solid rgba(184, 92, 56, .35);
	border-radius: 100px;
	color: var(--accent);
	font-family: var(--font-head);
	font-size: 14px; font-weight: 600;
	letter-spacing: .03em;
}

/* ---------- Коллекции ---------- */
.collections-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.collection-card { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--bg); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,36,22,.12); color: inherit; }
.collection-card__img { aspect-ratio: 1/1; background: #D8CBB8; }
.collection-card__img img { width: 100%; height: 100%; object-fit: cover; }
.collection-card__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.collection-card__body h3 { font-size: 22px; margin-bottom: 10px; }
.collection-card__body p { font-size: 15px; opacity: .7; line-height: 1.55; }

/* ---------- Преимущества ---------- */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature { border-top: 2px solid var(--line); padding-top: 24px; position: relative; }
.feature::before {
	content: '';
	position: absolute; top: -2px; left: 0;
	width: 40px; height: 2px;
	background: var(--accent);
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { font-size: 15px; opacity: .75; line-height: 1.6; }

/* ---------- Портфолио ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
	font-family: var(--font-head);
	font-size: 14px; font-weight: 500;
	padding: 10px 22px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 100px;
	cursor: pointer;
	transition: all .25s;
	color: var(--text);
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; }
.work-card__img { aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.work-card:hover .work-card__img img { transform: scale(1.05); }
.work-card__meta { padding: 16px 4px 0; }
.work-card__type { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.work-card__title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin-top: 4px; }
.work-card.is-hidden { display: none; }

/* Лайтбокс */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(26,26,26,.9);
	display: none;
	align-items: center; justify-content: center;
	padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__inner {
	background: var(--bg);
	max-width: 960px; width: 100%;
	max-height: 90vh; overflow-y: auto;
	border-radius: var(--radius);
	display: grid; grid-template-columns: 1.2fr 1fr;
}
.lightbox__img img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__body { padding: 40px; }
.lightbox__body h3 { font-size: 26px; margin-bottom: 16px; }
.lightbox__specs { list-style: none; margin: 20px 0; }
.lightbox__specs li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.lightbox__specs li span:first-child { opacity: .6; }
.lightbox__close {
	position: absolute; top: 24px; right: 24px;
	background: none; border: none; color: #fff;
	font-size: 32px; cursor: pointer; line-height: 1;
}

/* ---------- WooCommerce ---------- */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.woocommerce .products .product { background: transparent; }
.woocommerce .products .product img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.woocommerce .products .product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; padding: 14px 0 4px; }
.woocommerce .products .product .price { font-size: 16px; font-weight: 500; color: var(--brown); }
.woocommerce .products .product .button,
.woocommerce .single_add_to_cart_button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	font-family: var(--font-head); font-weight: 600; font-size: 14px;
	letter-spacing: .04em;
	background: var(--accent); color: #fff;
	border-radius: var(--radius);
	padding: 14px 28px;
	transition: background .25s;
	border: none;
}
.woocommerce .products .product .button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent-dark); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Карточка товара: галерея слева, описание справа, остальное — на всю ширину */
.single-product .page-hero { padding-top: 140px; padding-bottom: 0; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; position: relative; }
.single-product div.product > * { min-width: 0; }
.single-product div.product > .woocommerce-tabs,
.single-product div.product > .related,
.single-product div.product > .upsells { grid-column: 1 / -1; }
.single-product .onsale { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--accent); padding: 4px 12px; border-radius: var(--radius); font-size: 13px; font-weight: 600; }

/* Галерея */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; border-radius: var(--radius); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 16px; right: 16px; z-index: 3;
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, .9); font-size: 0;
	display: flex; align-items: center; justify-content: center;
}
.woocommerce-product-gallery__trigger::before { content: ''; width: 14px; height: 14px; border: 2px solid var(--text); border-radius: 50%; margin: -4px 0 0 -4px; }
.woocommerce-product-gallery__trigger::after { content: ''; position: absolute; width: 2px; height: 8px; background: var(--text); transform: translate(6px, 6px) rotate(-45deg); }
.woocommerce-product-gallery__trigger img { display: none !important; }
.woocommerce-product-gallery .flex-control-thumbs {
	list-style: none; margin: 12px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.woocommerce-product-gallery .flex-control-thumbs li { margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
	cursor: pointer; opacity: .55; transition: opacity .2s;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }

/* Описание и покупка */
.single-product .summary { position: sticky; top: 110px; }
.single-product .product_title { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 16px; }
.single-product .summary .price { font-size: 26px; font-weight: 600; color: var(--brown); margin-bottom: 20px; }
.single-product .summary .price del { opacity: .5; font-weight: 500; margin-right: 8px; }
.single-product .summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { margin-bottom: 28px; opacity: .85; }
.woocommerce-product-details__short-description p + p { margin-top: 12px; }
.single-product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 28px; }
.single-product form.cart .quantity input { height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 76px; font: inherit; text-align: center; }
.single-product .single_add_to_cart_button { cursor: pointer; padding: 16px 36px; }
.single-product .stock { margin-bottom: 12px; font-size: 15px; color: var(--brown); }
.product_meta { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--brown); }
.product_meta > span { display: block; }
.product_meta > span + span { margin-top: 4px; }
.product_meta a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Вкладки */
.woocommerce-tabs { margin-top: 48px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; margin-bottom: -1px; font-family: var(--font-head); font-weight: 600; font-size: 15px; opacity: .6; border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { opacity: 1; border-bottom-color: var(--text); }
.woocommerce-tabs .panel { max-width: 760px; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce-tabs .panel p + p, .woocommerce-tabs .panel ul { margin-top: 14px; }
.woocommerce-tabs .panel ul { padding-left: 20px; }

/* Похожие товары */
.single-product .related, .single-product .upsells { margin-top: 64px; }
.single-product .related > h2, .single-product .upsells > h2 { font-size: clamp(24px, 3vw, 36px); }
.woocommerce .products .product { position: relative; }
.woocommerce .products .product a { display: block; }
.woocommerce .products .product .button { display: inline-block; margin-top: 12px; }

.woocommerce-cart table, .woocommerce-checkout table { width: 100%; border-collapse: collapse; }
.woocommerce-cart th, .woocommerce-cart td, .woocommerce-checkout th, .woocommerce-checkout td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select {
	padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; width: 100%; font-family: var(--font-body); font-size: 15px;
}
.woocommerce-message { background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 16px 20px; margin-bottom: 24px; }

/* ---------- Формы (CF7) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="number"],
.wpcf7 input[type="file"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 16px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff;
	font-family: var(--font-body); font-size: 16px;
	transition: border-color .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--accent); }
.wpcf7 label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; display: block; margin-bottom: 6px; }
.wpcf7 input[type="submit"] {
	font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .04em;
	padding: 16px 40px; background: var(--accent); color: #fff;
	border: none; border-radius: var(--radius); cursor: pointer;
	transition: background .25s;
}
.wpcf7 input[type="submit"]:hover { background: var(--accent-dark); }

/* ---------- Быстрые кнопки мессенджеров ---------- */
.messenger-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.messenger-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 28px; border-radius: 100px;
	font-family: var(--font-head); font-weight: 600; font-size: 15px;
	border: 1px solid var(--text);
	transition: all .25s;
}
.messenger-btn:hover { background: var(--text); color: var(--bg); }
.messenger-btn--tg { background: var(--text); color: var(--bg); }
.messenger-btn--tg:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Страница (дефолт) ---------- */
.page-hero { padding-top: 180px; padding-bottom: 64px; }
.page-hero p { max-width: 600px; font-size: 19px; opacity: .8; }

/* ---------- Корпоративная страница ---------- */
.corp-kicker { display: inline-block; margin-bottom: 16px; color: var(--accent); font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.corporate-media__placeholder { display: block; width: 100%; height: 100%; min-height: 180px; background: #D8D0C4; }

/* Первый экран: текст + крупное фото гравировки */
.corp-hero { padding: 140px 0 clamp(48px, 7vw, 96px); }
.corp-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.corp-hero h1 { font-size: clamp(38px, 5.2vw, 68px); margin-bottom: 24px; }
.corp-hero .section-lead { max-width: 520px; }
.corp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.corp-hero__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #D8D0C4; }
.corp-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.corp-facts { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.corp-facts strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--brown); }
.corp-facts span { font-size: 14px; opacity: .65; }

/* Клиенты */
.corp-clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.corp-clients__inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.corp-clients__label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.corp-clients__list { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 56px; }
.corp-clients__list li { font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: .04em; color: var(--brown); }

/* Что можно заказать */
.corp-offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin-top: 48px; }
.corp-offer__item { min-width: 0; }
.corp-offer__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #D8D0C4; }
.corp-offer__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.corp-offer__item:hover .corp-offer__media img { transform: scale(1.04); }
.corp-offer__body { padding: 18px 4px 0; }
.corp-offer__body > span { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.corp-offer__body h3 { font-size: 21px; margin: 6px 0 8px; }
.corp-offer__body p { font-size: 15px; line-height: 1.55; opacity: .72; }

/* Кейсы */
.corp-case figure { margin: 0; }
.corp-case img { width: 100%; height: 100%; object-fit: cover; }
.corp-case__head { max-width: 760px; margin-bottom: 40px; }
.corp-case__wide { aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius); background: #D8D0C4; }
.corp-case__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(32px, 5vw, 64px); }
.corp-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; aspect-ratio: 1 / 1; }
.corp-mosaic__item { overflow: hidden; border-radius: var(--radius); background: #D8D0C4; }
.corp-mosaic__item--tall { grid-row: span 2; }
.corp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.corp-strip figure { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: #D8D0C4; }

.corp-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; }
.corp-pair > div { overflow: hidden; border-radius: var(--radius); background: #D8D0C4; }
.corp-pair__main { aspect-ratio: 3 / 4; }
.corp-pair__side { aspect-ratio: 2 / 3; }

/* Брендирование */
.corp-methods { display: grid; gap: 24px; margin-top: 8px; }
.corp-methods > div { border-top: 1px solid var(--line); padding-top: 20px; }
.corp-methods h3 { font-size: 20px; margin-bottom: 8px; }
.corp-methods p { font-size: 16px; opacity: .78; }
.corp-method-photo { aspect-ratio: 4 / 5; background: #D8D0C4; }

/* Полки */
.corp-shelves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.corp-shelves figure { margin: 0; }
.corp-shelves img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #D8D0C4; }
.corp-shelves figcaption { padding-top: 12px; font-family: var(--font-head); font-size: 16px; font-weight: 600; }

/* Форма */
.corp-form { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.corp-form .messenger-row { flex-direction: column; align-items: flex-start; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
/* Меню в шесть пунктов не помещается в строку уже на ноутбуках — раньше переходим на «бургер» */
@media (max-width: 1100px) {
	.nav-toggle { display: block; z-index: 110; color: inherit; }
	.site-logo, .header-contacts { position: relative; z-index: 110; }
	.header-contacts { margin-left: auto; }
	.site-nav {
		position: fixed; inset: 0;
		background: var(--bg);
		color: var(--text);
		display: flex; align-items: center; justify-content: center;
		transform: translateY(-100%);
		visibility: hidden;
		transition: transform .4s cubic-bezier(.2,.6,.2,1), visibility 0s linear .4s;
	}
	.site-nav.is-open { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2,.6,.2,1); }
	.nav-list { flex-direction: column; text-align: center; gap: 28px; }
	.nav-list a { font-size: 24px; }
	.site-header.nav-open { background: transparent; box-shadow: none; backdrop-filter: none; }
}

@media (max-width: 1024px) {
	.products-grid { grid-template-columns: repeat(3, 1fr); }
	.works-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.collections-grid { grid-template-columns: 1fr; }
	.journal-grid { grid-template-columns: repeat(2, 1fr); }
	.ugc-grid { columns: 2; }
	.corp-hero__inner, .corp-case__grid, .corp-form { grid-template-columns: 1fr; }
	.corp-hero__media { aspect-ratio: 4 / 3; }
	.corp-offer { grid-template-columns: repeat(2, 1fr); }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.single-product .summary { position: static; }
	.single-product .page-hero { padding-top: 110px; }
	.lightbox__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	body { font-size: 16px; }
	.site-header { padding: 14px 0; }
	.header-inner { gap: 16px; }
	.site-logo__mark, .custom-logo { height: 38px; }
	.site-header.is-scrolled .site-logo__mark,
	.site-header.is-scrolled .custom-logo { height: 32px; }
	.header-tg { display: none; }
	.footer-logo { width: 140px; }
	.products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.works-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
	.journal-grid { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.features-grid { grid-template-columns: 1fr; }
	.collection-card { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-delivery { grid-template-columns: 1fr; gap: 28px; }
	.footer-delivery > :last-child { grid-column: auto; }
	.form-grid { grid-template-columns: 1fr; }
	.woocommerce-product-gallery .flex-control-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
	.woocommerce-tabs ul.tabs { gap: 20px; overflow-x: auto; }
	.ugc-grid { columns: 1; }
	.corp-hero { padding-top: 110px; }
	.corp-hero__media { aspect-ratio: 4 / 5; }
	.corp-facts { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
	.corp-facts strong { font-size: 16px; }
	.corp-facts span { font-size: 12px; }
	.corp-clients__inner { gap: 12px 32px; }
	.corp-clients__list { gap: 8px 28px; }
	.corp-clients__list li { font-size: 18px; }
	.corp-offer { grid-template-columns: 1fr; }
	.corp-case__wide { aspect-ratio: 4 / 3; }
	.corp-strip { grid-template-columns: 1fr 1fr; }
	.corp-shelves { grid-template-columns: 1fr 1fr; gap: 12px; }
	.corp-shelves figure:last-child { display: none; }
	.lightbox__body { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
