:root {
  --paper: #fff8ef;
  --surface: #fffdf8;
  --ink: #352622;
  --muted: #77645e;
  --line: #ead8c5;
  --terracotta: #cf5f45;
  --amber: #d88a31;
  --plum: #7f5a83;
  --olive: #667a54;
  --rose: #f3c4ad;
  --shadow: 0 22px 60px rgba(103, 64, 43, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(243, 196, 173, 0.45), transparent 30rem),
    linear-gradient(135deg, #fff8ef 0%, #f9eadb 48%, #f5ddc7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.has-consent {
  padding-bottom: 112px;
}

a {
  color: inherit;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255, 248, 239, 0.86);
  border-bottom: 1px solid rgba(234, 216, 197, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: auto;
  height: 47px;
  max-width: 210px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(207, 95, 69, 0.22));
}

.nav {
  gap: 10px;
}

.nav-group,
.nav-guide {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
}

.nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.nav-guide {
  padding: 12px 16px !important;
}

.nav a[aria-current="page"] {
  background: var(--ink);
  color: #fffaf2;
}

.hero-band,
.actions-bar,
.tool-layout,
.comparison-grid,
.compatibility,
.empty-state,
.legal-page,
.knowledge-section,
.guide-hero,
.guide-category {
  margin-top: 22px;
}

.hero-band {
  display: grid;
  gap: 22px;
  min-height: 480px;
  align-items: end;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(53, 38, 34, 0.58), rgba(53, 38, 34, 0.14)),
    radial-gradient(circle at 78% 18%, rgba(255, 248, 239, 0.45), transparent 12rem),
    linear-gradient(135deg, #b94e3f 0%, #d88a31 42%, #8a695d 100%);
  color: #fffaf2;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.partner-hero {
  background:
    linear-gradient(160deg, rgba(53, 38, 34, 0.62), rgba(53, 38, 34, 0.18)),
    radial-gradient(circle at 78% 18%, rgba(255, 248, 239, 0.38), transparent 12rem),
    linear-gradient(135deg, #8c4d5f 0%, #c86542 46%, #667a54 100%);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 8px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 8vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.1;
}

.hero-copy p:last-child,
.empty-state p,
.compatibility p {
  max-width: 58ch;
  color: inherit;
  font-size: 1.02rem;
  opacity: 0.86;
}

.birth-form {
  display: grid;
  gap: 9px;
  width: min(100%, 520px);
  padding: 16px;
  border: 1px solid rgba(255, 250, 242, 0.46);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.16);
  backdrop-filter: blur(18px);
}

.birth-form label {
  font-size: 0.85rem;
  font-weight: 800;
}

.input-row {
  display: grid;
  gap: 10px;
}

input,
button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font: inherit;
}

input {
  padding: 0 14px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(234, 216, 197, 0.85);
}

button {
  padding: 0 18px;
  background: var(--ink);
  color: #fffaf2;
  cursor: pointer;
  font-weight: 900;
}

.actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-link,
.actions-bar button {
  width: auto;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 900;
}

.action-link {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fffaf2;
  text-decoration: none;
}

.actions-bar button {
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.share-whatsapp {
  background: #1f8f56;
}

.share-telegram {
  background: #2779a7;
}

.share-copy {
  background: rgba(255, 253, 248, 0.9);
}

.share-copy.is-copied {
  background: #1f8f56;
  color: #fffaf2;
  box-shadow: none;
}

.stacked {
  align-self: end;
  align-content: start;
  row-gap: 10px;
}

.stacked label {
  margin: 2px 0 -2px;
}

.stacked input {
  margin: 0 0 4px;
}

.stacked button {
  margin-top: 0;
}

.tool-layout,
.comparison-grid {
  display: grid;
  gap: 18px;
}

.chart-tip-stack {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.chart-panel,
.reading,
.compatibility,
.daily-tip,
.empty-state,
.legal-page,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 16px 48px rgba(103, 64, 43, 0.1);
}

.chart-panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.bio-chart {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  min-height: 260px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.legend span,
.legend i {
  display: inline-flex;
  align-items: center;
}

.legend i {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--dot);
}

.reading-list {
  display: grid;
  gap: 12px;
}

.chart-panel .reading-list {
  margin-top: 18px;
}

.compact-heading {
  display: block;
  margin-bottom: -2px;
}

.reading {
  padding: 16px;
}

.reading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reading-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.reading strong {
  font-size: 1.15rem;
}

meter {
  width: 100%;
  height: 12px;
  margin: 12px 0 10px;
}

.reading p {
  margin-bottom: 0;
  color: var(--muted);
}

.reading b {
  color: var(--ink);
}

.comparison-grid {
  grid-template-columns: 1fr;
}

.compatibility {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.guidance-panel {
  border-left: 4px solid var(--terracotta);
  background: #fff0e4;
  box-shadow: 0 16px 44px rgba(154, 84, 57, 0.13);
}

.daily-tip {
  padding: 20px;
}

.daily-tip p:last-child {
  max-width: 68ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.guidance-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guidance-heading h2,
.guidance-heading .eyebrow {
  margin-bottom: 0;
}

.guidance-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #fffaf2;
  box-shadow: inset 0 0 0 1px rgba(207, 95, 69, 0.24);
  font-size: 1.25rem;
}

.guidance-context {
  margin: 14px 0 6px;
  color: var(--terracotta);
  font-size: 0.86rem;
  font-weight: 900;
}

.score-bars {
  display: grid;
  gap: 14px;
}

.score-bars span {
  display: grid;
  grid-template-columns: 104px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.score-bars b,
.score-bars em {
  font-size: 0.88rem;
  font-style: normal;
}

.score-bars i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta) var(--score), rgba(234, 216, 197, 0.9) var(--score));
}

.empty-state {
  padding: 28px;
}

.knowledge-section {
  padding-top: 24px;
  border-top: 1px solid rgba(207, 95, 69, 0.18);
}

.content-section,
.faq-section {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 16px 48px rgba(103, 64, 43, 0.08);
}

.content-heading {
  max-width: 820px;
  margin-bottom: 20px;
}

.content-heading h2 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 5vw, 2.7rem);
}

.content-heading p:last-child {
  max-width: 72ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.content-grid {
  display: grid;
  gap: 18px;
}

.content-grid article {
  padding-top: 16px;
  border-top: 1px solid rgba(234, 216, 197, 0.86);
}

.content-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.14rem;
}

.content-grid p {
  max-width: 72ch;
  color: #5e4b45;
}

.content-grid p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid rgba(234, 216, 197, 0.92);
  border-radius: 8px;
  background: #fff8ef;
}

.faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
}

.knowledge-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.knowledge-heading h2,
.guide-category-heading h2 {
  margin-bottom: 6px;
}

.knowledge-heading p:last-child {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--muted);
}

.article-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 14px 38px rgba(103, 64, 43, 0.09);
}

.article-card h3 {
  margin: 4px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card > p:not(.article-category) {
  flex: 1;
  color: var(--muted);
}

.article-category {
  margin: 0;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  color: var(--terracotta);
  font-weight: 900;
  text-underline-offset: 4px;
}

.guide-hero {
  padding: 34px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #9d4f3d 0%, #c77b3a 58%, #7a6650 100%);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.guide-hero h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
}

.guide-hero > p:last-child {
  max-width: 65ch;
  margin-bottom: 0;
  font-size: 1.08rem;
  opacity: 0.9;
}

.guide-category {
  padding-top: 12px;
}

.guide-category + .guide-category {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.guide-category-heading {
  margin-bottom: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  text-underline-offset: 3px;
}

.guide-article {
  max-width: 850px;
}

.article-header {
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  max-width: 850px;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
}

.article-lead {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.18rem;
}

.article-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-body {
  padding: 28px 0 8px;
  color: #493732;
  font-size: 1.04rem;
}

.article-body h2 {
  margin-top: 30px;
  font-size: 1.65rem;
}

.article-body p,
.article-body li {
  max-width: 74ch;
}

.article-body li + li {
  margin-top: 7px;
}

.article-body a,
.article-note a {
  color: #a54432;
  font-weight: 750;
  text-decoration-color: rgba(207, 95, 69, 0.45);
  text-underline-offset: 3px;
}

.article-body a:hover,
.article-note a:hover {
  color: var(--terracotta);
  text-decoration-color: currentColor;
}

.article-note {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff0e4;
}

.article-note p {
  margin: 5px 0 0;
  color: var(--muted);
}

.article-cta {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf2;
}

.article-cta h2 {
  margin-bottom: 0;
}

.article-cta .action-link {
  justify-self: start;
  background: #fffaf2;
  color: var(--ink);
}

.not-found {
  position: relative;
  min-height: 460px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 7vw, 64px);
  border-color: rgba(207, 95, 69, 0.25);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 240, 228, 0.92));
}

.not-found h1 {
  position: relative;
  max-width: 640px;
  font-size: clamp(2.3rem, 8vw, 4.5rem);
}

.not-found > p:not(.eyebrow):not(.not-found-code) {
  position: relative;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.not-found-code {
  position: absolute;
  top: 6px;
  right: 24px;
  margin: 0;
  color: rgba(207, 95, 69, 0.09);
  font-size: clamp(8rem, 24vw, 14rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.not-found-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.75);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.site-footer {
  display: grid;
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 30px max(16px, calc((100vw - 1120px) / 2)) 36px;
  border-top: 1px solid rgba(207, 95, 69, 0.24);
  background: rgba(255, 253, 248, 0.52);
  color: var(--muted);
  box-shadow: inset 0 8px 24px rgba(103, 64, 43, 0.035);
}

.site-footer p {
  max-width: 56ch;
  margin: 10px 0 0;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 26px;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-weight: 750;
}

.footer-title {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer a {
  text-decoration-color: rgba(207, 95, 69, 0.32);
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-footer a:hover {
  color: var(--terracotta);
  text-decoration-color: currentColor;
}

.legal-page {
  max-width: 820px;
  padding: 26px;
}

.legal-page h1 {
  font-size: clamp(2rem, 8vw, 3.6rem);
}

.legal-page h2 {
  margin-top: 26px;
}

.legal-page address {
  margin: 18px 0;
  font-style: normal;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-form label {
  color: var(--muted);
  font-weight: 900;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-help {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(234, 216, 197, 0.85);
  font: inherit;
}

.notice {
  padding: 16px;
  margin: 14px 0 20px;
}

.notice p {
  margin: 6px 0 0;
  color: var(--muted);
}

.notice-success {
  border-color: rgba(102, 122, 84, 0.34);
  border-left: 4px solid var(--olive);
  background: #f2f7ed;
}

.notice-success strong {
  color: #4d633f;
}

.notice-error {
  border-left: 4px solid var(--physical);
  background: #fff0e8;
}

.tower-shell {
  display: grid;
  gap: 18px;
  padding-block: 34px 54px;
}

.tower-hero,
.tower-panel,
.tower-stats article {
  border: 1px solid rgba(234, 216, 197, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: 0 22px 70px rgba(103, 64, 43, 0.08);
}

.tower-hero {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 88% 18%, rgba(223, 139, 42, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(255, 235, 221, 0.86));
}

.tower-hero h1,
.tower-panel h2 {
  margin: 4px 0 0;
}

.tower-hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 8vw, 5rem);
}

.tower-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.tower-filter {
  display: grid;
  gap: 8px;
  align-self: end;
  max-width: 220px;
}

.tower-filter label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tower-filter select {
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 0;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(234, 216, 197, 0.9);
  font: inherit;
  font-weight: 800;
}

.tower-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tower-stats article {
  padding: 16px;
}

.tower-stats span,
.tower-panel-head > span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tower-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 1;
}

.tower-panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
}

.tower-panel-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tower-panel-head h2 {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.tower-grid {
  display: grid;
  gap: 18px;
}

.tower-chart-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0 0;
}

.tower-axis {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  height: 230px;
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
}

.tower-axis span {
  transform: translateY(-0.4em);
}

.tower-axis span:last-child {
  align-self: end;
  transform: translateY(0);
}

.tower-chart {
  display: flex;
  align-items: stretch;
  gap: 7px;
  height: 230px;
  padding: 0 10px 4px;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(234, 216, 197, 0.62) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(255, 247, 238, 0.55), rgba(255, 253, 248, 0.8));
  overflow-x: auto;
}

.tower-bar {
  position: relative;
  display: flex;
  flex: 1 0 25px;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 25px;
  height: 226px;
  padding-top: 24px;
}

.tower-bar span {
  display: block;
  width: 100%;
  min-height: 4px;
  border: 1px solid rgba(207, 95, 69, 0.2);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #cf5f45 0%, #df8b2a 100%);
  box-shadow: 0 8px 16px rgba(207, 95, 69, 0.14);
}

.tower-bar.is-empty span {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tower-chart-dach .tower-bar span {
  border-color: rgba(39, 121, 167, 0.24);
  background: linear-gradient(180deg, #2b8fbd 0%, #76c4d6 100%);
  box-shadow: 0 8px 16px rgba(39, 121, 167, 0.16);
}

.tower-chart-dach .tower-bar:not(.is-empty) span {
  min-height: 4px;
  border: 1px solid rgba(39, 121, 167, 0.24);
  background: linear-gradient(180deg, #2b8fbd 0%, #76c4d6 100%);
  box-shadow: 0 8px 16px rgba(39, 121, 167, 0.16);
}

.tower-bar b {
  position: absolute;
  right: 50%;
  top: 2px;
  display: none;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  transform: translateX(50%);
}

.tower-bar small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.tower-bar:nth-child(5n + 1) b,
.tower-bar:hover b {
  display: block;
}

.tower-list {
  display: grid;
  gap: 12px;
}

.tower-row {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border-radius: 8px;
  background: #fff8ef;
}

.tower-row > div {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.tower-row strong,
.tower-table th {
  color: var(--ink);
  font-weight: 900;
}

.tower-row span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.tower-row i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  min-width: 3px;
  background: rgba(207, 95, 69, 0.14);
}

.tower-pills,
.tower-months {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tower-pills span,
.tower-months span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(234, 216, 197, 0.9);
  border-radius: 999px;
  background: #fff8ef;
  color: var(--muted);
  font-weight: 800;
}

.tower-pills b,
.tower-months b {
  color: var(--ink);
}

.tower-dach-meter {
  height: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(234, 216, 197, 0.78);
}

.tower-dach-meter span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.tower-dach-stats {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.tower-dach-stats > div {
  padding: 14px;
  border: 1px solid rgba(234, 216, 197, 0.9);
  border-radius: 8px;
  background: #fff8ef;
}

.tower-dach-stats span,
.tower-dach-stats small {
  display: block;
}

.tower-dach-stats span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tower-dach-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.tower-dach-stats small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tower-dach-stats i {
  display: block;
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(234, 216, 197, 0.78);
}

.tower-dach-stats b {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
}

.tower-note {
  margin: 0 0 14px;
  color: var(--muted);
}

.tower-table {
  width: 100%;
  border-collapse: collapse;
}

.tower-table th,
.tower-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(234, 216, 197, 0.8);
  text-align: left;
  vertical-align: top;
}

.tower-table td:last-child {
  text-align: right;
}

.tower-subrow td {
  padding-top: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: left !important;
}

.tower-referrers {
  display: grid;
  gap: 10px;
}

.tower-referrers div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8ef;
}

.tower-referrers strong {
  color: var(--terracotta);
}

.tower-referrers span,
.tower-referrers p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tower-scroll {
  overflow-x: auto;
}

.tower-log {
  min-width: 760px;
}

.tower-log thead th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tower-log td:last-child {
  max-width: 320px;
  text-align: left;
  overflow-wrap: anywhere;
}

.tower-events {
  min-width: 680px;
}

.tower-events th:first-child,
.tower-events td:first-child {
  width: 34%;
}

.tower-events td:nth-child(3),
.tower-events td:nth-child(4),
.tower-events td:nth-child(5),
.tower-events th:nth-child(3),
.tower-events th:nth-child(4),
.tower-events th:nth-child(5) {
  text-align: right;
}

.consent-banner {
  position: fixed;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 8;
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(234, 216, 197, 0.96);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.95);
  color: var(--ink);
  box-shadow: 0 18px 54px rgba(103, 64, 43, 0.18);
  backdrop-filter: blur(18px);
}

.consent-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-banner button {
  min-height: 42px;
}

.button-ghost {
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .input-row {
    grid-template-columns: 1fr auto;
  }

  .input-row button {
    width: auto;
  }

  .hero-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.56fr);
    min-height: 540px;
  }

  .tool-layout {
    grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.62fr);
    align-items: start;
  }

  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compatibility {
    grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.56fr);
    align-items: center;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: start;
  }

  .footer-links {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .article-cta {
    grid-template-columns: 1fr auto;
  }

  .consent-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
    left: 24px;
    right: 24px;
    bottom: 20px;
  }

  .consent-banner button {
    width: auto;
  }

  .tower-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .tower-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tower-dach-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  main {
    width: min(100% - 20px, 1120px);
  }

  .topbar {
    padding: 10px;
  }

  .brand span:last-child {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-band {
    min-height: 520px;
    padding: 20px;
  }

  .score-bars span {
    grid-template-columns: 88px 1fr 38px;
  }

  .knowledge-heading {
    display: block;
  }

  .knowledge-heading .text-link {
    display: inline-block;
    margin-top: 10px;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
  }

  .brand img {
    height: 42px;
  }

  .nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }

  .nav-group {
    gap: 2px;
    padding: 3px;
  }

  .nav a {
    padding: 7px 8px;
    font-size: 0.76rem;
  }

  .nav-guide {
    padding: 10px 11px !important;
  }
}
