body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background: var(--secondary);
  color: var(--text);
}

.page-shell {
  min-height: calc(100vh - 4rem);
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(23, 43, 77, 0.12);
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.header-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.header-row-top {
  align-items: flex-start;
}

.header-row-bottom {
  align-items: flex-end;
}

.header-page {
  flex: 1;
}

.site-title {
  margin: 0 0 0.45rem;
}

.site-title-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-page-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.header-copy {
  margin-top: 0.55rem;
  line-height: 1.6;
  max-width: 54ch;
}

.header-contact,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header-contact {
  align-items: flex-end;
  text-align: right;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.site-nav a,
.footer-nav a,
.footer-company-name {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a.is-current,
.footer-nav a.is-current,
.footer-company-name {
  color: var(--primary);
  font-weight: 700;
}

.language-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.language-switcher select {
  border: 1px solid rgba(23, 43, 77, 0.18);
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 0.55rem 0.9rem;
}

.header-contact p,
.footer-contact p,
.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.content {
  padding: 1.5rem 0;
  flex: 1;
}

.layout-hero .page-body {
  background: rgba(31, 95, 167, 0.08);
  padding: 1.4rem;
  border-radius: 8px;
}

.layout-text .page-body {
  padding: 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 193, 7, 0.08);
}

.page-body p {
  margin: 0;
  line-height: 1.7;
}

.page-body > *:first-child {
  margin-top: 0;
}

.page-body > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 1rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-row-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.footer-brand-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-company-name {
  font-size: 1.15rem;
}

.footer-language-heading {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 72%, var(--background));
}

.footer-contact {
  align-items: flex-end;
  text-align: right;
}

.footer-heading {
  font-weight: 700;
}

.footer-row-promo {
  display: flex;
  justify-content: center;
}

.promo-footer {
  margin: 0;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--text) 58%, var(--background));
  text-align: center;
}

.promo-footer a {
  color: inherit;
  text-decoration: none;
}

.promo-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .page-shell {
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .header-row,
  .footer-row-main,
  .site-nav,
  .footer-nav,
  .header-contact,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-row-main {
    display: flex;
  }
}
