:root {
  color-scheme: light;
  --ink: #20232f;
  --muted: #606878;
  --line: #e4e1dc;
  --paper: #fffdf9;
  --wash: #f7f5f1;
  --green: #1f765b;
  --green-deep: #14543f;
  --red: #b6312e;
  --red-soft: #f7e7e4;
  --gold: #c28f32;
  --shadow: 0 24px 80px rgba(32, 35, 47, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wash);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(31, 118, 91, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(182, 49, 46, 0.1), transparent 34%),
    var(--wash);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(32, 35, 47, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 35, 47, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 28px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: clamp(390px, 56vh, 560px);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
  border: 1px solid rgba(228, 225, 220, 0.95);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.98), rgba(255, 253, 249, 0.9) 45%, rgba(247, 245, 241, 0.96)),
    var(--paper);
  box-shadow: var(--shadow);
}

.identity {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.crest {
  width: clamp(108px, 12vw, 150px);
  height: auto;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 24px rgba(32, 35, 47, 0.12));
}

.overline {
  margin: 0;
  color: var(--green);
  font-size: clamp(0.84rem, 1.8vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.95;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: clamp(18px, 3vw, 26px);
  padding: 15px 24px;
  color: var(--red);
  font-size: clamp(0.98rem, 2.8vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(182, 49, 46, 0.2);
  border-radius: 999px;
  background: var(--red-soft);
}

.status svg,
.icon svg {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

.intro {
  max-width: 850px;
  margin: clamp(18px, 3vw, 26px) auto 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.contacts {
  display: grid;
  gap: 26px;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 16px 50px rgba(32, 35, 47, 0.08);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  min-height: 148px;
  padding: 22px;
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(31, 118, 91, 0.16);
  border-radius: 8px;
  background: #ffffff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  border-color: rgba(31, 118, 91, 0.42);
  box-shadow: 0 14px 34px rgba(31, 118, 91, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green-deep);
  border-radius: 8px;
  background: rgba(31, 118, 91, 0.09);
}

.contact-item span span,
.contact-item strong {
  display: block;
}

.label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-item strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-item span {
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 32px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .page-shell {
    padding-top: 24px;
  }

  .hero {
    min-height: auto;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

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

@media (max-width: 520px) {
  .page-shell,
  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .hero,
  .contacts {
    padding: 24px 18px;
  }

  .status {
    gap: 9px;
    padding: 12px 16px;
  }

  .contact-item {
    grid-template-columns: 40px 1fr;
    min-height: 128px;
    padding: 18px;
  }

  .icon {
    width: 40px;
    height: 40px;
  }
}
