:root {
  --brand-primary: #03386f;
  --brand-secondary: #004996;
  --brand-accent: #004996;
  --brand-amber: #f4b23f;
  --text-ink: #0c1b2d;
  --text-muted: #5b6b7a;
  --surface: #f7f9fc;
  --card: #ffffff;
  --border-soft: rgba(15, 47, 82, 0.15);
}

body {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 20%, rgba(14, 167, 160, 0.12), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(244, 178, 63, 0.18), transparent 28%),
    linear-gradient(160deg, #f7f9fc 0%, #eef3fb 60%, #f7f9fc 100%);
  color: var(--text-ink);
  min-height: 100%;
  line-height: 1.6;
}

#layout {
  background: linear-gradient(180deg, rgba(15, 47, 82, 0.04) 0%, rgba(14, 167, 160, 0.03) 45%, rgba(15, 47, 82, 0.02) 100%);
}

#header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 55%, var(--brand-accent) 100%);
  color: #fff;
  box-shadow: 0 10px 35px rgba(12, 27, 45, 0.28);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 150px;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
  display: block;
  height: 58px;
  width: auto;
}

.brand-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-accent {
  color: var(--brand-amber);
}

.brand-strong {
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.menuspace .menu-link {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menuspace .menu-link:hover,
.menuspace .menu-link:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-menu {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 27, 45, 0.2);
  color: #fff;
  padding: 0.65rem 0.75rem !important;
  min-width: 13rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.language-menu option {
  color: #0c1b2d;
}

.theme-language-drawer #menu {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(12, 27, 45, 0.35);
}

.languagebar-title {
  padding: 0.75rem 1rem 0.25rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.theme-language-drawer .pure-menu-heading {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.theme-language-drawer .pure-menu-link,
.theme-language-drawer .pure-menu-heading {
  padding: 0.9rem 1rem;
}

.theme-language-drawer a:hover,
.theme-language-drawer a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#content {
  padding: 2.5rem 0;
}

#content .wrap {
  background: var(--card);
  padding: 2rem 2.25rem;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(12, 27, 45, 0.08);
}

h1 {
  color: var(--text-ink);
  font-weight: 800;
  margin-bottom: 0.3em;
}

h2 {
  color: var(--brand-secondary);
  border-bottom: 2px solid rgba(15, 47, 82, 0.12);
}

p,
li {
  color: var(--text-muted);
}

a {
  color: var(--brand-secondary);
  font-weight: 600;
}

a:hover,
a:focus {
  color: var(--brand-primary);
}

.pure-form input[type=text],
.pure-form input[type=password],
.pure-form input[type=email],
.pure-form input[type=url],
.pure-form select,
.pure-form textarea {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 0.65rem 0.75rem;
  background: #fdfefe;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pure-form input:focus,
.pure-form select:focus,
.pure-form textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(14, 167, 160, 0.25);
  outline: none;
}

.pure-button {
  border-radius: 12px;
  background: var(--brand-secondary);
  border: 1px solid var(--brand-secondary);
  color: #fff;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pure-button:hover,
.pure-button:focus {
  background: var(--brand-primary);
  box-shadow: 0 8px 18px rgba(12, 27, 45, 0.15);
  transform: translateY(-1px);
  color: #fff;
}

.pure-button-red {
  background: #f05a28;
  border-color: #f05a28;
}

.pure-button.hollow {
  background: transparent;
  color: var(--brand-secondary);
  border-color: var(--border-soft);
}

.message-box {
  border-radius: 14px;
  border-left: 6px solid var(--brand-accent);
  background: linear-gradient(90deg, rgba(14, 167, 160, 0.12), rgba(14, 167, 160, 0.05));
  color: var(--text-ink);
}

.message-box.error {
  border-left-color: #f05a28;
  background: linear-gradient(90deg, rgba(240, 90, 40, 0.14), rgba(240, 90, 40, 0.06));
}

.message-box.warning {
  border-left-color: var(--brand-amber);
  background: linear-gradient(90deg, rgba(244, 178, 63, 0.16), rgba(244, 178, 63, 0.06));
}

.message-box.success {
  border-left-color: #36c26d;
  background: linear-gradient(90deg, rgba(54, 194, 109, 0.16), rgba(54, 194, 109, 0.06));
}

#footer {
  width: 100%;
  background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 60%);
  padding: 1.6rem 0;
  text-align: left;
  color: #fff;
  box-shadow: 0 -6px 24px rgba(12, 27, 45, 0.1);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-text {
  margin: 0.3rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-links a:hover,
.footer-links a:focus {
  border-bottom-color: #fff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  align-self: center;
  transform: translateY(-18px);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18));
}

.footer-year {
  color: rgba(255, 255, 255, 0.78);
}

@media screen and (max-width: 860px) {
  .header-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  #content .wrap {
    padding: 1.5rem 1.25rem;
  }
}

@media screen and (max-width: 520px) {
  .brand-block {
    align-items: flex-start;
  }

  .brand-logo {
    width: 120px;
    padding: 0.3rem 0.5rem;
  }

  .language-menu {
    min-width: 0;
    width: 100%;
  }

  .footer-logo-img {
    height: 48px;
    transform: translateY(-12px);
  }
}
