/* Борисова градина — бележник на един разхождащ се */
:root {
  --paper: #f8f1de;
  --paper-2: #efe3c2;
  --ink: #23301f;
  --ink-soft: #4a5643;
  --moss: #2f5233;
  --moss-2: #3f6b43;
  --leaf: #8bb26a;
  --rust: #b5482f;
  --water: #3d7486;
  --line: #cdbb8e;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(139,178,106,.12) 0 160px, transparent 161px),
    radial-gradient(circle at 92% 40%, rgba(61,116,134,.08) 0 220px, transparent 221px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

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

a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---------- header: дървена табела ---------- */
.site-head {
  background: var(--moss);
  color: #f3ead2;
  border-bottom: 6px solid #6b4a2b;
  box-shadow: inset 0 -3px 0 #8a6338;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand img { width: 58px; height: 58px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.brand b {
  display: block;
  font-size: 1.45rem;
  letter-spacing: .02em;
  font-weight: normal;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9d8b4;
}
.menu { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  color: #f3ead2;
  text-decoration: none;
  font-family: var(--sans);
  font-size: .92rem;
  border: 1px solid rgba(243,234,210,.25);
}
.menu a span {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f3ead2;
  color: var(--moss);
  font-size: .75rem;
  font-weight: 700;
}
.menu a:hover { background: rgba(243,234,210,.12); color: #fff; }
.menu a[aria-current="page"] { background: #f3ead2; color: var(--moss); }
.menu a[aria-current="page"] span { background: var(--rust); color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 40px;
}
.kicker {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}
h1, h2, h3 { font-weight: normal; line-height: 1.2; color: var(--moss); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 14px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }

.postcard {
  margin: 0;
  background: #fffaf0;
  padding: 12px 12px 8px;
  box-shadow: 0 18px 30px -18px rgba(35,48,31,.55), 0 0 0 1px #e4d5b0;
  transform: rotate(1.6deg);
  position: relative;
}
.postcard::before, .postcard::after {
  content: "";
  position: absolute;
  width: 90px; height: 26px;
  background: rgba(214,196,150,.75);
  top: -12px;
}
.postcard::before { left: 18px; transform: rotate(-8deg); }
.postcard::after { right: 18px; transform: rotate(7deg); }
.postcard figcaption, figure figcaption {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  padding: 8px 4px 2px;
  font-style: italic;
}
.postcard.tilt-left { transform: rotate(-1.4deg); }

.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: .9rem;
}
.facts-row li { border-left: 3px solid var(--leaf); padding-left: 10px; }
.facts-row strong { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--moss); font-weight: normal; }

/* ---------- маркери-указатели към страниците ---------- */
.signposts {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin: 30px 0 70px;
}
.sign {
  position: relative;
  display: block;
  background: #fffaf0;
  border: 1px solid #e0cfa4;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
}
.sign:hover { color: var(--ink); border-color: var(--rust); }
.sign img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sign .txt { padding: 16px 18px 20px; }
.sign .txt p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.sign .arrow {
  position: absolute;
  top: 14px; left: -6px;
  background: var(--rust);
  color: #fff;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 16px 5px 14px;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.sign.s1 { grid-column: 1 / span 5; grid-row: span 2; }
.sign.s1 img { aspect-ratio: 4 / 3; }
.sign.s2 { grid-column: 6 / span 7; }
.sign.s2 img { aspect-ratio: 21 / 8; }
.sign.s3 { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; }
.sign.s3 img { aspect-ratio: auto; height: 100%; }

/* ---------- статия с пътеката отляво ---------- */
.trail-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 50px 0;
  border-top: 1px dashed var(--line);
}
.trail-section aside {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink-soft);
}
.trail-section aside .num {
  display: block;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 1;
  color: var(--leaf);
}
.prose { max-width: 40em; }
.prose p { margin: 0 0 1.1em; }
.prose.drop > p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .9;
  padding: 6px 10px 0 0;
  color: var(--rust);
}
.prose figure.side {
  float: right;
  width: 46%;
  margin: 6px -18% 16px 28px;
}
.prose::after { content: ""; display: block; clear: both; }

.plaque {
  margin: 34px 0;
  background: var(--moss);
  color: #f3ead2;
  padding: 26px 30px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px var(--moss), inset 0 0 0 6px #c9a65e;
  font-size: 1.15rem;
  font-style: italic;
}
.plaque cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .85rem; color: #c9d8b4; }

/* ---------- календар по месеци ---------- */
.months-wrap { padding: 50px 0; border-top: 1px dashed var(--line); }
.months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 0;
  overflow-x: auto;
  padding: 6px 0 18px;
  margin: 18px 0 0;
  list-style: none;
  scroll-snap-type: x mandatory;
}
.months li {
  scroll-snap-align: start;
  padding: 18px 18px 18px 20px;
  border-left: 1px solid var(--line);
  font-size: .95rem;
  position: relative;
}
.months li::before {
  content: "";
  position: absolute;
  top: 0; left: -1px; right: 0;
  height: 6px;
  background: var(--season, var(--leaf));
}
.months b { display: block; font-weight: normal; font-size: 1.15rem; color: var(--moss); margin: 4px 0; }
.months .w { --season: #9fb7c4; }
.months .sp { --season: #e7a7b8; }
.months .su { --season: #6aa45a; }
.months .au { --season: #d1782f; }

/* ---------- дневник ---------- */
.diary { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.diary::before {
  content: "";
  position: absolute;
  left: 11px; top: 6px; bottom: 6px;
  border-left: 3px dotted var(--rust);
}
.diary li { position: relative; padding: 0 0 26px 46px; }
.diary li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--rust);
}
.diary time { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; color: var(--rust); text-transform: uppercase; }
.diary p { margin: 4px 0 0; }

/* ---------- широка панорама ---------- */
.panorama { position: relative; margin: 40px 0 0; }
.panorama img { width: 100%; border-radius: 4px; }
.panorama .over {
  position: absolute;
  left: 28px; bottom: 28px;
  max-width: 460px;
  background: rgba(248,241,222,.94);
  padding: 22px 26px;
  border-left: 6px solid var(--water);
}
.panorama .over h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.panorama .over p { margin: 0; color: var(--ink-soft); }

/* ---------- две колони: текст + табелка ---------- */
.with-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  padding: 50px 0;
}
.card-note {
  align-self: start;
  position: sticky;
  top: 20px;
  background: #fffaf0;
  border: 1px solid #e0cfa4;
  padding: 22px 22px 8px;
  font-family: var(--sans);
  font-size: .92rem;
}
.card-note h3 { font-family: var(--serif); }
.card-note dl { margin: 0; }
.card-note dt { font-weight: 700; color: var(--moss); margin-top: 10px; }
.card-note dd { margin: 2px 0 12px; color: var(--ink-soft); }

/* ---------- сезони зигзаг ---------- */
.seasons { padding: 20px 0 40px; }
.season {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px dashed var(--line);
}
.season:nth-child(even) { grid-template-columns: 1fr 140px; }
.season:nth-child(even) .badge { order: 2; }
.badge {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1.1rem;
  color: #fff;
  background: var(--c);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.35);
}
.badge small { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- хербарий ---------- */
.herbarium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.herbarium li {
  background: #fffaf0;
  border: 1px solid #e0cfa4;
  padding: 16px 18px;
  position: relative;
}
.herbarium li::after {
  content: "";
  position: absolute;
  right: 14px; top: -8px;
  width: 50px; height: 16px;
  background: rgba(214,196,150,.8);
  transform: rotate(4deg);
}
.herbarium i { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); }
.herbarium p { margin: 8px 0 0; font-size: .95rem; }

/* ---------- маршрут ---------- */
.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0 50px;
}
.map-frame {
  margin: 0;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #d9c595;
  position: sticky;
  top: 20px;
}
.stops { counter-reset: stop; list-style: none; padding: 0; margin: 0; }
.stops li {
  counter-increment: stop;
  position: relative;
  padding: 0 0 22px 56px;
  border-left: 3px dashed var(--rust);
  margin-left: 18px;
}
.stops li:last-child { border-left-color: transparent; }
.stops li::before {
  content: counter(stop);
  position: absolute;
  left: -20px; top: -2px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rust);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  border: 3px solid var(--paper);
}
.stops h3 { margin-bottom: 4px; }
.stops .meta { font-family: var(--sans); font-size: .8rem; color: var(--rust); letter-spacing: .06em; text-transform: uppercase; }
.stops p { margin: 6px 0 0; }

.tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px dashed var(--line);
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px dotted var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 16px; height: 10px;
  border-left: 3px solid var(--moss-2);
  border-bottom: 3px solid var(--moss-2);
  transform: rotate(-45deg);
}

/* ---------- footer ---------- */
.site-foot {
  margin-top: 40px;
  background: #2a3a27;
  color: #d9d2b9;
  font-family: var(--sans);
  font-size: .9rem;
  border-top: 6px solid #6b4a2b;
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 36px 0 20px;
}
.site-foot h4 { margin: 0 0 8px; font-family: var(--serif); font-weight: normal; font-size: 1.1rem; color: #f3ead2; }
.site-foot a { color: #cfe0ad; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 4px 0; }
.site-foot .bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(217,210,185,.2);
  padding-top: 14px;
  font-size: .8rem;
  color: #a9b29a;
}
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand img { width: 44px; height: 44px; flex: none; }
.foot-brand p { margin: 0; }

/* ---------- адаптивност ---------- */
@media (max-width: 920px) {
  .hero, .with-card, .route-layout, .tips { grid-template-columns: 1fr; gap: 30px; }
  .trail-section { grid-template-columns: 1fr; gap: 10px; }
  .trail-section aside .num { font-size: 3rem; }
  .signposts { grid-template-columns: 1fr; }
  .sign.s1, .sign.s2, .sign.s3 { grid-column: auto; grid-row: auto; }
  .sign.s3 { grid-template-columns: 1fr; }
  .sign.s3 img { aspect-ratio: 16 / 10; height: auto; }
  .prose figure.side { margin-right: 0; }
  .card-note, .map-frame { position: static; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-head .wrap { justify-content: center; text-align: left; }
  .menu { justify-content: center; }
  .menu a { font-size: .85rem; padding: 6px 11px 6px 6px; }
  .hero { padding-top: 32px; }
  .postcard { transform: none; }
  .prose figure.side { float: none; width: 100%; margin: 18px 0; }
  .panorama .over { position: static; max-width: none; margin-top: -4px; }
  .season, .season:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .season:nth-child(even) .badge { order: 0; }
  .badge { width: 96px; height: 96px; font-size: 1rem; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .plaque { padding: 20px; }
}

/* в страници с табелка вдясно снимката не излиза извън колоната */
.with-card .prose figure.side { margin-right: 0; width: 44%; }
@media (max-width: 600px) { .with-card .prose figure.side { width: 100%; } }
