:root {
  --bg-top: #f4f8fb;
  --bg-bottom: #e9e5db;
  --paper: #ffffff;
  --ink: #132028;
  --muted: #53626b;
  --brand: #1aa6b8;
  --brand-dark: #0a7e90;
  --accent: #d73f14;
  --line: #d6e0e4;
  --card: #f5fafb;
  --radius: 20px;
  --shadow: 0 20px 48px rgba(8, 31, 40, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0 64%, var(--bg-bottom) 64%);
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 15% 10%, rgba(35, 166, 186, 0.14), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(215, 63, 20, 0.1), transparent 32%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1050px, 92vw);
  margin: clamp(18px, 3vw, 36px) auto;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.masthead {
  padding: 30px 34px 20px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff, #f9fdff);
}

.eyebrow {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

h1 {
  margin-top: 8px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  letter-spacing: 0.04em;
  color: #1f2a35;
}

.tagline {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
}

.tab {
  border: 0;
  padding: 16px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.tab:hover,
.tab:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.content-frame {
  display: grid;
  grid-template-columns: 2.05fr 1fr;
  gap: 28px;
  padding: clamp(20px, 3vw, 34px);
}

.panel {
  animation: panel-in 240ms ease;
}

.panel h2 {
  color: var(--accent);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 18px;
}

.panel h3 {
  margin: 18px 0 8px;
  color: var(--brand-dark);
  font-size: 1.3rem;
}

.panel p {
  line-height: 1.58;
  margin: 0 0 14px;
  font-size: 1.05rem;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
  font-weight: 600;
}

.service-list,
.people-list {
  margin: 0;
  padding-left: 1.2rem;
}

.service-list li,
.people-list li {
  margin-bottom: 7px;
  line-height: 1.45;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-block,
.legal-block,
.side-contact section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--card);
}

.map-link {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #d73f14, #f05a27);
  text-decoration: none;
  font-size: 0.92rem;
}

.legal-block {
  margin-top: 14px;
}

.legal-block p,
.contact-block p,
.side-contact p {
  margin: 2px 0;
}

.side-contact {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-contact h3 {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.48rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #f8fbfc;
  color: #60727a;
  font-size: 0.92rem;
  padding: 14px 18px;
}

.footer p {
  margin: 0;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 930px) {
  .content-frame {
    grid-template-columns: 1fr;
  }

  .side-contact {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab {
    font-size: 0.95rem;
    padding: 13px 10px;
  }

  .masthead {
    padding: 22px 18px 18px;
  }

  .content-frame {
    padding: 18px;
  }

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

  .footer {
    justify-content: flex-start;
    gap: 8px;
    flex-direction: column;
  }
}
