/* ==========================================================================
   Vizuon — style specyficzne dla WordPressa (uzupełniają vizuon-base.css)
   ========================================================================== */

/* --- Dostępność / rdzeń WP --- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  left: 16px;
  top: 16px;
  z-index: 100000;
  padding: 12px 18px;
  background: var(--bg-elevated);
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image figcaption { max-width: 100%; }
.wp-caption-text, figcaption { color: var(--muted-2); font-size: 13px; margin-top: 8px; text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }


.site-main { position: relative; z-index: 1; }

/* --- Nagłówek: menu WordPress --- */
.site-nav { min-width: 0; display: flex; justify-content: center; }
.menu li { list-style: none; }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current-menu-ancestor > a,
.menu .current-category-ancestor > a {
  color: var(--nav-link-active);
  background: var(--gold-dim);
}
.menu .current-menu-item > a::after,
.menu .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 4px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 1px;
}
.nav-side .auth-chip { white-space: nowrap; letter-spacing: 0.08em; }

/* Logo tekstowe (gdy brak własnego logo) — odwzorowanie znaku VIZUON */
.logo-text {
  font-family: var(--font);
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.42em;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 0.1em;
}
footer.site .logo-text { font-size: 24px; }
.logo .custom-logo, .logo-slot img { filter: none; }
html[data-theme="light"] .logo .logo-tag { color: var(--muted); }

/* --- Strona główna: ikony SVG w kaflach --- */
.card-icon {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  color: var(--gold-bright);
  animation: iconFloat 5.5s ease-in-out infinite;
}
.card-icon svg { width: 112px; height: 112px; filter: drop-shadow(0 0 18px var(--gold-glow)); }
.card:nth-child(2) .card-icon { animation-delay: 1.1s; }
.card { display: flex; flex-direction: column; align-items: center; }
.card p { margin-bottom: 26px; }
.card .btn { margin-top: auto; }

/* Rozróżnienie dwóch ścieżek na stronie głównej */
.card--3d {
  background:
    linear-gradient(rgba(120, 150, 190, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(120, 150, 190, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--card);
}
.card--tile {
  background:
    linear-gradient(rgba(201, 149, 108, 0.07) 2px, transparent 2px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(201, 149, 108, 0.07) 2px, transparent 2px) 0 0 / 56px 56px,
    var(--card);
}

/* --- Siatka wpisów --- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  animation: riseIn 0.7s var(--ease) both;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 149, 108, 0.32);
  box-shadow: var(--card-shadow-hover);
}
.post-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-elevated);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder,
.media-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 60% at 30% 20%, var(--gold-dim), transparent 70%),
    linear-gradient(160deg, var(--bg-elevated), var(--bg));
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
}
.post-card__placeholder::before,
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 149, 108, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 149, 108, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.post-card__placeholder span,
.media-placeholder span { position: relative; padding: 0 16px; }
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.post-card__tag { color: var(--gold); font-weight: 500; }
.post-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--text);
}
.post-card__title a:hover { color: var(--gold-bright); }
.post-card__excerpt { color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-card__more {
  margin-top: auto;
  color: var(--gold-bright);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.post-card__more:hover { color: var(--gold); }
.home-latest .section-head .kicker { margin-bottom: 10px; }
.home-latest__empty,
.empty-state {
  padding: 28px 30px;
  border: 1px dashed var(--nav-border);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--gold-dim);
}
.empty-state { text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty-state h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--text); }
.empty-state .kicker { margin-bottom: 0; }

/* --- Paginacja --- */
.pagination, .comments-pagination { margin-top: 36px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: all var(--duration) var(--ease);
}
.page-numbers:hover { border-color: var(--gold); color: var(--gold-bright); }
.page-numbers.current { background: var(--gold-dim); border-color: var(--gold); color: var(--text); }

/* Nawigacja między wpisami */
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 40px auto 0;
  max-width: 820px;
}
.post-navigation a {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition: border-color var(--duration) var(--ease);
}
.post-navigation a:hover { border-color: var(--gold); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-sub { color: var(--gold); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); }

/* --- Wpis / strona --- */
.page-hero .kicker a:hover { color: var(--gold-bright); }
.page-hero__desc { color: var(--muted); max-width: 760px; margin: 14px auto 0; line-height: 1.7; }
.page-hero__search, .error-404__search { max-width: 520px; margin: 26px auto 0; }
.cat-switch { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.entry-cover {
  margin: 0 auto 36px;
  max-width: 1080px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--card-shadow);
}
.entry-cover img { width: 100%; height: auto; }
.entry-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--lead);
  font-size: 17px;
  line-height: 1.8;
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin-top: 1.8em;
}
.entry-content h2 { font-size: clamp(26px, 3vw, 34px); }
.entry-content h3 { font-size: 24px; }
.entry-content a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-glow); }
.entry-content a:hover { color: var(--gold); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3em;
  color: var(--text);
}
.entry-content img, .entry-content figure img { border-radius: var(--radius-sm); height: auto; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content pre, .entry-content code { background: var(--bg-elevated); border-radius: 8px; font-size: 0.9em; }
.entry-content pre { padding: 16px; overflow: auto; }
.entry-content code { padding: 2px 6px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); }
.entry-content .wp-block-button__link {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 50%, var(--gold-soft));
  color: #14110e;
  border-radius: var(--radius-pill);
  text-decoration: none;
  padding: 12px 24px;
}
.page-links { margin-top: 24px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.home-content { max-width: 820px; margin: 0 auto; }

.entry-footer { max-width: 820px; margin: 40px auto 0; display: grid; gap: 22px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--chip-border);
  border-radius: var(--radius-pill);
  color: var(--chip-muted);
}
.entry-tags a:hover { border-color: var(--gold); color: var(--gold-bright); }
.entry-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border: 1px solid var(--nav-border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--gold-dim), transparent 60%), var(--card);
}
.entry-cta p { color: var(--muted); }

/* --- Komentarze / opinie --- */
.comments-area { max-width: 820px; margin: 0 auto; }
.comment-list, .comment-list .children { list-style: none; display: grid; gap: 16px; }
.comment-list .children { margin: 16px 0 0 28px; }
.comment-body {
  background: var(--card);
  border: 1px solid var(--surface-border);
  border-top: 2px solid rgba(201, 149, 108, 0.42);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--card-shadow);
}
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin-bottom: 10px; font-size: 13px; }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--gold-bright); font-weight: 600; letter-spacing: 0.04em; }
.comment-author .avatar { width: 40px; height: 40px; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted-2); }
.comment-content { color: var(--quote-text); line-height: 1.6; font-size: 15px; }
.comment-content .stars { margin-bottom: 6px; }
.comment-awaiting-moderation { color: var(--gold); font-size: 13px; }
.reply a { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.comment-respond { margin-top: 36px; }
.comment-reply-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 16px;
}
.comment-reply-title small { font-family: var(--font); font-size: 12px; margin-left: 10px; }
.comment-reply-title small a { color: var(--gold); }
.comment-form p { display: grid; gap: 8px; }
.comment-form label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 10px; align-items: center; }
.comment-form .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 13px; }
.logged-in-as a { color: var(--gold); }
.comment-form .form-submit { justify-items: start; }
.no-comments { color: var(--muted); }

/* Opinie na stronie głównej */
.quote .person { display: flex; align-items: center; gap: 12px; }
.quote .avatar img { width: 100%; height: 100%; }
.avatar--initials { font-size: 12px; }
.quote small a:hover { color: var(--gold-bright); }

/* --- Kontakt / formularz wyceny --- */
.contact-section .form button { justify-self: start; }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; }
.info-list a { color: var(--text); transition: color var(--duration) var(--ease); }
.info-list a:hover { color: var(--gold-bright); }
.info-list p { color: var(--muted); line-height: 1.7; }
.info-list .contact-links a { color: var(--gold-bright); }
.scope-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scope-pick legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}
.form .scope-pick__opt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.form .scope-pick__opt input { accent-color: var(--gold); padding: 0; margin: 0; }
.form .scope-pick__opt:has(input:checked) { border-color: var(--gold); background: var(--gold-dim); }
.form .success { display: block; padding: 12px 16px; border: 1px solid var(--gold); border-radius: var(--radius-sm); background: var(--gold-dim); }
.form .form-error { display: block; }
.form-note { font-size: 12px; color: var(--muted-2); }
.form-note a { color: var(--gold); }

/* --- Wyszukiwarka --- */
.search-form { display: flex; gap: 10px; width: 100%; }
.search-field {
  flex: 1;
  min-width: 0;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  border-radius: var(--radius-pill);
  padding: 0 20px;
  min-height: 46px;
  font: inherit;
  font-size: 15px;
}
.search-field:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.search-submit { flex-shrink: 0; }
.error-404 { padding-bottom: 40px; }

/* --- Stopka --- */
.footer-grid__sub { margin-top: 22px; }
.footer-menu { display: flex; gap: 16px; list-style: none; flex-wrap: wrap; }
.footer-menu a:hover { color: var(--gold); }

/* --- Placeholder obrazu hero (brak zdjęć w motywie) --- */
.viz-hero .media-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
  align-items: end;
  justify-items: end;
  padding: 24px 28px;
}
.viz-hero:has(.media-placeholder) { min-height: 520px; }
.viz-hero .media-placeholder span { z-index: 2; opacity: 0.75; font-size: 10px; }
.viz-hero .lead p { margin: 0; }
.viz-hero .lead { margin-left: 0; }

/* ==========================================================================
   Dział STUDIO 3D (body.theme-3d) — chłodny grafit, siatka „blueprint”
   ========================================================================== */
body.theme-3d { --accent-2: #8fa6c2; }
body.theme-3d .viz-hero--3d .media-placeholder {
  background:
    radial-gradient(ellipse 50% 60% at 78% 40%, rgba(143, 166, 194, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(208, 160, 122, 0.12), transparent 70%),
    linear-gradient(160deg, #0d1218 0%, #07090c 100%);
}
body.theme-3d .viz-hero--3d .media-placeholder::before {
  background-image:
    linear-gradient(rgba(143, 166, 194, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 194, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(143, 166, 194, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 166, 194, 0.05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}
body.theme-3d .viz-hero--3d .media-placeholder::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin-top: -110px;
  border: 1px solid rgba(143, 166, 194, 0.35);
  transform: rotate(45deg) skew(-8deg, -8deg);
  box-shadow: 0 0 0 28px rgba(143, 166, 194, 0.04), inset 0 0 60px rgba(208, 160, 122, 0.12);
  animation: orbSpin 60s linear infinite;
}
body.theme-3d .post-card { border-radius: 14px; }
body.theme-3d .post-card__tag { color: var(--accent-2); }
body.theme-3d .post-card__meta { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; }
body.theme-3d .post-card__media { position: relative; }
body.theme-3d .post-card__media::after {
  content: "RENDER";
  position: absolute;
  left: 12px;
  top: 12px;
  font: 500 10px/1 ui-monospace, Consolas, monospace;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  padding: 6px 8px;
  border: 1px solid rgba(143, 166, 194, 0.4);
  border-radius: 6px;
  background: rgba(7, 9, 12, 0.6);
}
body.theme-3d .tile { border-top: 2px solid rgba(143, 166, 194, 0.35); }
body.theme-3d .about-scope__num { color: var(--accent-2); }
body.theme-3d .section-head h2 { letter-spacing: 0.06em; }

/* ==========================================================================
   Dział GLAZURNICTWO (body.theme-tile) — ciepła miedź, wzór fug
   ========================================================================== */
body.theme-tile .viz-hero--tile .media-placeholder {
  background:
    radial-gradient(ellipse 50% 60% at 75% 30%, rgba(224, 176, 144, 0.16), transparent 70%),
    linear-gradient(160deg, #15110d 0%, #08070a 100%);
}
body.theme-tile .viz-hero--tile .media-placeholder::before {
  background-image:
    linear-gradient(rgba(224, 176, 144, 0.16) 2px, transparent 2px),
    linear-gradient(90deg, rgba(224, 176, 144, 0.16) 2px, transparent 2px);
  background-size: 120px 60px;
  mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
}
body.theme-tile .post-card { border-radius: 6px; border-bottom: 3px solid rgba(201, 149, 108, 0.45); }
body.theme-tile .post-card__media { border-bottom: 2px solid rgba(201, 149, 108, 0.25); }
body.theme-tile .post-card__placeholder::before,
.tile--grout::after {
  background-image:
    linear-gradient(rgba(201, 149, 108, 0.14) 2px, transparent 2px),
    linear-gradient(90deg, rgba(201, 149, 108, 0.14) 2px, transparent 2px);
  background-size: 64px 32px;
}
.tile--grout { position: relative; overflow: hidden; min-height: 210px; }
.tile--grout::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: linear-gradient(200deg, #000 0%, transparent 55%);
}
.tile--grout h3, .tile--grout p { position: relative; z-index: 1; }
body.theme-tile .step { border-left: 3px solid rgba(201, 149, 108, 0.5); border-radius: 8px; }
body.theme-tile .tile { border-radius: 8px; }

/* Wpis pojedynczy w dziale */
body.theme-3d .entry-cover { border-color: rgba(143, 166, 194, 0.3); }
body.theme-tile .entry-cover { border-radius: 8px; }

/* --- Tryb jasny: drobne poprawki --- */
html[data-theme="light"] .post-card__placeholder,
html[data-theme="light"] .media-placeholder:not(.viz-hero .media-placeholder) { color: var(--gold); }

/* --- Responsywność --- */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: contents; }
  .menu { background: rgba(8, 10, 14, 0.97); backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html[data-theme="light"] .menu { background: rgba(251, 250, 248, 0.98); }
  .viz-hero:has(.media-placeholder) { min-height: 460px; }
  body.theme-3d .viz-hero--3d .media-placeholder::after { width: 140px; height: 140px; margin-top: -70px; right: 6%; opacity: 0.5; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
  .search-form { flex-direction: column; }
  .entry-content { font-size: 16px; }
  .comment-list .children { margin-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .card-icon, body.theme-3d .viz-hero--3d .media-placeholder::after { animation: none !important; }
}

/* Poprawki formularza komentarzy */
.comment-form label { display: block; }
.comment-form .required { color: var(--gold); }
.comment-content .stars { display: flex; margin-bottom: 8px; }
.comment-form .star-pick legend { text-transform: uppercase; }

/* ==========================================================================
   v1.1 — konta użytkowników i opinie
   ========================================================================== */

/* Nagłówek: chipy konta */
.nav-side .auth-links { flex-wrap: nowrap; }
.auth-chip--user { max-width: 180px; }
.auth-chip__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-chip--user::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
  flex-shrink: 0;
}
.auth-chip--user { display: inline-flex; align-items: center; }

/* Menu mobilne: pozycja konta */
.menu-auth a { display: block; }
@media (max-width: 980px) {
  .menu .menu-auth {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .menu .menu-auth a {
    text-align: center;
    border: 1px solid var(--chip-border);
    border-radius: var(--radius-pill);
  }
  .menu .menu-auth a.menu-auth__gold {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 50%, var(--gold-soft));
    color: #14110e;
    border-color: transparent;
  }
  .menu .menu-auth a::after { display: none; }
}

/* Checkbox */
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  color: var(--muted);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--gold); flex-shrink: 0; padding: 0 !important; }
.check a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }

/* Strony logowania / rejestracji */
.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1040px;
  margin: 24px auto 48px;
}
.auth-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 40px 40px 32px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  animation: riseIn 0.7s var(--ease) both;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}
.auth-card .kicker { margin-bottom: 12px; }
.auth-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 22px;
}
.auth-card h1 em { color: var(--gold-bright); font-style: italic; font-weight: 500; }
.auth-card .form {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.auth-form .btn-solid { justify-self: start; }
.auth-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-link { color: var(--gold); font-size: 13px; }
.auth-link:hover { color: var(--gold-bright); }
.auth-intro { color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.auth-switch {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a { color: var(--gold-bright); font-weight: 500; }
.auth-switch a:hover { color: var(--gold); }
.auth-msg {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid;
}
.auth-msg--error { color: #f0b4a8; border-color: rgba(220, 110, 90, 0.45); background: rgba(220, 110, 90, 0.1); }
.auth-msg--success { color: var(--gold-bright); border-color: var(--nav-border); background: var(--gold-dim); }
html[data-theme="light"] .auth-msg--error { color: #9b2f1e; }
.form-error { color: #f0b4a8; font-size: 14px; }
html[data-theme="light"] .form-error { color: #9b2f1e; }

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--nav-border);
  background:
    linear-gradient(rgba(201, 149, 108, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(201, 149, 108, 0.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(150deg, var(--gold-dim), transparent 60%),
    var(--card);
  animation: riseIn 0.7s var(--ease) 0.1s both;
}
.auth-aside .kicker { margin: 0; }
.auth-aside h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.auth-aside h2 em { color: var(--gold-bright); font-style: italic; font-weight: 500; }
.auth-aside__list { list-style: none; display: grid; gap: 14px; }
.auth-aside__list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: var(--muted); line-height: 1.55; font-size: 15px; }
.auth-aside__list span { color: var(--gold); font-size: 12px; letter-spacing: 0.2em; padding-top: 3px; }
.auth-aside__phone { color: var(--muted-2); font-size: 14px; }
.auth-aside__phone a { color: var(--gold-bright); letter-spacing: 0.06em; }

/* Moje konto */
.account-hero { padding-bottom: 24px; }
.account-wrap { max-width: 1040px; margin: 0 auto; }
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto 40px;
  align-items: start;
}
.account-card { display: grid; gap: 16px; align-content: start; }
.account-card .btn { justify-self: start; }
.account-card .kicker { margin-bottom: 0; }
.account-quote { box-shadow: none; }
.account-quote small { color: var(--muted); }
.account-pass summary { cursor: pointer; color: var(--gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.account-pass[open] summary { margin-bottom: 14px; }
.form input:disabled { opacity: 0.6; cursor: not-allowed; }

/* Status opinii */
.review-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--chip-border);
  color: var(--chip-muted);
  margin: 0 0 8px;
}
.review-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.review-status--publish { color: #8fc98a; border-color: rgba(143, 201, 138, 0.4); }
.review-status--pending { color: var(--gold-bright); border-color: var(--nav-border); }
html[data-theme="light"] .review-status--publish { color: #2f7a2a; }

/* Formularz opinii na stronie głównej */
.review-cta--form { max-width: 420px; width: 100%; text-align: left; }
.review-cta--form .review-status { margin-left: 0; }
.review-cta .form.review-form {
  margin-top: 6px;
  padding: 20px;
  gap: 14px;
}
.review-form textarea { min-height: 96px; }
.review-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form .star-pick legend { text-transform: uppercase; }
.review-form .btn-solid { justify-self: start; }
.review-form label { font-size: 11px; }
.review-form input, .review-form textarea { font-size: 14px; padding: 11px 14px; }
.review-msg { margin: 0 0 10px; display: block; font-size: 13px; line-height: 1.5; }
.reviews-head { align-items: flex-start; }

/* Responsywność kont */
@media (max-width: 980px) {
  .auth-page, .account-grid { grid-template-columns: 1fr; }
  .auth-aside { order: 2; }
  .review-cta--form { max-width: none; }
}
@media (max-width: 560px) {
  .auth-card { padding: 28px 20px 24px; }
  .auth-aside { padding: 28px 22px; }
  .auth-form__grid, .review-form__grid { grid-template-columns: 1fr; }
  .auth-form .btn-solid, .review-form .btn-solid { justify-self: stretch; text-align: center; justify-content: center; }
}

/* Pola formularzy nie wychodzą poza karty */
.form label { min-width: 0; }
.form input:not([type="checkbox"]):not([type="radio"]),
.form textarea,
.form select { width: 100%; min-width: 0; box-sizing: border-box; }
.review-form .star-pick__row label { font-size: 28px; letter-spacing: 0; text-transform: none; }

/* ==========================================================================
   v1.2 — profil, rangi, zespół
   ========================================================================== */

/* Pasek administracyjny wyłączony na froncie */
html { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

/* Chip użytkownika z awatarem + „Panel” */
.auth-chip--user:has(.avatar)::before { display: none; }
.auth-chip--user { gap: 8px; padding-left: 4px; }
.avatar--chip { width: 22px; height: 22px; font-size: 8px; border-width: 1px; }
.auth-chip--panel { color: var(--chip-muted) !important; border-style: dashed; }
.auth-chip--panel:hover { color: var(--gold-bright) !important; border-color: var(--nav-border); }
.menu .menu-auth a.menu-auth__panel { color: var(--muted) !important; font-size: 13px; }

/* Plakietka rangi */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201, 149, 108, 0.5);
  color: var(--gold-bright);
  background: var(--gold-dim);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  vertical-align: middle;
}
.rank-badge::before { content: "◆"; font-size: 8px; }
.rank-badge--vip { background: linear-gradient(135deg, rgba(232, 184, 150, 0.28), rgba(201, 149, 108, 0.12)); border-color: var(--gold-bright); }
.rank-badge--administrator, .rank-badge--czlonek-zespolu { color: #b9cbe0; border-color: rgba(143, 166, 194, 0.55); background: rgba(143, 166, 194, 0.12); }
.rank-badge--klient { color: var(--chip-muted); border-color: var(--chip-border); background: transparent; }
html[data-theme="light"] .rank-badge { color: var(--gold); }
html[data-theme="light"] .rank-badge--administrator, html[data-theme="light"] .rank-badge--czlonek-zespolu { color: #3d5a7a; }
.person__meta .rank-badge { font-size: 9px; padding: 2px 8px; margin-left: 6px; letter-spacing: 0.1em; }

/* Karta profilu */
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto 24px;
  padding: 32px 36px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 22px);
  background: linear-gradient(135deg, rgba(201, 149, 108, 0.09), rgba(255, 255, 255, 0.015) 55%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] .profile-card { background: linear-gradient(135deg, rgba(168, 106, 61, 0.08), rgba(255, 255, 255, 0.7) 55%); box-shadow: 0 14px 40px rgba(60, 40, 20, 0.08); border-color: rgba(0, 0, 0, 0.08); }
.profile-card .avatar--xl { margin: 0; width: 132px; height: 132px; box-shadow: 0 0 0 6px var(--gold-dim); }
.profile-card__main { min-width: 0; display: grid; gap: 10px; }
.profile-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.profile-card__name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; overflow-wrap: anywhere; }
.profile-card__prof { margin: 0; color: var(--gold-bright); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
html[data-theme="light"] .profile-card__prof { color: var(--gold); }
.profile-card__bio { margin: 2px 0 0; color: var(--text); line-height: 1.7; max-width: 64ch; overflow-wrap: anywhere; }
.profile-card__bio--empty { color: var(--muted); font-style: italic; }
.profile-card__meta { margin: 4px 0 0; color: var(--muted-2, var(--muted)); font-size: 13px; overflow-wrap: anywhere; }

.account-grid--profile { grid-template-columns: 1.35fr 1fr; }
.avatar-field { display: flex; align-items: center; gap: 20px; padding: 14px; border: 1px dashed var(--chip-border); border-radius: var(--radius-sm, 14px); }
.avatar-field .avatar--lg { width: 76px; height: 76px; font-size: 20px; }
.avatar-field__controls { display: grid; gap: 8px; min-width: 0; flex: 1; }
.avatar-field__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.file-pick { position: relative; display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; }
.file-pick input[type="file"] { position: absolute; width: 1px !important; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.file-pick__btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(201, 149, 108, 0.55); color: var(--gold-bright); font-size: 12px; letter-spacing: 0.08em; transition: background 0.25s ease; }
html[data-theme="light"] .file-pick__btn { color: var(--gold); }
.file-pick:hover .file-pick__btn, .file-pick:focus-within .file-pick__btn { background: var(--gold-dim); }
.file-pick:focus-within .file-pick__btn { outline: 2px solid var(--gold); outline-offset: 2px; }
.file-pick__name { color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.form-hint { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.02em; text-transform: none; font-weight: 400; margin-top: 4px; }
.profile-form textarea { min-height: 110px; }
.profile-form .check { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.profile-form .check input { width: auto; }

/* Zespół */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.team-head .kicker { margin-bottom: 8px; }
.team-intro { color: var(--muted); max-width: 60ch; margin: 12px 0 0; line-height: 1.65; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.team-grid--1 { grid-template-columns: minmax(0, 360px); }
.team-grid--2 { grid-template-columns: repeat(2, minmax(0, 380px)); }
.team-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .team-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .team-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius, 22px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: rgba(201, 149, 108, 0.45); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
html[data-theme="light"] .team-card { background: rgba(255, 255, 255, 0.75); border-color: rgba(0, 0, 0, 0.08); }
html[data-theme="light"] .team-card:hover { box-shadow: 0 14px 36px rgba(60, 40, 20, 0.1); }
.team-card__photo {
  position: relative;
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 149, 108, 0.22), transparent 60%),
    linear-gradient(160deg, #15130f, #0b0c0e);
}
html[data-theme="light"] .team-card__photo { background: radial-gradient(circle at 30% 20%, rgba(168, 106, 61, 0.2), transparent 60%), linear-gradient(160deg, #efe8e0, #e2d9cf); }
.team-card--3d .team-card__photo { background: radial-gradient(circle at 30% 20%, rgba(143, 166, 194, 0.25), transparent 60%), linear-gradient(160deg, #10141a, #0a0b0e); }
html[data-theme="light"] .team-card--3d .team-card__photo { background: radial-gradient(circle at 30% 20%, rgba(90, 120, 160, 0.2), transparent 60%), linear-gradient(160deg, #e6ebf1, #d8dfe8); }
.team-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card__initials {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 149, 108, 0.55);
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 44px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 10px rgba(201, 149, 108, 0.06);
}
html[data-theme="light"] .team-card__initials { color: var(--gold); }
.team-card--3d .team-card__initials { border-color: rgba(143, 166, 194, 0.6); color: #b9cbe0; box-shadow: 0 0 0 10px rgba(143, 166, 194, 0.07); }
html[data-theme="light"] .team-card--3d .team-card__initials { color: #3d5a7a; }
.team-card__dept {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.72);
  color: #f4f2ef;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.team-card__body { display: grid; gap: 8px; padding: 20px 22px 24px; align-content: start; flex: 1; }
.team-card__name { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.1; }
.team-card__role { margin: 0; color: var(--gold-bright); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
html[data-theme="light"] .team-card__role { color: var(--gold); }
.team-card__bio { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.team-card__contact { list-style: none; margin: 8px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08)); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.team-card__contact a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(201, 149, 108, 0.4); overflow-wrap: anywhere; }
.team-card__contact a:hover { color: var(--gold-bright); }
.team-empty { color: var(--muted); }
.team-hero .page-hero__lead { color: var(--muted); max-width: 60ch; margin: 14px auto 0; line-height: 1.65; }

@media (max-width: 980px) {
  .account-grid--profile { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; gap: 18px; }
  .profile-card__top { justify-content: center; }
  .profile-card .avatar--xl { width: 108px; height: 108px; }
  .profile-card__bio { margin-inline: auto; }
  .avatar-field { flex-direction: column; align-items: flex-start; }
  .team-grid, .team-grid--1, .team-grid--2, .team-grid--3, .team-grid--4 { grid-template-columns: 1fr; }
  .team-head .btn { align-self: flex-start; }
  .nav-side .auth-chip--panel { display: none; }
  .team-card__photo { aspect-ratio: 16 / 10; }
  .team-card__initials { width: 92px; height: 92px; font-size: 38px; }
}
