:root {
  --paper: #f4f1ea;
  --white: #fffcf7;
  --ink: #162019;
  --muted: #5d6a62;
  --line: #dcd4c6;
  --mist: #e7eee8;
  --fresh: #1c7a4c;
  --fresh-deep: #0f3f28;
  --gold: #c4a574;
  --font-sans: "Golos Text", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
.main { flex: 1; min-width: 0; width: 100%; }

.header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 234, 0.96);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(12px);
}
.header__top {
  display: none;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.header__tagline { letter-spacing: 0.12em; text-transform: uppercase; margin: 0; font-weight: 500; }
.header__contacts { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.header__contacts a:hover { color: var(--ink); }
.header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 10px;
  min-height: 64px;
}
.logo { flex: 0 0 auto; min-width: 0; position: relative; z-index: 80; }
.logo img { height: 40px; width: auto; max-width: 140px; }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a:hover,
.nav a.is-active { color: var(--fresh); }
.btn.header__cta { display: none; }
.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
  position: relative;
  z-index: 80;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn--primary { background: var(--fresh); color: #fff; }
.btn--primary:hover { background: var(--fresh-deep); }
.btn--ghost { border: 1px solid var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.btn-row .btn { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(28,122,76,0.16), transparent 42%),
    linear-gradient(180deg, #eef3ee, #f4f1ea 70%);
}
.hero__grid { display: grid; gap: 28px; padding-block: 40px 48px; }
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fresh);
  font-weight: 600;
}
.hero h1,
.page-hero h1,
.serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.hero h1 { margin: 12px 0 0; font-size: clamp(32px, 9vw, 68px); }
.lead { max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.hero__card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
  padding: 20px;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.stats b {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stats span { color: var(--muted); font-size: 13px; font-weight: 500; }

.section { padding-block: 48px; }
.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 28px;
}
.section h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 7vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.link-more { color: var(--fresh); font-size: 14px; font-weight: 500; }

.note {
  border: 1px dashed rgba(28,122,76,0.4);
  background: var(--mist);
  padding: 24px;
}
.note h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.2; }

.principles { background: var(--fresh-deep); color: #fff; }
.principles__grid { display: grid; gap: 28px; }
.principles .section { padding-block: 48px; }
.principles h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.principles p { color: rgba(255,255,255,0.75); line-height: 1.7; }
.gold { color: var(--gold); }

.grid-3 { display: grid; gap: 16px; }
.grid-4 { display: grid; gap: 16px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { background: #fff; }

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  min-width: 0;
}
.card h3 { margin: 12px 0 8px; font-family: var(--font-serif); font-size: 18px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.card__more { margin-top: 16px; color: var(--fresh); font-size: 14px; font-weight: 500; }

.person { display: block; min-width: 0; }
.person__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist);
  display: flex;
  align-items: end;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person__photo span {
  padding: 16px;
  font-family: var(--font-serif);
  font-size: 40px;
  color: rgba(28,122,76,0.3);
}
.person h3 {
  margin: 10px 0 4px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.person:hover h3 { color: var(--fresh); }
.person p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }

.cta {
  display: grid;
  gap: 20px;
  border: 1px solid var(--line);
  background: var(--mist);
  padding: 24px;
}
.cta h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(26px, 7vw, 40px); font-weight: 600; line-height: 1.15; }
.cta a.phone { display: block; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.cta .btn { width: 100%; }

.page-hero { border-bottom: 1px solid var(--line); background: var(--mist); padding-block: 40px 48px; }
.page-hero h1 { margin: 10px 0 0; font-size: clamp(28px, 8vw, 52px); max-width: 800px; overflow-wrap: anywhere; }
.page-hero .person__photo { max-width: 220px; }

.prose { max-width: 760px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.prose p { margin: 0 0 20px; }
.prose img { max-width: 100%; height: auto; }
.side img { max-width: 100%; height: auto; }
.detail { display: grid; gap: 28px; min-width: 0; }
.side { border: 1px solid var(--line); background: #fff; padding: 20px; }
.form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
}
.form label { display: grid; gap: 8px; font-size: 14px; }
.form input,
.form textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--fresh); }
.album {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: var(--fresh-deep);
}
.album img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.album__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 63, 40, 0.92));
}
.album h2 {
  margin: 6px 0 4px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.album__count { font-size: 13px; color: rgba(255,255,255,0.75); }
.album:hover img { transform: scale(1.03); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.photo-grid button {
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  border: 0;
  padding: 0;
  background: rgba(10, 16, 12, 0.96);
}
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img {
  display: block;
  max-width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  margin: 24px auto;
  object-fit: contain;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

.footer { background: var(--ink); color: var(--paper); margin-top: auto; }
.footer__grid { display: grid; gap: 32px; padding-block: 40px; }
.footer__name { margin: 0; font-family: var(--font-serif); font-size: 28px; font-weight: 600; }
.footer__tagline { color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.footer__lead { max-width: 360px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; }
.footer a:hover { color: var(--gold); }
.footer li { margin: 8px 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

body.nav-open { overflow: hidden; }
body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  background: var(--paper);
  padding: calc(var(--header-h, 64px) + 8px) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  font-size: 20px;
}
body.nav-open .nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .container { padding-inline: 24px; }
  .header__top { display: flex; }
  .logo img { height: 48px; max-width: none; }
  .btn-row { flex-direction: row; }
  .btn-row .btn,
  .cta .btn { width: auto; }
  .hero__grid,
  .detail,
  .cta,
  .split { grid-template-columns: 1.2fr 0.8fr; }
  .hero__grid { gap: 48px; padding-block: 72px; }
  .hero h1 { font-size: clamp(40px, 7vw, 68px); }
  .section { padding-block: 80px; }
  .section__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .grid-4 { gap: 28px 24px; }
  .card { padding: 24px; }
  .person h3 { margin-top: 16px; font-size: 20px; }
  .person p { font-size: 14px; }
  .principles__grid { grid-template-columns: repeat(3, 1fr); }
  .principles .section { padding-block: 80px; }
  .page-hero { padding-block: 72px; }
  .cta { padding: 40px; }
  .form { padding: 32px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-block: 64px; }
  .footer__legal { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  body.nav-open { overflow: visible; }
  body.nav-open .nav,
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin-left: auto;
    padding: 0;
    border: 0;
    overflow: visible;
    font-size: 15px;
    gap: 28px;
    background: transparent;
  }
  body.nav-open .nav a { padding: 0; border: 0; }
  .btn.header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-hero .person__photo { max-width: none; }
}

@media (hover: hover) {
  .card:hover { border-color: var(--fresh); transform: translateY(-2px); box-shadow: 0 20px 40px rgba(18,32,24,0.06); }
}
