/* ==========================================================================
   Fish Lovers — нийтийн сайтын загвар
   ========================================================================== */

:root {
  --river:      #0f4c5c;
  --river-dark: #0a3440;
  --lake:       #1b7a8c;
  --sky:        #e6f2f4;
  --steppe:     #e0a33b;
  --steppe-dk:  #b97d1c;
  --ink:        #1d2a30;
  --text:       #3a4a52;
  --muted:      #6b7c84;
  --line:       #dde6e9;
  --bg:         #f7f9fa;
  --white:      #ffffff;
  --danger:     #c0392b;
  --success:    #1e8449;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 2px rgba(16, 42, 52, .06), 0 6px 20px rgba(16, 42, 52, .07);
  --shadow-lg:  0 12px 36px rgba(16, 42, 52, .16);
  --serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h:   68px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* Эх үүсвэрийн домэйнээр харуулах мэдэгдэл */
.referral-notice {
  padding: 20px 0;
  background: var(--sky);
  border-bottom: 1px solid var(--line);
  color: var(--river-dark);
  text-align: center;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.referral-message { white-space: pre-wrap; }
.referral-link { text-decoration: underline; text-underline-offset: 4px; }
.referral-notice [hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lake); text-decoration: none; transition: color .15s; }
a:hover { color: var(--river); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow, .narrow { max-width: 780px; }

.section { padding: 56px 0; }
.section .container.section, .container.section { padding-top: 40px; padding-bottom: 56px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steppe);
  margin-bottom: 12px;
}

/* ---------- Товчнууд ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--sans);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--steppe); color: var(--ink); }
.btn-primary:hover { background: var(--steppe-dk); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--river); background: transparent; }
.btn-ghost:hover { background: var(--river); border-color: var(--river); color: var(--white); }
.btn-light { background: var(--white); color: var(--river); }
.btn-light:hover { background: var(--sky); color: var(--river-dark); }

/* ---------- Толгой хэсэг ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lake), var(--river));
  font-size: 1.35rem;
}
.brand-text { display: flex; flex-direction: column; font: 700 1.2rem/1.1 var(--serif); }
.brand-text small {
  font: 500 .7rem/1.3 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav > a, .dropdown > a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  font-size: .94rem;
  white-space: nowrap;
}
.main-nav > a:hover, .dropdown > a:hover { background: var(--sky); color: var(--river); }
.main-nav a.active { color: var(--river); background: var(--sky); font-weight: 600; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 10;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: .92rem; }
.dropdown-menu a:hover { background: var(--sky); color: var(--river); }

.nav-search { margin-left: 8px; }
.nav-search input {
  width: 150px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font: inherit;
  font-size: .9rem;
  transition: width .2s, border-color .2s;
}
.nav-search input:focus { outline: none; border-color: var(--lake); width: 190px; background: var(--white); }

/* ---------- Нүүр — hero ---------- */

.hero {
  position: relative;
  overflow-x: clip;
  color: #d7ebef;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(224, 163, 59, .25), transparent 60%),
    linear-gradient(160deg, var(--river-dark) 0%, var(--river) 55%, var(--lake) 100%);
  padding: 72px 0 84px;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 62px;
  background: var(--bg);
  clip-path: polygon(0 70%, 12% 45%, 28% 62%, 44% 30%, 58% 55%, 74% 25%, 88% 50%, 100% 35%, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero-copy p { font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn-ghost { color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--river); }

.hero-feature {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  transition: transform .2s;
}
.hero-feature:hover { transform: translateY(-4px); color: var(--text); }
.hero-feature-body { padding: 20px 24px 24px; }
.hero-feature-body h3 { font: 700 1.35rem/1.3 var(--serif); margin: 10px 0 8px; }
.hero-feature-body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Зураг / placeholder ---------- */

.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-cover { aspect-ratio: 16 / 9; }
.post-cover { border-radius: var(--radius); margin: 8px 0 32px; aspect-ratio: 16 / 9; }

.ph { display: grid; place-items: center; }
.ph span { font-size: 3.2rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
.ph.p1 { background: linear-gradient(135deg, #0f4c5c, #1b7a8c); }
.ph.p2 { background: linear-gradient(135deg, #1b7a8c, #6fb7a8); }
.ph.p3 { background: linear-gradient(135deg, #b97d1c, #e0a33b); }
.ph.p4 { background: linear-gradient(135deg, #3d5a80, #98c1d9); }
.ph.p5 { background: linear-gradient(135deg, #2d6a4f, #74c69d); }
.ph.p6 { background: linear-gradient(135deg, #6d597a, #b56576); }

/* ---------- Хэсгийн гарчиг ---------- */

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; font-size: .95rem; }

/* ---------- Сэдвүүд ---------- */

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lake); color: var(--ink); }
.topic small { color: var(--muted); }
.topic-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sky);
  font-size: 1.5rem;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.cat-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.cat-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.cat-row:hover { box-shadow: var(--shadow); border-color: var(--lake); color: var(--text); }
.cat-row .topic-icon { margin: 0; }
.cat-row > div { flex: 1; min-width: 0; }
.cat-row strong { color: var(--ink); font-size: 1.05rem; }
.cat-row p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cat-row .count {
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--river);
  font-weight: 700;
  text-align: center;
}

/* ---------- Нийтлэлийн карт ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover .cover img { transform: scale(1.04); }
.card-media { display: block; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-body h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--lake); }
.card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.meta { font-size: .82rem; color: var(--muted); }

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--river);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
a.tag:hover { background: var(--river); color: var(--white); }
.tag-warn { background: #fdecc8; color: #8a5a00; margin-left: 6px; }

/* ---------- Band ---------- */

.band { background: linear-gradient(120deg, var(--river), var(--lake)); color: #d7ebef; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { color: var(--white); }
.band p { margin: 0; max-width: 640px; }

/* ---------- Их уншсан ---------- */

.popular-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.popular-list li { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.popular-list .num { font: 700 2rem/1 var(--serif); color: var(--steppe); min-width: 32px; }
.popular-list a { display: block; font-weight: 600; color: var(--ink); }
.popular-list a:hover { color: var(--lake); }
.popular-list small { color: var(--muted); }

/* ---------- Хуудасны толгой ---------- */

.page-head {
  background: linear-gradient(160deg, var(--sky), #f1f7f8);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
}
.page-head h1 { margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.notfound { text-align: center; padding: 88px 0; }
.notfound .big { font-size: 4.5rem; line-height: 1; margin-bottom: 16px; }
.notfound p { margin-bottom: 28px; }
.notfound .btn { margin: 4px; }

/* ---------- Pagination ---------- */

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
}
.pagination a:hover { border-color: var(--lake); color: var(--lake); }
.pagination a.active { background: var(--river); border-color: var(--river); color: var(--white); }

/* ---------- Нийтлэл ---------- */

.post-head { padding-top: 48px; }
.post-head h1 { margin: 14px 0 12px; }
.post-head .meta { font-size: .9rem; margin-bottom: 20px; }

.prose { font-size: 1.07rem; line-height: 1.8; color: #2e3d44; overflow-wrap: break-word; }
.prose.section { padding-top: 40px; }
.prose h2 { font-size: 1.65rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: -.8em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 24px;
  border-left: 4px solid var(--steppe);
  background: #fff8ec;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.prose blockquote p:last-child { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--sky); color: var(--ink); }
.prose iframe, .prose video { max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .photo-credit { margin-top: 2em; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.prose .photo-credit a { color: var(--muted); }
.prose code {background: var(--sky); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.share span { font-weight: 600; color: var(--ink); }
.share a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--text); background: var(--white); }
.share a:hover { border-color: var(--lake); color: var(--lake); }

.prevnext { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
.prevnext a {
  flex: 0 1 48%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: .93rem;
}
.prevnext a:last-child:not(:first-child) { text-align: right; }
.prevnext a:hover { border-color: var(--lake); color: var(--lake); }

/* ---------- Галерей ---------- */

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item .cover { aspect-ratio: 1 / 1; }
.gallery-item:hover .cover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 14px;
  background: linear-gradient(transparent, rgba(10, 30, 38, .85));
  color: var(--white);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
}

/* ---------- Маягт ---------- */

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.form input, .form textarea, .form select,
.search-big input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: 400 1rem/1.5 var(--sans);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .search-big input:focus {
  outline: none;
  border-color: var(--lake);
  box-shadow: 0 0 0 3px rgba(27, 122, 140, .15);
}
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 500; }
.alert-success { background: #e3f4ea; color: var(--success); border: 1px solid #bfe3cc; }
.alert-error { background: #fbe9e7; color: var(--danger); border: 1px solid #f3c4bd; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.contact-info {
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--steppe);
}
.contact-info p { margin-bottom: 18px; overflow-wrap: anywhere; }

.search-big { display: flex; gap: 10px; margin-top: 20px; max-width: 640px; }
.search-big input { border-radius: 999px; padding-left: 20px; }

/* ---------- Сайтын бүтэц ---------- */

.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; }
.sitemap ul { list-style: none; padding: 0; margin: 0; }
.sitemap li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.sitemap h3 a { color: var(--ink); }

/* ---------- Реклам ---------- */

.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 24px auto; max-width: 100%; text-align: center; }
.ad-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-body { max-width: 100%; overflow: hidden; }
.ad-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 auto; }
.ad-body iframe, .ad-body ins, .ad-body > div { max-width: 100%; }
.ad-header_below, .ad-footer_above { width: 100%; max-width: 1180px; padding: 0 20px; }
.ad-header_below { margin: 16px auto 0; }
.ad-footer_above { margin: 40px auto 0; }
.ad-home_middle { margin-top: 40px; }
.ad-post_top { margin: -8px auto 32px; }
.ad-post_bottom { margin: 32px auto 8px; }
.ad-list_top { margin: 0 auto 28px; }

/* ---------- Хөл хэсэг ---------- */

.site-footer { background: var(--river-dark); color: #a9c4cb; margin-top: 40px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #a9c4cb; }
.site-footer a:hover { color: var(--white); }
.site-footer .muted { color: #86a5ad; margin-top: 14px; }
.brand-footer, .brand-footer:hover { color: var(--white); }
.brand-footer .brand-mark { background: rgba(255, 255, 255, .1); }

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .84rem; }
.socials a:hover { background: rgba(255, 255, 255, .1); }

.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07);
  color: var(--white);
  font: inherit;
}
.newsletter input::placeholder { color: #86a5ad; }
.newsletter input:focus { outline: none; border-color: var(--steppe); }
.newsletter button {
  padding: 11px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--steppe);
  color: var(--ink);
  font: 600 .92rem var(--sans);
  cursor: pointer;
}
.newsletter button:hover { background: var(--steppe-dk); color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .85rem;
  color: #86a5ad;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-search input { width: 120px; }
  .nav-search input:focus { width: 150px; }
  .main-nav > a, .dropdown > a { padding: 8px 9px; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-feature { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* Гар утасны цэс (backdrop-filter нь fixed цэсийг толгой дотор хорьдог тул унтраана) */
  .site-header { backdrop-filter: none; background: var(--white); }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 16px 20px 32px;
    background: var(--white);
    overflow-y: auto;
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav > a, .dropdown > a { padding: 13px 14px; font-size: 1.02rem; border-radius: 10px; }
  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
    transform: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { transform: none; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-search { margin: 12px 0 0; }
  .nav-search input, .nav-search input:focus { width: 100%; padding: 12px 16px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .container.section { padding-top: 28px; padding-bottom: 40px; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .popular-list { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 30px; }
  .row2 { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .search-big { flex-direction: column; }
  .prevnext { flex-direction: column; }
  .prevnext a { flex-basis: auto; }
  .prevnext a:last-child:not(:first-child) { text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-cap { font-size: .8rem; padding: 28px 10px 10px; }
  .cat-row { padding: 14px 16px; gap: 14px; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.2rem; }
  .brand-text { font-size: 1.08rem; }
  .prose { font-size: 1.02rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic { padding: 16px 14px; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
