:root {
  --brand: #167fbd;
  --brand-dark: #075985;
  --ink: #102234;
  --muted: #5f7283;
  --line: rgba(22, 127, 189, 0.16);
  --surface: rgba(255, 255, 255, 0.9);
  --shadow: 0 28px 90px rgba(8, 51, 80, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f3f8fb;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(22, 127, 189, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(22, 127, 189, 0.11), transparent 34rem),
    linear-gradient(145deg, #fafcfd 0%, #edf5fa 50%, #f9fbfd 100%);
  overflow-x: hidden;
}

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

a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  overflow: hidden;
}

.background-grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(22, 127, 189, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 127, 189, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.glow {
  position: absolute;
  z-index: -3;
  width: min(48vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgba(22, 127, 189, 0.1);
  border-radius: 35%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(22, 127, 189, 0.04));
  transform: rotate(24deg);
}

.glow-one {
  top: -23rem;
  left: -13rem;
}

.glow-two {
  right: -22rem;
  bottom: -27rem;
}

.page-main {
  display: grid;
  place-items: center;
  width: 100%;
  padding-block: clamp(0.75rem, 4vh, 3rem);
}

.welcome-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  width: min(100%, 1040px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.brand-panel,
.content-panel {
  min-width: 0;
}

.brand-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  border-inline-start: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(237, 247, 252, 0.9), rgba(255, 255, 255, 0.28));
}

.content-panel {
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4.5rem);
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.64rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0.3rem rgba(22, 127, 189, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-divider,
.footer-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 1rem;
  background: rgba(22, 127, 189, 0.25);
}

.brand-logo {
  width: min(100%, 285px);
}

.brand-logo img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lead {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  line-height: 1.9;
}

.lead-en {
  margin-top: 0.28rem;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.72;
}

.contact-block {
  margin-top: clamp(1.6rem, 4vw, 2.5rem);
  padding-top: clamp(1.35rem, 3vw, 1.9rem);
  border-top: 1px solid var(--line);
}

.contact-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 52px;
  max-width: 100%;
  padding: 0.92rem 1.25rem;
  border: 1px solid rgba(22, 127, 189, 0.22);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 28px rgba(11, 95, 146, 0.24);
  text-decoration: none;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  font-weight: 700;
  line-height: 1.3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.email-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11, 95, 146, 0.29);
  filter: saturate(1.08);
}

.email-button:active {
  transform: translateY(0);
}

.email-button:focus-visible {
  outline: 3px solid rgba(22, 127, 189, 0.3);
  outline-offset: 4px;
}

.email-button svg {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.email-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-hint {
  margin: 0.62rem 0 0;
  color: #7b8b99;
  font-family: Arial, "Segoe UI", sans-serif;
  font-size: 0.76rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding-top: 0.4rem;
  color: #718496;
  font-size: 0.78rem;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.7; }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: max(0.72rem, env(safe-area-inset-right)) max(0.72rem, env(safe-area-inset-left));
  }

  .page-main {
    padding-block: 0.55rem 0.8rem;
  }

  .welcome-card {
    grid-template-columns: 1fr;
    width: min(100%, 560px);
    border-radius: 1.6rem;
  }

  .brand-panel {
    gap: 1rem;
    padding: 1.45rem 1rem 1.1rem;
    border-inline-start: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-logo {
    width: min(64vw, 230px);
  }

  .content-panel {
    padding: 1.45rem clamp(1rem, 5vw, 1.7rem) 1.5rem;
    text-align: center;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .lead {
    margin-inline: auto;
    line-height: 1.75;
  }

  .lead-en {
    line-height: 1.6;
  }

  .contact-label {
    justify-content: center;
  }

  .email-button {
    width: 100%;
    border-radius: 1rem;
    padding-inline: 0.9rem;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-inline: max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-left));
  }

  .brand-panel {
    padding-top: 1.15rem;
  }

  .status {
    gap: 0.42rem;
    padding: 0.55rem 0.68rem;
    font-size: 0.65rem;
  }

  .brand-logo {
    width: min(60vw, 205px);
  }

  .content-panel {
    padding: 1.2rem 0.85rem 1.3rem;
  }

  .lead {
    font-size: 0.96rem;
  }

  .email-button {
    gap: 0.55rem;
    padding-inline: 0.7rem;
    font-size: 0.78rem;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .page-main {
    padding-block: 0.5rem;
  }

  .brand-panel,
  .content-panel {
    padding-block: 2rem;
  }

  .brand-logo {
    width: min(100%, 235px);
  }

  .contact-block {
    margin-top: 1.3rem;
    padding-top: 1.2rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) and (max-width: 900px) {
  .page-shell {
    display: block;
    overflow: visible;
  }

  .welcome-card {
    grid-template-columns: minmax(210px, 0.75fr) minmax(330px, 1.25fr);
    width: min(100%, 850px);
  }

  .brand-panel {
    border-bottom: 0;
    border-inline-start: 1px solid var(--line);
  }

  .brand-panel,
  .content-panel {
    padding: 1.2rem;
  }

  .brand-logo {
    width: min(100%, 175px);
  }

  .content-panel {
    text-align: right;
  }

  .contact-label {
    justify-content: flex-start;
  }

  .site-footer {
    padding-block: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
