:root {
  --navy: #0b1e44;
  --ink: #12243d;
  --muted: #5c6b80;
  --line: #e3e8f0;
  --paper: #f6f8fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.banner {
  background: var(--navy);
}

.banner img {
  display: block;
  width: 100%;
  height: auto;
}

main {
  flex: 1;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4.5rem 1.75rem 5.5rem;
}

.lead {
  margin: 0;
  max-width: 16em;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: min(100%, 22rem);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 30, 68, 0.04);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.contact svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--navy);
}

.contact span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact:hover {
  border-color: #c5d2e4;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 30, 68, 0.08);
}

.contact:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(11, 30, 68, 0.16);
}

.legal {
  padding: 0 1.75rem 2.5rem;
  text-align: center;
}

.legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 840px) {
  .panel {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.5rem 1.25rem 3.25rem;
  }

  .contact {
    width: 100%;
  }
}
