:root {
  --primary: #fed130;
  --blue: #095b93;
  --blue-button: #085284;
  --blue-button-hover: #06426b;
  --text: #5a5a5a;
  --text-strong: #2b2b2b;
  --surface: #ffffff;
  --surface-muted: #f7f7f7;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: #c5d0d5;
  background-image: linear-gradient(to bottom, #c5d0d5, #e8eff2);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--text-strong);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Top bar --------------------------------------------------------------- */

.topbar {
  background: var(--primary);
  color: var(--text-strong);
  font-size: 0.8125rem;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 36px;
}

.topbar-welcome {
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

.topbar-phone:hover {
  text-decoration: underline;
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--blue-button);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.topbar-login .icon {
  width: 14px;
  height: 14px;
}

.topbar-login:hover {
  background: var(--blue-button-hover);
}

.topbar-login-short {
  display: none;
}

.lang-switch {
  display: flex;
  gap: 2px;
}

.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.2s;
}

.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.45);
}

.lang-switch a[aria-current="true"] {
  background: var(--surface);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid #d6d6d6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  height: 32px;
  width: auto;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.header-link .icon {
  width: 18px;
  height: 18px;
}

.header-link:hover {
  color: var(--blue);
}

/* Intro band ------------------------------------------------------------ */

.intro {
  padding-block: 48px;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  text-align: center;
}

.intro h1 {
  max-width: 28ch;
  margin: 0 auto;
  color: var(--blue);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

/* Notice card ----------------------------------------------------------- */

main {
  flex: 1;
  padding-block: 48px 64px;
}

.card {
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
  border-top: 4px solid var(--primary);
  border-radius: 6px;
  background: linear-gradient(to bottom, var(--surface) 40%, var(--surface-muted) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 16px 32px -16px rgba(9, 91, 147, 0.35);
  text-align: center;
}

.card-body {
  padding: 40px 48px 36px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--text-strong);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-text {
  max-width: 36em;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
}

.card-text p {
  margin: 0 0 1em;
}

.card-text p:last-child {
  margin-bottom: 0;
}

.card-text strong {
  color: var(--text-strong);
  font-weight: 700;
}

.card-thanks {
  color: var(--text-strong);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 4px;
  background: var(--blue-button);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(8, 82, 132, 0.6);
  transition: background-color 0.2s, transform 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:hover {
  background: var(--blue-button-hover);
  transform: translateY(-1px);
}

.card-footer {
  display: block;
  padding: 12px 16px;
  border-top: 1px solid #e8e8e8;
  background: #f1f1f1;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.card-footer:hover {
  color: var(--blue);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid #d5dde1;
  background: var(--surface-muted);
  font-size: 0.9375rem;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
  padding-block: 24px;
}

.contact-item {
  justify-self: center;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item .icon {
  margin-top: 4px;
}

a.contact-item:hover {
  color: var(--blue);
}

.footer-legal {
  padding-block: 20px;
  border-top: 1px solid #ebebeb;
  font-size: 0.8125rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 48px;
}

.footer-nav a {
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--blue);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .topbar-welcome {
    display: none;
  }

  /* Phone shows as icon only; the number stays readable for screen readers. */
  .topbar-phone-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .topbar-actions {
    gap: 8px;
  }

  .brand {
    height: 28px;
  }

  .intro {
    padding-block: 32px;
  }

  main {
    padding-block: 32px 48px;
  }

  .card-body {
    padding: 32px 20px 28px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

  .footer-nav {
    gap: 8px 24px;
  }
}

@media (max-width: 400px) {
  .topbar-login-long {
    display: none;
  }

  .topbar-login-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
