:root{
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #fdfbf7;
  --text: #1d241d;
  --muted: #556056;
  --border: rgba(29, 36, 29, 0.10);
  --shadow: 0 14px 40px rgba(29, 36, 29, 0.12);
  --shadow-soft: 0 10px 28px rgba(29, 36, 29, 0.10);
  --brand: #3d553b;
  --brand-2: #7b5f3d;
  --accent: #b08d57;
  --danger: #b13a3a;
  --radius: 18px;
  --radius-sm: 14px;
  --ring: 0 0 0 4px rgba(176, 141, 87, 0.25);
  --container: 1100px;
  --tap: 44px;
  --topbar: 64px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  color-scheme: light;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body{
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(1200px 700px at 20% -10%, rgba(61, 85, 59, 0.18), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(176, 141, 87, 0.18), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
}

img,
svg,
video{
  max-width: 100%;
  height: auto;
}

a{
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select{
  font: inherit;
  color: inherit;
}

:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 1000;
}

.skip-link:focus{
  transform: translateY(0);
}

.app-shell{
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.container{
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 16px;
}

.app-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246, 243, 236, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar{
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), rgba(61, 85, 59, 0.55));
  box-shadow: 0 10px 22px rgba(61, 85, 59, 0.22);
  display: grid;
  place-items: center;
  color: #fdfbf7;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
}

.brand-mark img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(29, 36, 29, 0.18));
}

.brand-text{
  display: grid;
  min-width: 0;
}

.brand-title{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle{
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  width: var(--tap);
  height: var(--tap);
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 22px rgba(29, 36, 29, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.icon-btn:active{
  transform: scale(0.98);
}

.icon{
  width: 22px;
  height: 22px;
  display: inline-block;
}

.desktop-nav{
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-pill{
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-pill:hover{
  background: rgba(61, 85, 59, 0.08);
  color: var(--text);
}

.nav-pill[aria-current="page"]{
  background: rgba(61, 85, 59, 0.14);
  color: var(--brand);
}

.sidebar-layer{
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.scrim{
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 29, 0.48);
  opacity: 0;
  transition: opacity 200ms ease;
}

.sidebar{
  position: absolute;
  top: 0;
  left: 0;
  width: min(86vw, 360px);
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-102%);
  transition: transform 240ms cubic-bezier(0.2, 0.9, 0.2, 1);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sidebar-header{
  padding: 16px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-title{
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sidebar-nav{
  padding: 6px 10px 12px;
  overflow: auto;
}

.nav-group{
  display: grid;
  gap: 6px;
}

.nav-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.nav-link:hover{
  background: rgba(61, 85, 59, 0.06);
}

.nav-link:active{
  transform: translateY(1px);
}

.nav-link[aria-current="page"]{
  border-color: rgba(61, 85, 59, 0.18);
  background: rgba(61, 85, 59, 0.10);
}

.nav-meta{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-footer{
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.sidebar-layer.is-open{
  pointer-events: auto;
}

.sidebar-layer.is-open .scrim{
  opacity: 1;
}

.sidebar-layer.is-open .sidebar{
  transform: translateX(0);
}

.page{
  padding: 16px 0 28px;
}

.hero{
  display: grid;
  gap: 14px;
}

.hero-card{
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-media{
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(61, 85, 59, 0.22), rgba(176, 141, 87, 0.18));
  background-size: cover;
  background-position: center;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 520px){
  .hero-media{
    aspect-ratio: 16 / 9;
  }
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 36, 29, 0.66), rgba(29, 36, 29, 0.10) 70%);
  display: grid;
  align-content: end;
  padding: 16px;
  gap: 8px;
}

.hero-kicker{
  display: inline-flex;
  width: fit-content;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 12px;
}

.hero-title{
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(22px, 5vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-title{
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle{
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  max-width: 46ch;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.menu-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.menu-tile{
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  padding: 12px 8px 10px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(29, 36, 29, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.menu-tile:hover{
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(29, 36, 29, 0.11);
  border-color: rgba(29, 36, 29, 0.14);
}

.menu-tile:active{
  transform: scale(0.99);
}

.menu-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(61, 85, 59, 0.16), rgba(176, 141, 87, 0.18));
  border: 1px solid rgba(29, 36, 29, 0.10);
  box-shadow: 0 12px 22px rgba(29, 36, 29, 0.08);
  color: var(--brand);
}

.menu-label{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.15;
  color: var(--text);
}

@media (max-width: 360px){
  .menu-strip{
    gap: 10px;
  }

  .menu-tile{
    padding: 10px 6px 9px;
  }

  .menu-icon{
    width: 42px;
    height: 42px;
  }

  .menu-label{
    font-size: 10px;
  }
}

.btn{
  min-height: var(--tap);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary{
  background: linear-gradient(135deg, var(--brand), rgba(61, 85, 59, 0.76));
  color: #fdfbf7;
  box-shadow: 0 14px 32px rgba(61, 85, 59, 0.22);
}

.btn-primary:hover{
  box-shadow: 0 18px 44px rgba(61, 85, 59, 0.24);
}

.btn-ghost{
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-surface{
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: rgba(29, 36, 29, 0.14);
  box-shadow: 0 12px 28px rgba(29, 36, 29, 0.10);
}

.btn-surface:hover{
  background: rgba(255, 255, 255, 0.86);
}

.btn-ghost:hover{
  background: rgba(255, 255, 255, 0.14);
}

.btn:active{
  transform: scale(0.99);
}

.section{
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.section-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-title{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display: grid;
  gap: 12px;
}

.grid.cols-2{
  grid-template-columns: 1fr 1fr;
}

.grid.cols-3{
  grid-template-columns: 1fr 1fr 1fr;
}

.card{
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(29, 36, 29, 0.08);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(29, 36, 29, 0.11);
  border-color: rgba(29, 36, 29, 0.14);
}

.card-body{
  padding: 14px;
  display: grid;
  gap: 8px;
}

.card-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 14px;
}

.card-text{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-meta{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(176, 141, 87, 0.12);
  border: 1px solid rgba(176, 141, 87, 0.20);
  color: #6b4f2a;
}

.divider{
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.media-card{
  display: grid;
}

.media-thumb{
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(61, 85, 59, 0.18), rgba(176, 141, 87, 0.16));
}

.media-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 340px at 20% 10%, rgba(255, 255, 255, 0.26), transparent 70%),
    linear-gradient(180deg, transparent, rgba(29, 36, 29, 0.10));
  pointer-events: none;
}

.two-col{
  display: grid;
  gap: 12px;
}

.profile-row{
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(61, 85, 59, 0.18), rgba(176, 141, 87, 0.16));
  overflow: hidden;
  flex: none;
}

.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat{
  display: grid;
  gap: 6px;
  padding: 14px;
}

.stat-value{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.stat-label{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
}

.table th,
.table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.table th{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(61, 85, 59, 0.06);
}

.table tr:last-child td{
  border-bottom: 0;
}

.form{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 6px;
}

.label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.input,
.textarea{
  min-height: var(--tap);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 12px;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.textarea{
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus{
  border-color: rgba(176, 141, 87, 0.42);
  box-shadow: var(--ring);
  background: #ffffff;
}

.hint{
  font-size: 12px;
  color: var(--muted);
}

.app-footer{
  margin-top: 10px;
  padding: 20px 0 28px;
}

.footer-card{
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.footer-grid{
  display: grid;
  gap: 0;
}

.footer-block{
  padding: 16px;
  display: grid;
  gap: 10px;
}

.footer-title{
  margin: 0;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.footer-text{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-list{
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list a{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-list a:hover{
  background: rgba(61, 85, 59, 0.06);
  border-color: rgba(61, 85, 59, 0.10);
}

.footer-list a:active{
  transform: translateY(1px);
}

.map{
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
}

.footer-bottom{
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pill-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 36, 29, 0.10);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  min-height: var(--tap);
  transition: transform 160ms ease, background 160ms ease;
}

.pill:active{
  transform: scale(0.99);
}

.tabs{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab{
  min-height: var(--tap);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 36, 29, 0.10);
  background: rgba(255, 255, 255, 0.60);
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.tab[aria-selected="true"]{
  background: rgba(176, 141, 87, 0.14);
  border-color: rgba(176, 141, 87, 0.26);
  color: #6b4f2a;
}

.tab:active{
  transform: translateY(1px);
}

.modal-layer{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal-layer.is-open{
  display: grid;
}

.modal-scrim{
  position: absolute;
  inset: 0;
  background: rgba(29, 36, 29, 0.62);
}

.modal{
  position: relative;
  width: min(680px, 100%);
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header{
  padding: 12px 12px 0;
  display: flex;
  justify-content: flex-end;
}

.modal-body{
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.modal-media{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.modal-media img{
  width: 100%;
  height: auto;
  display: block;
}

.modal-title{
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.03em;
}

.modal-text{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (min-width: 720px){
  :root{
    --topbar: 72px;
  }

  .page{
    padding: 20px 0 34px;
  }

  .hero{
    gap: 18px;
  }

  .two-col{
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .grid.cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid{
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (min-width: 980px){
  .icon-btn[data-role="hamburger"]{
    display: none;
  }

  .desktop-nav{
    display: flex;
  }

  .sidebar-layer{
    display: none;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after{
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

