:root {
  --bg: #f7f2e8;
  --ink: #1a2330;
  --muted: #5d6b7a;
  --teal: #0b6e6e;
  --teal-deep: #085454;
  --line: rgba(26, 35, 48, 0.12);
  --white: #fffdf8;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-deep); }
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 8%, rgba(11, 110, 110, 0.14), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(196, 146, 90, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, #f3eee4 48%, #efe8db 100%);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    8px
    max(16px, env(safe-area-inset-left));
}
.logo {
  font-family: var(--display);
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
}
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a:hover { color: var(--teal-deep); }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding:
    0
    max(16px, env(safe-area-inset-right))
    max(96px, calc(72px + env(safe-area-inset-bottom)))
    max(16px, env(safe-area-inset-left));
}

.hero {
  min-height: min(88vh, 760px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
  padding: 48px 0 56px;
}
.eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 9vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  margin-bottom: 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 13px 20px;
  min-height: 48px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn.primary {
  background: linear-gradient(145deg, #129090, var(--teal));
  color: #fff;
  box-shadow: 0 14px 34px rgba(11, 110, 110, 0.25);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.hero-visual {
  min-height: 320px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.2), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%230b6e6e'/%3E%3Cstop offset='1' stop-color='%23c4925a' stop-opacity='.55'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='600' fill='%230a4f4f'/%3E%3Ccircle cx='180' cy='140' r='120' fill='url(%23g)' opacity='.45'/%3E%3Ccircle cx='620' cy='420' r='180' fill='%23f3efe6' opacity='.12'/%3E%3Cpath d='M120 480c80-90 180-120 280-80s190 40 280-40' stroke='%23fff' stroke-opacity='.18' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/cover;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(26, 35, 48, 0.16);
  animation: rise 0.8s ease both;
}
.hero-plate {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.hero-plate span {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
}
.hero-plate strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-plate p { color: var(--muted); font-size: 0.92rem; }

.section { padding: 28px 0 12px; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 22px;
}
.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.services li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.55);
}
.services li strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.services span {
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}
.band {
  margin: 28px 0;
  padding: 28px 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(11, 110, 110, 0.1), rgba(196, 146, 90, 0.1)),
    var(--white);
  border: 1px solid var(--line);
  animation: rise 0.9s ease both;
}
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.contacts p {
  min-width: 0;
  overflow-wrap: anywhere;
}
.contacts a { text-decoration: none; font-weight: 700; }
.legal-links {
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding:
    18px
    max(16px, env(safe-area-inset-right))
    max(36px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.foot span { min-width: 0; overflow-wrap: anywhere; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-copy { animation: rise 0.7s ease both; }

/* Tablet */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
    align-items: stretch;
    padding: 36px 0 44px;
  }
  .hero-visual { min-height: 280px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Large phone / small tablet */
@media (max-width: 720px) {
  .top { padding-bottom: 4px; }
  .hero { padding: 24px 0 36px; gap: 22px; }
  .hero-visual {
    min-height: 220px;
    border-radius: 22px;
  }
  .hero-plate {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px 14px 12px;
  }
  .hero-plate strong { font-size: clamp(1.05rem, 4.5vw, 1.25rem); }
  .services { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; gap: 14px; }
  .band {
    padding: 22px 18px;
    border-radius: 18px;
    margin: 22px 0;
  }
  .section { padding: 22px 0 8px; }
  .foot { flex-direction: column; }
}

/* Phone */
@media (max-width: 480px) {
  .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
  .hero h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
    line-height: 1.08;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .btn { width: 100%; }
  .band .btn { width: 100%; }
  .services li {
    padding: 14px 14px;
    gap: 10px;
  }
  .legal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .legal-links .sep { display: none; }
}

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