:root {
  --bg: #f4f0eb;
  --card: #f8f5f1;
  --text: #1e2430;
  --muted: #66615d;
  --accent: #a21f5a;
  --accent-dark: #7e1545;
  --border: #d8cec5;
  --dark: #1f2835;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(31, 40, 53, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body[data-i18n-ready="0"] .app-shell,
body[data-i18n-ready="error"] .app-shell {
  display: none;
}

.i18n-error {
  display: none;
  background: #fff1f4;
  color: #7e1545;
  border-bottom: 1px solid #e2c2cf;
}

body[data-i18n-ready="error"] .i18n-error {
  display: block;
}

.i18n-error .container {
  padding: 16px 0;
  font-weight: 700;
  text-align: center;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
select,
textarea,
button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.95rem;
}

.site-banner {
  display: block;
  background: linear-gradient(90deg, #a21f5a 0%, #c43b6d 100%);
  color: var(--white);
  border-bottom: 1px solid rgba(31, 40, 53, 0.12);
}

.site-banner[hidden] {
  display: none;
}

.site-banner-inner {
  padding: 12px 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.topbar-inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  padding-left: 8px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 34px 0 20px;
}

.hero-card,
.form-card,
.info-card,
.content-card,
.highlight-card,
.contact-card,
.summary-card,
.panel,
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
  background: linear-gradient(180deg, #f7f2ed 0%, #f1e9e1 100%);
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
}

.section-title h2 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.back-link {
  display: inline-flex;
  margin-top: 20px;
  font-weight: 700;
  color: var(--accent);
}

.footer {
  background: var(--dark);
  color: var(--white);
  margin-top: 26px;
  padding-top: 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-item strong {
  display: block;
  margin-bottom: 2px;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0 24px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
}

.topbar-links a:hover,
.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  .hero-card,
  .form-card,
  .info-card,
  .content-card,
  .highlight-card,
  .contact-card,
  .summary-card {
    padding: 20px;
  }

  .topbar-inner {
    justify-content: center;
  }

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