:root {
  --ink: #252525;
  --dark: #41483a;
  --forest: #4c5544;
  --green: #989d78;
  --cream: #eee6d8;
  --paper: #fbfaf7;
  --gold: #d0a15e;
  --primary: var(--gold);
  --line: #2525252b;
  --line-soft: #25252516;
  --g: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(4rem, 7vw, 7rem);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 12px #2525250d;
  --shadow-md: 0 10px 28px #25252512;
  --ease: 180ms ease;
  font-family: "Inter", Arial, sans-serif;
}

body.private { --primary: var(--green); }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, #f8f5f1 0%, #f4f1eb 100%);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.65rem, 4.6vw, 4.7rem); margin-bottom: 1.35rem; }
h2 { font-size: clamp(2.15rem, 3.7vw, 3.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.22rem; }
p { margin-bottom: 1rem; }

.container {
  width: min(calc(100% - 2 * var(--g)), 1280px);
  margin-inline: auto;
}

.section { padding-block: clamp(4rem, 6vw, 6rem); }
.cream { background: var(--cream); }

.skip {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 999;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  transition: top var(--ease);
}

.skip:focus { top: 1rem; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 88px;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(37, 37, 37, 0.04);
  backdrop-filter: blur(8px);
}

header.scrolled {
  box-shadow: 0 8px 24px rgba(37, 37, 37, 0.06);
}

.head {
  display: flex;
  align-items: center;
  width: 100%;
  height: 88px;
  gap: 1.25rem;
}

.brand {
  width: 290px;
  flex-shrink: 0;
  margin: 0;
}

.brand img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.switch {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 394px;
  height: 60px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(65, 72, 58, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.switch button {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 50%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.switch button:first-child { border-radius: 10px 0 0 10px; }
.switch button:last-child { border-radius: 0 10px 10px 0; }

.switch button.active {
  z-index: 2;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(208, 161, 94, 0.28);
}

.switch button:not(.active) {
  color: rgba(37, 37, 37, 0.8);
  filter: saturate(0.7) brightness(0.96);
}
.switch button:not(.active):hover {
  filter: saturate(0.9) brightness(1);
}

.menu {
  display: none;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  gap: 1.4rem;
  flex: 1 1 auto;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

nav a {
  position: relative;
  flex-shrink: 0;
  padding: 0.6rem 0.2rem;
  color: rgba(37, 37, 37, 0.87);
}

nav a:not(.navcta)::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  background: var(--primary);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--ease);
}

nav a:not(.navcta):hover::after,
nav a:not(.navcta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav a:last-child {
  margin-left: 0.25rem;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 400;
  box-shadow: 0 10px 18px rgba(37, 37, 37, 0.14);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

nav a:last-child:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(208, 161, 94, 0.2);
}

.hero {
  min-height: calc(100vh - 88px);
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.hero-grid {
  display: grid;
  min-height: 0;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5vw;
}

.hero-grid > div,
.split > div,
.service > div,
.contact > * {
  min-width: 0;
}

.hero em { color: var(--primary); font-style: normal; }
.lead { max-width: 650px; font-size: 1.08rem; line-height: 1.58; }
.accent, .quote { margin: 1.5rem 0; color: var(--primary); font-weight: bold; }
.hero-logo { display: grid; min-height: 420px; place-items: center; }
.hero-logo img { max-height: 500px; object-fit: contain; }

.split {
  display: grid;
  align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;
}

.art, .portrait { min-height: 460px; }
.art img, .portrait > img, .service > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: sepia(0.25) saturate(0.8);
}

ul { padding: 0; list-style: none; }
li { padding: 1rem 0; border-top: 1px solid var(--line); }

.intro { max-width: 760px; margin-bottom: 4rem; }
.centered { margin-inline: auto; text-align: center; }

.button, .service a, .contact-options a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 0.76rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 37, 37, 0.08);
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.button:hover, .service a:hover, .contact-options a:hover {
  box-shadow: 0 16px 28px rgba(37, 37, 37, 0.1);
  transform: translateY(-1px);
}

.button:active, .service a:active, .contact-options a:active,
nav a:last-child:active { transform: translateY(0); }

.service {
  display: grid;
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7vw;
  margin-bottom: 5.5rem;
}

.service.reverse { grid-template-columns: 1.2fr 0.8fr; }
.service.reverse > div { order: 2; }
.service > img { min-height: 350px; }
.service small { color: var(--primary); font-size: 0.7rem; font-weight: bold; letter-spacing: 0.08em; }
.service h3 { margin: 0.6rem 0 0.85rem; }
.service p { max-width: 34rem; }
.service a { margin-top: 1rem; }

.switchbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.switchbox h3 { margin-bottom: 0.5rem; }
.switchbox p { max-width: 34rem; margin-bottom: 0; }

.steps, .values, .contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.steps { align-items: end; margin-bottom: 3.6rem; padding-top: 1rem; }
.steps article, .values article {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--paper);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.steps article { min-height: 178px; padding: 2.8rem 1.35rem 1.25rem; }
.steps article:nth-child(2) { transform: translateY(1.8rem); }
.steps article:nth-child(3) { transform: translateY(3.6rem); }
.steps b, .values article > b {
  position: absolute;
  top: -1.65rem;
  left: 50%;
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transform: translateX(-50%);
}

.steps h3 { margin: 0 0 0.85rem; }
.steps p, .values p { margin: 0; font-size: 0.78rem; }
.portrait { position: relative; }
.portrait > div { position: absolute; right: 0; bottom: 0; padding: 1.5rem; border-radius: var(--radius-md) 0 0 0; background: var(--primary); color: #fff; font-size: 2rem; font-weight: bold; }
.portrait small { margin-left: 0.5rem; color: #fff; font-size: 0.6rem; }
.points { border-block: 1px solid var(--line); }
.points p { margin: 0; padding: 1rem 0; }
.points p + p { border-top: 1px solid var(--line); }

.timeline article {
  display: grid;
  grid-template-columns: 0.5fr 1.15fr 0.85fr;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.timeline i { color: var(--primary); font-style: normal; }
.timeline aside { padding: 2rem; border-radius: var(--radius-lg); background: var(--forest); color: #fff; font-weight: bold; }
.values { margin-top: 2.8rem; }
.values article { min-height: 155px; padding: 3.4rem 1.5rem 1.25rem; }
.values svg, .plane { width: 1.65rem; height: 1.65rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-icon svg { width: 1.55rem; height: 1.55rem; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.contact {
  display: grid;
  align-items: start;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7vw;
}

.contact-copy { padding-top: 1rem; }
.contact form { padding: clamp(1.5rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow-sm); }
.contact form h3 { margin-bottom: 1.5rem; }
.contact label { display: block; margin: 1rem 0; font-size: 0.72rem; font-weight: bold; }
input, textarea { display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.75rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 0.76rem; transition: border-color var(--ease), box-shadow var(--ease); }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.contact form .button { float: right; }
.contact form [data-note] { clear: both; padding-top: 1rem; font-size: 0.7rem; }
.direct-contact { margin-top: var(--space); text-align: center; }
.contact-options { margin-top: 3rem; gap: 2rem; }
.contact-options { grid-template-columns: repeat(4, 1fr); }
.contact-options article { display: flex; flex-direction: column; align-items: center; }
.social-icon { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border-radius: var(--radius-md); background: var(--forest); color: #fff; font-size: 1.3rem; font-weight: 400; }
.contact-options h3 { margin: 0.9rem 0 0.5rem; font-size: 1rem; }
.contact-options p { max-width: 15rem; margin: 0 0 0.8rem; font-size: 0.78rem; }

footer { padding: 2.8rem 0 1.6rem; background: var(--forest); color: #fff; font-family: inherit; }
.foot { display: grid; grid-template-columns: 1fr 140px 140px; gap: 2rem; padding-bottom: 1.5rem; }
.foot strong { display: block; margin-bottom: 0.7rem; }
.foot p { max-width: 290px; margin: 0; font-size: 0.78rem; line-height: 1.45; }
.foot a { display: block; margin-bottom: 0.45rem; color: #fff; font-size: 0.76rem; }
.copyright { padding-top: 1rem; border-top: 1px solid #fff8; font-size: 0.75rem; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

@media (max-width: 1100px) {
  .brand { width: 250px; }
  .switch { width: 300px; }
  .switch button { min-width: 150px; }
  nav { gap: 1rem; margin-left: 1.2rem; font-size: 0.82rem; }
}

@media (min-width: 851px) and (max-width: 1100px) {
  header, .head { height: 80px; }
  .head { gap: 0.8rem; }
  .brand { width: 220px; }
  .switch { width: 330px; height: 54px; }
  .switch button { min-width: 0; height: 100%; padding-inline: 0.75rem; font-size: 0.78rem; }
  .menu { display: block; margin-left: 0.5rem; }
  nav { position: absolute; top: 80px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0.5rem; margin: 0; padding: 2rem var(--g); background: var(--paper); box-shadow: 0 14px 24px rgba(37, 37, 37, 0.08); }
  nav.open { display: flex; }
  nav a, nav a:last-child { padding: 0.7rem 1rem; border-radius: var(--radius-md); background: var(--primary); color: #fff; }
  nav a:not(.navcta)::after { display: none; }
}

@media (max-width: 850px) {
  header, .head { height: 74px; }
  .head { gap: 0.5rem; }
  .brand { width: 165px; }
  .switch { width: auto; height: 50px; margin-left: auto; }
  .switch button { min-width: 0; height: 50px; padding: 0 0.65rem; font-size: 0.68rem; }
  .menu { display: block; margin-left: 0.5rem; }
  nav { position: absolute; top: 74px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0.5rem; margin: 0; padding: 2rem var(--g); background: var(--paper); }
  nav.open { display: flex; }
  nav a, nav a:last-child { padding: 0.7rem 1rem; border-radius: var(--radius-md); background: var(--primary); color: #fff; }
  nav a:not(.navcta)::after { display: none; }
  .hero { min-height: auto; padding-top: clamp(2.5rem, 7vw, 4rem); padding-bottom: 4rem; }
  .hero-grid { min-height: auto; gap: 2.5rem; }
  .hero-grid, .split, .contact { grid-template-columns: 1fr; }
  .hero-logo { min-height: auto; }
  .hero-logo img { max-height: min(36vh, 260px); }
  .art, .portrait { min-height: 340px; }
  .service, .service.reverse { grid-template-columns: 1fr; gap: 1rem; }
  .service.reverse > div { order: 0; }
  .steps, .values, .contact-options { grid-template-columns: 1fr; gap: 3.5rem; }
  .steps { margin-bottom: 0; }
  .steps article, .steps article:nth-child(2), .steps article:nth-child(3) { transform: none; }
  .timeline article { grid-template-columns: 1fr; gap: 1rem; }
  .foot { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 520px) {
  header, .head { height: 124px; }
  .head { align-content: center; flex-wrap: wrap; gap: 0.55rem 0.75rem; padding-block: 0.65rem; }
  .brand { width: min(45vw, 160px); flex: 0 1 auto; }
  .switch { order: 3; width: 100%; height: 42px; margin-left: 0; flex: 0 0 100%; }
  .switch button { min-height: 34px; padding-inline: 0.45rem; font-size: 0.72rem; line-height: 1.12; white-space: nowrap; }
  .menu { min-width: 44px; min-height: 44px; margin-left: auto; flex-shrink: 0; }
  nav { top: 124px; }
  .hero .button { white-space: normal; text-align: center; }
  .hero { padding-top: 2.25rem; }
  .hero-logo img { max-height: 150px; }
  .section { padding-block: 3.6rem; }
  h1 { font-size: clamp(1.95rem, 9.2vw, 3.1rem); overflow-wrap: break-word; }
  h2 { font-size: clamp(1.85rem, 8.8vw, 2.75rem); }
  .lead { font-size: 1rem; }
  .switchbox { align-items: flex-start; flex-direction: column; padding: 1.5rem; }
  .button { width: 100%; }
  .contact form .button { float: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
