/* =========================================================
   Стиль-Н — interior pages (contacts / about / portfolio /
   blog / single article / 404). Loaded off the front page.
   Reuses the design tokens from main.css.
   ========================================================= */

/* ---- Section scaffolding (mirrors home.css, which is front-only) ---- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }
.section--dark { background: var(--c-purple-800); color: #fff; }
.section--flush-top { padding-top: 0; }
.section__head { max-width: 760px; margin: 0 0 var(--s-12); text-align: left; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__kicker { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-purple); margin: 0 0 var(--s-4); }
.section__kicker::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; background: var(--c-yellow); border-radius: 50%; }
.section__kicker--light { color: var(--c-yellow); }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.16; letter-spacing: -.02em; color: var(--c-ink); }
.section__title--light { color: #fff; }
.section__subtitle { color: var(--c-muted); font-size: 1.06rem; margin-top: var(--s-4); }

/* =========================================================
   PAGE HERO — plum band shared by all interior pages
   ========================================================= */
.page-hero {
    position: relative; overflow: hidden; color: var(--c-ink);
    padding-block: clamp(3rem, 6vw, 5.5rem);
    background: var(--c-surface); border-bottom: 1px solid var(--c-rule);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner { max-width: 820px; }
.page-hero__inner--wide { max-width: 960px; }
.page-hero__kicker { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-purple); margin: 0 0 var(--s-4); }
.page-hero__kicker::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; background: var(--c-yellow); border-radius: 50%; }
.page-hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -.01em; color: var(--c-ink); margin: 0; }
.page-hero__lead { color: var(--c-ink-soft); font-size: clamp(1.02rem, 1.2vw, 1.16rem); line-height: 1.6; max-width: 60ch; margin: var(--s-5) 0 0; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

/* ---- Breadcrumbs (Yoast SEO markup: <span><a>..</a></span> / <span class="breadcrumb_last">) ---- */
.breadcrumbs { font-size: .84rem; color: var(--c-muted); margin-bottom: var(--s-5); line-height: 1.6; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; transition: color .18s; }
.breadcrumbs a:hover { color: var(--c-purple); }
.breadcrumbs > span { display: inline; }
.breadcrumbs .breadcrumb_last,
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 600; }
.breadcrumbs__sep { opacity: .5; }

/* =========================================================
   Shared: CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); background: var(--c-purple); box-shadow: var(--shadow); display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: var(--s-8); }
.cta-band::before { content: ""; position: absolute; top: -160px; right: -120px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(241, 207, 20, .14), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; color: #fff; margin: 0; }
.cta-band__text { color: rgba(255, 255, 255, .82); margin: var(--s-3) 0 0; max-width: 48ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* =========================================================
   CONTACTS
   ========================================================= */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.contact-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--c-lilac-100); color: var(--c-purple); transition: background .25s, color .25s; }
.contact-card__icon .icon { width: 26px; height: 26px; }
.contact-card:hover .contact-card__icon { background: var(--c-yellow); color: var(--c-purple-800); }
.contact-card__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.contact-card__value { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--c-ink); line-height: 1.25; }
.contact-card__note { font-size: .88rem; color: var(--c-muted); margin: 0; }

.contact-split { display: grid; grid-template-columns: .95fr 1.15fr; gap: var(--s-10); align-items: start; }
.contact-map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); min-height: 460px; background: var(--c-lilac-100); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }

.dept-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.dept { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); transition: border-color .2s, box-shadow .25s; }
.dept:hover { border-color: var(--c-lilac-200); box-shadow: var(--shadow-sm); }
.dept__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c-lilac-100); color: var(--c-purple); }
.dept__name { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }
.dept__role { font-size: .86rem; color: var(--c-muted); }
.dept__contact { font-family: var(--font-display); font-weight: 700; color: var(--c-purple); text-decoration: none; white-space: nowrap; }
.dept__contact:hover { color: var(--c-purple-700); }

.requisites { margin-top: var(--s-8); padding: var(--s-6); background: var(--c-lilac-50); border: 1px dashed var(--c-lilac-200); border-radius: var(--r); }
.requisites h3 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 var(--s-4); }
.requisites dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); margin: 0; font-size: .92rem; }
.requisites dt { color: var(--c-muted); }
.requisites dd { margin: 0; color: var(--c-ink); font-weight: 600; }

/* =========================================================
   ABOUT
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.stat { text-align: center; padding: var(--s-6) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--c-purple); line-height: 1; letter-spacing: -.02em; }
.stat__num .suffix { color: var(--c-yellow-600); }
.stat__label { margin: var(--s-3) 0 0; font-size: .92rem; color: var(--c-muted); }

.about-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 380px; background: var(--c-purple); box-shadow: var(--shadow); display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.about-split__media::before { content: ""; position: absolute; top: -80px; left: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(241, 207, 20, .12); }
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
.about-split__badge { position: absolute; left: var(--s-5); bottom: var(--s-5); background: var(--c-yellow); color: var(--c-purple-800); font-family: var(--font-display); font-weight: 800; padding: var(--s-3) var(--s-5); border-radius: var(--r); box-shadow: var(--shadow); }
.about-split__badge span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.prose p { color: var(--c-ink-soft); line-height: 1.8; margin: 0 0 var(--s-4); }
.prose p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline { position: relative; display: grid; gap: var(--s-8); padding-left: var(--s-8); }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--c-lilac-200) 0 8px, transparent 8px 15px); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: calc(-1 * var(--s-8) + 8px); top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--c-yellow); border: 3px solid var(--c-surface); box-shadow: 0 0 0 2px var(--c-lilac-200); }
.tl__year { font-family: var(--font-display); font-weight: 800; color: var(--c-purple); font-size: 1.15rem; }
.tl__title { font-family: var(--font-display); font-weight: 700; margin: var(--s-1) 0 var(--s-2); font-size: 1.1rem; color: var(--c-ink); }
.tl__text { color: var(--c-muted); margin: 0; line-height: 1.65; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.value { padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .3s; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--c-lilac-100); color: var(--c-purple); }
.value__icon .icon { width: 26px; height: 26px; }
.value__title { font-size: 1.15rem; margin: var(--s-4) 0 var(--s-2); }
.value__text { color: var(--c-muted); line-height: 1.6; margin: 0; font-size: .95rem; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.member { text-align: center; }
.member__avatar { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; background: var(--grad-purple); box-shadow: var(--shadow-sm); }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.member__name { font-family: var(--font-display); font-weight: 700; margin: var(--s-4) 0 var(--s-1); color: var(--c-ink); }
.member__role { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.pf-filter { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s-2); margin-bottom: var(--s-10); }
.pf-chip { padding: .55rem 1.15rem; border-radius: var(--r-pill); border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-ink-soft); font-family: var(--font-display); font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.pf-chip:hover { border-color: var(--c-purple-400); color: var(--c-purple); }
.pf-chip.is-active { background: var(--c-purple); border-color: var(--c-purple); color: #fff; box-shadow: 0 8px 20px rgba(60, 0, 117, .28); }

.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.pf-item { border: 0; padding: 0; text-align: left; background: none; cursor: pointer; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--c-surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pf-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-item.is-hidden { display: none; }
.pf-item__cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(255, 255, 255, .92); overflow: hidden; }
.pf-item__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-item__cover .icon { width: 54px; height: 54px; opacity: .9; }
.pf-item__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20, 8, 54, .5)); opacity: 0; transition: opacity .3s; }
.pf-item:hover .pf-item__cover::after { opacity: 1; }
.pf-item__tag { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; background: rgba(255, 255, 255, .92); color: var(--c-purple-800); font-size: .74rem; font-weight: 700; padding: .3rem .7rem; border-radius: var(--r-pill); }
.pf-item__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.pf-item__title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--c-ink); margin: 0; }
.pf-item__meta { font-size: .86rem; color: var(--c-muted); margin: 0; display: flex; align-items: center; gap: var(--s-2); }
/* Flat brand-only placeholder covers (favicon purple shades + one gold) */
.pf-cover--a { background: #3c0075; }
.pf-cover--b { background: #300468; }
.pf-cover--c { background: #240250; }
.pf-cover--d { background: #4a1088; }
.pf-cover--e { background: var(--c-yellow); color: var(--c-purple-800); }
.pf-cover--e .icon { color: var(--c-purple-800); }
.pf-empty { text-align: center; color: var(--c-muted); padding: var(--s-10); grid-column: 1 / -1; }
a.pf-item__cover { text-decoration: none; }
.pf-item__title a { color: inherit; text-decoration: none; transition: color .18s; }
.pf-item__title a:hover { color: var(--c-purple); }

/* Portfolio prose (listing + subcategory description blocks) */
.pf-prose { max-width: 860px; }
.pf-prose .section__head { margin-bottom: var(--s-6); }

/* Single portfolio work */
.pf-single__layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pf-single__media { position: relative; }
.pf-single__img, .pf-single__cover { display: block; width: 100%; border-radius: var(--r-lg); border: 1px solid var(--c-line); overflow: hidden; }
.pf-single__cover { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--c-purple); }
.pf-single__cover .icon { width: 72px; height: 72px; opacity: .55; }
.pf-single__img { height: auto; }

/* Gallery-as-media: a lead photo + thumbnail strip, merged with the
   description into one block. All share the "pf-work" lightbox group. */
.pf-single__figure { margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.pf-single__lead { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 3 / 2; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.pf-single__lead img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.pf-single__lead:hover { border-color: var(--c-purple-400); box-shadow: var(--shadow); }
.pf-single__lead:hover img { transform: scale(1.04); }
.pf-single__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--s-2); }
.pf-single__thumb { position: relative; padding: 0; aspect-ratio: 1 / 1; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; background: var(--c-surface); cursor: pointer; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.pf-single__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-single__thumb:hover { border-color: var(--c-purple); transform: translateY(-2px); }
.pf-single__hint { display: inline-flex; align-items: center; gap: .5rem; margin: var(--s-6) 0 0; font-size: .86rem; color: var(--c-muted); }
.pf-single__hint .icon { color: var(--c-purple); }

.pf-single .article-body { font-size: 1.02rem; line-height: 1.75; }
.btn__arrow--back { transform: rotate(180deg); }
.btn--outline:hover .btn__arrow--back { transform: rotate(180deg) translateX(4px); }
@media (max-width: 860px) { .pf-single__layout { grid-template-columns: 1fr; } }

/* Portfolio gallery (repeater) → grouped lightbox */
.pf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.pf-gallery__item { position: relative; display: block; padding: 0; border: 1px solid var(--c-line); border-radius: var(--r); overflow: hidden; background: var(--c-surface); cursor: pointer; aspect-ratio: 3 / 2; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.pf-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pf-gallery__item:hover { border-color: var(--c-purple-400); box-shadow: var(--shadow); transform: translateY(-2px); }
.pf-gallery__item:hover img { transform: scale(1.05); }
.pf-gallery__zoom { position: absolute; top: var(--s-3); right: var(--s-3); width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(255, 255, 255, .92); color: var(--c-purple); opacity: 0; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.pf-gallery__item:hover .pf-gallery__zoom, .pf-gallery__item:focus-visible .pf-gallery__zoom,
.pf-single__lead:hover .pf-gallery__zoom, .pf-single__lead:focus-visible .pf-gallery__zoom { opacity: 1; transform: none; }
.pf-gallery__zoom .icon { width: 20px; height: 20px; }
@media (max-width: 700px) { .pf-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .pf-gallery { grid-template-columns: 1fr; } }

/* Lightbox — grouped, arrow/mouse/keyboard navigation */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(12, 6, 28, .92); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); max-width: min(1100px, 100%); }
.lightbox__img { max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: var(--r); background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.lightbox__caption { color: rgba(255, 255, 255, .88); font-size: .98rem; text-align: center; margin: 0; }
.lightbox__counter { color: rgba(255, 255, 255, .5); font-size: .78rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; border-radius: var(--r-pill); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); width: 46px; height: 46px; }
.lightbox__prev { left: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
@media (max-width: 560px) { .lightbox__btn { width: 44px; height: 44px; } .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; } }

/* =========================================================
   BLOG — cards + featured + archive
   ========================================================= */
.blog-featured { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: stretch; margin-bottom: var(--s-12); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.blog-featured__cover { position: relative; min-height: 320px; display: grid; place-items: center; color: rgba(255, 255, 255, .9); overflow: hidden; }
.blog-featured__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured__cover .icon { width: 64px; height: 64px; opacity: .85; }
.blog-featured__body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.blog-featured__title { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; margin: 0; }
.blog-featured__title a { color: var(--c-ink); text-decoration: none; transition: color .2s; }
.blog-featured__title a:hover { color: var(--c-purple); }
.blog-featured__excerpt { color: var(--c-muted); line-height: 1.7; margin: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.post-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card__cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgba(255, 255, 255, .9); overflow: hidden; }
.post-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__cover .icon { width: 44px; height: 44px; opacity: .85; }
.post-card__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; line-height: 1.3; margin: 0; }
.post-card__title a { color: var(--c-ink); text-decoration: none; transition: color .2s; }
.post-card__title a:hover { color: var(--c-purple); }
.post-card__excerpt { color: var(--c-muted); font-size: .93rem; line-height: 1.6; margin: 0; flex: 1; }
.post-card__foot { display: flex; align-items: center; gap: var(--s-3); font-size: .82rem; color: var(--c-muted); margin-top: auto; }

/* category pill / meta */
.cat-pill { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; background: var(--c-lilac-100); color: var(--c-purple); font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--r-pill); text-decoration: none; transition: background .2s, color .2s; }
.cat-pill:hover { background: var(--c-purple); color: #fff; }
.post-meta { display: inline-flex; align-items: center; gap: var(--s-2); }
.post-meta .icon { width: 15px; height: 15px; color: var(--c-purple); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* blog category nav */
.blog-cats { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s-2); margin-bottom: var(--s-10); }
.blog-cats a { padding: .5rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-ink-soft); font-family: var(--font-display); font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.blog-cats a:hover { border-color: var(--c-purple-400); color: var(--c-purple); }
.blog-cats a.is-active { background: var(--c-purple); border-color: var(--c-purple); color: #fff; }

/* =========================================================
   SINGLE ARTICLE
   ========================================================= */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-gold); z-index: 100; transition: width .1s linear; }

.article { max-width: 820px; margin: 0; }
.article__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-8); box-shadow: var(--shadow); }
.article__cover img { width: 100%; display: block; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); color: var(--c-muted); font-size: .9rem; }
.article__meta .post-meta .icon { color: var(--c-purple); }
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--c-ink-soft); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--c-ink); margin: var(--s-10) 0 var(--s-4); letter-spacing: -.015em; }
.article-body h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--c-ink); margin: var(--s-8) 0 var(--s-3); }
.article-body p { margin: 0 0 var(--s-5); }
.article-body ul, .article-body ol { margin: 0 0 var(--s-5) 1.35rem; display: grid; gap: var(--s-2); }
.article-body li { padding-left: .25rem; }
.article-body a { color: var(--c-purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body a:hover { color: var(--c-purple-700); }
.article-body img { border-radius: var(--r); margin: var(--s-6) 0; box-shadow: var(--shadow-sm); }
.article-body blockquote { margin: var(--s-8) 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--c-yellow); background: var(--c-lilac-50); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--c-ink); font-style: italic; }
.article-body blockquote p { margin: 0; }
.article-body strong { color: var(--c-ink); }
.article-body h2 + p, .article-body h3 + p { margin-top: 0; }

/* Content is always left-aligned (never centred) */
.article-body, .article-body p, .article-body li, .article-body td, .article-body th, .article-body figcaption { text-align: left; }

/* Lists */
.article-body ul, .article-body ol { margin: 0 0 var(--s-5); padding-left: 1.4rem; display: block; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0 0 var(--s-2); padding-left: .25rem; }
.article-body li::marker { color: var(--c-purple); }
.article-body li > ul, .article-body li > ol { margin: var(--s-2) 0 0; }

/* Figures & images (open in the lightbox — see main.js) */
.article-body figure { margin: var(--s-8) 0; }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: var(--r); margin: var(--s-8) 0; box-shadow: var(--shadow-sm); }
.article-body figure img { margin: 0; }
.article-body figcaption { margin-top: var(--s-3); font-size: .86rem; line-height: 1.5; color: var(--c-muted); }
.article-body img.is-zoomable { cursor: zoom-in; transition: filter .2s var(--ease); }
.article-body img.is-zoomable:hover { filter: brightness(.95); }

/* Tables — responsive (JS wraps them in .table-wrap for horizontal scroll) */
.table-wrap { margin: var(--s-8) 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.table-wrap > table { margin: 0; }
.article-body th, .article-body td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--c-line); vertical-align: top; line-height: 1.5; }
.article-body thead th { background: var(--c-lilac-50); color: var(--c-ink); font-weight: 700; white-space: nowrap; }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:hover td { background: var(--c-tint); }

.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--c-line); }
.tags-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags-links a { background: var(--c-lilac-50); color: var(--c-ink-soft); font-size: .82rem; padding: .35rem .8rem; border-radius: var(--r-pill); text-decoration: none; transition: background .2s, color .2s; }
.tags-links a:hover { background: var(--c-purple); color: #fff; }
.share { display: flex; align-items: center; gap: var(--s-3); }
.share__label { font-size: .84rem; color: var(--c-muted); }
.share a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--c-lilac-100); color: var(--c-purple); transition: background .2s, color .2s, transform .2s; }
.share a:hover { background: var(--c-purple); color: #fff; transform: translateY(-3px); }

.author-box { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; margin-top: var(--s-10); padding: var(--s-6); background: var(--c-lilac-50); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; background: var(--grad-purple); }
.author-box__name { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); font-size: 1.1rem; }
.author-box__role { color: var(--c-muted); font-size: .9rem; margin: var(--s-1) 0 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-10); }
.post-nav a { display: block; padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); transition: border-color .2s, box-shadow .25s, transform .2s; }
.post-nav a:hover { border-color: var(--c-lilac-200); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.post-nav__dir { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.post-nav__title { font-family: var(--font-display); font-weight: 700; color: var(--c-ink); margin-top: var(--s-2); display: block; }
.post-nav__next { text-align: right; }

/* =========================================================
   Pagination (shared with archive/blog)
   ========================================================= */
.pagination, .posts-navigation .nav-links { display: flex; gap: var(--s-2); margin-top: var(--s-12); flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-3); border: 1.5px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-ink); background: var(--c-surface); font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.page-numbers:hover { border-color: var(--c-purple-400); color: var(--c-purple); }
.page-numbers.current { background: var(--c-purple); color: #fff; border-color: transparent; }

/* =========================================================
   404
   ========================================================= */
.error404-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); background: var(--c-purple); }
.error404-hero::before {
    content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%); z-index: 0; pointer-events: none;
    width: 480px; height: 480px; border-radius: 50%; background: rgba(241, 207, 20, .08);
}
.error404-hero .container { position: relative; z-index: 1; }
.error404__code { display: inline-flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 18vw, 11rem); line-height: .9; letter-spacing: -.04em; }
.error404__code .zero { position: relative; color: transparent; -webkit-text-stroke: 3px var(--c-yellow); text-stroke: 3px var(--c-yellow); }
.error404__code .zero::after { content: ""; position: absolute; inset: 22% 18%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); }
.error404__title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; margin: var(--s-6) 0 var(--s-3); }
.error404__text { color: rgba(255, 255, 255, .82); max-width: 46ch; margin: 0 auto var(--s-8); line-height: 1.7; }
.error404__search { max-width: 460px; margin: 0 auto var(--s-6); display: flex; gap: var(--s-2); }
.error404__search input[type="search"] { flex: 1; padding: .9rem 1.15rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); color: #fff; font-size: .96rem; }
.error404__search input::placeholder { color: rgba(255, 255, 255, .6); }
.error404__search input:focus { outline: none; border-color: var(--c-yellow); background: rgba(255, 255, 255, .16); }
.error404__search button { border: 0; border-radius: var(--r-pill); padding: 0 1.4rem; background: var(--c-yellow); color: var(--c-purple-800); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.error404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

.error404-links { padding-block: var(--section-y); }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.quick-link { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); color: var(--c-ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .3s, border-color .25s; }
.quick-link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quick-link__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--c-lilac-100); color: var(--c-purple); }
.quick-link:hover .quick-link__icon { background: var(--c-yellow); color: var(--c-purple-800); }
.quick-link__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.quick-link__text { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* =========================================================
   Order block (reused on contacts) — mirrors home.css .order
   ========================================================= */
.order { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 3rem); box-shadow: var(--shadow-sm); }
.order__text { color: var(--c-muted); font-size: 1.04rem; margin: var(--s-4) 0 0; }
.order__contacts { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.order__contacts a { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--c-ink); font-weight: 600; text-decoration: none; }
.order__contacts .icon { color: var(--c-purple); }
.order__contacts a:hover { color: var(--c-purple); }
.cf7-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.wpcf7-form p { margin: 0 0 var(--s-4); }
.wpcf7-form input[type="text"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="email"], .wpcf7-form select, .wpcf7-form textarea { width: 100%; padding: .9rem 1.1rem; border: 1.5px solid var(--c-line); border-radius: var(--r-sm); font-family: inherit; font-size: .96rem; color: var(--c-ink); background: var(--c-bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.wpcf7-form textarea { min-height: 120px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--c-purple-400); box-shadow: 0 0 0 4px rgba(138, 82, 224, .14); background: #fff; }
.cf7-consent { display: flex; align-items: flex-start; gap: var(--s-2); font-size: .82rem; color: var(--c-muted); line-height: 1.45; }
.cf7-consent .wpcf7-list-item { margin: 0; }
.cf7-consent input { width: auto; margin-top: 3px; }
.cf7-submit { margin-bottom: 0 !important; }
.wpcf7-form .wpcf7-submit { width: 100%; padding: 1.05rem; border: 0; border-radius: var(--r-pill); cursor: pointer; background: var(--grad-purple); color: #fff; font-family: var(--font-text); font-weight: 700; font-size: 1rem; box-shadow: 0 10px 24px rgba(60, 0, 117, .3); transition: transform .2s var(--ease), box-shadow .2s; }
.wpcf7-form .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(60, 0, 117, .42); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .values { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(2, 1fr); }
    .pf-grid, .post-grid, .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .contact-split { grid-template-columns: 1fr; }
    .about-split { grid-template-columns: 1fr; }
    .about-split__media { min-height: 300px; }
    .cta-band { grid-template-columns: 1fr; text-align: left; }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured__cover { min-height: 220px; }
    .quick-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .contact-cards { grid-template-columns: 1fr; }
    .pf-grid, .post-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(2, 1fr); }
    .dept { grid-template-columns: 40px 1fr; }
    .dept__contact { grid-column: 2; }
    .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .cf7-grid { grid-template-columns: 1fr; }
    .article-foot { flex-direction: column; align-items: flex-start; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__next { text-align: left; }
    .quick-links { grid-template-columns: 1fr; }
    .order { grid-template-columns: 1fr; gap: var(--s-8); }
    .values { grid-template-columns: 1fr; }
}
