:root { --gas-orange: #e87932; --gas-cream: #fff1d9; --gas-charcoal: #17231f; --gas-mint: #b9dfb7; }
.gas-body { background: var(--paper); }

.gas-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr); gap: clamp(30px, 7vw, 90px); align-items: center; padding: 29px clamp(14px, 5vw, 74px) 27px; overflow: hidden; background-color: var(--paper); background-image: radial-gradient(circle at 82% -20%, rgba(232,121,50,.28), transparent 34%); }
.gas-hero h1, .gas-heading h2, .gas-history-heading h2 { margin: 0; font-family: var(--display); }
.gas-hero h1 { font-size: clamp(31px, 4vw, 50px); line-height: .98; letter-spacing: -2.8px; }
.gas-hero h1 em { color: var(--gas-orange); font-style: normal; }
.gas-hero-copy > p:not(.eyebrow) { max-width: 680px; margin: 14px 0 0; color: #506058; font-size: 15px; line-height: 1.48; }
.gas-emergency { position: relative; display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 20px; align-items: center; padding: 23px 25px; color: white; border: 1px solid #34453f; background: var(--gas-charcoal); box-shadow: 8px 8px 0 var(--gas-orange); }
.gas-emergency::after { content: "АВАРИЙНАЯ СЛУЖБА"; position: absolute; right: 14px; top: 8px; color: rgba(255,255,255,.055); font: 650 13px var(--display); letter-spacing: 2px; }
.gas-flame { display: grid; place-items: center; width: 78px; height: 92px; border: 1px solid rgba(255,255,255,.14); background: #0b1713; }
.gas-flame svg { width: 49px; height: 62px; fill: var(--gas-orange); filter: drop-shadow(0 0 12px rgba(232,121,50,.35)); }
.gas-emergency-copy small { color: #a9b7b0; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.gas-emergency-copy > div { display: flex; gap: 10px; align-items: baseline; margin-top: 2px; }
.gas-emergency-copy a { color: #fff; font: 750 clamp(25px, 3.3vw, 38px) var(--display); text-decoration: none; }
.gas-emergency-copy span { color: var(--gas-orange); font-weight: 700; }
.gas-emergency-copy p { margin: 8px 0 0; color: #a9b7b0; font-size: 12px; line-height: 1.4; }

.gas-upcoming { padding: 35px clamp(14px, 5vw, 74px) 47px; background: #f5f1e6; }
.gas-heading, .gas-history-heading { display: flex; justify-content: space-between; align-items: end; max-width: 1320px; margin: 0 auto 18px; }
.gas-heading h2, .gas-history-heading h2 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -1.8px; }
.gas-source { display: flex; gap: 12px; align-items: center; min-width: 275px; padding: 11px 15px; border: 1px solid #c9c5b8; background: white; }
.gas-source > span { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: #999b93; }
.gas-source[data-state="live"] > span { background: #4fa76c; box-shadow: 0 0 0 6px rgba(79,167,108,.13); }
.gas-source[data-state="warning"] > span { background: #e6ab37; }
.gas-source[data-state="error"] > span { background: var(--rust); }
.gas-source div { display: flex; flex-direction: column; }
.gas-source strong { font-size: 14px; }
.gas-source small { margin-top: 2px; color: #717870; }

.next-gas-card { display: grid; grid-template-columns: 155px minmax(0,1fr) 170px; gap: 24px; align-items: center; max-width: 1320px; min-height: 130px; margin: 0 auto 12px; padding: 18px 22px; color: #fff; border-left: 8px solid var(--gas-orange); background: var(--forest-deep); box-shadow: 8px 8px 0 rgba(232,121,50,.2); }
.next-gas-card.is-clear { color: var(--ink); border-left-color: #52a66c; background: white; box-shadow: 8px 8px 0 rgba(82,166,108,.16); }
.next-gas-date, .next-gas-address, .next-gas-window { display: flex; flex-direction: column; }
.next-gas-date { padding-right: 22px; border-right: 1px solid rgba(255,255,255,.17); }
.is-clear .next-gas-date { border-right-color: var(--line); }
.next-gas-card small { color: #91a49a; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.next-gas-date strong { color: var(--gas-orange); font: 750 46px/.95 var(--display); letter-spacing: -3px; }
.is-clear .next-gas-date strong { color: #52a66c; }
.next-gas-date span { margin-top: 5px; color: #bdc8c2; text-transform: capitalize; }
.is-clear .next-gas-date span { color: var(--muted); }
.next-gas-address strong { margin-top: 5px; font: 650 clamp(16px, 2vw, 22px) var(--display); letter-spacing: -.8px; }
.next-gas-address p { margin: 7px 0 0; color: #9fb0a7; }
.is-clear .next-gas-address p { color: var(--muted); }
.next-gas-window { align-items: flex-end; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); text-align: right; }
.is-clear .next-gas-window { border-color: var(--line); }
.next-gas-window strong { margin-top: 4px; color: var(--gas-orange); font: 650 15px var(--display); }

.maintenance-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; max-width: 1320px; margin: 0 auto 22px; padding: 12px 15px; border: 1px solid #e0b48e; background: var(--gas-cream); }
.maintenance-note strong { padding: 5px 8px; color: white; background: var(--gas-orange); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.maintenance-note p { margin: 0; color: #73563e; font-size: 13px; }
.gas-list-heading { display: flex; justify-content: space-between; max-width: 1320px; margin: 0 auto 8px; padding-inline: 4px; }
.gas-list-heading strong { font-family: var(--display); font-size: 14px; }
.gas-list-heading span { color: var(--gas-orange); font-weight: 700; }
.gas-list { display: grid; gap: 8px; max-width: 1320px; margin: 0 auto; }
.gas-card { display: grid; grid-template-columns: 112px minmax(0,1fr) 145px; gap: 19px; align-items: center; min-height: 90px; padding: 13px 17px; border: 1px solid #d0ccbf; background: white; }
.gas-card.is-nearby { border-left: 5px solid #a9b7ad; }
.gas-card time { color: var(--gas-orange); font: 650 17px var(--display); }
.gas-card-copy { min-width: 0; }
.gas-locality { display: inline-flex; margin-bottom: 4px; padding: 2px 6px; color: var(--forest); background: #e8efdb; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.gas-card-copy > strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.gas-card-copy > p { margin: 4px 0 0; color: #6c766f; font-size: 12px; }
.gas-card details { margin-top: 5px; color: #6c766f; font-size: 11px; }
.gas-card summary { cursor: pointer; }
.gas-card details div { margin-top: 5px; line-height: 1.5; }
.gas-card-window { padding-left: 14px; border-left: 1px solid var(--line); text-align: right; }
.gas-card-window small { display: block; color: #89928c; font-size: 9px; text-transform: uppercase; }
.gas-card-window strong { color: var(--forest); font: 650 13px var(--display); }
.gas-loading, .gas-empty { padding: 35px 15px; color: #737c76; border: 1px solid #d0ccbf; background: rgba(255,255,255,.5); text-align: center; }
.gas-scope { max-width: 1320px; margin: 16px auto 0; color: #717870; font-size: 12px; }

.gas-history { padding: 42px clamp(14px, 5vw, 74px) 50px; color: white; background: var(--gas-charcoal); }
.gas-filters { display: inline-flex; padding: 4px; border: 1px solid rgba(255,255,255,.18); }
.gas-filters button { padding: 8px 12px; color: #a9b2ad; border: 0; background: transparent; cursor: pointer; }
.gas-filters button.active { color: white; background: var(--gas-orange); font-weight: 700; }
.gas-history-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1320px; margin: 0 auto 18px; border: 1px solid rgba(255,255,255,.14); }
.gas-history-stats article { padding: 15px 19px; border-right: 1px solid rgba(255,255,255,.14); }
.gas-history-stats article:last-child { border-right: 0; }
.gas-history-stats small { display: block; color: #89968f; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.gas-history-stats strong { display: block; margin-top: 5px; color: var(--gas-orange); font-family: var(--display); font-size: 17px; }
.gas-history-list { max-width: 1320px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.14); }
.gas-history-item { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; gap: 18px; align-items: start; padding: 16px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.gas-history-item time { font-family: var(--display); font-size: 13px; }
.gas-history-item div span { display: block; color: var(--gas-orange); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.gas-history-item div strong { display: block; margin-top: 3px; }
.gas-history-item div p { margin: 4px 0 0; color: #8d9992; font-size: 12px; }
.gas-history-item > small { padding: 4px 7px; color: #e4e8e5; background: #39433e; font-size: 9px; text-transform: uppercase; }
.gas-history-empty { padding: 36px 10px; color: #8d9992; text-align: center; }

.gas-reference { display: grid; grid-template-columns: repeat(3, 1fr); background: #e0ddd1; }
.gas-reference article { display: grid; grid-template-columns: auto 1fr; gap: 17px; min-height: 180px; padding: 32px clamp(22px,4vw,54px); border-right: 1px solid #c8c4b9; }
.gas-reference article:last-child { border-right: 0; }
.gas-reference article > span { color: var(--gas-orange); font-family: var(--display); font-size: 12px; }
.gas-reference strong { font-family: var(--display); font-size: 14px; }
.gas-reference p { margin: 9px 0 0; color: #606860; line-height: 1.45; }
.gas-reference a { color: var(--forest); font-weight: 700; }
.gas-links { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.gas-links a { font-size: 12px; text-decoration: none; }
.gas-links a:hover { color: var(--gas-orange); }

@media (max-width: 1000px) {
  .gas-hero { grid-template-columns: 1fr .9fr; }
  .gas-reference { grid-template-columns: 1fr; }
  .gas-reference article { min-height: 0; border-right: 0; border-bottom: 1px solid #c8c4b9; }
}

@media (max-width: 760px) {
  .gas-hero { grid-template-columns: 1fr; padding: 22px 12px 21px; }
  .gas-hero h1 { font-size: 36px; }
  .gas-hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .gas-emergency { grid-template-columns: 61px 1fr; gap: 14px; padding: 19px 15px; box-shadow: 6px 6px 0 var(--gas-orange); }
  .gas-flame { width: 57px; height: 70px; }
  .gas-flame svg { width: 35px; height: 49px; }
  .gas-emergency-copy a { font-size: 25px; }
  .gas-emergency-copy p { font-size: 11px; }
  .gas-upcoming, .gas-history { padding: 30px 12px 41px; }
  .gas-heading, .gas-history-heading { display: block; }
  .gas-heading h2, .gas-history-heading h2 { font-size: 29px; }
  .gas-source, .gas-filters { width: 100%; margin-top: 14px; }
  .next-gas-card { grid-template-columns: 82px 1fr; gap: 13px; min-height: 0; padding: 15px 13px; }
  .next-gas-date { padding-right: 12px; }
  .next-gas-date strong { font-size: 36px; }
  .next-gas-address strong { font-size: 14px; }
  .next-gas-window { grid-column: 1 / -1; align-items: center; padding: 8px; border-left: 0; text-align: center; }
  .maintenance-note { grid-template-columns: 1fr; gap: 8px; }
  .maintenance-note strong { justify-self: start; }
  .gas-card { grid-template-columns: 83px 1fr; gap: 10px; padding: 12px 10px; }
  .gas-card-window { grid-column: 1 / -1; padding: 7px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .gas-card-copy > strong { white-space: normal; }
  .gas-history-stats { grid-template-columns: 1fr; }
  .gas-history-stats article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .gas-history-item { grid-template-columns: 1fr auto; gap: 8px; }
  .gas-history-item div { grid-column: 1 / -1; grid-row: 2; }
  .gas-history-item > small { grid-column: 2; grid-row: 1; }
}
