:root {
  --cream: #f7f3ea;
  --cream-deep: #eee9dd;
  --sage: #627657;
  --sage-soft: #dde2d5;
  --plum: #6f364e;
  --plum-soft: #d7bec6;
  --ink: #17232a;
  --line: rgba(98, 118, 87, 0.42);
  --sans: "Segoe UI Variable", "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 90rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header {
  width: min(calc(100% - 6.5rem), var(--container));
  min-height: 6.9rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--sage);
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  text-decoration: none;
  transition: color 180ms ease;
}

.header-phone:hover {
  color: var(--plum);
}

.header-phone svg {
  width: 1.75rem;
  color: var(--plum);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 38.75rem;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4.5rem 3.25rem 5rem;
  isolation: isolate;
}

.hero-content {
  width: min(100%, 58rem);
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 4.4vw, 4.5rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.hero h1 span {
  display: block;
  color: var(--sage);
}

.hero-content > p {
  max-width: 45rem;
  margin: 2rem 0 0;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.43;
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.button {
  min-height: 5.2rem;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.header-phone:focus-visible,
.brand:focus-visible,
.contact-item a:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--plum-soft);
  outline-offset: 4px;
}

.button svg {
  width: 1.45rem;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--sage);
  color: #fff;
}

.button-primary:hover {
  background: #526648;
}

.button-secondary {
  border-color: var(--plum);
  color: var(--plum);
}

.button-secondary:hover {
  background: var(--plum);
  color: #fff;
}

.shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.shape-left {
  width: 31rem;
  height: 37rem;
  left: -17rem;
  top: 2rem;
  border-radius: 38% 62% 46% 54% / 33% 42% 58% 67%;
  background: var(--sage-soft);
  border: 1px solid rgba(98, 118, 87, 0.38);
  transform: rotate(-13deg);
}

.shape-right {
  width: 27rem;
  height: 31rem;
  right: -17rem;
  bottom: -4rem;
  border-radius: 58% 42% 27% 73% / 43% 37% 63% 57%;
  background: var(--plum-soft);
  border: 1px solid rgba(111, 54, 78, 0.35);
  transform: rotate(17deg);
}

.contact-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1.35fr 1.05fr;
  padding: 2.25rem max(3.25rem, calc((100% - var(--container)) / 2 + 3.25rem));
  background: rgba(247, 243, 234, 0.93);
  border-top: 1px solid rgba(98, 118, 87, 0.14);
}

.contact-item {
  min-width: 0;
  min-height: 8.4rem;
  margin: 0;
  padding: 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--ink);
  font-style: normal;
  text-align: center;
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(98, 118, 87, 0.25);
}

.contact-item svg {
  width: 2.35rem;
  height: 2.35rem;
  color: var(--sage);
}

.contact-item a,
.contact-item p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-item a {
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.contact-item a:hover {
  color: var(--plum);
  text-decoration-color: currentColor;
}

.site-footer {
  min-height: 5.2rem;
  padding: 1.2rem 1.5rem;
  display: grid;
  place-items: center;
  background: var(--plum);
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: clamp(0.96rem, 1.4vw, 1.25rem);
  line-height: 1.5;
}

.site-footer span {
  margin-inline: 0.65rem;
  color: var(--plum-soft);
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 66rem) {
  .site-header {
    width: calc(100% - 3rem);
  }

  .hero {
    min-height: 34rem;
    padding-inline: 2rem;
  }

  .contact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 1.5rem;
  }

  .contact-item:nth-child(3) {
    border-left: 0;
  }

  .contact-item:nth-child(n + 3) {
    border-top: 1px solid rgba(98, 118, 87, 0.25);
  }
}

@media (max-width: 42rem) {
  .site-header {
    min-height: 5.4rem;
    width: calc(100% - 2rem);
  }

  .brand {
    font-size: 1.8rem;
  }

  .header-phone {
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 650;
  }

  .header-phone svg {
    width: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: 4.1rem 1.25rem 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10.5vw, 3rem);
    line-height: 0.98;
  }

  .hero-content > p {
    margin-top: 1.65rem;
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 1.9rem;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 4.35rem;
    padding-inline: 1.25rem;
    font-size: 1.05rem;
  }

  .shape-left {
    width: 21rem;
    height: 26rem;
    left: -17rem;
    top: 5rem;
  }

  .shape-right {
    width: 18rem;
    height: 22rem;
    right: -14rem;
    bottom: -3rem;
  }

  .contact-strip {
    grid-template-columns: 1fr;
    padding: 0 1.25rem;
  }

  .contact-item {
    min-height: auto;
    padding: 1.5rem 0;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }

  .contact-item + .contact-item,
  .contact-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(98, 118, 87, 0.25);
  }

  .contact-item svg {
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 1.8rem;
  }

  .contact-item a,
  .contact-item p {
    font-size: 1rem;
  }

  .site-footer p {
    max-width: 23rem;
  }

  .site-footer span {
    display: block;
    height: 0.2rem;
    color: transparent;
  }
}

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