/* ==========================================================================
   refit.kz — маркетплейс перепродажи фитнес-абонементов
   Design system: Airbnb-inspired, brand palette pulled from the logo.
   ========================================================================== */

:root {
  /* Brand greens (from logo) */
  --green: #00603C;
  --green-700: #00744A;
  --green-800: #004d30;
  --green-900: #00311e;
  --accent: #2fb84a;
  --accent-bright: #54cc60;
  --mint-50: #f3faf6;
  --mint-100: #e6f4ec;
  --mint-200: #c9e9d6;

  /* Neutrals */
  --ink: #17251d;
  --body: #3b4a42;
  --muted: #6b7a72;
  --line: #e7ebe8;
  --line-strong: #d6ddd8;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;

  /* Semantic */
  --danger: #c0392b;
  --warn: #b9770a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 48, 30, .06), 0 1px 3px rgba(0, 48, 30, .05);
  --shadow: 0 6px 20px rgba(0, 60, 40, .08);
  --shadow-lg: 0 14px 40px rgba(0, 60, 40, .16);

  --container: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", sans-serif;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-800); box-shadow: var(--shadow); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #27a441; box-shadow: var(--shadow); }

.btn-outline { background: #fff; color: var(--green); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--green); background: var(--mint-50); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }

.btn-danger { background: #fff; color: var(--danger); border-color: #ecc7c3; }
.btn-danger:hover { background: #fdf3f2; border-color: var(--danger); }

.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 74px;
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 7px 8px 7px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
  max-width: 360px;
  flex: 1 1 260px;
}
.header-search:focus-within { box-shadow: var(--shadow); }
.header-search input {
  border: 0;
  outline: 0;
  font-size: .95rem;
  flex: 1;
  min-width: 40px;
  background: transparent;
  color: var(--ink);
}
.header-search button {
  border: 0;
  background: var(--green);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.header-search button svg { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* user chip */
.user-chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 5px 6px 5px 14px; background: #fff;
  font-weight: 600; font-size: .9rem;
}
.user-chip:hover { box-shadow: var(--shadow-sm); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  flex: 0 0 auto; text-transform: uppercase;
}
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; display: none;
}
.menu[open] .menu-panel, .menu-panel.open { display: block; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  text-align: left; font-size: .92rem; color: var(--ink);
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-soft); }
.menu-divider { height: 1px; background: var(--line); margin: 6px 4px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 380px at 15% -10%, var(--mint-100), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, #eafaf0, transparent 55%);
  padding: 54px 0 30px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 16ch;
  margin-bottom: 14px;
}
.hero .accent-word { color: var(--green); }
.hero p.lead { font-size: 1.15rem; color: var(--body); max-width: 54ch; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 26px; }
.hero-stat b { font-size: 1.5rem; color: var(--green); display: block; }
.hero-stat span { font-size: .9rem; color: var(--muted); }

/* --- Filter bar ----------------------------------------------------------- */
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 8px;
}
.filters form { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: end; }
.filters .fg { display: flex; flex-direction: column; gap: 6px; }
.filters label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-2 { grid-column: span 2; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

/* --- Form fields ---------------------------------------------------------- */
.field, select.field, textarea.field, input.field {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field:focus, select.field:focus, textarea.field:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 184, 74, .16);
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7a72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea.field { resize: vertical; min-height: 110px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: .84rem; }
.field.has-error { border-color: var(--danger); }
.required-star { color: var(--danger); }

/* --- Section headings ----------------------------------------------------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; margin: 0; }
.result-count { color: var(--muted); font-size: .95rem; }

/* --- Sort chips ----------------------------------------------------------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--body);
}
.chip:hover { border-color: var(--green); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* --- Card grid ------------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 26px 22px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); }
.card:hover .card-media { box-shadow: var(--shadow-lg); }
.card-media {
  position: relative;
  aspect-ratio: 20 / 15;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-700) 55%, var(--accent) 140%);
  color: #fff;
  transition: box-shadow .2s ease;
}
.card-media .watermark {
  position: absolute; right: -18px; bottom: -22px; width: 150px; height: 150px;
  opacity: .16; color: #fff;
}
.card-media .media-top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px;
}
.card-media .media-bottom { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.card-media .gym-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.card-media .gym-city { font-size: .86rem; opacity: .92; display: flex; align-items: center; gap: 5px; }

/* Real photo (when a gym has one) with a shade so overlaid text stays legible */
.card-media .media-photo, .detail-hero .dh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.card-media .media-shade, .detail-hero .dh-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,40,25,.10) 0%, rgba(0,40,25,0) 40%, rgba(0,40,25,.74) 100%); }
.card-media .media-top, .card-media .media-bottom, .detail-hero .dh-badges, .detail-hero .dh-content { z-index: 2; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 700; backdrop-filter: blur(4px);
}
.badge-type { background: rgba(255,255,255,.9); color: var(--green-800); }
.badge-discount { background: #fff0; color: #fff; background: rgba(0,0,0,.28); }
.badge-soft { background: var(--mint-100); color: var(--green-800); }

.card-body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 4px; }
.card-price { display: flex; align-items: baseline; gap: 9px; }
.card-price .now { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.card-price .was { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; flex-wrap: wrap; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.card-reason { font-size: .84rem; color: var(--green-800); font-weight: 600; }
.card-phone { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* --- Icons inline --------------------------------------------------------- */
.i { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -3px; }
.i-sm { width: 14px; height: 14px; }

/* --- Pagination ----------------------------------------------------------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1.5px solid var(--line-strong); font-weight: 600; background: #fff;
}
.pagination a:hover { border-color: var(--green); }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* --- Empty state ---------------------------------------------------------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: var(--line-strong); margin-bottom: 16px; }

/* --- Listing detail ------------------------------------------------------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a:hover { color: var(--green); }
.detail-grid { display: grid; grid-template-columns: 1fr 372px; gap: 40px; align-items: start; padding-bottom: 40px; }
.detail-hero {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 50%, var(--accent) 130%);
  color: #fff; margin-bottom: 26px;
}
.detail-hero .watermark { position: absolute; right: -30px; bottom: -40px; width: 280px; height: 280px; opacity: .15; }
.detail-hero .dh-content { position: absolute; left: 28px; bottom: 24px; right: 28px; }
.detail-hero .dh-badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 6px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.detail-hero .dh-loc { opacity: .95; display: inline-flex; align-items: center; gap: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 30px; }
.fact { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg-soft); }
.fact .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.fact .v { font-size: 1.05rem; font-weight: 700; color: var(--ink); }

.block { margin-bottom: 30px; }
.block h2 { font-size: 1.25rem; margin-bottom: 12px; }
.reason-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mint-50); border: 1px solid var(--mint-200);
  border-radius: var(--radius); padding: 18px 20px;
}
.reason-box .ricon { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.reason-box .k { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.reason-box .v { font-size: 1.1rem; font-weight: 700; }
.description { font-size: 1.02rem; color: var(--body); white-space: pre-line; }

/* contact / price sidebar */
.contact-card {
  position: sticky; top: 96px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px; background: #fff;
}
.cc-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.cc-price .now { font-size: 2rem; font-weight: 800; }
.cc-price .was { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.cc-save { color: var(--accent); font-weight: 700; font-size: .9rem; margin-bottom: 18px; }
.cc-line { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.cc-line .k { color: var(--muted); display: flex; align-items: center; gap: 7px; }
.cc-line .v { font-weight: 700; }

.seller { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.seller .avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.seller .s-name { font-weight: 700; }
.seller .s-sub { font-size: .84rem; color: var(--muted); }

.phone-reveal {
  margin-top: 8px; padding: 18px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px dashed var(--line-strong); text-align: center;
}
.phone-reveal .masked { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.phone-reveal .full { font-size: 1.6rem; font-weight: 800; color: var(--green); letter-spacing: .02em; }
.phone-reveal .hint { font-size: .84rem; color: var(--muted); margin: 6px 0 12px; }
.lock-icon { color: var(--green); }

.contact-actions { display: grid; gap: 10px; margin-top: 14px; }

/* --- Auth / form pages ---------------------------------------------------- */
.narrow { max-width: 460px; margin: 0 auto; }
.form-wide { max-width: 760px; margin: 0 auto; }
.card-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.page-head { padding: 34px 0 6px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-head p { color: var(--body); font-size: 1.05rem; }

.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h3 { font-size: 1.05rem; margin-bottom: 4px; }
.form-section .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg > label { font-weight: 700; font-size: .92rem; }
.trust-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; margin-top: 16px; justify-content: center; }

/* --- My listings ---------------------------------------------------------- */
.mylist { display: flex; flex-direction: column; gap: 16px; }
.mylist-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff;
}
.mylist-thumb { width: 96px; height: 72px; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700; }
.status-active { background: var(--mint-100); color: var(--green-800); }
.status-sold { background: #eef1ef; color: var(--muted); }
.status-hidden { background: #fff4e5; color: var(--warn); }
.mylist-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* --- Messages ------------------------------------------------------------- */
.messages { position: fixed; top: 86px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; width: min(92%, 520px); }
.toast { padding: 13px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); animation: slidein .3s ease; }
.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--green); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- Trust strip ---------------------------------------------------------- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; padding: 8px 0 4px; }
.trust-card { display: flex; gap: 14px; align-items: flex-start; }
.trust-card .ti { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-100); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.trust-card h3 { font-size: 1rem; margin: 0 0 4px; }
.trust-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--green-900); color: #cfe4d8; margin-top: 60px; padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }
.site-footer a { color: #cfe4d8; font-size: .92rem; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.footer-logo .fl-icon { width: 30px; height: 30px; color: var(--accent-bright); }
.footer-logo span { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.footer-brand p { font-size: .9rem; color: #a9cbb8; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #a9cbb8; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.city-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.city-links a { display: inline; padding: 0; }

/* --- Gym landing page ----------------------------------------------------- */
.landing-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 52%, var(--accent) 135%); color: #fff; margin-bottom: 8px; }
.landing-hero .lh-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .5; }
.landing-hero .lh-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgba(0,48,30,.86), rgba(0,48,30,.4)); }
.landing-hero .lh-watermark { position: absolute; right: -40px; bottom: -60px; width: 340px; height: 340px; opacity: .12; z-index: 1; }
.lh-inner { position: relative; z-index: 2; padding: 64px 20px 60px; }
.lh-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.landing-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); max-width: 20ch; margin: 0 0 14px; text-shadow: 0 2px 16px rgba(0,0,0,.18); }
.lh-tagline { font-size: 1.2rem; max-width: 60ch; opacity: .96; margin-bottom: 26px; }

.lead-text { font-size: 1.15rem; color: var(--body); max-width: 74ch; }
.lead-text p { margin: 0 0 1em; }

.pros-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.pro-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; transition: box-shadow .2s ease, transform .16s ease; }
.pro-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.pro-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint-100); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.pro-card h3 { font-size: 1.08rem; margin: 0 0 6px; }
.pro-card p { font-size: .95rem; color: var(--muted); margin: 0; }

.outro-card { background: var(--mint-50); border: 1px solid var(--mint-200); border-radius: var(--radius-lg); padding: 34px; }
.outro-card h2 { font-size: 1.5rem; }
.outro-card .description { max-width: 74ch; margin-bottom: 22px; color: var(--body); }

.landing-links { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-chip { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: .92rem; }
.landing-chip:hover { border-color: var(--green); color: var(--green); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .filters form { grid-template-columns: repeat(6, 1fr); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 3; }
  .col-2 { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .header-search { display: none; }
  .header-inner { height: 64px; gap: 8px; }
  /* With the search hidden, push the actions to the right and give them room. */
  .header-actions { margin-left: auto; gap: 8px; }
  .brand img { height: 30px; }
  .user-chip { padding: 5px; }
  .user-chip .avatar { width: 30px; height: 30px; }
  .header-actions .btn { padding: 9px 16px; }
  .hero { padding: 34px 0 20px; }
  .lh-inner { padding: 42px 20px 40px; }
  .outro-card { padding: 24px; }
  .filters form { grid-template-columns: repeat(2, 1fr); }
  .col-3, .col-4, .col-2, .col-6 { grid-column: span 1; }
  .col-12 { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .mylist-item { grid-template-columns: 1fr; }
  .mylist-thumb { width: 100%; height: 120px; }
  .mylist-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-panel { padding: 22px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 681px) { .only-mobile { display: none !important; } }
