/* ============ Үндсэн тохиргоо ============ */
:root {
  --green: #3dcd58;
  --green-dark: #008a15;
  --green-deep: #006b10;
  --green-tint: #e9f9ec;
  --ink: #0a0a0a;
  --text: #333333;
  --text-muted: #5c6466;
  --bg: #ffffff;
  --bg-alt: #f0f1f2;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-btn: 4px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

a { color: var(--green-dark); text-decoration: none; }

/* ============ SVG дүрс ============ */
svg {
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.logo__mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  stroke: none;
}

/* ============ Товч ============ */
.btn {
  display: inline-block;
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--green-deep);
  box-shadow: 0 4px 14px rgba(0, 138, 21, 0.25);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn--small {
  padding: 9px 20px;
  font-size: 14px;
}

/* ============ Дээд мөр ============ */
.topbar {
  background: #fff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar strong { color: var(--green-dark); }

.topbar__links { display: flex; gap: 18px; }

.topbar__links a { color: var(--text-muted); }
.topbar__links a:hover { color: var(--ink); }

.topbar__login { font-weight: 600; color: var(--green-dark) !important; }

/* ============ Толгой ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  font-size: 22px;
  color: #fff;
}

.logo__text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav a { color: var(--text); }
.nav a:hover { color: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============ Нүүр баннер ============ */
.hero {
  background:
    radial-gradient(900px 460px at 88% 0%, rgba(61, 205, 88, 0.28), transparent 60%),
    linear-gradient(120deg, #2e3336 0%, #565d61 55%, #8b9296 100%);
  color: #fff;
  padding: 90px 0 70px;
}

.hero__content { max-width: 640px; }

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
}

.hero__lead {
  font-size: 18px;
  font-weight: 300;
  color: #e4e7e9;
  margin-bottom: 32px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero .btn {
  background: var(--green);
  color: #fff;
}

.hero .btn:hover { background: var(--green-dark); }

.hero .btn--outline { background: transparent; }
.hero .btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.stat { display: flex; flex-direction: column; }

.stat__num {
  font-size: 30px;
  font-weight: 800;
  color: var(--green);
}

.stat__label {
  font-size: 13.5px;
  color: #d4d8da;
  font-weight: 500;
}

/* ============ Бүлгүүд ============ */
.section { padding: 80px 0; }

.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--bg-alt);
}

.section--dark .section__subtitle { color: var(--text-muted); }

.section__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

.section__title--left { text-align: left; }

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 46px;
  font-weight: 400;
}

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

/* ============ Картууд ============ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  border-color: #c9cdce;
  box-shadow: var(--shadow);
}

.card__icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  border-radius: 8px;
  margin-bottom: 18px;
}

.card h3 { font-size: 17px; margin-bottom: 10px; }

.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }

.card__link { font-size: 14px; font-weight: 600; }

/* ============ Тарифын хүснэгт ============ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}

.tariff-table th,
.tariff-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
}

.tariff-table th {
  background: var(--green-dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.tariff-table tbody tr:nth-child(even) { background: var(--bg-alt); }

.tariff-table td:nth-child(3),
.tariff-table td:nth-child(4) {
  font-weight: 600;
  color: var(--green-dark);
}

.note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ============ Таслалтын хуваарь ============ */
.outage-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.outage {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  transition: box-shadow 0.18s ease;
}

.outage:hover { box-shadow: var(--shadow); }

.outage__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  background: var(--green-tint);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-dark);
}

.outage__date span {
  font-size: 19px;
  font-weight: 800;
}

.outage__info { flex: 1; }

.outage__info h4 { font-size: 15.5px; margin-bottom: 3px; }

.outage__info p { font-size: 13.5px; color: var(--text-muted); }

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge--planned {
  background: var(--green-tint);
  color: var(--green-dark);
}

/* ============ Мэдээний карт ============ */
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.news-card:hover {
  border-color: #c9cdce;
  box-shadow: var(--shadow);
}

.news-card__img { height: 160px; }

.news-card__body { padding: 22px 24px 26px; }

.news-card time {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}

.news-card h3 {
  font-size: 16.5px;
  margin: 8px 0 10px;
}

.news-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ============ Бидний тухай ============ */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__text p { margin-bottom: 16px; color: var(--text-muted); }

.about__text .section__title { margin-bottom: 22px; }

.checklist {
  list-style: none;
  margin-top: 10px;
}

.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 15px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
}

.about__visual { display: flex; justify-content: center; }

.about__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #eafbee;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.about__big {
  font-size: 84px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* ============ Холбоо барих ============ */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}

.contact-card .card__icon {
  margin: 0 auto 18px;
  background: var(--green-tint);
}

.contact-card h3 { font-size: 17px; margin-bottom: 8px; }

.contact-card p { font-size: 14.5px; color: var(--text-muted); }

/* ============ Хөл ============ */
.footer {
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 34px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__brand strong { color: var(--ink); font-size: 15px; }

.footer__brand p { font-size: 13px; }

.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }

.footer__nav a { color: var(--text-muted); }
.footer__nav a:hover { color: var(--green-dark); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  padding-bottom: 18px;
  text-align: center;
  font-size: 13px;
  color: #8a9194;
}

/* ============ Дасан зохицох ============ */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.is-open { display: flex; }

  .topbar__inner { justify-content: center; text-align: center; }

  .section { padding: 60px 0; }

  .outage { flex-wrap: wrap; }
}
