/* Нийтийн хуудсуудын загвар (нүүр, захиалга, төлөв). style.css-ийн дараа ачаална.
   Админ хэсэг энэ файлыг ачаалдаггүй — тиймээс админы харагдац өөрчлөгдөхгүй. */

/* Гарчгийн фонт — Cormorant Garamond (SIL Open Font License, /fonts/OFL.txt) */
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Өнгө — лого ирэхэд энэ хэсгийг солино */
:root {
  --green: #2a4a3f;        /* холбоос, жижиг гарчиг, ногоон товч */
  --green-dark: #15302a;   /* толгой хэсэг, нүүр хэсэг */
  --green-deep: #0e221d;   /* мэдээллийн мөр, хөл хэсэг */
  --olive: #6f7a45;        /* гол товч, дүрс тэмдэг */
  --olive-dark: #5b6538;
  --cream: #f6f1e6;
  --cream-text: #efe8d8;   /* бараан дэвсгэр дээрх гарчиг */
  --line: #e3dccb;
  --photo: #dcd5c2;        /* түр зургийн хайрцаг */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

h1, h2, h3,
.section-title,
.brand { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: 0; font-variant-numeric: lining-nums; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input:focus, textarea:focus { outline: 2px solid var(--olive); border-color: var(--olive); }
section[id], footer[id] { scroll-margin-top: 72px; }

/* ---------- Товч ---------- */
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); padding: 8px 18px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-ghost { white-space: nowrap; }
@media (max-width: 560px) {
  .header-phone { display: none; }  /* утсан дээр дугаар мэдээллийн мөрөнд харагдана */
}

/* ---------- Толгой хэсэг ---------- */
.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar-info, .topbar-social { display: flex; gap: 20px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
@media (max-width: 760px) {
  .topbar-address, .topbar-social { display: none; }
}

.site-header {
  background: var(--green-dark);
  border-bottom: 0;
}
.site-header .container { height: 68px; }
.brand { font-size: 1.5rem; color: var(--cream-text); }
.brand span { color: var(--gold); }
.nav a { color: rgba(255, 255, 255, 0.8); }
.nav a:hover { color: var(--white); }

/* ---------- Нүүр хэсэг ---------- */
.hero {
  background: var(--green-dark);
  padding: 56px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.hero .hero-kicker { margin: 0 0 16px; color: var(--gold); font-size: 1rem; opacity: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--cream-text);
  margin: 0 0 24px;
}
.hero p.hero-lead { font-size: 1.1rem; max-width: 30em; opacity: 0.85; }
.hero .photo { aspect-ratio: 5 / 4; border-radius: 4px 4px 160px 4px; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding: 40px 0 48px; }
}

/* Түр зураг: жинхэнэ зураг ирэхэд <img class="photo" ...>-ээр солино */
.photo {
  display: grid;
  place-items: center;
  width: 100%;
  background: var(--photo);
  color: var(--olive);
  border-radius: 4px;
  object-fit: cover;
}
.photo svg { width: 56px; height: 56px; opacity: 0.55; }
.hero .photo { background: #24433a; color: var(--cream-text); }

/* ---------- Онцлог ---------- */
.features { background: var(--cream); border-bottom: 1px solid var(--line); }
.features ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li { padding: 32px 24px; text-align: center; }
.features li + li { border-left: 1px solid var(--line); }
.features svg { width: 32px; height: 32px; color: var(--olive); }
.features h3 { margin: 8px 0 4px; font-size: 1.3rem; color: var(--green-dark); }
.features p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) {
  .features ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features li:nth-child(3) { border-left: 0; }
  .features li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .features li { padding: 24px 12px; }
}

/* ---------- Хэсгүүд ---------- */
.section-title { font-size: clamp(2rem, 4.2vw, 2.8rem); line-height: 1.1; color: var(--green-dark); }
.section-head { text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Үйлчилгээ ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  padding-bottom: 24px;
}
.service .photo { aspect-ratio: 4 / 3; border-radius: 4px 4px 0 0; }
.service-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px auto 0;
  position: relative;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--white);
}
.service-badge svg { width: 24px; height: 24px; }
.service h3 { margin: 12px 16px 4px; font-size: 1.35rem; color: var(--green-dark); }
.service p { margin: 0 20px; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service .photo { aspect-ratio: 16 / 9; }
  .hero .photo { aspect-ratio: 16 / 10; border-radius: 4px 4px 96px 4px; }
}

/* ---------- Цэс ---------- */
.menu-category { margin-bottom: 48px; }
.menu-category h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 1.7rem;
  color: var(--green-dark);
}
.menu-category h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 56px;
}
.menu-entry { break-inside: avoid; padding: 12px 0; }
.menu-entry-head { display: flex; align-items: baseline; gap: 8px; }
.menu-entry-name { font-weight: 600; }
.menu-entry-dots { flex: 1; min-width: 16px; border-bottom: 1px dotted #b9b19e; }
.menu-entry-price { font-weight: 700; color: var(--green); white-space: nowrap; }
.menu-entry-price small { font-weight: 400; color: var(--muted); }
.menu-entry-desc { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); max-width: 34em; }
@media (max-width: 760px) {
  .menu-list { columns: 1; }
}

/* ---------- Бидний тухай ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.about .photo { aspect-ratio: 4 / 3; }
.about p { max-width: 34em; }
.about-phone { font-weight: 600; }
@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Захиалах дараалал ---------- */
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 3rem;
  line-height: 1;
  color: var(--olive);
}
.steps-list h3 { margin: 8px 0 4px; font-size: 1.4rem; color: var(--green-dark); }
.steps-list p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Захиалах уриалга ---------- */
.cta { background: var(--green-dark); color: var(--white); padding: 56px 0; }
.cta .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { margin: 0 0 4px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); color: var(--cream-text); }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.75); }
.cta a:not(.btn) { color: var(--gold); text-decoration: none; font-weight: 600; white-space: nowrap; }

/* ---------- Хөл хэсэг ---------- */
.site-footer { text-align: left; padding: 48px 0 0; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}
.site-footer .brand { display: inline-block; margin-bottom: 8px; }
.site-footer h2 { margin: 0 0 12px; font-size: 1.3rem; color: var(--cream-text); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .footer-phone { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Захиалга, төлөвийн хуудас ---------- */
.page-head { background: var(--green-dark); padding: 40px 0 44px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 500; line-height: 1.1; color: var(--cream-text); }
.form-card h2, .summary h2, .status-page .card h2 { font-size: 1.55rem; }
.card { border-radius: 6px; box-shadow: none; }
.pick-category { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--green-dark); }
.pick-item input[type="checkbox"], .agree input { accent-color: var(--olive); }

#menu-picker { margin-top: 16px; }
