* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; line-height: 1.5; background: #f5f1eb; color: #1f1b18; overflow-x: hidden; }
a { color: #5a3a1e; text-decoration: none; transition: color .2s ease; }
img, video { max-width: 100%; height: auto; }
.c { width: min(1200px, 92%); margin: 0 auto; }
header { position: sticky; top: 0; z-index: 30; background: #f5f1ebf2; border-bottom: 1px solid rgba(90, 58, 30, 0.15); backdrop-filter: blur(8px); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand b { display: block; font-size: 1.35rem; color: #5a3a1e; }
.brand small { display: block; color: rgba(31, 27, 24, .7); }
.logo { width: 44px; height: 44px; border-radius: 12px; background: #fff center / contain no-repeat; box-shadow: 0 4px 16px rgba(90,58,30,.12); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { padding: .4rem .2rem; font-weight: 600; border-bottom: 2px solid transparent; }
nav a:hover { color: #2f4f3a; border-bottom-color: rgba(47, 79, 58, .35); }
.header-menu { margin-left: auto; display: flex; align-items: center; gap: .85rem; }
.header-menu > .row { width: auto; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid rgba(90,58,30,.35); border-radius: 10px; background: #fff; color: #5a3a1e; align-items: center; justify-content: center; flex-direction: row; gap: 4px; cursor: pointer; }
.menu-btn__bar { display: block; width: 6px; height: 6px; background: #5a3a1e; border-radius: 50%; }
.menu-btn[aria-expanded="true"] .menu-btn__bar { background: #2f4f3a; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs { display: flex; gap: .35rem; }
.langs a { padding: .42rem .6rem; border: 1px solid rgba(90,58,30,.35); border-radius: 8px; font-size: .8rem; }
.langs a.on { background: #5a3a1e; color: #f5f1eb; }
.flash { margin: 1rem 0; border-radius: 12px; padding: .75rem 1rem; font-weight: 600; }
.flash.ok { background: #dff5e5; color: #246b38; border: 1px solid #9dd8b0; }
.flash.err { background: #ffe6e6; color: #9b1c1c; border: 1px solid #f8b4b4; }
main { padding: 1.25rem 0 2rem; }
h1,h2,h3,h4 { color: #5a3a1e; margin: 0 0 .65rem; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3.45rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.4rem); }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; align-items: center; margin: .5rem 0 2rem; }
.hero p { color: rgba(31,27,24,.82); line-height: 1.55; }
.heroimg { height: 360px; border-radius: 20px; background: #fff center / cover no-repeat; box-shadow: 0 8px 28px rgba(90,58,30,.16); position: relative; overflow: hidden; }
.heroimg span { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.9); border-radius: 999px; padding: .5rem .85rem; font-size: .8rem; font-weight: 600; color: #5a3a1e; }
.row { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; border: 1px solid #5a3a1e; border-radius: 10px; font-weight: 700; background: transparent; color: #5a3a1e; cursor: pointer; transition: transform .18s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.btn.main { background: #c9a24d; border-color: #c9a24d; color: #1f1b18; }
.btn.sm { padding: .45rem .75rem; font-size: .85rem; }
.btn.danger { border-color: #b42318; color: #b42318; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(90,58,30,.14); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid rgba(90,58,30,.12); border-radius: 16px; padding: 1rem; box-shadow: 0 6px 20px rgba(90,58,30,.08); transition: transform .2s ease, box-shadow .2s ease; }
.card p { color: rgba(31,27,24,.78); line-height: 1.5; }
.card small { display: block; color: rgba(31,27,24,.65); margin-top: .35rem; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(90,58,30,.12); }
.card, .admin-card, .admin-top, .admin-sidebar { min-width: 0; }
.pimg { width: 100%; height: 200px; border-radius: 12px; background: #f3ebdf center / cover no-repeat; margin-bottom: .75rem; }
.frow { display: flex; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; color: #5a3a1e; }
input, textarea, select { width: 100%; border: 1px solid rgba(90,58,30,.28); border-radius: 10px; padding: .62rem .75rem; font: inherit; background: #fff; color: #1f1b18; }
textarea { resize: vertical; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: flex-start; }
.dimg { min-height: 320px; border-radius: 14px; background: #f3ebdf center / cover no-repeat; }
.mt { margin-top: 1rem; }
.n { max-width: 620px; }
.line { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; border-bottom: 1px dashed rgba(90,58,30,.2); padding: .6rem 0; }

.contact-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(.85rem, 2vw, 1.2rem); }
.contact-form-card, .contact-info-card { padding: clamp(.9rem, 1.3vw, 1.25rem); }
.contact-info-card > p { margin-top: .25rem; margin-bottom: .35rem; }
.line.compact { gap: .45rem; padding: .45rem 0; font-size: .95rem; align-items: flex-start; }
.line.compact strong { min-width: 82px; }
.contact-info-card .line { word-break: break-word; }
.contact-actions { margin-top: .55rem; gap: .45rem; }
.contact-map-btn { margin-top: .55rem; }

footer { margin-top: 1.5rem; background: #46301b; color: #f5f1eb; padding: 2rem 0; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
footer h3, footer h4 { color: #f5e3c0; margin: 0 0 .5rem; }
footer p, footer a { color: rgba(245,241,235,.92); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .heroimg { height: 300px; }
  .grid, .detail, .fgrid { grid-template-columns: 1fr 1fr; }
  .page-contact .contact-grid { grid-template-columns: 1fr; }
  .page-contact .contact-info-card { order: 2; }
}
@media (max-width: 720px) {
  .c { width: min(1200px, 94%); }
  .hero, .grid, .detail, .fgrid { grid-template-columns: 1fr; }
  .hero { margin-bottom: 1.35rem; }
  .heroimg { height: 238px; border-radius: 16px; }
  .heroimg span { left: .7rem; right: .7rem; bottom: .7rem; max-width: none; font-size: .78rem; }
  .pimg { height: 178px; }
  .hrow { gap: .65rem; padding: .8rem 0; }
  .brand { width: auto; flex: 1 1 auto; min-width: 0; }
  .brand b { font-size: 1.28rem; }
  .brand small { font-size: .72rem; line-height: 1.35; }
  .menu-btn { display: inline-flex; }
  .header-menu { width: 100%; display: none; flex-direction: column; align-items: stretch; gap: .55rem; padding-top: .45rem; border-top: 1px solid rgba(90,58,30,.1); }
  .header-menu.open { display: flex; }
  .header-menu > .row { width: 100%; display: grid; grid-template-columns: 1fr; gap: .5rem; order: 1; }
  .langs { margin-right: 0; justify-content: flex-start; }
  .header-menu > .row .btn.sm { width: 100%; }
  .header-menu nav { width: 100%; order: 2; display: grid; grid-template-columns: 1fr; gap: .45rem; }
  nav a { border: 1px solid rgba(90,58,30,.18); border-radius: 8px; padding: .5rem .6rem; text-align: center; }
  .row { width: 100%; }
  .page-contact .contact-actions { flex-direction: column; align-items: stretch; }
  .page-contact .contact-actions .btn,
  .page-contact .contact-map-btn { width: 100%; }
  .line.compact strong { min-width: 74px; }
  .filters { gap: .55rem; }
  .flash { font-size: .92rem; }
}

@media (max-width: 420px) {
  .logo { width: 40px; height: 40px; border-radius: 10px; }
  h1 { font-size: 1.95rem; }
  .btn { width: 100%; }
  .hero .row { display: grid; grid-template-columns: 1fr; gap: .55rem; }
  .partner-grid { grid-template-columns: 1fr; }
}

.frow-col { display: grid; gap: .8rem; }
.muted { color: rgba(31,27,24,.72); margin: 0; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(201,162,77,.18); color: #5a3a1e; padding: .3rem .65rem; font-size: .8rem; font-weight: 700; }
.tag-row { display: flex; gap: .55rem; flex-wrap: wrap; }

.filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: flex-end; margin-top: .75rem; }
.filters label { min-width: 240px; }

.partner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.partner-item { border: 1px dashed rgba(90,58,30,.25); border-radius: 10px; padding: .75rem; text-align: center; background: rgba(255,255,255,.7); font-weight: 600; color: #5a3a1e; }

.admin-main-wrap { padding-bottom: 2rem; }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; align-items: start; }
.admin-sidebar { position: sticky; top: 84px; background: #fff; border: 1px solid rgba(90,58,30,.12); border-radius: 16px; padding: 1rem; box-shadow: 0 8px 24px rgba(90,58,30,.08); display: grid; gap: .5rem; }
.admin-link { border: 1px solid rgba(90,58,30,.2); border-radius: 10px; padding: .6rem .8rem; font-weight: 700; color: #5a3a1e; }
.admin-link.on { background: #5a3a1e; color: #f5f1eb; border-color: #5a3a1e; }
.admin-main { display: grid; gap: 1rem; }
.admin-top { display: flex; justify-content: space-between; gap: .8rem; align-items: center; border: 1px solid rgba(90,58,30,.12); border-radius: 16px; padding: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(90,58,30,.08); }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.admin-card { border: 1px solid rgba(90,58,30,.12); border-radius: 16px; padding: 1rem; background: #fff; box-shadow: 0 8px 24px rgba(90,58,30,.08); }
.kpi { margin: .2rem 0 0; font-size: 2rem; font-weight: 800; color: #5a3a1e; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; align-items: start; }
.check { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; font-weight: 700; color: #5a3a1e; }
.check input { width: auto; }
.table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th, .admin-table td { border-bottom: 1px solid rgba(90,58,30,.12); padding: .6rem; text-align: left; vertical-align: top; }
.admin-table th { color: #5a3a1e; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

.admin-login-wrap { max-width: 580px; margin: 2rem auto; }
.admin-login-card { border: 1px solid rgba(90,58,30,.12); border-radius: 18px; background: #fff; padding: 1.2rem; box-shadow: 0 8px 24px rgba(90,58,30,.08); }
.brand.mini b { font-size: 1.1rem; }

.modal { position: fixed; inset: 0; background: rgba(18,16,14,.45); display: none; align-items: center; justify-content: center; padding: 1rem; z-index: 90; }
.modal.on { display: flex; }
.modal-dialog { width: min(560px, 100%); border: 1px solid rgba(90,58,30,.2); border-radius: 16px; background: #fff; padding: 1rem; position: relative; box-shadow: 0 12px 36px rgba(90,58,30,.22); }
.modal-close { position: absolute; right: .6rem; top: .45rem; width: 34px; height: 34px; border: 1px solid rgba(90,58,30,.35); border-radius: 999px; background: #fff; color: #5a3a1e; font-size: 1rem; cursor: pointer; }

@media (max-width: 1080px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .partner-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .admin-sidebar { grid-template-columns: 1fr; }
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label { min-width: 0; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .partner-grid { grid-template-columns: 1fr; }
}
