/* ============ კაი ამბები — main.css ============ */
:root {
	--sun: #FFB703;
	--sun-deep: #FB8500;
	--teal: #2A9D8F;
	--teal-deep: #1f7a6f;
	--cream: #FFFBF2;
	--cream-2: #FFF3D6;
	--ink: #1f2a37;
	--ink-soft: #5b6573;
	--line: #f0e3c4;
	--white: #fff;
	--radius: 20px;
	--shadow: 0 10px 30px -12px rgba(122, 62, 0, .25);
	--shadow-lg: 0 24px 50px -18px rgba(122, 62, 0, .35);
	--font: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-head: 'Noto Serif Georgian', 'Noto Sans Georgian', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	color: var(--ink);
	background: var(--cream);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(760px, 92%); }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; background: #fff; padding: 10px 14px; z-index: 999; border-radius: 8px; }

/* ---------- buttons ---------- */
.ka-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(135deg, var(--sun), var(--sun-deep));
	color: #3b1d00; font: 700 15px var(--font);
	padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(251,133,0,.7);
	transition: transform .2s, box-shadow .2s;
}
.ka-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(251,133,0,.8); }
.ka-btn--dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,42,55,.6); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #ffe9a8; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.topbar a { color: var(--sun); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,251,242,.88);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__sun { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand__text { font: 800 26px var(--font-head); letter-spacing: -.5px; }
.brand__text b { color: var(--sun-deep); }
.primary-nav { margin-left: auto; }
.primary-nav .menu, .footer__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.primary-nav a {
	display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
	transition: background .2s, color .2s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: var(--cream-2); color: var(--sun-deep); }
.search-toggle, .nav-toggle { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; border-radius: 50%; }
.search-toggle:hover { background: var(--cream-2); }
.nav-toggle { display: none; width: 42px; height: 42px; position: relative; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; transition: .3s; }
.search-panel { border-top: 1px solid var(--line); padding: 14px 0; background: var(--cream); }
.search-form { display: flex; gap: 10px; }
.search-form input {
	flex: 1; padding: 12px 18px; border: 2px solid var(--line); border-radius: 999px;
	font: 16px var(--font); background: #fff; outline: none; transition: border-color .2s;
}
.search-form input:focus { border-color: var(--sun); }

/* ---------- hero ---------- */
.hero { padding: 36px 0 16px; }
.hero__card {
	position: relative; display: flex; align-items: flex-end; min-height: 460px;
	border-radius: 28px; overflow: hidden; color: #fff; box-shadow: var(--shadow-lg);
	background:
		linear-gradient(180deg, rgba(31,42,55,0) 25%, rgba(31,42,55,.85) 100%),
		var(--bg, linear-gradient(135deg, var(--sun) 0%, var(--sun-deep) 55%, #e76f51 100%));
	background-size: cover; background-position: center;
	transition: transform .4s;
}
.hero__card:hover { transform: translateY(-3px); }
.hero__card--munchausen {
	background:
		linear-gradient(180deg, rgba(45,10,80,0) 25%, rgba(45,10,80,.9) 100%),
		var(--bg);
	background-size: cover;
	background-position: center;
}
.hero__card--munchausen .hero__badge {
	background: #faf5ff;
	color: #6b21a8;
	border: 1px solid #d8b4fe;
}
.hero__card--munchausen .hero__more {
	color: #e9d5ff;
}
.hero__card--empty { color: #3b1d00; background: linear-gradient(135deg, #ffd166 0%, var(--sun) 50%, var(--sun-deep) 100%); }
.hero__card--empty::after {
	content: '☀️'; position: absolute; right: 6%; top: 8%; font-size: 150px; opacity: .35; animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(6deg); } }
.hero__badge {
	position: absolute; top: 22px; left: 22px; background: rgba(255,255,255,.95); color: #7a3e00;
	font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero__content { padding: 40px; max-width: 780px; }
.hero__title { font-size: clamp(22px, 3vw, 36px); line-height: 1.32; margin: 12px 0; }
.hero__excerpt { font-size: 17px; opacity: .92; margin: 0 0 16px; }
.hero__more { font-weight: 700; color: var(--sun); }

/* ---------- chips ---------- */
.chip {
	display: inline-block; font: 700 12px var(--font); padding: 5px 12px; border-radius: 999px;
	background: var(--cream-2); color: #7a3e00; letter-spacing: .2px;
}
.chip--light { background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(6px); }
.chip.cat-people { background: #ffe1e1; color: #b3261e; }
.chip.cat-success { background: #fff0c2; color: #8a5a00; }
.chip.cat-good-deeds { background: #d9f3ec; color: #14695d; }
.chip.cat-business { background: #e2e6ff; color: #3b45a8; }
.chip.cat-nature-city { background: #dff5d8; color: #2c6b1b; }
.chip.cat-animals { background: #fde4f1; color: #a4286b; }
.chip.cat-munchausen { background: #f3e8ff; color: #7e22ce; }
.chip.cat-sport { background: #e0f2fe; color: #0284c7; }
.chip.cat-fashion { background: #fce7f3; color: #db2777; }

/* ---------- stats ---------- */
.stats__in {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.stats__in div { text-align: center; }
.stats__in b { display: block; font: 800 30px var(--font-head); color: var(--sun-deep); }
.stats__in span { font-size: 13px; color: var(--ink-soft); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--cream-2); }
.section__head { margin-bottom: 28px; }
.section__head h1, .section__head h2 { font-size: clamp(24px, 3vw, 34px); position: relative; display: inline-block; }
.section__head h1::after, .section__head h2::after {
	content: ''; display: block; height: 6px; width: 60%; background: var(--sun); border-radius: 6px; margin-top: 6px;
}
.section__desc { color: var(--ink-soft); margin-top: 8px; }
.empty { color: var(--ink-soft); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
	background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder { display: grid; place-items: center; height: 100%; font-size: 54px; background: linear-gradient(135deg, #ffe08a, var(--sun)); }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 20px; margin: 4px 0 0; }
.card__title a:hover { color: var(--sun-deep); }
.card__excerpt { margin: 0; color: var(--ink-soft); font-size: 15px; }
.meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.meta__joy { margin-left: auto; }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
	display: flex; flex-direction: column; gap: 4px; padding: 26px; border-radius: var(--radius);
	background: #fff; border: 2px solid transparent; box-shadow: var(--shadow); transition: .25s;
	border-left: 8px solid var(--sun);
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--sun); }
.cat-tile__name { font: 700 20px var(--font-head); }
.cat-tile__count { font-size: 13px; color: var(--ink-soft); }
.cat-tile.cat-people { border-left-color: #e63946; }
.cat-tile.cat-success { border-left-color: var(--sun); }
.cat-tile.cat-good-deeds { border-left-color: var(--teal); }
.cat-tile.cat-business { border-left-color: #5c6bc0; }
.cat-tile.cat-nature-city { border-left-color: #5fa84a; }
.cat-tile.cat-animals { border-left-color: #d6409f; }
.cat-tile.cat-munchausen { border-left-color: #9333ea; }
.cat-tile.cat-sport { border-left-color: #0284c7; }
.cat-tile.cat-fashion { border-left-color: #db2777; }

/* ---------- CTA / newsletter ---------- */
.cta { padding: 64px 0; }
.cta__in {
	text-align: center; padding: 56px 24px; border-radius: 28px; color: #fff;
	background: linear-gradient(135deg, var(--teal), var(--teal-deep));
	box-shadow: var(--shadow-lg);
}
.cta__in h2 { font-size: clamp(24px, 3.4vw, 38px); }
.cta__in p { opacity: .92; margin-bottom: 22px; }
.newsletter { background: var(--sun); padding: 40px 0; }
.newsletter__in { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.newsletter h2 { font-size: 24px; margin-bottom: 4px; color: #3b1d00; }
.newsletter p { margin: 0; color: #5a3000; }
.newsletter__form { display: flex; gap: 8px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter__form input { flex: 1; padding: 13px 18px; border: 0; border-radius: 999px; font: 15px var(--font); outline: none; }

/* ---------- single ---------- */
.single__head { padding-top: 36px; padding-bottom: 8px; }
.single__title {
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.28;
	font-weight: 700;
	letter-spacing: -.4px;
	margin: 14px 0 16px;
	color: var(--ink);
}
.single__head .chip { font-size: 13px; padding: 6px 14px; }
.single__head .meta { font-size: 14px; color: var(--ink-soft); gap: 8px; }
.single__media { margin: 20px auto 32px; }
.single__media img { border-radius: 20px; width: 100%; box-shadow: var(--shadow-lg); }
.entry { font-size: 18px; line-height: 1.7; padding-bottom: 40px; }
.entry p { margin: 0 0 1.3em; }

/* ---------- munchausen disclaimer ---------- */
.munchausen-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #faf5ff;
	border: 2px dashed #c084fc;
	border-radius: 18px;
	padding: 18px 22px;
	margin: 0 0 28px;
	color: #581c87;
	box-shadow: 0 4px 16px -6px rgba(147, 51, 234, .18);
}
.munchausen-disclaimer__icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}
.munchausen-disclaimer__title {
	font-weight: 800;
	font-size: 17px;
	margin-bottom: 4px;
	color: #6b21a8;
}
.munchausen-disclaimer__text {
	font-size: 15px;
	line-height: 1.55;
	color: #7e22ce;
}
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry blockquote { border-left: 6px solid var(--sun); background: var(--cream-2); margin: 1.6em 0; padding: 16px 22px; border-radius: 0 16px 16px 0; font-family: var(--font-head); }
.entry a { color: var(--sun-deep); text-decoration: underline; }
.joy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; margin-top: 36px; padding-top: 24px; border-top: 2px dashed var(--line); }
.joy__btn {
	display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--sun);
	padding: 12px 22px; border-radius: 999px; font: 700 16px var(--font); cursor: pointer; transition: .2s;
}
.joy__btn:hover { background: var(--sun); }
.joy__btn.is-done { background: var(--sun); cursor: default; }
.joy__btn.is-done .joy__emoji { animation: pop .6s; }
@keyframes pop { 30% { transform: scale(1.8) rotate(-12deg); } }
.share { display: flex; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.share a, .share button { background: var(--cream-2); border: 0; padding: 8px 14px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--sun); }

/* ---------- forms ---------- */
.ka-form { display: grid; gap: 16px; background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ka-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ka-form input, .ka-form textarea { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: 16px var(--font); outline: none; }
.ka-form input:focus, .ka-form textarea:focus { border-color: var(--sun); }
.ka-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.ka-notice--ok { background: #d9f3ec; color: #14695d; }
.ka-notice--err { background: #ffe1e1; color: #b3261e; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.pagination .current, .pagination .page-numbers:hover { background: var(--sun); border-color: var(--sun); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 40px 0; }
.notfound__emoji { font-size: 90px; animation: float 5s ease-in-out infinite; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfd6df; padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.brand--footer .brand__text { color: #fff; }
.footer__about { max-width: 360px; font-size: 15px; }
.site-footer .widget__title { color: #fff; font-size: 16px; }
.footer__list { flex-direction: column; gap: 8px; font-size: 15px; }
.footer__list a:hover { color: var(--sun); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #8b95a3; }
.to-top {
	position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--sun); color: #3b1d00; font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 40;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	.grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.nav-toggle { display: block; margin-left: auto; }
	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line);
		padding: 12px 4%; display: none; margin: 0;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.grid, .cat-grid, .footer__grid { grid-template-columns: 1fr; }
	.hero__card { min-height: 380px; border-radius: 22px; }
	.hero__content { padding: 24px; }
	.topbar span { display: none; }
	.stats__in b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
.brand__logo { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; animation: spin 40s linear infinite; }

/* fixes: logo & nav wrapping */
.brand { flex-shrink: 0; white-space: nowrap; }
.brand__logo { animation: none; border-radius: 50%; mix-blend-mode: normal; }
.primary-nav .menu { display: flex; align-items: center; gap: 6px; }
.primary-nav a { padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; border-radius: 999px; }
@media (max-width: 760px) { .primary-nav .menu { flex-direction: column; align-items: stretch; } .primary-nav a { font-size: 15px; padding: 10px 14px; } }

/* ---------- category sub-bar ---------- */
.cat-bar {
	background: #fff;
	border-bottom: 1px solid var(--line);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar__in {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	white-space: nowrap;
}
.cat-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	font: 600 13px var(--font);
	background: var(--cream-2);
	color: var(--ink);
	border: 1px solid transparent;
	transition: all .2s;
	flex-shrink: 0;
}
.cat-pill:hover {
	background: var(--sun);
	color: #3b1d00;
	transform: translateY(-1px);
}
.cat-pill.is-active {
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}
.cat-pill.cat-munchausen {
	background: #f3e8ff;
	color: #7e22ce;
}
.cat-pill.cat-munchausen:hover, .cat-pill.cat-munchausen.is-active {
	background: #7e22ce;
	color: #fff;
}
.cat-pill.cat-sport:hover, .cat-pill.cat-sport.is-active {
	background: #0284c7;
	color: #fff;
}
.cat-pill.cat-fashion:hover, .cat-pill.cat-fashion.is-active {
	background: #db2777;
	color: #fff;
}

/* ---------- section munchausen ---------- */
.section--munchausen {
	background: linear-gradient(180deg, #faf5ff 0%, #f5edff 100%);
	border-top: 1px solid #e9d5ff;
	border-bottom: 1px solid #e9d5ff;
}
.section__head--munchausen h2 {
	color: #581c87;
}
.section__head--munchausen h2::after {
	background: #9333ea;
}
