/* Хмільник.інфо — mobile-first, no framework. */
:root {
	--bg: #f7f6f2;
	--surface: #ffffff;
	--surface-alt: #eef3f1;
	--ink: #1b2220;
	--muted: #5a6562;
	--line: #e2e0d8;
	--primary: #0e6b5c;
	--primary-ink: #ffffff;
	--primary-soft: #d9ece7;
	--accent: #f2a93b;
	--accent-ink: #231a06;
	--tg: #2a9fd8;
	--danger: #c0392b;
	--warn-bg: #fff4dd;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 8px 24px rgba(20, 30, 28, .08);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--container: 1160px;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: #0a5246; }
h1, h2, h3, .h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
h3, .h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.icon { flex: none; vertical-align: -4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; }
.section { padding: 40px 0; }
.section--tight { padding: 16px 0; }
.section--alt { background: var(--surface-alt); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card--raised { box-shadow: var(--shadow); border-color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .12s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: #0a5246; color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e39a2a; color: var(--accent-ink); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--icon { width: 48px; padding: 0; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 242, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; }
.brand__name { font-size: 1.05rem; }
.header-search { position: relative; flex: 1; max-width: 420px; display: none; }
.header-search input { width: 100%; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: inherit; }
.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.site-nav__list a { color: var(--ink); text-decoration: none; }
.site-nav__list li:not(:first-child) { display: none; }
@media (min-width: 760px) {
	.header-search { display: block; }
	.site-nav__list li:not(:first-child) { display: list-item; }
}

/* Suggest */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; text-align: left; }
.suggest a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggest a small { color: var(--muted); }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--primary-soft); }

/* Home */
.home-hero { padding: 48px 0 32px; text-align: center; background: radial-gradient(1200px 400px at 50% -10%, var(--primary-soft), transparent 70%); }
.home-hero__title { font-size: clamp(2rem, 1.3rem + 3.5vw, 3.25rem); }
.home-hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto 24px; }
.home-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.home-search > .icon { color: var(--muted); }
.home-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font: inherit; font-size: 1.05rem; }
.home-search input:focus { outline: none; }
.home-search:focus-within { box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
.home-search .btn { flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips--center { justify-content: center; }
.chips li > a, .chips li > span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .925rem; }
.chips li > a:hover { border-color: var(--primary); color: var(--primary); }
.chips--trust { margin-top: 8px; }
.chips--trust li { display: inline-flex; align-items: center; gap: 6px; font-size: .925rem; color: var(--muted); }
.chips--trust .icon { color: var(--primary); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s; }
.cat-card a:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat-card__icon { font-size: 1.75rem; line-height: 1; }
.cat-card__name { font-weight: 600; }
.cat-card__count { font-size: .85rem; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

.results { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.results a { display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }

/* Landing hero */
.hero { padding: 20px 0 32px; }
.hero--commercial { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--muted); }
.hero__grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }
.hero__lead { font-size: 1.1rem; color: var(--muted); }
.hero__form-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.hero__alt { margin: 12px 0 0; font-size: .95rem; color: var(--muted); }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 0 0 12px; background: var(--warn-bg); border-radius: var(--radius-sm); font-size: .95rem; }
.notice--block { font-size: 1rem; }

/* Blocks */
.tiles { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile > a, .tile > span { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.tile > a:hover { border-color: var(--primary); }
.tile .icon { color: var(--primary); }
.tile--problem > a::before, .tile--problem > span::before { content: "?"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-right: 4px; border-radius: 50%; background: var(--warn-bg); font-weight: 700; font-size: .8rem; }
.tile--problem > a, .tile--problem > span { justify-content: flex-start; }
.tile--problem .icon { margin-left: auto; }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 20px; background: var(--surface); border-radius: var(--radius); }
.step__n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.prices { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.prices th, .prices td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prices th { background: var(--surface-alt); font-size: .875rem; }

.faq { display: grid; gap: 8px; }
.faq__item { background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--primary); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 16px 4px; color: var(--muted); }

.disclosure { display: flex; gap: 10px; margin: 0; padding: 14px 16px; background: var(--surface); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); font-size: .925rem; color: var(--muted); }

.link-groups { display: grid; gap: 24px; }
@media (min-width: 760px) { .link-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .link-groups { grid-template-columns: repeat(3, 1fr); } }
.link-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.link-group a { text-decoration: none; }
.link-group a:hover { text-decoration: underline; }

.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }

.cta-band { background: var(--primary); color: #fff; }
.cta-band__inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band p { margin: 0; opacity: .9; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms (khm-leads renders the markup) */
.khm-form { display: grid; gap: 12px; }
.khm-form label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.khm-form input[type="tel"], .khm-form input[type="text"], .khm-form input[type="email"], .khm-form select, .khm-form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfccc2; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.khm-form textarea { min-height: 96px; resize: vertical; }
.khm-form input:focus, .khm-form select:focus, .khm-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.khm-form .choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.khm-form .choices legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.khm-form .choice { position: relative; }
.khm-form .choice input { position: absolute; opacity: 0; }
.khm-form .choice span { display: inline-block; padding: 8px 14px; border: 1px solid #cfccc2; border-radius: 999px; font-weight: 400; cursor: pointer; }
.khm-form .choice input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.khm-form .choice input:focus-visible + span { outline: 3px solid var(--accent); }
.khm-form .consent { font-weight: 400; font-size: .85rem; color: var(--muted); }
.khm-form .field-error { color: var(--danger); font-size: .875rem; font-weight: 400; }
.khm-form [aria-invalid="true"] { border-color: var(--danger) !important; }
.khm-form .hp { position: absolute; left: -9999px; }
.khm-form__row { display: flex; gap: 8px; }
.khm-form__row input { flex: 1; }
.khm-form__success { padding: 16px; background: var(--primary-soft); border-radius: var(--radius-sm); }
.khm-form__progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.khm-form__progress span { display: block; height: 100%; background: var(--primary); transition: width .2s; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.sticky-cta .btn--primary { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* Footer */
.site-footer { margin-top: 0; padding: 40px 0 88px; background: #16201e; color: #c9d1ce; }
.site-footer a { color: #e7ece9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .muted { color: #93a09c; }
.site-footer__grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } .site-footer { padding-bottom: 40px; } }
.site-footer__brand { font-weight: 700; color: #fff; font-size: 1.1rem; }
.site-footer__title { font-weight: 600; color: #fff; }
.site-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer__bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid #2a3633; font-size: .875rem; }

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

/* Reviews */
.reviews { display: grid; gap: 12px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
.review { margin: 0; }
.review__stars { color: var(--accent); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 8px 0; }
.review__reply { margin: 8px 0 0; padding: 8px 10px; background: var(--surface-alt); border-radius: 8px; }

/* Resort band on the home page */
.resort-band { background: linear-gradient(180deg, #e8f1f7, var(--bg)); }
