/* US Academy — shared website chrome & components.
   Pairs with ./styles.css (tokens). Page-specific rules stay inline per page. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--surface-page);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--text-strong); margin: 0; font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[data-lucide] { width: 20px; height: 20px; stroke-width: 2; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--pad-desktop); }
.section { padding: var(--section-pad) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--color-secondary); letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.section-head { max-width: 680px; margin: 0 0 var(--space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin: 12px 0 14px; }
.section-head p { font-size: var(--fs-body-lg); color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: var(--fs-body); font-weight: var(--fw-semibold);
  padding: 13px 22px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .05s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn [data-lucide] { width: 18px; height: 18px; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary { background: #fff; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-secondary:hover { border-color: var(--color-primary); background: var(--color-light-blue); }
.btn-ghost { background: transparent; color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-light-blue); }
.btn-lg { padding: 16px 28px; font-size: var(--fs-body-lg); }
.btn-sm { padding: 9px 15px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--color-secondary); font-weight: var(--fw-semibold); }
.link-arrow [data-lucide] { width: 17px; height: 17px; transition: transform .18s ease; }
.link-arrow:hover [data-lucide] { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: var(--fw-bold); color: var(--text-strong); font-size: 19px; letter-spacing: -0.02em; flex: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1565C0, #0B4F8A); color: #fff; flex: none;
}
.logo-mark [data-lucide] { width: 21px; height: 21px; }
.logo-img { height: 40px; width: auto; max-width: none; flex: none; aspect-ratio: 2700 / 475; display: block; }
.logo > span:last-child { display: flex; flex-direction: column; line-height: 1.12; white-space: nowrap; }
.logo small { font-size: 11px; font-weight: var(--fw-medium); color: var(--text-muted); letter-spacing: 0.02em; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); font-size: var(--fs-body); font-weight: var(--fw-medium);
  color: var(--text-body); transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--color-light-blue); color: var(--color-primary); }
.main-nav a.active { color: var(--color-primary); font-weight: var(--fw-semibold); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-strong); }
.mobile-drawer { display: none; }

/* ===== Course card (shared: catalog + similar) ===== */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.course-thumb { aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); }
.course-thumb.t1 { background: linear-gradient(150deg, #1565C0, #0B4F8A); }
.course-thumb.t2 { background: linear-gradient(150deg, #0E5C9A, #0A3A63); }
.course-thumb.t3 { background: linear-gradient(150deg, #14749B, #0B4F8A); }
.course-thumb.t4 { background: linear-gradient(150deg, #2A5C93, #0A2E4F); }
.course-thumb.t5 { background: linear-gradient(150deg, #0E7C7B, #0B4F70); }
.course-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.course-thumb [data-lucide] { width: 44px; height: 44px; stroke-width: 1.5; opacity: .92; z-index: 1; }
.course-thumb .level-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1; background: rgba(255,255,255,0.95); color: var(--color-primary);
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill);
}
.course-info { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.course-info h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.course-info .desc { font-size: var(--fs-sm); color: var(--text-muted); margin: 10px 0 16px; flex: 1; }
.course-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.spec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-body); background: var(--color-bg); border: 1px solid var(--color-border); padding: 6px 11px; border-radius: var(--radius-pill); }
.spec [data-lucide] { width: 14px; height: 14px; color: var(--color-secondary); }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-border); margin-top: auto; }
.course-foot .price { font-size: var(--fs-sm); color: var(--text-muted); }
.course-foot .price b { display: block; font-size: 18px; color: var(--text-strong); }

.band { background: var(--color-light-blue); }

/* ===== Shared CTA band ===== */
.cta-band { background: linear-gradient(155deg, #0B4F8A 0%, #0A3A63 100%); border-radius: var(--radius-lg); padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255,255,255,.04) 0 2px, transparent 2px 30px); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.cta-band p { color: #C9DDF2; font-size: var(--fs-body-lg); margin: 16px auto 30px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }
.cta-band .btn-primary:hover { background: var(--color-light-blue); }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
@media (max-width: 720px) { .cta-band { padding: 44px 24px; } }

/* ===== UPG (CPD) points badge — amber credential cue ===== */
.upg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--color-amber); background: #FBF3E6; border: 1px solid #EBD9B8; padding: 5px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.upg-badge [data-lucide] { width: 14px; height: 14px; }
.upg-badge.lg { font-size: var(--fs-sm); padding: 7px 14px; }
.upg-badge.lg [data-lucide] { width: 16px; height: 16px; }

/* ===== Course type tag (online / offline) on thumbnails ===== */
.type-tag { position: absolute; top: 14px; right: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.95); color: var(--color-primary); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill); }
.type-tag [data-lucide] { width: 13px; height: 13px; }
.type-tag.offline { color: var(--color-teal); }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); color: var(--text-muted); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb [data-lucide] { width: 15px; height: 15px; opacity: .7; }
.breadcrumb .current { color: var(--text-strong); font-weight: var(--fw-medium); }

/* ===== Footer ===== */
.site-footer { background: #0A2236; color: #AEC2D6; padding: 64px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #8DA6BE; }
.footer-about { font-size: var(--fs-sm); margin-top: 16px; max-width: 300px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: #AEC2D6; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact [data-lucide] { width: 17px; height: 17px; color: #5E8AB0; flex: none; margin-top: 1px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 13px; color: #7B95AD; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; color: #C5D6E6; transition: background .15s ease, color .15s ease; }
.socials a:hover { background: var(--color-secondary); color: #fff; }
.socials [data-lucide] { width: 18px; height: 18px; }

/* ===== Blog: article card (listing + related) ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.article { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease; }
.article:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.article-thumb.a1 { background: linear-gradient(150deg, #1A6FB5, #0B4F8A); }
.article-thumb.a2 { background: linear-gradient(150deg, #0E7C7B, #0B4F70); }
.article-thumb.a3 { background: linear-gradient(150deg, #2A5C93, #0A2E4F); }
.article-thumb.a4 { background: linear-gradient(150deg, #14749B, #0B4F8A); }
.article-thumb.a5 { background: linear-gradient(150deg, #0E5C9A, #0A3A63); }
.article-thumb.a6 { background: linear-gradient(150deg, #1565C0, #0B4F8A); }
.article-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 24px); pointer-events: none; }
.article-thumb > [data-lucide] { width: 40px; height: 40px; stroke-width: 1.5; opacity: .9; z-index: 1; }
.article-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.article-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-secondary); }
.article-body h3 { font-size: var(--fs-h4); line-height: 1.35; margin: 10px 0 10px; }
.article-body p { font-size: var(--fs-sm); color: var(--text-muted); flex: 1; }
.article-foot { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.article-foot span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.article-foot [data-lucide] { width: 14px; height: 14px; }

/* Post-type badge (video / photo / text) on thumbnails */
.post-type { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.95); color: var(--color-primary); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill); }
.post-type [data-lucide] { width: 13px; height: 13px; }
/* `gallery` here is a post-type modifier, not the image-gallery grid; override the .gallery grid rule that would otherwise turn this pill into a 2-col grid box and shift it via margin. */
.post-type.gallery { color: var(--color-teal); display: inline-flex; gap: 6px; margin: 0; }
/* Center play badge for video cards */
.article-thumb .play-badge { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.article-thumb .play-badge i { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--color-primary); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.article-thumb .play-badge [data-lucide] { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }

/* ===== Media placeholder (where a real photo/figure goes) ===== */
.media-ph { position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); overflow: hidden; }
.media-ph.m1 { background: linear-gradient(150deg, #1A6FB5, #0B4F8A); }
.media-ph.m2 { background: linear-gradient(150deg, #0E7C7B, #0B4F70); }
.media-ph.m3 { background: linear-gradient(150deg, #2A5C93, #0A2E4F); }
.media-ph.m4 { background: linear-gradient(150deg, #14749B, #0B4F8A); }
.media-ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px); pointer-events: none; }
.media-ph > [data-lucide] { width: 38px; height: 38px; stroke-width: 1.5; opacity: .8; z-index: 1; }
.media-ph .ph-cap { position: absolute; bottom: 12px; left: 14px; z-index: 1; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11px; letter-spacing: .02em; color: rgba(255,255,255,.78); }

/* Real uploaded/YouTube images filling a card thumb or media placeholder
   (dynamic blog). Sits above the gradient fallback, below badges (z-index:1). */
.article-thumb .thumb-img,
.media-ph .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* ===== Blog post — article shell ===== */
.post-head { padding: 8px 0 0; }
.post-head .kick { font-size: var(--fs-sm); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-secondary); }
.post-head h1 { font-size: var(--fs-h1); line-height: 1.18; margin: 14px 0 0; max-width: 860px; }
.post-head .standfirst { font-size: var(--fs-body-lg); color: var(--text-muted); line-height: 1.6; margin-top: 16px; max-width: 720px; }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.byline .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--color-light-blue-2); color: var(--color-primary); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.byline .who b { font-size: var(--fs-body); color: var(--text-strong); display: block; }
.byline .who .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3px; }
.byline .who .meta span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); }
.byline .who .meta [data-lucide] { width: 15px; height: 15px; }

.post-wrap { max-width: 760px; margin: 0 auto; }

.prose > p { font-size: var(--fs-body-lg); color: var(--text-body); line-height: 1.78; margin-bottom: 22px; }
/* Lead-in: the opening sentence is the article's thesis, so give it quiet
   authority — a step up in size, medium weight, darker ink — rather than a
   drop cap (a short single line has nothing to wrap a floated initial around,
   and it breaks across scripts). One treatment, works for ka/en/ru alike. */
.prose > p:first-of-type { font-size: var(--fs-h4); line-height: 1.55; font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: var(--ls-tight); margin-bottom: 26px; }
.prose h2 { font-size: var(--fs-h3); line-height: 1.3; margin: 44px 0 14px; }
.prose h3 { font-size: var(--fs-h4); line-height: 1.35; margin: 32px 0 10px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; color: var(--text-body); font-size: var(--fs-body-lg); line-height: 1.7; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--color-secondary); }
.prose blockquote { margin: 30px 0; padding: 6px 0 6px 24px; border-left: 3px solid var(--color-secondary); font-size: var(--fs-h4); line-height: 1.5; color: var(--text-strong); font-weight: 500; }
.prose a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 20px 0; display: block; }
.prose figure { margin: 32px 0; }
.prose figure .media-ph { border-radius: var(--radius-lg); aspect-ratio: 16 / 9; }
.prose figcaption { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 11px; text-align: center; line-height: 1.5; }

/* Key takeaways callout */
.takeaways { background: var(--color-light-blue); border: 1px solid var(--color-light-blue-2); border-radius: var(--radius-lg); padding: 24px 28px; margin: 34px 0; }
.takeaways h3 { font-size: var(--fs-h4); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.takeaways h3 [data-lucide] { width: 20px; height: 20px; color: var(--color-primary); }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.takeaways li { display: flex; align-items: flex-start; gap: 11px; font-size: var(--fs-body); color: var(--text-body); line-height: 1.55; }
.takeaways li [data-lucide] { width: 19px; height: 19px; color: var(--color-secondary); flex: none; margin-top: 2px; }

/* Share + tags */
.share-row { display: flex; align-items: center; gap: 11px; margin: 38px 0; padding: 20px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); flex-wrap: wrap; }
.share-row b { font-size: var(--fs-sm); color: var(--text-strong); margin-right: 4px; }
.share-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--color-border); display: grid; place-items: center; color: var(--color-primary); background: #fff; transition: border-color .15s ease, background .15s ease; }
.share-btn:hover { border-color: var(--color-primary); background: var(--color-light-blue); }
.share-btn [data-lucide] { width: 18px; height: 18px; }
.post-tags { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-body); background: var(--color-bg); border: 1px solid var(--color-border); padding: 6px 12px; border-radius: var(--radius-pill); }

/* Author bio card */
.author-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); margin: 8px 0 8px; }
.author-card .ava { width: 64px; height: 64px; border-radius: 50%; background: var(--color-light-blue-2); color: var(--color-primary); display: grid; place-items: center; font-weight: 700; font-size: 23px; flex: none; }
.author-card .a-name { font-size: var(--fs-h4); color: var(--text-strong); }
.author-card .a-role { font-size: var(--fs-sm); color: var(--color-secondary); font-weight: var(--fw-semibold); margin-top: 2px; }
.author-card .a-bio { font-size: var(--fs-sm); color: var(--text-body); line-height: 1.6; margin-top: 10px; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0; }
.gallery .media-ph { aspect-ratio: 4 / 3; border-radius: var(--radius-md); cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.gallery .media-ph:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery .span-2 { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

/* Video timestamps / key moments */
.moments { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.moments li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; font-size: var(--fs-body); color: var(--text-body); border-top: 1px solid var(--color-border); transition: background .15s ease; cursor: pointer; }
.moments li:first-child { border-top: none; }
.moments li:hover { background: var(--color-light-blue); }
.moments .ts { font-size: var(--fs-sm); font-weight: 700; color: var(--color-primary); font-variant-numeric: tabular-nums; background: var(--color-light-blue); padding: 4px 10px; border-radius: var(--radius-sm); flex: none; }

/* ===== Forms / inputs (auth + contact) ===== */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-strong); }
.field .field-hint { font-size: var(--fs-xs); color: var(--text-muted); }
.field .field-error { font-size: var(--fs-xs); color: var(--color-danger, #C0392B); display: none; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > [data-lucide] { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--text-muted); pointer-events: none; }
.input {
  width: 100%; font-family: inherit; font-size: var(--fs-body); color: var(--text-strong);
  background: #fff; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md);
  padding: 13px 14px; line-height: 1.35; transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap .input { padding-left: 42px; }
.input::placeholder { color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-light-blue); }
.input.has-toggle { padding-right: 46px; }
.pw-toggle { position: absolute; right: 7px; width: 34px; height: 34px; border: none; background: none; cursor: pointer; color: var(--text-muted); display: grid; place-items: center; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.pw-toggle:hover { color: var(--color-primary); background: var(--color-light-blue); }
.pw-toggle [data-lucide] { width: 19px; height: 19px; }

.checkrow { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-body); line-height: 1.5; cursor: pointer; }
.checkrow input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--color-border-strong); border-radius: 6px; flex: none; margin: 1px 0 0; cursor: pointer; position: relative; transition: background .15s ease, border-color .15s ease; }
.checkrow input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.checkrow input:checked::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkrow input:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.checkrow a { color: var(--color-secondary); font-weight: var(--fw-medium); text-decoration: underline; text-underline-offset: 2px; }

.divider { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--color-border); flex: 1; }
.btn-google { background: #fff; color: var(--text-strong); border-color: var(--color-border-strong); }
.btn-google:hover { background: var(--color-bg); border-color: var(--color-primary); }
.btn-google svg { width: 19px; height: 19px; }

/* ===== Auth (login / register / recover) ===== */
.auth-section { padding: 56px 0 72px; background: radial-gradient(900px 460px at 82% -12%, var(--color-light-blue), transparent 72%), var(--surface-page); }
.auth-card { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; }
.auth-card.solo { max-width: 480px; grid-template-columns: 1fr; }

.auth-aside { position: relative; background: linear-gradient(155deg, #0B4F8A 0%, #0A3A63 100%); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255,255,255,.045) 0 2px, transparent 2px 30px); pointer-events: none; }
.auth-aside > * { position: relative; }
.auth-aside .logo { color: #fff; }
.auth-aside .logo small { color: #9EC9F2; }
.auth-aside h2 { color: #fff; font-size: 25px; line-height: 1.32; margin: 34px 0 0; }
.auth-aside .a-lead { color: #C9DDF2; font-size: var(--fs-body); margin-top: 12px; line-height: 1.55; }
.auth-aside ul { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.auth-aside li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-body); color: #E4EFFA; line-height: 1.45; }
.auth-aside li [data-lucide] { width: 20px; height: 20px; color: #7FB6EC; flex: none; margin-top: 1px; }
.auth-aside .a-trust { margin-top: auto; padding-top: 30px; display: flex; align-items: center; gap: 13px; }
.auth-aside .a-trust .avatars { display: flex; }
.auth-aside .a-trust .avatars span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #0B4F8A; margin-left: -10px; background: #1565C0; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 12px; }
.auth-aside .a-trust .avatars span:first-child { margin-left: 0; }
.auth-aside .a-trust p { font-size: var(--fs-sm); color: #C9DDF2; }
.auth-aside .a-trust b { color: #fff; }

.auth-main { padding: 48px 48px 44px; display: flex; flex-direction: column; }
.auth-head h1 { font-size: 28px; line-height: 1.25; }
.auth-head p { font-size: var(--fs-body); color: var(--text-muted); margin-top: 9px; line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-aux { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-aux a { font-size: var(--fs-sm); color: var(--color-secondary); font-weight: var(--fw-semibold); }
.auth-aux a:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth-foot { margin-top: 26px; text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }
.auth-foot a { color: var(--color-secondary); font-weight: var(--fw-semibold); }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }
.auth-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; }
.auth-success.show { display: flex; }
.auth-success .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--color-light-blue); color: var(--color-primary); display: grid; place-items: center; margin-bottom: 22px; }
.auth-success .ico [data-lucide] { width: 30px; height: 30px; }
.auth-success h2 { font-size: 24px; line-height: 1.3; }
.auth-success p { font-size: var(--fs-body); color: var(--text-muted); margin-top: 10px; line-height: 1.55; }
.auth-success .resend { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 22px; }
.auth-success .resend a { color: var(--color-secondary); font-weight: var(--fw-semibold); }

/* ===== Responsive (shared chrome) ===== */
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 32px 36px; }
}

@media (max-width: 960px) {
  .main-nav, .header-actions .btn, .header-actions .account-switch { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer.open { display: block; position: fixed; inset: 72px 0 0; z-index: 49; background: #fff; padding: 20px var(--pad-desktop); overflow-y: auto; animation: drawerIn .2s ease; }
  .mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; }
  .mobile-drawer nav a { padding: 14px 12px; border-radius: var(--radius-sm); font-size: 17px; font-weight: 500; color: var(--text-strong); border-bottom: 1px solid var(--color-border); }
  .mobile-drawer nav a:active { background: var(--color-light-blue); }
  .mobile-drawer .drawer-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  @keyframes drawerIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 var(--pad-mobile); }
  .mobile-drawer.open { padding: 20px var(--pad-mobile); }
  .section-head h2 { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .post-head h1 { font-size: 30px; }
  .share-row { gap: 9px; }
  .post-tags { margin-left: 0; width: 100%; }
  .author-card { flex-direction: column; gap: 14px; }
  .auth-main { padding: 34px 22px 30px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-head h1 { font-size: 25px; }
}

/* ===== Nav: links, dropdowns, language switch ===== */
.main-nav { gap: 2px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: var(--fs-body); font-weight: var(--fw-medium);
  color: var(--text-body); background: none; border: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover, .nav-trigger:hover { background: var(--color-light-blue); color: var(--color-primary); }
.nav-trigger > [data-lucide] { width: 15px; height: 15px; color: var(--text-muted); transition: transform .2s ease; }
.nav-item { position: relative; }
.nav-link.active, .nav-item.active > .nav-trigger { color: var(--color-primary); font-weight: var(--fw-semibold); }
.nav-item.active > .nav-trigger > [data-lucide] { color: var(--color-primary); }

.nav-menu {
  position: absolute; top: calc(100% + 12px); left: -6px;
  min-width: 270px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px;
  display: flex; flex-direction: column; gap: 2px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.99); transform-origin: top left;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu, .nav-item.open > .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-item:hover > .nav-trigger > [data-lucide], .nav-item.open > .nav-trigger > [data-lucide] { transform: rotate(180deg); }
.nav-menu > a { display: flex; align-items: center; gap: 13px; padding: 9px 11px; border-radius: var(--radius-md); transition: background .14s ease; }
.nav-menu > a:hover { background: var(--color-light-blue); }
.nav-menu .mi { width: 38px; height: 38px; border-radius: 10px; background: var(--color-light-blue); color: var(--color-primary); display: grid; place-items: center; flex: none; transition: background .14s ease; }
.nav-menu > a:hover .mi { background: var(--color-light-blue-2); }
.nav-menu .mi [data-lucide] { width: 19px; height: 19px; }
.nav-menu .mt b { display: block; font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text-strong); line-height: 1.25; }
.nav-menu .mt small { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.nav-menu > a.active { background: var(--color-light-blue); }
.nav-menu > a.active .mt b { color: var(--color-primary); }

/* Language switch */
.lang-switch { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px;
  border-radius: var(--radius-md); border: 1.5px solid var(--color-border-strong); background: #fff;
  color: var(--text-body); font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.lang-trigger:hover { border-color: var(--color-primary); background: var(--color-light-blue); }
.lang-trigger > [data-lucide]:first-child { width: 16px; height: 16px; color: var(--color-secondary); }
.lang-trigger .chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s ease; }
.lang-switch.open .lang-trigger .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 170px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.lang-switch.open .lang-menu { display: flex; animation: ddIn .16s ease; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong);
  background: none; border: none; cursor: pointer; padding: 9px 11px; border-radius: var(--radius-sm);
}
.lang-menu button:hover { background: var(--color-light-blue); }
.lang-menu button.active { color: var(--color-primary); font-weight: var(--fw-semibold); }
.lang-menu button.active::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); flex: none; }

/* ===== Account menu (logged-in customer) — mirrors the language switch ===== */
.account-switch { position: relative; }
.account-trigger {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px;
  border-radius: var(--radius-md); border: 1.5px solid var(--color-border-strong); background: #fff;
  color: var(--text-body); font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  cursor: pointer; transition: border-color .15s ease, background .15s ease; max-width: 200px;
}
.account-trigger:hover { border-color: var(--color-primary); background: var(--color-light-blue); }
.account-trigger > [data-lucide]:first-child { width: 18px; height: 18px; color: var(--color-secondary); flex: none; }
.account-trigger .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger .chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform .2s ease; flex: none; }
.account-switch.open .account-trigger .chev { transform: rotate(180deg); }
.account-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.account-switch.open .account-menu { display: flex; animation: ddIn .16s ease; }
.account-menu a,
.account-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  font-family: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-strong);
  background: none; border: none; cursor: pointer; padding: 10px 11px; border-radius: var(--radius-sm);
}
.account-menu a:hover,
.account-menu button:hover { background: var(--color-light-blue); }
.account-menu form { margin: 0; }
.account-menu [data-lucide] { width: 17px; height: 17px; color: var(--text-muted); flex: none; }

/* ===== Form error summary (auth pages) ===== */
.form-errors {
  background: #FDECEC; border: 1px solid #F5C2C2; color: #9B1C1C;
  border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 18px;
  font-size: var(--fs-sm); line-height: 1.5;
}
.form-errors p { margin: 0; }
.form-errors p + p { margin-top: 4px; }

/* ===== Status banners (payment / account messages) ===== */
.status-banners { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.status-banner {
  display: flex; align-items: center; gap: 12px; border-radius: var(--radius-md);
  padding: 16px 18px; font-size: var(--fs-body); font-weight: var(--fw-semibold);
}
.status-banner [data-lucide] { width: 22px; height: 22px; flex: none; }
.status-banner.status-success { background: #E7F6EC; border: 1px solid #B8E6C4; color: #14663A; }
.status-banner.status-error { background: #FDECEC; border: 1px solid #F5C2C2; color: #9B1C1C; }
.status-banner.status-info { background: var(--color-light-blue); border: 1px solid var(--color-border); color: var(--color-primary); }

/* ===== My-account page ===== */
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); margin-top: 8px; }
@media (max-width: 760px) { .account-grid { grid-template-columns: 1fr; } }
.account-panel {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px;
}
.account-panel h3 { display: flex; align-items: center; gap: 9px; font-size: 19px; margin: 0 0 16px; }
.account-panel h3 [data-lucide] { width: 20px; height: 20px; color: var(--color-secondary); }
.account-panel .muted { color: var(--text-muted); margin-bottom: 18px; }
.account-panel .btn { margin-right: 8px; margin-top: 4px; }
.account-dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.account-dl > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; }
.account-dl dt { color: var(--text-muted); }
.account-dl dd { margin: 0; font-weight: var(--fw-semibold); color: var(--text-strong); }
.account-logout { margin-top: 28px; }
/* Membership + registrations on the account page */
.sub-row { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sub-head b { font-size: var(--fs-body); }
.sub-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: var(--fw-semibold); background: #E7F6EC; color: #1E8E4E; }
.sub-badge [data-lucide] { width: 14px; height: 14px; }
.sub-badge.sub-past_due { background: #FEF3E2; color: #B7791F; }
.sub-badge.sub-expired, .sub-badge.sub-canceled { background: #FDECEC; color: #9B1C1C; }
.reg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.reg-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--color-border); }
.reg-list li:last-child { border-bottom: none; }
.reg-list a { font-weight: var(--fw-medium); color: var(--text-strong); }
.reg-list a:hover { color: var(--color-primary); }
.reg-status { font-size: 12px; font-weight: var(--fw-semibold); padding: 3px 10px; border-radius: 999px; background: var(--color-light-blue); color: var(--color-primary); white-space: nowrap; }
.reg-status.reg-confirmed { background: #E7F6EC; color: #1E8E4E; }
.reg-status.reg-cancelled { background: #FDECEC; color: #9B1C1C; }

/* ===== Mobile drawer: accordion groups + language row ===== */
.m-grp-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 12px; font-family: inherit; font-size: 17px; font-weight: 500; color: var(--text-strong);
  background: none; border: none; border-bottom: 1px solid var(--color-border); cursor: pointer; text-align: left;
}
.m-grp-trigger > [data-lucide] { width: 19px; height: 19px; color: var(--text-muted); transition: transform .2s ease; }
.m-group.open .m-grp-trigger > [data-lucide] { transform: rotate(180deg); }
.m-grp-body { display: none; flex-direction: column; padding: 2px 0 6px; }
.m-group.open .m-grp-body { display: flex; }
.mobile-drawer .m-grp-body a { padding: 12px 12px 12px 24px; font-size: 15px; color: var(--text-body); border-bottom: none; }
.mobile-drawer .m-grp-body a:active { background: var(--color-light-blue); border-radius: var(--radius-sm); }
.m-lang { display: flex; align-items: center; gap: 8px; margin: 22px 0 4px; }
.m-lang span { font-size: var(--fs-sm); color: var(--text-muted); margin-right: 2px; }
.m-lang button { flex: 1; font-family: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 11px; border-radius: var(--radius-md); border: 1.5px solid var(--color-border-strong); background: #fff; color: var(--text-body); cursor: pointer; }
.m-lang button.active { border-color: var(--color-primary); background: var(--color-light-blue); color: var(--color-primary); }
