/*
  Shared public website shell.
  Header, footer, public buttons, final CTA and newsletter styles live here so
  public subpages keep one visual system.
*/
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  opacity: 1;
}

.brand img {
  display: block;
  width: min(180px, 42vw);
  height: auto;
}

.footer-logo img {
  display: block;
  width: 74px;
  height: auto;
}

.brand .brand-logo--light,
.footer-logo .brand-logo--light,
html[data-app-theme="light"] .brand .brand-logo--dark,
html[data-app-theme="light"] .footer-logo .brand-logo--dark {
  display: none;
}

html[data-app-theme="light"] .brand .brand-logo--light,
html[data-app-theme="light"] .footer-logo .brand-logo--light,
html:not([data-app-theme="light"]) .brand .brand-logo--dark,
html:not([data-app-theme="light"]) .footer-logo .brand-logo--dark {
  display: block;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.lang,
.theme-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.lang a,
.theme-switch button {
  min-width: 50px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: var(--soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  box-shadow: none;
}

.theme-switch button {
  min-width: 34px;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.lang a:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
}

.btn,
.site-header button,
.site-footer button {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn:hover,
.site-header button:hover,
.site-footer button:hover {
  transform: translateY(-1px);
}

.site-header .theme-switch {
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}

.site-header .theme-switch button {
  min-width: 50px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--soft);
  font-size: 16px;
  line-height: 1;
}

.site-header .theme-switch button:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text);
  transform: none;
}

.lang a.is-active,
html[data-app-theme] .site-header .theme-switch button.is-active,
html[data-app-theme="light"] .site-header .theme-switch button.is-active,
html:not([data-app-theme="light"]) .site-header .theme-switch button.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #f0fdf4;
  box-shadow: 0 16px 30px rgba(21, 128, 61, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a {
  color: var(--soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.section {
  padding: 38px 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.58);
}

.final-cta h2,
.final-cta p {
  margin: 0;
}

.final-cta p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.newsletter-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.58);
}

.newsletter-box h2,
.newsletter-box p {
  margin: 0;
}

.newsletter-box p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.newsletter-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--field-border, rgba(148, 163, 184, 0.34));
  border-radius: 10px;
  background: var(--field-bg, rgba(15, 23, 42, 0.58));
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.newsletter-form input::placeholder {
  color: var(--muted);
  font-weight: 600;
  opacity: 1;
}

.newsletter-form input:hover {
  border-color: rgba(56, 189, 248, 0.48);
}

.newsletter-form input:focus {
  border-color: var(--blue, #38bdf8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

html[data-app-theme="light"] .newsletter-form input {
  border-color: rgba(122, 139, 158, 0.32);
  background: rgba(255, 255, 255, 0.86);
  color: #102033;
}

html[data-app-theme="light"] .newsletter-form input::placeholder {
  color: #5e6f82;
}

html[data-app-theme="light"] .newsletter-form input:hover {
  border-color: rgba(14, 165, 233, 0.52);
}

html[data-app-theme="light"] .newsletter-form input:focus {
  border-color: #0ea5e9;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
}

html[data-app-theme="light"] .final-cta,
html[data-app-theme="light"] .newsletter-box {
  border-color: rgba(122, 139, 158, 0.26);
  background: rgba(241, 245, 249, 0.92);
}

.newsletter-form .btn {
  min-height: 56px;
}

.newsletter-response {
  grid-column: 1 / -1;
  min-height: 20px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .newsletter-box,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
