:root {
  --thenar-accent: #b31f24;
  --thenar-accent-dark: #7f171a;
  --thenar-ink: #1f2430;
  --thenar-soft: #f4efe8;
  --thenar-sand: #e7ddd2;
  --thenar-card: #fffdf9;
  --thenar-muted: #6f6a63;
  --thenar-line: rgba(31, 36, 48, 0.12);
  --thenar-shadow: 0 22px 60px rgba(31, 36, 48, 0.12);
  --thenar-radius: 24px;
  --thenar-page-pad: clamp(20px, 4vw, 56px);
}

body {
  background: linear-gradient(180deg, #fbf8f2 0%, #f2ece4 100%);
  color: var(--thenar-ink);
}

.thenar-header-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--thenar-line);
  box-shadow: 0 10px 30px rgba(31, 36, 48, 0.06);
}

.thenar-header-top,
.thenar-header-main,
.thenar-header-secondary,
.thenar-after-header,
.thenar-before-body-slot,
.thenar-before-footer,
.thenar-footer-main,
.thenar-after-footer {
  width: min(1280px, calc(100% - 2 * var(--thenar-page-pad)));
  margin: 0 auto;
}

.thenar-header-top {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--thenar-muted);
}

.thenar-header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}

.thenar-header-main > *,
.thenar-header-top > *,
.thenar-header-secondary > * {
  margin: 0;
}

.thenar-header-main .widget,
.thenar-header-top .widget,
.thenar-header-secondary .widget {
  margin: 0;
}

.thenar-logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.thenar-logo img {
  display: block;
  max-height: 54px;
  width: auto;
}

.thenar-topbar-note {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thenar-topbar-note a,
.thenar-footer-company-widget a,
.thenar-footer-credits-widget a,
.thenar-footer-cta-widget a {
  color: inherit;
  text-decoration: none;
}

.thenar-page-shell {
  padding-bottom: 48px;
}

.thenar-page-hero {
  width: min(1280px, calc(100% - 2 * var(--thenar-page-pad)));
  margin: 0 auto 28px;
  padding: clamp(36px, 8vw, 88px) 0 10px;
}

.thenar-page-shell.thenar-home-shell .thenar-page-hero {
  padding-top: clamp(56px, 10vw, 112px);
}

.thenar-page-title,
.thenar-page-subtitle {
  margin: 0;
}

.thenar-page-title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.thenar-page-subtitle {
  max-width: 54rem;
  margin-top: 16px;
  color: var(--thenar-muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.45;
}

.thenar-page-layout {
  width: min(1280px, calc(100% - 2 * var(--thenar-page-pad)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 40px);
  gap: clamp(18px, 2vw, 32px);
  align-items: start;
}

.thenar-home-layout {
  grid-template-columns: minmax(0, 1fr);
}

.thenar-side-slot,
.thenar-body-slot,
.thenar-right-slot {
  min-width: 0;
}

.thenar-body-slot {
  background: var(--thenar-card);
  border: 1px solid rgba(179, 31, 36, 0.08);
  border-radius: var(--thenar-radius);
  box-shadow: var(--thenar-shadow);
  padding: clamp(24px, 3vw, 42px);
}

.thenar-home-layout .thenar-body-slot {
  max-width: 960px;
}

.thenar-richtext {
  color: var(--thenar-ink);
  font-size: 1rem;
  line-height: 1.8;
}

.thenar-richtext h2,
.thenar-richtext h3 {
  margin: 32px 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.thenar-richtext p,
.thenar-richtext ul,
.thenar-richtext ol {
  margin: 0 0 18px;
}

.thenar-richtext ul,
.thenar-richtext ol {
  padding-left: 22px;
}

.thenar-before-footer {
  margin-top: 32px;
}

.thenar-footer-cta-widget .thenar-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: calc(var(--thenar-radius) + 4px);
  background: linear-gradient(135deg, var(--thenar-accent) 0%, var(--thenar-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 30px 50px rgba(127, 23, 26, 0.24);
}

.thenar-cta h3,
.thenar-cta p {
  margin: 0;
}

.thenar-cta p {
  margin-top: 8px;
  max-width: 52rem;
  color: rgba(255, 255, 255, 0.82);
}

.thenar-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--thenar-accent-dark);
  font-weight: 700;
}

.thenar-footer-shell {
  padding: 0 0 30px;
}

.thenar-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0 14px;
}

.thenar-footer-static-widget,
.thenar-footer-main .widget_menu_footer {
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--thenar-line);
  border-radius: 20px;
  padding: 22px 24px;
}

.thenar-footer-static-widget strong,
.thenar-footer-main .widget_menu_footer .menu-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.thenar-footer-static-widget p {
  margin: 0;
  color: var(--thenar-muted);
  line-height: 1.7;
}

.thenar-footer-static-entry + .thenar-footer-static-entry {
  margin-top: 12px;
}

.thenar-footer-main .widget_menu_footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thenar-footer-main .widget_menu_footer a {
  color: var(--thenar-ink);
  text-decoration: none;
}

.thenar-footer-main .widget_menu_footer a:hover {
  color: var(--thenar-accent);
}

.thenar-footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.thenar-footer-main li + li {
  margin-top: 10px;
}

.thenar-after-footer {
  padding: 10px 0 0;
}

.thenar-footer-credits-widget {
  color: var(--thenar-muted);
  font-size: 13px;
}

.thenar-footer-credits-widget p {
  margin: 0;
}

@media (max-width: 1080px) {
  .thenar-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .thenar-right-slot {
    display: none;
  }

  .thenar-footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .thenar-header-top,
  .thenar-header-main,
  .thenar-header-secondary,
  .thenar-before-footer,
  .thenar-footer-main,
  .thenar-after-footer,
  .thenar-page-hero,
  .thenar-page-layout {
    width: min(100% - 32px, 1280px);
  }

  .thenar-header-main {
    flex-wrap: wrap;
  }

  .thenar-footer-cta-widget .thenar-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}
