:root {
  color-scheme: light dark;
  --cream: #f5f0e6;
  --surface: rgba(255, 250, 241, 0.62);
  --surface-soft: rgba(255, 250, 241, 0.55);
  --green: #183a31;
  --green-hover: #214d41;
  --heading: #183a31;
  --nav: #34453d;
  --ink: #222923;
  --lead: #566158;
  --muted: #667068;
  --service-copy: #737c74;
  --footer-copy: #6c776f;
  --coral: #e46f4f;
  --button-accent: #f6a087;
  --section-accent: #e9a58e;
  --on-green: #fff;
  --availability: #65a57c;
  --availability-ring: rgba(101, 165, 124, 0.14);
  --line: rgba(24, 58, 49, 0.16);
  --circle: rgba(228, 111, 79, 0.32);
  --button-shadow: 0 12px 30px rgba(24, 58, 49, 0.16);
  --focus: rgba(228, 111, 79, 0.5);
  --radius-lg: 32px;
  --radius-md: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0d1512;
    --surface: rgba(29, 43, 37, 0.78);
    --surface-soft: rgba(25, 38, 32, 0.72);
    --green: #285b46;
    --green-hover: #347158;
    --heading: #e6eee9;
    --nav: #c7d2cc;
    --ink: #e6ece8;
    --lead: #b7c1bb;
    --muted: #a9b4ae;
    --service-copy: #aeb8b2;
    --footer-copy: #929f98;
    --coral: #f08a6e;
    --button-accent: #ffc0ae;
    --section-accent: #f6bba8;
    --on-green: #fbfdfb;
    --availability: #79c293;
    --availability-ring: rgba(121, 194, 147, 0.16);
    --line: rgba(220, 235, 227, 0.14);
    --circle: rgba(240, 138, 110, 0.3);
    --button-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    --focus: rgba(240, 138, 110, 0.58);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--green);
  color: var(--on-green);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -300px;
  right: -130px;
  border: 1px solid var(--circle);
  border-radius: 50%;
  pointer-events: none;
}

.shell {
  width: min(1420px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--heading);
  border-radius: 11px;
  transform: rotate(-4deg);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: var(--coral);
}

.brand-mark::before {
  width: 8px;
  height: 8px;
  top: 6px;
  right: 6px;
  border-radius: 50%;
}

.brand-mark::after {
  width: 13px;
  height: 4px;
  left: 7px;
  bottom: 7px;
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  color: var(--nav);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

nav a {
  text-underline-offset: 6px;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--coral);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.78fr);
  gap: 82px;
  align-items: center;
  min-height: 600px;
  padding: 62px 0 54px;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(54px, 4.6vw, 77px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h1 em {
  color: var(--coral);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lead {
  max-width: 660px;
  margin: 27px 0 33px;
  color: var(--lead);
  font-size: 18px;
  line-height: 1.58;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 15px 21px;
  border-radius: 13px;
  background: var(--green);
  box-shadow: var(--button-shadow);
  color: var(--on-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.primary:hover,
.primary:focus-visible {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.button-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: var(--button-accent);
  -webkit-mask: url("/arrow-up-right-mask.png") center / contain no-repeat;
  mask: url("/arrow-up-right-mask.png") center / contain no-repeat;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.location::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--availability);
  box-shadow: 0 0 0 5px var(--availability-ring);
}

.work-card {
  position: relative;
  padding: 0 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card-top {
  padding: 25px 0 19px;
  border-bottom: 1px solid var(--line);
}

.card-top span:first-child {
  color: var(--heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-list {
  display: grid;
}

.service {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 105px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 0;
}

.service-index {
  padding-top: 2px;
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.service p {
  max-width: 52ch;
  margin: 0;
  color: var(--service-copy);
  font-size: 13px;
  line-height: 1.5;
}

.lower {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: stretch;
  padding: 0 0 42px;
}

.about {
  padding: 31px 34px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: var(--on-green);
}

.section-label {
  margin: 0 0 12px;
  color: var(--section-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about p:last-child {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.46;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 31px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.contact-panel h2 {
  margin: 0;
  color: var(--heading);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.mail {
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
  text-decoration-color: var(--coral);
  text-underline-offset: 5px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 68px;
  border-top: 1px solid var(--line);
  color: var(--footer-copy);
  font-size: 11px;
  letter-spacing: 0.04em;
}

footer a {
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
    gap: 52px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 40px, 720px);
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 62px 0;
  }

  .work-card {
    padding-inline: 28px;
  }

  .lower {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .page::before {
    width: 330px;
    height: 330px;
    top: -210px;
    right: -180px;
  }

  .shell {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 76px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    gap: 42px;
    padding: 48px 0 54px;
  }

  h1 {
    font-size: clamp(43px, 13.7vw, 58px);
  }

  .lead {
    font-size: 16px;
  }

  .actions {
    gap: 18px;
  }

  .work-card {
    padding-inline: 20px;
    border-radius: 16px;
  }

  .service {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    min-height: 0;
    padding: 21px 0;
  }

  .about,
  .contact-panel {
    padding: 26px 22px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .mail {
    font-size: 15px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
