\
:root {
   --ink: #4e3c34;
   --muted: #786c64;
   --green: #8ab829;
   --green-dark: #6f971e;
   --lime: #b9d51d;
   --blue: #bfe3e2;
   --sand: #c9baa1;
   --paper: #fbfaf6;
   --white: #fff;
   --border: #e9e3d9;
   --shadow: 0 12px 30px rgba(67, 52, 43, .08);
   --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
   margin: 0;
   color: var(--ink);
   background: var(--paper);
   font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
   line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
   min-height: 106px;
   display: grid;
   grid-template-columns: auto 1fr auto;
   align-items: center;
   gap: 34px;
   padding: 18px clamp(24px, 4vw, 72px);
   background: rgba(255,255,255,.97);
   border-bottom: 1px solid var(--border);
   position: sticky;
   top: 0;
   z-index: 50;
}

.brand {
   display: inline-flex;
   flex-direction: column;
   width: max-content;
}

.brand-main {
   font-size: clamp(2rem, 3vw, 3.5rem);
   font-weight: 900;
   line-height: .9;
   letter-spacing: -0.055em;
}
.brand-main span { color: var(--green); }
.brand-main em { color: #55a2ca; font-style: normal; }
.brand-sub {
   margin-top: 5px;
   font-size: .78rem;
   font-weight: 650;
}

.main-nav {
   display: flex;
   justify-content: center;
   gap: clamp(20px, 2.7vw, 42px);
   font-weight: 650;
   font-size: .95rem;
}

.main-nav a:first-child { color: var(--green-dark); }

.header-actions {
   display: flex;
   gap: 10px;
   align-items: center;
}
.header-actions form { margin: 0; }

.button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 8px;
   min-height: 43px;
   padding: 0 18px;
   font: inherit;
   font-weight: 750;
   border: 1px solid transparent;
   cursor: pointer;
}
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-outline { border-color: var(--green); color: var(--green-dark); background: white; }

.nav-toggle { display: none; }

.hero {
   min-height: 540px;
   padding: 56px clamp(24px, 4.5vw, 72px) 34px;
   position: relative;
   overflow: hidden;
   display: grid;
   grid-template-columns: 1.05fr .95fr;
   background:
      radial-gradient(circle at 55% 12%, rgba(255,255,255,.95) 0 6%, transparent 7%),
      linear-gradient(to bottom, #dff3f5 0%, #dff3f5 55%, #cce37c 76%, #a9cb47 100%);
}

.hero::after {
   content: "";
   position: absolute;
   left: -5%;
   right: -5%;
   bottom: -80px;
   height: 190px;
   border-radius: 50% 50% 0 0;
   background: #a0bf3c;
   opacity: .75;
}

.hero-content { position: relative; z-index: 4; max-width: 720px; }
.eyebrow {
   margin: 0 0 10px;
   color: var(--green-dark);
   font-size: .82rem;
   font-weight: 850;
   text-transform: uppercase;
   letter-spacing: .12em;
}
.hero h1, .page-hero h1 {
   margin: 0;
   font-size: clamp(2.7rem, 5.2vw, 5.6rem);
   line-height: 1.02;
   letter-spacing: -.045em;
}
.hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 700; }

.hero-search {
   margin-top: 26px;
   display: flex;
   width: min(650px, 100%);
   background: white;
   border-radius: 12px;
   box-shadow: var(--shadow);
   overflow: hidden;
}
.hero-search input {
   flex: 1;
   min-width: 0;
   border: 0;
   padding: 16px 18px;
   font: inherit;
   outline: none;
}
.hero-search button {
   width: 58px;
   border: 0;
   background: var(--green);
   color: white;
   font-size: 2rem;
   cursor: pointer;
}

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
   background: rgba(255,255,255,.85);
   border: 1px solid rgba(80,60,40,.1);
   border-radius: 999px;
   padding: 9px 14px;
   font-size: .84rem;
   font-weight: 700;
}
.chip.active { background: var(--green); color: white; }

.hero-illustration { position: relative; z-index: 3; min-height: 400px; align-self: end; }
.church {
   position: absolute;
   bottom: 70px;
   width: 100px;
   height: 150px;
   background: #c99567;
   border-radius: 4px 4px 0 0;
   box-shadow: inset -16px 0 rgba(102,74,58,.14);
}
.church::before {
   content: "";
   position: absolute;
   top: -95px;
   left: 16px;
   border-left: 34px solid transparent;
   border-right: 34px solid transparent;
   border-bottom: 95px solid #594b44;
}
.church::after {
   content: "";
   position: absolute;
   left: 39px;
   bottom: 0;
   width: 22px;
   height: 65px;
   background: #493b35;
   border-radius: 11px 11px 0 0;
}
.church-a { left: 12%; transform: scale(.85); }
.church-b { left: 39%; height: 190px; width: 110px; }
.church-c { right: 10%; transform: scale(.72); }

.family-shape {
   position: absolute;
   bottom: 5px;
   background: white;
   border-radius: 42px 42px 18px 18px;
   filter: drop-shadow(0 8px 10px rgba(0,0,0,.05));
}
.family-shape::before {
   content: "";
   width: 46px;
   height: 46px;
   border-radius: 50%;
   background: white;
   position: absolute;
   top: -30px;
   left: 50%;
   transform: translateX(-50%);
}
.family-1 { width: 75px; height: 180px; right: 25%; }
.family-2 { width: 60px; height: 130px; right: 42%; }
.family-3 { width: 56px; height: 118px; right: 5%; }

.hero-decoration { position: absolute; top: 0; bottom: 0; width: 42px; background: #b4a489; z-index: 2; }
.hero-tree-left { left: 10px; transform: skew(-2deg); }
.hero-tree-right { right: 18px; width: 48px; transform: skew(2deg); }

.section { padding: 34px clamp(24px, 4.5vw, 72px); }
.compact-section { padding-top: 8px; }

.section-heading {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   margin-bottom: 18px;
}
.section-heading h2 { font-size: 1.7rem; margin: 0; }
.section-heading a, .text-link { color: var(--green-dark); font-weight: 750; }

.offer-grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 28px;
}

.offer-card, .info-card, .editor-card, .detail-card, .admin-panel, .auth-card {
   background: white;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   box-shadow: var(--shadow);
}

.offer-card { overflow: hidden; }
.offer-image {
   display: block;
   height: 240px;
   position: relative;
   overflow: hidden;
}
.offer-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
   width: 100%;
   height: 100%;
   display: grid;
   place-items: center;
   background:
      radial-gradient(circle at 20% 20%, rgba(185,213,29,.8) 0 10%, transparent 11%),
      radial-gradient(circle at 75% 25%, rgba(121,184,55,.75) 0 12%, transparent 13%),
      linear-gradient(135deg, #d5efec, #afc67d);
}
.image-placeholder span { font-weight: 900; font-size: 2rem; color: rgba(78,60,52,.55); }
.image-badge {
   position: absolute;
   left: 14px;
   bottom: 12px;
   background: var(--green);
   color: white;
   border-radius: 999px;
   padding: 6px 10px;
   font-size: .76rem;
   font-weight: 800;
}
.offer-body { padding: 18px; }
.offer-body h3 { margin: 0; font-size: 1.2rem; }
.offer-meta { display: flex; gap: 8px; color: var(--muted); font-size: .86rem; margin-top: 8px; }
.offer-body p { color: #554c47; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
   border-radius: 999px;
   background: #eef4e8;
   padding: 5px 10px;
   font-size: .76rem;
   color: #58713c;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.info-card { min-height: 300px; padding: 22px; position: relative; overflow: hidden; }
.info-card h3 { margin-top: 0; font-size: 1.35rem; }
.sprout {
   width: 12px; height: 110px; background: #a49379;
   position: absolute; right: 45px; bottom: -15px; transform: rotate(7deg);
}
.sprout::after, .sprout::before {
   content: ""; position: absolute; width: 38px; height: 22px;
   background: var(--green); border-radius: 90% 10% 90% 10%;
}
.sprout::before { top: 25px; left: -30px; transform: rotate(-25deg); }
.sprout::after { top: 52px; right: -30px; transform: rotate(20deg); }

.event-list { display: grid; gap: 12px; margin-bottom: 16px; }
.event-row { display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 12px; }
.event-row small { display: block; color: var(--muted); }
.event-date {
   border: 1px solid #ddd4c6; border-radius: 8px; padding: 6px;
   text-align: center; font-size: .72rem; line-height: 1.05;
}
.event-date strong { display: block; font-size: 1.35rem; }

.values {
   margin: 10px clamp(24px, 4.5vw, 72px) 34px;
   padding: 18px 24px;
   border-radius: 14px;
   display: grid;
   grid-template-columns: repeat(4, minmax(0,1fr));
   gap: 18px;
   background: linear-gradient(90deg, #f7f5e4, #f3f2e7);
}
.values div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.values span { grid-row: 1 / span 2; font-size: 1.8rem; color: var(--green-dark); }
.values strong { font-size: .96rem; }
.values small { color: #514a45; }

.forest-strip {
   height: 52px;
   background:
      radial-gradient(ellipse at 10% 30%, #b8d41d 0 10px, transparent 11px),
      radial-gradient(ellipse at 20% 60%, #74b83f 0 13px, transparent 14px),
      radial-gradient(ellipse at 82% 25%, #a4cb37 0 12px, transparent 13px),
      repeating-linear-gradient(90deg, transparent 0 45px, #b5a78d 46px 61px, transparent 62px 90px),
      #bfe3e2;
}
.site-footer { background: #4e382d; color: white; }
.footer-grid {
   display: grid;
   grid-template-columns: 1.4fr repeat(3, 1fr);
   gap: 30px;
   padding: 30px clamp(24px, 4.5vw, 72px);
}
.footer-grid > div { display: flex; flex-direction: column; gap: 7px; }
.footer-grid a { color: rgba(255,255,255,.85); font-size: .9rem; }
.footer-brand .brand-main { font-size: 2.2rem; }
.newsletter-placeholder {
   border: 1px solid rgba(255,255,255,.25);
   border-radius: 8px;
   padding: 10px;
   color: rgba(255,255,255,.65);
}

.page-hero {
   padding: 70px clamp(24px, 4.5vw, 72px);
   background: linear-gradient(135deg, #dff3f5, #e8efd3);
}
.page-hero > div { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.7rem, 5vw, 5rem); }
.page-hero p:last-child { font-size: 1.2rem; max-width: 700px; }

.filter-panel {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr auto;
   gap: 12px;
   margin-bottom: 28px;
}
input, textarea, select {
   width: 100%;
   border: 1px solid #d8d0c3;
   border-radius: 9px;
   background: white;
   padding: 11px 12px;
   color: var(--ink);
   font: inherit;
}
select[multiple] { min-height: 160px; }

.detail-wrap, .auth-wrap, .admin-wrap {
   padding: 46px clamp(24px, 4.5vw, 72px);
}
.detail-card { max-width: 1000px; margin: 0 auto; overflow: hidden; }
.detail-image { width: 100%; max-height: 520px; object-fit: cover; }
.detail-content { padding: clamp(24px, 5vw, 58px); }
.detail-content h1 { font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; }
.detail-lead { font-size: 1.25rem; color: var(--muted); }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.detail-meta-grid div { padding: 14px; background: #f7f4ed; border-radius: 10px; }
.detail-meta-grid strong, .detail-meta-grid span { display: block; }
.detail-meta-grid span { margin-top: 4px; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; }

.auth-wrap { display: grid; place-items: center; min-height: 600px; }
.auth-card { width: min(480px, 100%); padding: 30px; }

.admin-wrap { max-width: 1500px; margin: 0 auto; }
.admin-wrap.narrow { max-width: 1050px; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { font-size: 2.4rem; margin: 0; }
.admin-actions { display: flex; gap: 10px; }

.admin-panel { padding: 22px; margin-bottom: 24px; }
.admin-panel h2 { margin-top: 0; }
.admin-list { display: grid; }
.admin-row {
   display: grid;
   grid-template-columns: 1fr auto auto;
   align-items: center;
   gap: 18px;
   padding: 14px 0;
   border-top: 1px solid var(--border);
}
.admin-row:first-child { border-top: 0; }
.admin-row small { display: block; color: var(--muted); }
.status { border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 800; }
.status.published { background: #edf5e6; color: #55782b; }
.status.draft { background: #f2eee9; color: #746c64; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.row-actions form { margin: 0; }
.row-actions button { background: none; border: 0; color: #a55343; cursor: pointer; font: inherit; padding: 0; }

.editor-card { padding: 26px; }
.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 7px; font-weight: 750; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: flex !important; align-items: center; gap: 8px !important; }
.checkbox-row input { width: auto; }
.checkbox-group { display: flex; gap: 22px; flex-wrap: wrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-errors { background: #fff2ee; color: #8f4434; border-radius: 10px; padding: 12px; }

.flash-stack {
   position: fixed;
   top: 120px;
   right: 20px;
   z-index: 100;
   display: grid;
   gap: 8px;
}
.flash { padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); background: white; }
.flash.success { border-left: 5px solid var(--green); }
.flash.error { border-left: 5px solid #b24f43; }

.empty-state {
   grid-column: 1 / -1;
   background: white;
   border: 1px dashed #d7cdbf;
   border-radius: var(--radius);
   padding: 30px;
   text-align: center;
}

.prose { max-width: 900px; }
.prose h2 { font-size: 2rem; }

@media (max-width: 1050px) {
   .site-header { grid-template-columns: auto auto 1fr; }
   .nav-toggle {
      display: block; justify-self: end; font-size: 1.4rem;
      border: 0; background: transparent; color: var(--ink);
   }
   .main-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      padding: 18px 24px;
      flex-direction: column;
      border-bottom: 1px solid var(--border);
   }
   .main-nav.open { display: flex; }
   .header-actions { justify-self: end; }
   .hero { grid-template-columns: 1fr; min-height: 760px; }
   .hero-illustration { position: absolute; left: 42%; right: 0; bottom: 0; height: 360px; }
   .offer-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
   .values { grid-template-columns: repeat(2, 1fr); }
   .filter-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
   .site-header { min-height: 86px; padding: 13px 18px; gap: 12px; }
   .brand-main { font-size: 2rem; }
   .brand-sub { font-size: .62rem; }
   .header-actions { display: none; }
   .hero { min-height: 700px; padding: 40px 22px; }
   .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
   .hero-illustration { opacity: .28; left: 28%; }
   .offer-grid, .feature-grid, .values, .footer-grid { grid-template-columns: 1fr; }
   .offer-image { height: 220px; }
   .filter-panel, .form-grid.two, .detail-meta-grid { grid-template-columns: 1fr; }
   .section-heading, .admin-head { align-items: flex-start; flex-direction: column; }
   .admin-row { grid-template-columns: 1fr; }
   .row-actions { justify-content: flex-start; }
   .footer-grid { gap: 22px; }
}
