/* «Сёма» - components: chapters, cards, lists, prices, steps, gallery, reviews, FAQ, forms, modal, lightbox. */

/* ---------- Chapters ---------- */
.chapter { position: relative; padding-block: var(--space-section); }
.chapter-tint { background: var(--tint); --ko: var(--tint); }
.chapter-tint::before, .chapter-tint::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 V12 C20 2 40 18 60 10 S100 2 120 12 S150 16 160 8 V22 Z' fill='%23EEF2DE'/%3E%3C/svg%3E") repeat-x 0 0 / 320px 22px;
}
.chapter-tint::before { top: -21px; }
.chapter-tint::after { bottom: -21px; transform: scaleY(-1); }

.chapter-head { max-width: 760px; margin-bottom: clamp(20px, 2.5vw, 36px); }
.chapter-no { display: flex; align-items: center; gap: 10px; font-family: var(--font-hand); font-size: 1.35rem; color: var(--rust); margin-bottom: 8px; }
.chapter-no::before, .chapter-orn {
  content: ""; width: 36px; height: 12px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M2 6 H26 M20 2 C26 2 30 4 34 6 C30 8 26 10 20 10' fill='none' stroke='%239C4A1A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.chapter h2 { font-size: var(--text-h2); }
.chapter-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Paper cards ---------- */
.pages-3 { display: grid; gap: 28px; }
@media (min-width: 820px) {
  .pages-3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .pages-3 > :nth-child(3n+2) { margin-top: 48px; }
}
.paper-card {
  position: relative; background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: var(--shadow-riso);
  padding: 28px 24px 24px;
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.paper-card:has(.card-link):hover { box-shadow: 9px 9px 0 var(--sage); translate: -2px -3px; }
.paper-card h3 { font-size: 1.75rem; }
.paper-card p, .card-text { margin: 0; color: var(--ink-soft); }
.card-text p:last-child { margin-bottom: 0; }
.card-pic { width: 96px; height: 112px; margin: -64px 0 8px auto; overflow: visible; }
.card-pic-frog { width: 124px; height: 110px; }
.card-pic-owl { width: 100px; height: 110px; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:hover { color: var(--rust); }
.card-link:focus-visible { outline: none; }
.paper-card:has(.card-link:focus-visible), .group-card:has(.card-link:focus-visible) { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.tilt-r { transform: rotate(1.2deg); }
.tilt-l { transform: rotate(-1.4deg); }

/* ---------- 7 reasons + owl note ---------- */
.why-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1.35fr .9fr; align-items: start; } }
.reasons { counter-reset: r; display: grid; gap: 14px; }
.reasons li {
  counter-increment: r; position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 18px; background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand-2);
  font-weight: 600;
}
@media (min-width: 720px) { .reasons li:nth-child(even) { margin-left: 36px; } }
.reasons li::before {
  content: counter(r); flex: none;
  display: grid; place-items: center; width: 48px; height: 48px;
  font-family: var(--font-hand); font-size: 1.7rem; color: var(--ink);
  background: var(--pumpkin); border: 2px solid var(--ink);
  border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
}
.owl-note {
  position: relative; background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: 8px 8px 0 var(--pumpkin);
  padding: 24px; transform: rotate(-1.2deg); margin-top: 60px;
}
@media (min-width: 960px) { .owl-note { position: sticky; top: 110px; margin-top: 90px; } }
.owl-note-pic { width: 120px; height: 132px; margin: -84px auto 6px; overflow: visible; }
.note-title { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.15; text-align: center; color: var(--green-deep); }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 9 C5 11 7 13 8 14 C11 8 14 4 18 2' fill='none' stroke='%235E7D2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 720px) { .ticks-2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; } }

/* ---------- Classes: stickers + methods ---------- */
.stickers { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.stickers li {
  padding: 10px 20px; font-weight: 700;
  background: var(--sage); border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.stickers li:nth-child(3n+2) { background: var(--peach); transform: rotate(1.2deg); }
.stickers li:nth-child(3n) { background: var(--paper-2); transform: rotate(-.5deg); }
.methods { display: flex; gap: 20px; align-items: flex-start; max-width: 820px; padding: 22px 24px; border: 2px dashed var(--green); border-radius: var(--radius-hand-2); background: rgba(255, 251, 242, .7); }
.methods p { margin: 0; }
.methods-leaf { width: 56px; height: 56px; flex: none; }
@media (max-width: 519px) { .methods { flex-direction: column; } }

/* ---------- Groups ---------- */
.groups { display: grid; gap: 24px; }
@media (min-width: 820px) { .groups { grid-template-columns: 1fr 1fr; } .groups > :nth-child(2n) { margin-top: 32px; } }
@media (min-width: 1040px) {
  .groups { grid-template-columns: repeat(3, 1fr); }
  .groups > :nth-child(2n) { margin-top: 32px; }
  .groups .group-card { flex-direction: column; align-items: flex-start; }
  .groups .group-pic { width: 110px; align-self: center; }
}
.group-card {
  position: relative; display: flex; gap: 20px; align-items: center;
  background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: 8px 8px 0 var(--pumpkin);
  padding: 24px;
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.group-card:has(.card-link):hover { box-shadow: 11px 11px 0 var(--pumpkin); translate: -2px -3px; }
.group-pic { width: clamp(90px, 22vw, 140px); height: auto; flex: none; overflow: visible; }
.group-card h3 { font-size: 1.9rem; }
.group-card p { margin: 0; color: var(--ink-soft); }
.age { font-family: var(--font-hand); font-size: 1.4rem; color: var(--rust) !important; margin-bottom: 4px !important; }

/* ---------- Price tag ---------- */
.price-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-tag {
  position: relative; max-width: 460px; width: 100%; justify-self: center;
  background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: 26px 26px 26px 26px / 22px 30px 22px 30px;
  box-shadow: 10px 10px 0 var(--sage), 10px 10px 0 2px var(--ink);
  padding: 44px 32px 32px; transform: rotate(1.8deg);
}
.price-tag::before {
  content: ""; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%);
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.price-label { font: 700 1rem/1.4 var(--font-body); color: var(--ink-soft); margin-bottom: 0; }
.price-value { font-family: var(--font-hand); font-size: clamp(3.2rem, 2.4rem + 3vw, 4.6rem); line-height: 1; color: var(--green-deep); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.price-value span { color: var(--rust); font-family: var(--font-body); font-weight: 800; font-size: .42em; }
.price-tag .ticks { margin-bottom: 18px; }
.price-note { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 22px; counter-reset: s; position: relative; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .steps.steps-2 { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-4 { grid-template-columns: repeat(4, 1fr); }
  .steps::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: 34px; height: 4px;
    background: repeating-linear-gradient(90deg, var(--green) 0 12px, transparent 12px 22px);
  }
}
.steps li { position: relative; text-align: center; }
.step-no {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px;
  font-family: var(--font-hand); font-size: 2.2rem;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50% 46% 54% 48% / 52% 48% 50% 46%;
  box-shadow: 4px 4px 0 var(--terracotta);
}
/* Owner request: step descriptions in the hand-drawn font, like the "Глава 6" label */
.steps p { max-width: 260px; margin: 0 auto; font-family: var(--font-hand); font-weight: 400; font-size: 1.4rem; line-height: 1.2; color: var(--green-deep); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 360px) and (max-width: 639px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .gallery .ph, .gallery .photo { padding: 7px 7px 9px; }
  .gallery figcaption { font-size: 1rem; }
}
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery > :nth-child(even) { margin-top: 36px; } }
.ph, .photo {
  margin: 0; padding: 12px 12px 14px; background: #fff; --ko: #F6EFDF;
  border: 1.5px solid var(--line-soft); box-shadow: var(--shadow-photo);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ph:hover, .photo:hover { box-shadow: 0 16px 28px rgba(45, 42, 38, .2); }
.ph svg { width: 100%; height: auto; border: 1.5px solid var(--ink); }
.ph-bg { fill: #F6EFDF; }
.ph-bg-2 { fill: #F9E7D3; }
.ph-bg-3 { fill: #E6EDD3; }
.ph figcaption, .photo figcaption { padding-top: 10px; font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.25; text-align: center; color: var(--ink-soft); }
.photo-link { display: block; position: relative; border: 1.5px solid var(--ink); overflow: hidden; cursor: zoom-in; }
.photo-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.photo-link:hover img { transform: scale(1.04); }
.photo-link:focus-visible { outline-offset: 4px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) {
  .reviews { grid-template-columns: .7fr 1fr 1fr; }
  .reviews-empty { grid-template-columns: .7fr 2fr; align-items: center; }
}
.rating-badge {
  display: grid; place-items: center; align-content: center; gap: 2px; width: 210px; height: 210px; justify-self: center;
  text-decoration: none; color: var(--ink); text-align: center;
  background: var(--pumpkin); border: 2px solid var(--ink); border-radius: 50%;
  box-shadow: 0 0 0 8px var(--tint), 0 0 0 10px var(--ink);
  transform: rotate(-6deg); transition: transform .3s var(--ease);
}
.rating-badge:hover { color: var(--ink); transform: rotate(0) scale(1.03); }
.rb-score { font-family: var(--font-hand); font-size: 3.6rem; line-height: 1; }
.rb-stars { letter-spacing: 2px; color: var(--ink); }
.rb-meta { font-weight: 700; font-size: .9rem; max-width: 150px; line-height: 1.25; }
.review {
  margin: 0; padding: 28px 24px 22px; background: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand-2); box-shadow: var(--shadow-riso);
  position: relative;
}
.review::before { content: "“"; position: absolute; top: -18px; left: 18px; font-family: var(--font-hand); font-size: 4.5rem; line-height: 1; color: var(--terracotta); }
.review-stars { margin: 0 0 6px; color: var(--terracotta); letter-spacing: 2px; }
.review-text p:last-child { margin-bottom: 12px; }
.review footer { font-family: var(--font-hand); font-size: 1.2rem; color: var(--green-deep); }
.review cite { font-style: normal; }
.review-child { color: var(--ink-soft); }
.review-source { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); }
.reviews-note { padding: 24px; background: var(--paper-2); border: 2px dashed var(--green); border-radius: var(--radius-hand-2); }
.reviews-links { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq-grid { display: grid; gap: 24px 48px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.4fr; align-items: start; } }
.faq-owl { width: 150px; height: 164px; margin: 8px 0 0 auto; overflow: visible; }
@media (max-width: 959px) { .faq-owl { display: none; } }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius-hand-2);
  box-shadow: 4px 4px 0 var(--sage);
  transition: box-shadow .25s var(--ease);
}
.faq-item[open] { box-shadow: 6px 6px 0 var(--pumpkin); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 1.05rem; line-height: 1.35;
  border-radius: inherit;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { color: var(--rust); }
.faq-icon { position: relative; width: 30px; height: 30px; flex: none; border: 2px solid var(--ink); border-radius: 50% 46% 54% 48% / 52% 48% 50% 46%; background: var(--peach); transition: transform .3s var(--ease), background-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; background: var(--ink); border-radius: 2px; }
.faq-icon::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); background: var(--sage); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 18px 18px; color: var(--ink); }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- Article cards ---------- */
.posts { display: grid; gap: 28px; }
@media (min-width: 640px) { .posts-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .posts-3 { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: var(--shadow-riso); overflow: hidden;
  transition: box-shadow .3s var(--ease), translate .3s var(--ease);
}
.post-card:hover { box-shadow: 9px 9px 0 var(--sage); translate: -2px -3px; }
.post-cover { display: block; border-bottom: 2px solid var(--ink); background: #F6EFDF; }
.post-cover img, .post-cover svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; }
.post-body { padding: 18px 22px 22px; }
.post-meta { font-size: .85rem; font-weight: 700; color: var(--rust); margin-bottom: 6px; }
.post-title { font-size: 1.6rem; margin-bottom: 8px; }
.post-title a { color: var(--green-deep); text-decoration: none; }
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-title a:hover { color: var(--rust); }
.post-card:has(.post-title a:focus-visible) { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.post-title a:focus-visible { outline: none; }
.post-excerpt { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Small links ---------- */
.more-link { margin: 24px 0 0; }
.more-link + .more-link { margin-top: 6px; }
.more-link a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; padding: 6px 2px; }
.more-link svg { width: 36px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .25s var(--ease); }
.more-link a:hover svg { transform: translateX(5px); }
.related { padding-block: 24px var(--space-section); }
.related-title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  font-weight: 700; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: 3px 3px 0 var(--sage);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.related-links li:nth-child(3n+2) a { box-shadow: 3px 3px 0 var(--pumpkin); }
.related-links a::after { content: "→"; font-weight: 800; color: var(--rust); transition: transform .2s var(--ease); }
.related-links a:hover { color: var(--ink); background: #fff; box-shadow: 5px 5px 0 var(--sage); }
.related-links a:hover::after { transform: translateX(3px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; display: grid; gap: 18px; align-items: center; margin-top: clamp(40px, 6vw, 72px);
  padding: 28px clamp(20px, 4vw, 40px); background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand-2);
  box-shadow: 10px 10px 0 var(--sage), 10px 10px 0 2px var(--ink);
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; padding-right: 160px; }
  .cta-owl { grid-row: span 2; align-self: center; }
  .cta-band-actions { grid-column: 2; }
}
.cta-band-title { font-family: var(--font-hand); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.1; color: var(--green-deep); margin-bottom: 6px; }
.cta-band-text p:last-child { margin: 0; color: var(--ink-soft); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-owl { width: 86px; height: 94px; overflow: visible; }
.cta-frog { position: absolute; right: 18px; bottom: -14px; width: 120px; height: 106px; overflow: visible; }
@media (max-width: 899px) { .cta-owl { display: none; } .cta-frog { width: 84px; height: 74px; top: -50px; bottom: auto; right: 12px; } }

/* ---------- Contacts block + forms ---------- */
.contacts-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
/* Owner request: on phones the booking form goes first, contacts after it */
@media (max-width: 899px) { .contacts-grid > .form-page { order: -1; } }
.contact-list { display: grid; gap: 18px; margin: 0 0 24px; }
.contact-list dt { font-family: var(--font-hand); font-size: 1.3rem; color: var(--rust); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list dd a[href^="tel:"] { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.contact-mail { overflow-wrap: anywhere; }
.map-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 700; }
.lead-aside .contact-list { margin-top: 8px; }

.form-page {
  position: relative; background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand-2);
  box-shadow: 10px 10px 0 var(--pumpkin), 10px 10px 0 2px var(--ink);
  padding: 32px clamp(20px, 4vw, 36px);
  margin-top: 40px;
}
.form-title { font-size: 2rem; padding-right: 110px; }
.form-intro { color: var(--ink-soft); }
.form-frog { position: absolute; top: -84px; right: 18px; width: 118px; height: 104px; overflow: visible; }
.modal-address { margin: -4px 0 14px; padding: 10px 14px; font-weight: 700; color: var(--green-deep); background: var(--tint); border-radius: var(--radius-hand-2); }

.lead-form { display: grid; gap: 6px; }
.field { font-weight: 700; margin-top: 8px; padding: 0; }
.field-opt { font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.field-opt::before { content: "- "; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form textarea, .lead-form select {
  width: 100%; min-height: 48px; padding: 10px 16px;
  font: 600 1rem var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-field);
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form select {
  appearance: none; cursor: pointer; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%232D2A26' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px 10px;
}
.lead-form select:invalid { color: #6F685E; }
.lead-form select option { color: var(--ink); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #6F685E; }
.lead-form input:hover, .lead-form textarea:hover, .lead-form select:hover { box-shadow: 3px 3px 0 var(--sage); }
.lead-form input:focus-visible, .lead-form textarea:focus-visible, .lead-form select:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 2px; border-radius: var(--radius-field); }
.lead-form [aria-invalid="true"] { border-color: var(--rust); background: #FFF4EC; }
.kind-picker { border: 0; margin: 0; padding: 0; min-width: 0; }
.kind-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.kind-chip { position: relative; cursor: pointer; }
.kind-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  font-weight: 700; font-size: .95rem;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-hand);
  transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.kind-chip:hover span { box-shadow: 2px 2px 0 var(--sage); }
.kind-chip input:checked + span { background: var(--sage); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.2deg); }
.kind-chip input:focus-visible + span { outline: 3px solid var(--pumpkin); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .92rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green-deep); }
.consent-links { margin: 0 0 0 32px; font-size: .85rem; color: var(--ink-soft); }
.field-error { min-height: 1.2em; font-size: .85rem; font-weight: 700; color: var(--rust); }
.form-status { margin: 6px 0 0; padding: 10px 14px; font-weight: 700; color: var(--rust); background: #FFF4EC; border: 2px dashed var(--rust); border-radius: 14px; }
.form-status a { color: inherit; }
.lead-form .btn { margin-top: 10px; }
.form-note { margin: 4px 0 0; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-slot { min-height: 102px; margin-top: 8px; }
.form-success { padding: 18px 18px 14px; text-align: center; background: var(--tint); border: 2px dashed var(--green); border-radius: 14px; }
.form-success:focus { outline: none; }
.success-pic { width: 110px; height: 97px; margin: -4px auto 4px; overflow: visible; }
.success-title { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.15; color: var(--green-deep); margin-bottom: 8px; }
.success-note { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; background: transparent; max-width: min(480px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
.modal::backdrop { background: rgba(45, 42, 38, .55); }
/* Scrolls when it does not fit, but without a visible scrollbar (owner request) */
.modal[open] { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.modal[open]::-webkit-scrollbar { display: none; width: 0; height: 0; }
.modal-page {
  position: relative; background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand);
  box-shadow: 10px 10px 0 var(--sage), 10px 10px 0 2px var(--ink);
  padding: 22px clamp(16px, 4vw, 28px) 18px;
  margin: 54px 12px 12px 0;
}
.modal h2 { font-size: 1.75rem; padding-right: 110px; margin-bottom: .2em; }
.modal-pic { position: absolute; top: -54px; right: 60px; width: 88px; height: 78px; overflow: visible; }
.modal .form-intro { margin: 0 0 8px; font-size: .95rem; }
.modal .modal-address { margin: 0 0 6px; padding: 6px 12px; font-size: .92rem; }
.modal .lead-form { gap: 2px; }
.modal .field { margin-top: 4px; }
.modal .field-error:empty { min-height: 0; }
.modal .lead-form input[type="text"], .modal .lead-form input[type="tel"], .modal .lead-form select { min-height: 44px; padding-block: 8px; }
.modal .kind-options { margin-top: 2px; }
.modal .kind-chip span { min-height: 36px; padding: 4px 12px; }
.modal .check { margin-top: 8px; }
.modal .lead-form .btn { margin-top: 6px; }
@media (max-height: 760px) { .modal-pic { display: none; } .modal-page { margin-top: 12px; } }
.modal-close, .lightbox-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.modal-close svg, .lightbox-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.modal-close:hover, .lightbox-btn:hover { background: var(--peach); transform: rotate(-6deg); }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; }
.lightbox::backdrop { background: rgba(45, 42, 38, .82); }
.lightbox-inner { position: relative; display: grid; place-items: center; }
.lightbox-figure { margin: 0; padding: 12px 12px 14px; background: #fff; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--sage); max-width: 100%; }
.lightbox-frame img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; margin: 0 auto; border: 1.5px solid var(--ink); }
.lightbox-figure figcaption { padding-top: 8px; min-height: 1.6em; font-family: var(--font-hand); font-size: 1.2rem; text-align: center; color: var(--ink-soft); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-close { position: absolute; top: -16px; right: -6px; }
.lightbox-count { position: absolute; left: 50%; bottom: -36px; translate: -50% 0; margin: 0; color: var(--paper); font-weight: 700; }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }
body.modal-open { overflow: hidden; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  max-width: 520px; padding: 16px 18px; background: var(--paper-2); --ko: var(--paper-2);
  border: 2px solid var(--ink); border-radius: var(--radius-hand-2);
  box-shadow: 6px 6px 0 var(--sage), 6px 6px 0 2px var(--ink);
  font-size: .92rem;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie-pic { width: 56px; height: 49px; grid-row: span 2; overflow: visible; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 42px; padding: 8px 16px; font-size: .92rem; }

/* ---------- Pager, tags ---------- */
.pager { margin-top: 40px; }
.pager ul { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pager-num, .pager-step {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px 14px;
  font-weight: 800; text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius-hand);
}
.pager-num.is-current { background: var(--green-deep); color: var(--paper); box-shadow: 3px 3px 0 var(--pumpkin); }
a.pager-num:hover, a.pager-step:hover { background: var(--tint); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tags li { padding: 4px 12px; font-size: .85rem; font-weight: 700; background: var(--tint); border: 1.5px solid var(--green); border-radius: 999px; }

/* mascots may jump outside their boxes */
.logo-mark, .card-pic, .group-pic, .form-frog, .modal-pic, .footer-mark, .owl-note-pic { overflow: visible; }

/* Hint under the kind buttons: only the one for the checked option is visible */
.kind-hint {
  display: none; margin: 8px 0 2px; padding: 8px 12px;
  font-size: .9rem; line-height: 1.4; color: var(--ink-soft);
  background: var(--tint); border-radius: var(--radius-hand-2);
}
.kind-picker:has(input[value="excursion"]:checked) .kind-hint[data-kind-hint="excursion"],
.kind-picker:has(input[value="consultation"]:checked) .kind-hint[data-kind-hint="consultation"] { display: block; }
