﻿@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --green: #1a3c34; --green-light: #2a5a4f; --green-dark: #0f2a24;
  --gold: #c9a84c; --gold-light: #e0c56e; --bg: #f8f6f2;
  --text: #2d2d2d; --text-light: #6b6b6b; --text-muted: #9b9b9b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; }
img { max-width: 100%; }
a { text-decoration: none; color: var(--green-light); }

.nav { background: var(--green-dark); color: #fff; padding: .9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.nav .brand { font-weight: 800; color: var(--gold-light); font-size: 1.05rem; }
.nav .links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav .links a { color: rgba(255,255,255,.85); font-size: .92rem; font-weight: 600; }
.nav .links a:hover, .nav .links a.active { color: var(--gold-light); }

.page-head { background: linear-gradient(160deg, var(--green-dark), var(--green) 70%); color: #fff; padding: 0 1.4rem; line-height: 1.2; }
.page-head h1 { font-size: .92rem; color: #fff; border-left: 4px solid var(--gold); padding-left: .7rem; line-height: 1.25; }
.page-head p { color: rgba(255,255,255,.85); max-width: 640px; padding-left: 1.1rem; font-size: .7rem; display: inline-block; }

.hero { position: relative; height: 500px; overflow: hidden; background: var(--green-dark); color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: center; pointer-events: none; }
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide .shade { position: absolute; inset: 0; background: linear-gradient(75deg, rgba(10,30,24,.92) 0%, rgba(10,30,24,.6) 45%, rgba(10,30,24,.15) 100%); }
.hero-slide .content { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.4rem; width: 100%; }
.hero-slide .tag { display: inline-block; background: var(--gold); color: var(--green-dark); font-weight: 700; font-size: .72rem; padding: .2rem .8rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.hero-slide h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: .9rem 0 .6rem; line-height: 1.2; color: #fff; max-width: 720px; }
.hero-slide p { color: rgba(255,255,255,.92); max-width: 560px; font-size: 1.02rem; }
.hero-slide .btn { margin-top: .6rem; padding: .45rem 1.1rem; font-size: .85rem; }
.btn.gold { background: var(--gold); color: var(--green-dark); }
.btn.gold:hover { background: var(--gold-light); }
.hero-dots { position: absolute; bottom: 1.2rem; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: .6rem; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; transition: all .2s; }
.hero-dots button.active { background: var(--gold); width: 26px; border-radius: 6px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.hero-nav:hover { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.hero-nav.prev { left: 1rem; }
.hero-nav.next { right: 1rem; }
@media (max-width: 720px) { .hero { height: 500px; } .hero-nav { display: none; } }

.wrap { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.4rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { color: var(--green-dark); font-size: 1.4rem; border-left: 4px solid var(--gold); padding-left: .7rem; }
.section-head a { font-size: .9rem; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden; transition: transform .15s; display: block; }
.card:hover { transform: translateY(-2px); }
.card img.thumb { width: 100%; height: 170px; object-fit: cover; display: block; }
.card .body { padding: 1rem 1.1rem; }
.card h3 { color: var(--green-dark); font-size: 1.02rem; margin: .35rem 0; }
.card p { color: var(--text-light); font-size: .88rem; }
.card .meta { color: var(--text-muted); font-size: .78rem; }
.cat { display: inline-block; background: var(--green-light); color: #fff; font-size: .68rem; font-weight: 600; padding: .15rem .55rem; border-radius: 20px; margin-right: .25rem; }

.evlist { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.ev { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1rem 1.2rem; margin-bottom: .8rem; }
.ev-date { background: var(--green); color: #fff; border-radius: 8px; min-width: 62px; text-align: center; padding: .5rem .3rem; }
.ev-date b { display: block; font-size: 1.2rem; line-height: 1.1; }
.ev-date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.ev-info { flex: 1; }
.ev-info h3 { color: var(--green-dark); font-size: 1rem; }
.ev-info .meta { color: var(--text-muted); font-size: .82rem; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.about .label { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.about h2 { color: var(--green-dark); font-size: 1.6rem; margin: .4rem 0 .8rem; }
.about p { color: var(--text-light); margin-bottom: .6rem; }
.about img { border-radius: 12px; width: 100%; }
.about-desk-img { display: block; }
.about-mobile-img { display: none; }
.about-more { margin-top: .4rem; }
.about-more-summary { list-style: none; cursor: pointer; }
.about-more-summary::-webkit-details-marker { display: none; }
.about-more-summary p { color: var(--text-light); margin-bottom: .6rem; }
.about-more-btn {
  display: inline-flex; align-items: center; border: 1px solid var(--green-light);
  color: var(--green-light); background: #fff; border-radius: 20px; padding: .45rem 1.1rem;
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.about-more-body { margin-top: .8rem; }
.about-more-body p { color: var(--text-light); margin-bottom: .6rem; }
.about-more-body img { border-radius: 12px; width: 100%; margin-top: .6rem; }
.about-more-foot { margin-top: 1rem; }
details[open] .about-more-summary { display: none; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.gallery-grid img { height: 190px; width: 100%; object-fit: cover; border-radius: 8px; cursor: pointer; }

.article h2, .detail h1 { color: var(--green-dark); font-size: 1.7rem; line-height: 1.3; margin-bottom: .4rem; }
.article .meta, .detail .meta { color: var(--text-muted); font-size: .82rem; margin-bottom: 1rem; }
.article img, .detail img { display: block; width: 100% !important; max-width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; float: none !important; margin: 1rem 0; border-radius: 8px; cursor: zoom-in; }
.article h2, .article h3, .detail h2, .detail h3 { color: var(--green-dark); margin: 1.2rem 0 .5rem; }
.article blockquote, .detail blockquote { border-left: 4px solid var(--gold); padding: .4rem .9rem; color: var(--text-light); font-style: italic; margin: 1rem 0; }
.article ul, .article ol, .detail ul, .detail ol { padding-left: 1.5rem; margin: .5rem 0; }
.back { color: var(--green-light); font-size: .9rem; margin-bottom: 1rem; display: inline-block; }

.art-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.art-layout .article { min-width: 0; grid-column: 1; grid-row: 1; }
.side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 90px; display: grid; gap: 1.4rem; align-self: start; }
.related { grid-column: 1; grid-row: 2; margin-top: 2rem; }
.share { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #ece7de; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.share b { color: var(--green-dark); font-size: .9rem; }
.sh { display: inline-block; background: var(--bg); border: 1px solid #ece7de; color: var(--green-light); font-size: .82rem; font-weight: 600; padding: .35rem .9rem; border-radius: 20px; cursor: pointer; font-family: inherit; }
.sh:hover { background: var(--green); color: #fff; border-color: var(--green); }
.related .dlist.cols-3 { grid-template-columns: repeat(2, 1fr); }
.related .evlist { grid-template-columns: repeat(3, 1fr); }
.related .evlist .ev { flex-direction: column; align-items: stretch; gap: .5rem; padding: .8rem; margin-bottom: 0; }
.related .evlist .ev-date { align-self: flex-start; }
.related .evlist .ev p { display: none; }
.related .evlist .ev .meta { font-size: .75rem; }
.side-ad { width: 300px; height: 300px; background: #fff; border-radius: 10px; display: block; overflow: hidden; }
.side-ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-ev h3 { color: var(--green-dark); font-size: 1rem; border-left: 4px solid var(--gold); padding-left: .6rem; margin-bottom: .8rem; }
.side-ev .ditem { flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin-bottom: .8rem; }
.side-ev .dthumb { width: 100%; min-height: 110px; }
.side-ev .dbody { padding: .6rem .7rem; }
.side-ev .dbody b { font-size: .88rem; }
.side-ev .ev { margin-bottom: .6rem; padding: .6rem .7rem; }
.side-ev .ev p { display: none; }
.side-ev .ev-date { min-width: 48px; }
.side-ev .ev-date b { font-size: 1rem; }
.side-ev .ev h3 { font-size: .88rem; }
.side-ev .ev .meta { font-size: .72rem; }
.side-ev .ev-date span { font-size: .6rem; }
.related { margin-top: 2rem; }
.related > h3 { color: var(--green-dark); font-size: 1.15rem; border-left: 4px solid var(--gold); padding-left: .7rem; margin-bottom: 1rem; }

.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--green-dark); margin: 1rem 0 .3rem; }
.form input, .form textarea { width: 100%; border: 1px solid #d8d2c8; border-radius: 8px; padding: .6rem .8rem; font: inherit; background: #fff; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--green-light); border-color: transparent; }
.btn { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 8px; padding: .6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; margin-top: 1rem; }
.btn:hover { background: var(--green-light); }

.kontak-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.kontak-grid .info { background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1.4rem; }
.kontak-grid .info h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: .8rem; }
.kontak-grid .info p { color: var(--text-light); margin-bottom: .4rem; }
.alert { border-radius: 8px; padding: .8rem 1rem; font-size: .9rem; margin-top: 1rem; }
.alert.ok { background: #e6f4ea; color: #1e7e34; }
.alert.err { background: #fdecea; color: #b3261e; }
.map-title { color: var(--green-dark); font-size: 1.1rem; border-left: 4px solid var(--gold); padding-left: .7rem; margin: 1.4rem 0 .6rem; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.contact-detail { margin-top: 1.4rem; font-size: .9rem; color: var(--text-light); }
.contact-detail p { margin-bottom: .35rem; }
.contact-detail b { color: var(--green-dark); }
.alt { background: #fff; border-top: 1px solid #f0ece3; border-bottom: 1px solid #f0ece3; }

.direct .section-head { margin-bottom: 1.2rem; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.dir-tile {
  background: var(--bg); border-radius: 12px; padding: 1.2rem 1rem; text-align: center;
  border: 1px solid #ece7de; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.dir-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.dir-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: var(--gold-light);
}
.dir-icon svg { width: 27px; height: 27px; }
.dir-tile b { display: block; margin-top: .7rem; color: var(--green-dark); font-size: .95rem; }
.dir-tile p { color: var(--text-muted); font-size: .78rem; margin-top: .2rem; }

.dlist { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dlist.cols-3 { grid-template-columns: repeat(3, 1fr); }
.dlist.cols-3 .ditem { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.dlist.cols-3 .dthumb { width: 100%; min-height: 170px; }
.dlist.cols-3 .dbody { padding: 1rem 1.1rem; align-self: auto; }

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.pager span { color: var(--text-muted); font-size: .9rem; }
.pager .btn { margin-top: 0; }
.pager .btn[disabled] { opacity: .45; cursor: default; }
.ditem {
  display: flex; align-items: stretch; gap: 1.1rem; background: var(--bg);
  border: 1px solid #ece7de; border-radius: 10px; overflow: hidden;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ditem:hover { transform: translateX(4px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.dthumb { width: 180px; flex-shrink: 0; background: #ece7de; min-height: 88px; aspect-ratio: 4 / 3; }
.dthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dbody { flex: 1; min-width: 0; align-self: center; padding: 1rem 1.1rem 1rem 0; }
.dbody b { display: block; color: var(--green-dark); font-size: 1rem; }
.dbody .meta { color: var(--text-muted); font-size: .78rem; }

.empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }

.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 99; align-items: center; justify-content: center; }
.lb-main img { max-width: 82vw; max-height: 74vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { position: absolute; bottom: 1.3rem; left: 0; right: 0; text-align: center; color: #fff; padding: 0 1rem; }
.lb-cap b { display: block; font-size: 1.05rem; }
.lb-cap span { font-size: .85rem; color: rgba(255,255,255,.65); }
.lb-count { position: absolute; top: 1.1rem; left: 1.2rem; color: rgba(255,255,255,.7); font-size: .85rem; }
.lb-close {
  position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: var(--danger, #b3382c); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff;
  font-size: 1.7rem; cursor: pointer; line-height: 1;
}
.lb-nav:hover { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.lb-nav.prev { left: 1rem; }
.lb-nav.next { right: 1rem; }
@media (max-width: 720px) {
  .lb-main img { max-width: 90vw; max-height: 64vh; }
  .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lb-nav.prev { left: .4rem; }
  .lb-nav.next { right: .4rem; }
}

.m-nav { display: none; }
.wa-float { display: none; }

footer { background: var(--green-dark); color: rgba(255,255,255,.85); padding: 2rem 1.4rem; margin-top: 2rem; }
footer .wrap { padding: 0; }
footer .tagline { color: var(--gold-light); font-weight: 700; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-top: 1rem; }
footer h4 { color: #fff; margin-bottom: .5rem; font-size: .9rem; }
footer a, footer p { color: rgba(255,255,255,.8); font-size: .88rem; }
footer .copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1rem; font-size: .8rem; color: rgba(255,255,255,.55); text-align: center; }

@media (max-width: 720px) {
  .nav { padding: .7rem 1rem; gap: .5rem; justify-content: center; }
  .nav .links { display: none; }
  .wrap { padding: 2rem 1.1rem; }
  .page-head { padding: 0 1.1rem; }
  .page-head h1 { font-size: .82rem; }
  .page-head p { font-size: .62rem; }
  .hero-slide .content { padding: 1.5rem 1.1rem; }
  .section-head h2 { font-size: 1.2rem; }
  .about { grid-template-columns: 1fr; }
  .about-desk-img { display: none; }
  .about.no-acc .about-desk-img { display: block; }
  .about-mobile-img { display: block; }
  .footer .cols, footer .cols { grid-template-columns: 1fr; }
  .kontak-grid { grid-template-columns: 1fr; }
  .map-frame { height: 280px; }
  .art-layout { grid-template-columns: 1fr; }
  .art-layout .article, .side, .related { grid-column: auto; grid-row: auto; }
  .side { display: block; position: static; }
  .side-ad { width: 100%; margin-bottom: 1.4rem; }
  .side-ev .ev { margin-bottom: .6rem; }
  .related { margin-top: 1.5rem; }
  .ev { padding: .8rem .9rem; }
  .evlist { grid-template-columns: 1fr; }
  .dlist { grid-template-columns: 1fr; }
  .dlist.cols-3 { grid-template-columns: 1fr; }
  .dlist.cols-3 .dthumb { min-height: 170px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .dir-tile { padding: 1rem .8rem; }
  .dir-icon { width: 46px; height: 46px; }
  .dir-icon svg { width: 23px; height: 23px; }
  .dir-tile:last-child:nth-child(odd) { grid-column: span 2; }
  .dthumb { width: 120px; min-height: 68px; }
  .ditem { gap: .8rem; }
  .dbody { padding: .75rem .9rem .75rem 0; }
  .dlist { grid-template-columns: 1fr; }
  .gallery-grid img { height: 150px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }

  body { padding-bottom: 66px; }
  .m-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--green-dark); border-top: 1px solid rgba(255,255,255,.12);
    padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); z-index: 50;
  }
  .m-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .18rem;
    color: rgba(255,255,255,.72); font-size: .62rem; font-weight: 600; text-align: center;
  }
  .m-nav a svg { width: 23px; height: 23px; color: var(--gold-light); }
  .m-nav a.active { color: #fff; }
  .m-nav a.active svg { color: var(--gold-light); }
  .wa-float {
    display: flex; position: fixed; right: 1rem; bottom: 5.4rem; width: 52px; height: 52px;
    background: #25d366; border-radius: 50%; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.28); z-index: 60;
  }
  .wa-float svg { width: 30px; height: 30px; color: #fff; }
}
