/* ==========================================================================
   13 — Content: blog, posts, pages, about, contact, faq, search, 404, comments
   ========================================================================== */

/* ---------- Blog teaser / post cards ---------- */
.posts-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow var(--t); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.post-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--green-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--green); background: radial-gradient(circle at 70% 30%, #F6DFA0, var(--green-soft) 70%); }
.post-card__ph .ico { width: 64px; height: 64px; stroke-width: 1.2; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--muted); }
.post-card__title { font-size: var(--fs-lg); line-height: 1.6; }
.post-card__title a:hover { color: var(--green); }
.post-card__excerpt { color: var(--muted); font-size: var(--fs-sm); flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; font-size: var(--fs-sm); }
.post-card__more .ico { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.post-card:hover .post-card__more .ico { transform: translateX(-4px); }

/* ---------- Blog / archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 6px; }
.archive-head .kicker { margin: 0; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px calc(var(--gutter) * -1) 0; padding: 2px var(--gutter); }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .chip { flex-shrink: 0; }
.posts-grid--feature > .post-card:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.posts-grid--feature > .post-card:first-child { flex-direction: row; }
	.posts-grid--feature > .post-card:first-child .post-card__media { flex: 0 0 55%; aspect-ratio: auto; min-height: 320px; }
	.posts-grid--feature > .post-card:first-child .post-card__body { padding: 32px; justify-content: center; }
	.posts-grid--feature > .post-card:first-child .post-card__title { font-size: var(--fs-xl); }
}

/* ---------- Single post ---------- */
.article { padding-bottom: 20px; }
.article__cover { margin: 8px 0 32px; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16/8; background: var(--green-soft); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { background: var(--white); border-radius: var(--r-xl); padding: clamp(22px, 5vw, 56px); border: 1px solid var(--line); }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.article__share { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--fs-sm); color: var(--muted); }
.article__share .btn { --h: 40px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.toc__title { font-weight: 800; color: var(--green-deep); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.toc ol { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); }
.toc a { display: block; padding: 6px 10px; border-radius: var(--r-xs); color: var(--ink-2); border-right: 2px solid transparent; }
.toc a:hover, .toc a.is-on { background: var(--cream); color: var(--green); border-color: var(--gold); }
.aside-cta { margin-top: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--green-deep) url("../img/pattern.svg") 0 0/120px; color: #EDE7D6; display: flex; flex-direction: column; gap: 10px; }
.aside-cta b { color: #fff; font-size: var(--fs-lg); }
.aside-cta .btn { align-self: flex-start; }
.post-nav { display: grid; gap: 12px; margin-top: 24px; }
.post-nav a { display: flex; flex-direction: column; padding: 16px 18px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: border-color var(--t); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { color: var(--muted); font-size: var(--fs-xs); }
.post-nav b { color: var(--green-deep); font-size: var(--fs-sm); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav a:last-child { text-align: left; } }
.related { margin-top: var(--sec); }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; padding: clamp(20px, 4vw, 40px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); }
.comments__title { font-size: var(--fs-xl); margin-bottom: 18px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-list .children { margin: 14px 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.comment-body { padding: 16px 18px; border-radius: var(--r); background: var(--cream); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.comment-author .avatar { border-radius: 50%; width: 36px; height: 36px; }
.comment-author .fn { font-style: normal; font-weight: 800; color: var(--green-deep); }
.comment-author .says { display: none; }
.comment-content { font-size: var(--fs-sm); }
.reply { margin-top: 6px; font-size: var(--fs-xs); font-weight: 700; }
.reply a { color: var(--green); }
.comment-respond { margin-top: 26px; }
.comment-reply-title { font-size: var(--fs-lg); margin-bottom: 12px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-form label { font-size: var(--fs-sm); font-weight: 700; }
.comment-form .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.comment-form .form-submit { align-items: flex-start; }
.comment-notes, .logged-in-as { font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Page ---------- */
.page-body { background: var(--white); border-radius: var(--r-xl); padding: clamp(22px, 5vw, 56px); border: 1px solid var(--line); }

/* ---------- About ---------- */
.about-hero { position: relative; padding: clamp(32px, 6vw, 72px) 0; overflow: hidden; }
.about-hero__in { display: grid; gap: 32px; align-items: center; }
.about-hero__title { font-size: var(--fs-3xl); font-weight: 900; line-height: 1.35; }
.about-hero__title em { font-style: normal; color: var(--gold); }
.about-hero__lead { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-lg); max-width: 560px; }
.about-hero__logo { width: min(320px, 70%); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(6,61,33,.2)); animation: floaty 7s var(--ease-io) infinite; }
@media (min-width: 900px) { .about-hero__in { grid-template-columns: 1.2fr .8fr; } }
.timeline { position: relative; display: grid; gap: 14px; margin: 8px 0 var(--sec); }
.timeline__item { position: relative; display: flex; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.timeline__dot { flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--gold-light); font-weight: 900; }
.timeline__dot .ico { width: 26px; height: 26px; }
.timeline__item b { display: block; color: var(--green-deep); margin-bottom: 4px; }
.timeline__item p { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 900px) {
	.timeline { grid-template-columns: repeat(4, 1fr); gap: 18px; }
	.timeline__item { flex-direction: column; }
	.timeline__item:not(:last-child)::after { content: ""; position: absolute; top: 46px; left: -19px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 8px); }
}
.about-body { display: grid; gap: 32px; }
@media (min-width: 1024px) { .about-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.about-quote { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--gold-soft); color: var(--brown); font-weight: 700; line-height: 2; }
.about-quote .ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 6px; }
.about-quote small { display: block; margin-top: 10px; font-weight: 500; color: var(--green); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 32px; } }
.contact__cards { display: grid; gap: 12px; align-content: start; }
.c-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: border-color var(--t); }
a.c-card:hover { border-color: var(--gold); }
.c-card__ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--gold-light); flex-shrink: 0; }
.c-card small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.c-card b { color: var(--green-deep); }
.contact__form { padding: clamp(20px, 4vw, 36px); border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); display: grid; gap: 14px; }
.contact__form .grid2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .contact__form .grid2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: var(--r); background: var(--green-soft); color: var(--green); font-weight: 700; font-size: var(--fs-sm); }

/* ---------- FAQ accordion ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: var(--r); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq__item[open] { border-color: var(--gold); box-shadow: var(--sh-1); }
.faq__q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 800; color: var(--green-deep); cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ico { transition: transform var(--t) var(--ease); color: var(--gold); }
.faq__item[open] .faq__q .ico { transform: rotate(180deg); }
.faq__a { padding: 0 20px 20px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.e404 { text-align: center; padding: var(--sec) 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.e404__num { font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 900; line-height: 1; color: var(--green); display: flex; align-items: center; gap: 10px; }
.e404__num .date { width: .55em; height: .8em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C8612F, #6B2510); transform: rotate(20deg); }
.e404 p { color: var(--muted); max-width: 440px; }
.e404 form { width: min(100%, 440px); display: flex; gap: 8px; }

/* ---------- Search ---------- */
.search-inline { display: flex; gap: 8px; margin-top: 16px; max-width: 520px; }
.search-inline .input { flex: 1; }
.search-inline .btn { flex-shrink: 0; width: 50px; padding: 0; }
.search-block + .search-block { margin-top: 48px; }
.search-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-block__head h2 { font-size: var(--fs-xl); }
