/*
Theme Name: Чисто Луцьк
Theme URI: https://github.com/MaKsImKa22/lutsk-cleaning-wp
Author: MaKsImKa22
Description: Легка тема для клінінгової компанії з фокусом на локальне SEO: послуги, сторінки районів міста, форма заявки, розмітка Schema.org. Без конструкторів і jQuery.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: chysto
*/

:root {
	--ink: #0f172a;
	--muted: #475569;
	--line: #e2e8f0;
	--bg: #ffffff;
	--soft: #f0fdf9;
	--accent: #0f766e;
	--accent-dark: #115e59;
	--accent-soft: #ccfbf1;
	--warn: #b91c1c;
	--radius: 14px;
	--wrap: 1140px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3, .h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; scroll-margin-top: 70px; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.eyebrow {
	display: inline-block; margin-bottom: 10px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent);
	background: var(--accent); color: #fff; font: inherit; font-weight: 700;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-small { padding: 9px 16px; font-size: 15px; }

/* Шапка */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line);
	backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--accent); }
.main-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--ink); }

/* Перший екран */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--soft), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.hero-card {
	background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
	box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 22px; }
.price-lines { margin: 0; padding: 0; list-style: none; }
.price-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.price-lines li:last-child { border-bottom: 0; }
.price-lines b { white-space: nowrap; color: var(--accent-dark); }
.hero-card .card-more { display: block; margin-top: 14px; text-decoration: none; }
.aside-box .btn + .btn { margin-top: 10px; }

/* Картки послуг */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	display: flex; flex-direction: column; gap: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
	color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.card p { color: var(--muted); margin: 0; flex: 1; }
.card-price { font-weight: 800; color: var(--accent-dark); }
.card-more { font-weight: 700; color: var(--accent); }

/* Кроки */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; }
.steps li::before {
	content: counter(step);
	display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
	border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
}
.steps p { color: var(--muted); }

/* Райони */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips a {
	display: inline-block; padding: 10px 18px; border-radius: 999px;
	background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none;
}
.chips a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Форма заявки */
.lead-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.contact-list span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list a, .contact-list b { font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
	font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.notice-ok { background: var(--accent-soft); color: var(--accent-dark); }
.notice-error { background: #fee2e2; color: var(--warn); }

/* Сторінки послуг і районів */
.page-hero { padding: 48px 0 40px; background: var(--soft); }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.page-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 56px 0 80px; align-items: start; }
.content > *:first-child { margin-top: 0; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.aside-box { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.aside-price { font-size: 30px; font-weight: 800; color: var(--accent-dark); margin: 0; }
.aside-box .btn { width: 100%; margin-top: 16px; }

/* Підвал */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h3 { color: #fff; font-size: 16px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #334155; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
.mobile-call { display: none; }

@media (max-width: 960px) {
	.hero-grid, .lead-grid, .page-layout { grid-template-columns: 1fr; }
	.cards { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.main-nav { display: none; }
	.aside-box { position: static; }
}

@media (max-width: 600px) {
	body { font-size: 16px; padding-bottom: 76px; }
	.wrap { padding: 0 16px; }
	.section { padding: 56px 0; }
	.hero { padding: 40px 0 56px; }
	.hero-actions .btn { width: 100%; }
	.cards, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
	.header-inner .btn { display: none; }
	.lead-form, .hero-card { padding: 20px; }
	.mobile-call {
		display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--line);
	}
	.mobile-call .btn { flex: 1; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
