:root {
  --green: #0e5c56;
  --green-deep: #0b3f3b;
  --brick: #9d342c;
  --paper: #f3eee6;
  --card: #fffdfb;
  --ink: #241c18;
  --muted: #5e564e;
  --line: #e3d9cc;
  --soft: #e7f3f1;
  --shadow: 0 24px 60px rgba(36, 28, 24, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 246, 236, 0.42) 0, rgba(255, 246, 236, 0.28) 360px, rgba(243, 238, 230, 0.78) 760px, var(--paper) 1040px),
    linear-gradient(90deg, rgba(255, 246, 236, 0.38) 0, rgba(255, 246, 236, 0.08) 58%, rgba(40, 22, 14, 0) 100%),
    url("../images/bg.jpg");
  background-repeat: no-repeat;
  background-size: auto, auto, auto 980px;
  background-position: center top, center top, center 46%;
}

body::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--green);
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(243, 238, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.03em;
  color: #167a42;
}

.nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover { color: var(--ink); }

.phone {
  font-weight: 700;
  text-decoration: none;
  color: var(--green-deep);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 28px 12px;
  align-items: start;
}

.card { grid-column: 2; grid-row: 1 / span 2; }

.place {
  margin: 0 0 12px;
  color: var(--brick);
  font-weight: 700;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(4.2rem, 8vw, 7rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  color: #167a42;
  text-shadow:
    0 1px 0 #fffaf4,
    0 0 16px rgba(255, 248, 236, 0.95),
    0 8px 24px rgba(90, 40, 16, 0.18);
}

h1::after {
  content: "";
  display: block;
  width: 9.5rem;
  height: 4px;
  margin-top: 0.35rem;
  border-radius: 99px;
  background: linear-gradient(90deg, #9d342c, #e4b15a 55%, transparent);
}

.lead {
  max-width: 38rem;
  margin: 22px 0 0;
  font-size: 1.15rem;
}

.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.facts li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.facts span {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.card,
.visit,
.services {
  scroll-margin-top: 84px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.card h2,
.services h2,
.visit h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card-note {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 12px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1.2fr 1fr 0.8fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.field span,
.field legend {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 12px;
  font: inherit;
  font-size: 1rem;
}

textarea { resize: vertical; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(14, 92, 86, 0.35);
  outline-offset: 2px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice { cursor: pointer; }

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(14, 92, 86, 0.35);
  outline-offset: 2px;
}

.choice input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #f6f3ee;
}

.form-error {
  margin: 0 0 12px;
  color: var(--brick);
  font-weight: 700;
}

.submit,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.submit {
  width: 100%;
  border: 0;
  background: var(--brick);
  color: #fffaf7;
}

.submit:hover { background: #862920; }

.linkish { width: auto; }

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.result {
  margin-top: 16px;
  background: var(--soft);
  border-radius: 16px;
  padding: 14px;
}

.result-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-actions .submit,
.result-actions .ghost {
  width: auto;
}

.result pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.92rem;
}

.services {
  grid-column: 1;
  margin: 8px 0 0;
  padding: 8px 0 10px;
  display: block;
}

.services-head p,
.visit-copy p {
  color: var(--muted);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--green);
  line-height: 1;
}

.service-list h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.service-list p { margin: 0; color: var(--muted); }

.visit {
  max-width: 1180px;
  margin: 12px auto 0;
  padding: 20px 28px 48px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.address {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.text-link {
  font-weight: 700;
  color: var(--green-deep);
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 22px;
  background: #e7e0d6;
}

.gallery { max-width: 1180px; margin: 0 auto; padding: 0 28px 48px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
  background: #e7e0d6;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot p { margin: 0; }

.foot a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.dock {
  display: none;
}

@media (max-width: 900px) {
  body {
    background-size: auto, auto, auto 780px;
    background-position: center top, center top, center 40%;
  }
  .nav { display: none; }

  .hero,
  .visit {
    grid-template-columns: 1fr;
    padding-left: 16px;
    padding-right: 16px;
  }

  .intro { order: 1; }
  .card { order: 2; grid-column: auto; grid-row: auto; }
  .services { order: 3; grid-column: auto; }

  .top { padding: 14px 16px; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }

  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }

  .gallery { padding-left: 16px; padding-right: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 15;
    background: var(--green-deep);
    border-radius: 16px;
    overflow: hidden;
  }

  .dock a {
    color: #f6f3ee;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 8px;
  }

  .dock a + a { background: var(--brick); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .phone { font-size: 0.92rem; }
}

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