/*
Theme Name: LKK Architectural Concrete
Description: Тема lkk-beton.ru по макету 24.09.2026 (ChatGPT). Бутафория минимальными усилиями: каркас, каталог WooCommerce с корзиной, форма расчёта. Облик — токены ниже, их меняют первыми.
Version: 0.1.0
Text Domain: lkk
Requires PHP: 7.4
*/

/* ── Токены облика. Оранжевый — заливка, не цвет текста: оранжевый текстом на
   светлом фоне не держит контраст (урок seospurt 24.09), поэтому на оранжевых
   кнопках надпись тёмная, а ссылки — отдельным тёмно-оранжевым. ── */
:root {
	--bg: #f3f1ec;
	--surface: #ffffff;
	--surface-2: #e9e6df;
	--ink: #17181a;
	--muted: #5d5f63;
	--line: #dcd8cf;
	--accent: #f47a1f;
	--accent-hover: #e0660b;
	--accent-text: #a1480a;
	--on-accent: #17181a;
	--dark: #1b1c1e;
	--dark-2: #26282b;
	--on-dark: #f3f1ec;
	--radius: 6px;
	--wrap: 1240px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Unbounded", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ── Кнопки ── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 15px; line-height: 1.2; min-height: 48px; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { color: var(--ink); padding-left: 0; padding-right: 0; }
.btn .arr::after { content: "→"; }

/* ── Шапка: тонкая полоса контактов + ряд «логотип · меню · кнопка».
   В один ряд всё не помещается уже на 1240: меню из семи пунктов, телефон,
   корзина и кнопка переносились на вторую строку (24.09). ── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--dark); color: #c9c6bf; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar a { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: #ffb27a; }
.topbar-adres { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-phone { font-weight: 700; }
.head-cart { font-weight: 700; }
.head-cart .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; text-align: center; margin-left: 6px; }
.head-main { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 50px; height: 44px; object-fit: contain; }
.brand b { font-family: var(--font-head); font-size: 18px; display: block; line-height: 1; }
.brand small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; justify-content: center; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover { color: var(--accent-text); }
.head-cta { flex: none; white-space: nowrap; padding: 12px 20px; min-height: 44px; }
.nav-toggle { display: none; }
@media (max-width: 1200px) {
	.head-main { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
	.nav-toggle { display: block; margin-left: auto; }
	.nav-toggle summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
	.nav-toggle summary::-webkit-details-marker { display: none; }
	.main-nav { display: none; order: 5; width: 100%; flex: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
	.topbar-adres, .topbar-pochta { display: none; }
	.topbar .wrap { justify-content: space-between; }
	.head-cta { display: none; }
}

/* ── Секции ── */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; font-size: 14px; }

/* Первый экран */
.hero { background: var(--surface); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: stretch; padding-top: 40px; padding-bottom: 40px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.hero-search { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); max-width: 560px; }
.hero-search input { flex: 1; border: 0; padding: 14px 16px; font: inherit; min-width: 0; }
.hero-search button { border: 0; background: var(--accent); color: var(--on-accent); padding: 0 18px; font-weight: 700; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.chips span { color: var(--muted); padding: 6px 0; }
.chips a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--ink); }
.hero-media { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--surface-2) linear-gradient(135deg, #d9d5cc, #b9b4aa); position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media .tag { position: absolute; right: 16px; bottom: 16px; background: rgba(23,24,26,.78); color: var(--on-dark); padding: 10px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.4; }
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.usp div { font-size: 13px; line-height: 1.35; padding-left: 12px; border-left: 3px solid var(--accent); }
@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.hero-media { min-height: 260px; }
	.usp { grid-template-columns: repeat(2, 1fr); }
}

/* Плитки: категории, подбор, объекты */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1080px) { .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .grid-4, .grid-5, .grid-6 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card .ph { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--surface-2) linear-gradient(135deg, #dcd8cf, #bdb8ae); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .num { font-family: var(--font-head); color: var(--muted); font-size: 28px; line-height: 1; }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #cfcac0, #9d978c); color: #fff; text-decoration: none; display: flex; align-items: flex-end; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile span { position: relative; width: 100%; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-weight: 700; font-size: 14px; }

/* Шаги, числа, характеристики */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 24px; counter-reset: s; }
.steps div { font-size: 14px; }
.steps div::before { counter-increment: s; content: "0" counter(s); display: block; font-family: var(--font-head); color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts b { display: block; font-family: var(--font-head); font-size: 28px; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; }
.specs th, .specs td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.specs th { background: var(--surface-2); width: 30%; }
.table-scroll { overflow-x: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* FAQ и форма */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 16px; font-weight: 700; }
.faq details p { padding: 0 16px 16px; margin: 0; color: var(--muted); }
.form-dark { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 28px; }
.form-dark h2 { color: var(--on-dark); }
.form-dark .muted, .form-dark label { color: #c9c6bf; }
.form-dark a { color: #ffb27a; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-dark input[type=text], .form-dark input[type=tel], .form-dark textarea { width: 100%; padding: 14px; border-radius: var(--radius); border: 1px solid #45474b; background: var(--dark-2); color: var(--on-dark); font: inherit; }
.form-dark textarea { min-height: 96px; margin-bottom: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 12px 0 16px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
.notice--ok { background: #e3f1e5; color: #1d4d27; }
.notice--err { background: #f7e3dc; color: #7a2a12; }

/* ── Подвал ── */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 48px 0 24px; margin-top: 56px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #ffb27a; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-grid li { padding: 5px 0; }
.foot-bottom { border-top: 1px solid #3a3c40; margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #b3b0a9; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Страницы и WooCommerce ── */
.page-wrap { padding: 32px 0 16px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 4vw, 32px); }
.entry > *:last-child { margin-bottom: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--accent); color: var(--on-accent); border-radius: var(--radius); font-weight: 700; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--accent-hover); color: var(--on-accent); }
.woocommerce span.onsale { background: var(--accent); color: var(--on-accent); }
.woocommerce .woocommerce-breadcrumb { font-size: 13px; }
.woocommerce div.product .product_title { font-size: clamp(24px, 3vw, 34px); }

/* ── Карточки товаров: сетка равной высоты. Поплавки WooCommerce давали
   карточки разной высоты — название в 1–3 строки двигало кнопку (24.09). ── */
.woocommerce ul.products { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 24px; }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product { width: auto; float: none; margin: 0; clear: none; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin: 0 0 12px; border-radius: 4px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; margin: 0 0 8px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce ul.products li.product .price { margin-top: auto; margin-bottom: 12px; }
.woocommerce ul.products li.product .button { margin-top: 0; align-self: flex-start; }
@media (max-width: 1080px) { .woocommerce ul.products, .woocommerce ul.products.columns-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .woocommerce ul.products, .woocommerce ul.products.columns-5, .woocommerce ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ── Выбор цвета и размера в карточке (inc/katalog.php) ── */
.lkk-vybor { display: grid; gap: 12px; margin: 0 0 16px; max-width: 420px; }
.lkk-vybor__pole { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.lkk-vybor__pole select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; background: var(--surface); }
.lkk-vybor__cena { margin: 0; font-size: 15px; }
.woocommerce div.product form.cart { display: block; }
.woocommerce div.product form.cart .quantity { margin-right: 8px; }

/* Текст раздела каталога — под сеткой товаров, строка читаемой длины */
.lkk-tekst-razdela { max-width: 780px; margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.65; }
.lkk-tekst-razdela h2 { font-size: 24px; margin: 32px 0 12px; }
.lkk-tekst-razdela h3 { font-size: 18px; margin: 24px 0 8px; }
.lkk-tekst-razdela p, .lkk-tekst-razdela ul { margin: 0 0 14px; }
.lkk-tekst-razdela ul { padding-left: 22px; }
.lkk-tekst-razdela table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.lkk-tekst-razdela th, .lkk-tekst-razdela td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.lkk-tekst-razdela th { background: var(--surface); }
.lkk-tekst-razdela .lkk-dalshe { margin-top: 28px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
