:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d6;
  --card: #fffdf8;
  --ink: #1b2a1c;
  --muted: #4d5c4e;
  --green: #1f3a28;
  --sage: #5d755d;
  --line: #ddd4c6;
  --clay: #9c4a2c;
  --clay-dark: #7d3a22;
  --shadow: 0 18px 40px rgba(31, 42, 28, 0.08);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(93, 117, 93, 0.16), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--green);
  color: white;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

section[id] { scroll-margin-top: 72px; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1.15;
}
.brand-kicker {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
}
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--clay);
  color: #fffdf8;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--clay-dark); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--sage);
}
.btn-ghost:hover { background: rgba(93, 117, 93, 0.1); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 15px; }

.hero, .band, .steps, .docs, .talk, .contact, .foot {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 28px;
}
.kicker {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
h1 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; color: var(--green); }
.lead { margin: 0 0 12px; font-size: 18.5px; }
.aim { margin: 0 0 22px; font-family: var(--serif); font-size: 22px; color: var(--clay-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nowrap { white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.facts li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 320px);
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px 28px 80px 28px;
  box-shadow: var(--shadow);
  border: 6px solid #fffdf8;
}
.portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.band, .steps, .docs { padding: 28px 0; }
.section-head { max-width: 640px; margin-bottom: 18px; }
.section-head h2, .contact h2, .steps h2 { margin: 0 0 8px; font-size: 32px; color: var(--green); }
.section-head p, .contact p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.card h3 { margin: 0 0 8px; font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: var(--green);
  color: #f7f3ec;
  border-radius: 18px;
  padding: 18px;
}
.steps li span {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: #e7c2b2;
}
.steps h3 { margin: 0 0 6px; font-size: 22px; color: white; }
.steps p { margin: 0; color: #e7eee6; font-size: 15px; }
.talk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  margin: 18px 0 8px;
}
.talk p { margin: 0; color: var(--muted); }
.talk-links { display: flex; flex-wrap: wrap; gap: 8px; }
.talk-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--line);
}
.talk-links a:hover { border-color: var(--sage); }
#talk { scroll-margin-top: 84px; }

.cb-back {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  background: rgba(27, 42, 28, 0.55);
  padding: 24px 16px;
  overflow: auto;
}
.cb-back.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-win {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 22px 22px 18px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(27, 42, 28, 0.22);
}
.cb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cb-top h2 {
  margin: 0;
  font-size: 26px;
  color: var(--green);
}
.cb-x {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cb-x:hover { color: var(--ink); border-color: var(--sage); }
.cb-lead, .cb-note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.cb-note { margin: 12px 0 0; font-size: 13px; }
.cb-form { display: grid; gap: 12px; }
.cb-label { display: grid; gap: 6px; color: var(--green); font-weight: 600; font-size: 14px; }
.cb-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.cb-input:focus {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}
.cb-form .btn { width: 100%; }

.doc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-links a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
}
.doc-links a:hover { border-color: var(--sage); }

.contact {
  padding: 10px 0 36px;
}
.mail, .phone { margin-top: 10px; font-size: 20px; }
.mail a, .phone a { color: var(--green); }
.messengers { display: grid; gap: 10px; }
.msg {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 700;
}
.msg:hover { border-color: var(--clay); }

.foot {
  padding: 8px 0 96px;
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0 0 6px; }

.dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.dock .btn { flex: 1; }

.sheet {
  width: min(760px, calc(100% - 40px));
  margin: 28px auto 80px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 36px 40px;
}
.sheet h1, .sheet h2 {
  font-family: var(--serif);
  color: var(--green);
  text-align: center;
  margin: 0 0 8px;
}
.sheet h2 { font-size: 22px; margin-top: 22px; text-align: left; }
.sheet p { margin: 0 0 10px; }
.sheet .meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
  font-weight: 600;
}
.sheet .just { text-align: justify; }
.back { color: var(--green); font-weight: 600; text-decoration: none; }
.sheet .center { text-align: center; }
.sheet a { color: var(--clay-dark); }
@media (max-width: 860px) {
  .sheet { padding: 22px 16px 28px; }
  .sheet .just { text-align: left; hyphens: auto; }
}

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .nav, .top .btn { display: none; }
  .hero, .cards, .steps ol, .contact, .doc-links { grid-template-columns: 1fr; }
  .hero { padding-top: 18px; gap: 18px; }
  .portrait { order: -1; justify-self: start; width: 100%; }
  .portrait img { width: min(100%, 220px); }
  .actions { display: none; }
  h1 { font-size: 32px; }
  .dock { display: flex; }
}
