:root {
  --szm-red: #c61d1d;
  --szm-red-dark: #9f1515;
  --szm-ink: #20242a;
  --szm-text: #3d444d;
  --szm-muted: #69707a;
  --szm-line: #e7e7e7;
  --szm-bg: #f7f3f3;
  --szm-soft: #fff4f4;
  --szm-white: #fff;
  --szm-shadow: 0 14px 38px rgba(32, 36, 42, .08);
  --szm-shadow-soft: 0 10px 28px rgba(32, 36, 42, .07);
  --szm-border: #e7e7e7;
  --szm-radius: 8px;
  --szm-radius-sm: 8px;
  --szm-radius-pill: 999px;
  --szm-container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--szm-text);
  background: var(--szm-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--szm-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: var(--szm-red-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 .65em;
  color: var(--szm-ink);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 1.2em;
}

ul,
ol {
  margin-top: 0;
}

input,
button,
textarea,
select {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

.container {
  width: min(var(--szm-container), calc(100% - 40px));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--szm-red);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--szm-radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.button--primary {
  color: #fff;
  background: var(--szm-red);
}

.button--primary:hover,
.button--primary:focus {
  color: #fff;
  background: var(--szm-red-dark);
}

.topbar {
  color: rgba(255, 255, 255, .92);
  background: var(--szm-red-dark);
  font-size: 14px;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.topbar a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
  background: var(--szm-red);
  box-shadow: 0 12px 32px rgba(32, 36, 42, .12);
}

.site-header__main {
  position: relative;
  min-height: 96px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 0;
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: #fff;
}

.brand__logo {
  display: block;
  width: min(240px, 58vw);
  height: auto;
  max-height: 72px;
}

.brand__mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--szm-red);
  background: #fff;
  font-size: 30px;
  font-weight: 900;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.brand__text small {
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.custom-logo {
  max-height: 82px;
  width: auto;
}

.site-header__actions {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--szm-radius);
  background: transparent;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.main-nav {
  background: rgba(0, 0, 0, .14);
}

.main-menu {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.main-menu a:hover,
.main-menu a:focus,
.main-menu .current-menu-item > a {
  background: rgba(0, 0, 0, .22);
}

.main-menu ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  display: none;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--szm-line);
  box-shadow: var(--szm-shadow);
}

.main-menu li:hover > ul,
.main-menu li:focus-within > ul {
  display: block;
}

.main-menu ul a {
  min-height: 0;
  padding: 10px 12px;
  color: var(--szm-ink);
  border-radius: 6px;
}

.site-main {
  padding: 42px 0 56px;
}

.site-main--front {
  padding-top: 0;
}

.layout {
  display: grid;
  gap: 34px;
}

.layout--sidebar {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.content-area,
.sidebar,
.entry,
.archive-header,
.no-results {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--szm-muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--szm-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--szm-red);
}

.front-hero {
  padding: 52px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 35, 58, .63), rgba(32, 72, 112, .46)),
    url("https://npf-mosenergo.ru/wp-content/uploads/2026/05/zhkh-moskvy.jpg") center / cover no-repeat;
  background-blend-mode: multiply, luminosity;
}

.front-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
}

.front-hero h1 {
  max-width: 780px;
  color: #fff;
  font-size: 46px;
}

.front-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .94);
  font-size: 19px;
}

.section-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--szm-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.front-hero .section-label {
  color: #fff;
}

.front-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 720px;
  margin-top: 26px;
  padding: 8px;
  border-radius: var(--szm-radius);
  background: #fff;
}

.front-search input,
.search-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--szm-ink);
  background: #fff;
}

.front-search button,
.search-form button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--szm-red);
  font-weight: 900;
}

.front-services-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--szm-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--szm-shadow);
}

.front-services-panel .widget-title {
  color: var(--szm-ink);
}

.post-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--szm-soft);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.post-card:hover img {
  transform: scale(1.03);
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #f7dada, #fff);
}

.post-card a {
  color: var(--szm-ink);
  text-decoration: none;
}

.post-card a:hover {
  color: var(--szm-red);
}

.service-hub {
  padding: 52px 0;
}

.service-hub {
  background: #fff;
}

.district-directory {
  padding: 52px 0;
  background: var(--szm-bg);
}

.home-news {
  padding: 52px 0;
  background: #fff;
}

.section-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(198, 29, 29, .22);
  border-radius: 999px;
  color: var(--szm-red);
  font-weight: 900;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus {
  color: #fff;
  background: var(--szm-red);
}

.home-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-news-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  color: var(--szm-ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
}

.home-news-card:hover,
.home-news-card:focus {
  color: var(--szm-red);
  border-color: rgba(198, 29, 29, .35);
  box-shadow: var(--szm-shadow);
}

.home-news-card__media {
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(198, 29, 29, .12), rgba(28, 71, 112, .16));
}

.home-news-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-news-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(198, 29, 29, .18), rgba(28, 71, 112, .22));
}

.home-news-card strong {
  display: block;
  padding: 18px;
  color: inherit;
  font-size: 19px;
  line-height: 1.3;
}

.district-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.district-directory-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: #fff;
}

.district-directory-card h3 {
  margin-bottom: 4px;
  font-size: 21px;
}

.district-directory-card > span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--szm-red);
  font-weight: 900;
}

.district-directory-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.district-directory-card a {
  color: var(--szm-ink);
  font-weight: 800;
  text-decoration: none;
}

.district-directory-card a:hover,
.district-directory-card a:focus {
  color: var(--szm-red);
}

.section-heading {
  display: flex;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  color: var(--szm-text);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
}

.service-card:hover,
.service-card:focus {
  color: var(--szm-text);
  border-color: rgba(198, 29, 29, .35);
  box-shadow: var(--szm-shadow);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #c61d1d;
  background: #f7f3f3;
  font-weight: 900;
}

.service-card__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card strong {
  color: var(--szm-ink);
  font-size: 19px;
  line-height: 1.25;
}

.service-card span:last-child {
  color: var(--szm-muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
}

.post-card__body {
  padding: 18px;
}

.post-card h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.post-card p {
  margin-bottom: 0;
  color: var(--szm-muted);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--szm-muted);
  font-size: 13px;
}

.entry-meta__item {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--szm-soft);
}

.entry-meta__item a {
  color: var(--szm-red);
  text-decoration: none;
}

.archive-header {
  margin-bottom: 24px;
  padding: 28px;
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
}

.archive-header h1 {
  margin-bottom: 0;
}

.archive-description {
  margin-top: 12px;
  color: var(--szm-muted);
}

.entry {
  max-width: 100%;
  padding: 30px;
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
  overflow: hidden;
}

.entry-header {
  margin-bottom: 24px;
}

.entry-header h1 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-thumbnail {
  max-width: 100%;
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--szm-radius);
}

.entry-thumbnail img,
.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content embed {
  max-width: 100%;
}

.entry-content {
  max-width: 100%;
  min-width: 0;
  color: var(--szm-text);
  overflow-wrap: break-word;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.35em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  display: block;
  overflow-x: auto;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--szm-line);
  text-align: left;
}

.entry-content th {
  background: var(--szm-soft);
  color: var(--szm-ink);
}

.entry-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--szm-red);
  background: var(--szm-soft);
}

.szm-rating {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.szm-rating__hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  border-radius: var(--szm-radius);
  color: #fff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.szm-rating__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 24, 31, .82), rgba(31, 87, 148, .45) 48%, rgba(198, 29, 29, .42)),
    linear-gradient(0deg, rgba(19, 24, 31, .5), rgba(19, 24, 31, .08));
}

.szm-rating__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 840px;
  padding: 0;
  border-left: 0;
  background: transparent;
  backdrop-filter: none;
}

.szm-rating__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--szm-radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.szm-rating__hero h1 {
  max-width: 820px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 38px;
  line-height: 1.12;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  overflow-wrap: anywhere;
}

.szm-rating__hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.szm-rating__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.szm-rating__fact {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  color: var(--szm-ink);
  background: linear-gradient(180deg, #fff, #fbfcfd);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.szm-rating__note {
  margin: 0;
  padding: 15px 18px;
  border: 1px solid rgba(198, 29, 29, .14);
  border-left: 4px solid rgba(198, 29, 29, .65);
  border-radius: var(--szm-radius);
  background: linear-gradient(90deg, rgba(198, 29, 29, .06), rgba(31, 87, 148, .045));
  color: #4f5963;
  line-height: 1.55;
}

.szm-rating-context {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(198, 29, 29, .16);
  border-radius: var(--szm-radius);
  background:
    linear-gradient(135deg, rgba(198, 29, 29, .07), rgba(31, 87, 148, .06)),
    #fff;
}

.szm-rating-context h2 {
  margin: 8px 0 10px;
  font-size: 25px;
}

.szm-rating-context p {
  max-width: 760px;
  margin: 0;
  color: var(--szm-muted);
}

.szm-rating-context ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.szm-rating-context li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(31, 87, 148, .12);
  border-radius: var(--szm-radius-sm);
  background: rgba(255, 255, 255, .78);
  color: var(--szm-ink);
  line-height: 1.45;
}

.szm-rating-context li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--szm-red);
  box-shadow: 0 0 0 4px rgba(198, 29, 29, .1);
}

.szm-rating__companies {
  display: grid;
  gap: 16px;
  counter-reset: rating-card;
}

.szm-rating-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 176px;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(32, 36, 42, .045);
  counter-increment: rating-card;
}

.szm-rating-card__place {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 29, 29, .18);
  border-radius: 14px;
  color: var(--szm-red);
  background: rgba(198, 29, 29, .07);
  font-size: 18px;
  font-weight: 900;
}

.szm-rating-card__place::before {
  content: counter(rating-card);
}

.szm-rating-card__title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.szm-rating-card__title h2 {
  margin: 0;
  font-size: 22px;
}

.szm-rating-card__title span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(31, 87, 148, .12);
  border-radius: var(--szm-radius-pill);
  color: #59636e;
  background: rgba(31, 87, 148, .055);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.szm-rating-card p {
  max-width: 760px;
  margin-bottom: 13px;
  color: #4f5963;
  line-height: 1.55;
}

.szm-rating-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.szm-rating-card li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: #66717c;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.szm-rating-card li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: rgba(198, 29, 29, .55);
}

.szm-rating-card__side {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  text-align: right;
}

.szm-rating-card__score {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: var(--szm-muted);
}

.szm-rating-card__score span {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.szm-rating-card__score strong {
  color: var(--szm-red);
  font-size: 28px;
  line-height: 1;
}

.szm-rating-card__score small {
  font-size: 13px;
  font-weight: 800;
}

.szm-rating-card__call {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: var(--szm-radius-pill);
  color: #fff;
  background: var(--szm-red);
  font-weight: 900;
  text-decoration: none;
}

.heat-call,
.entry-content a[class*="call"][href^="tel:"] {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: var(--szm-radius-pill) !important;
  color: #fff !important;
  background: var(--szm-red) !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.szm-rating-card__call:hover,
.szm-rating-card__call:focus,
.heat-call:hover,
.heat-call:focus,
.entry-content a[class*="call"][href^="tel:"]:hover,
.entry-content a[class*="call"][href^="tel:"]:focus {
  color: #fff;
  background: var(--szm-red-dark) !important;
}

.szm-rating-result {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(31, 87, 148, .12);
  border-radius: var(--szm-radius);
  background:
    linear-gradient(135deg, rgba(31, 87, 148, .055), rgba(198, 29, 29, .035)),
    #fff;
}

.szm-rating-result__head {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: start;
}

.szm-rating-result .section-label {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: var(--szm-radius-pill);
  background: rgba(198, 29, 29, .08);
  letter-spacing: .04em;
  line-height: 1.1;
}

.szm-rating-result h2 {
  max-width: 520px;
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
}

.szm-rating-result__head p {
  max-width: 620px;
  margin: 2px 0 0;
  color: var(--szm-muted);
  font-size: 17px;
  line-height: 1.65;
}

.szm-rating-result__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.szm-rating-result__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(31, 87, 148, .12);
  border-radius: var(--szm-radius-sm);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 26px rgba(19, 32, 48, .045);
}

.szm-rating-result__item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 4px;
  height: 34px;
  border-radius: 0 999px 999px 0;
  background: var(--szm-red);
}

.szm-rating-result__item strong {
  color: var(--szm-ink);
  font-size: 17px;
  line-height: 1.25;
}

.szm-rating-result__item span {
  color: var(--szm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.szm-rating__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.szm-rating__info section {
  padding: 22px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: var(--szm-bg);
}

.szm-rating__info h2 {
  font-size: 24px;
}

.szm-rating__info details {
  padding: 12px 0;
  border-bottom: 1px solid var(--szm-line);
}

.szm-rating__info summary {
  cursor: pointer;
  color: var(--szm-ink);
  font-weight: 900;
}

.szm-related-services {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: #fff;
}

.szm-related-services .section-heading {
  margin-bottom: 0;
}

.szm-related-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.szm-related-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius-sm);
  color: var(--szm-ink);
  background: var(--szm-bg);
  text-decoration: none;
}

.szm-related-card strong {
  font-size: 18px;
}

.szm-related-card span {
  color: var(--szm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.szm-related-card:hover,
.szm-related-card:focus {
  border-color: rgba(198, 29, 29, .35);
  color: var(--szm-red);
  background: #fff7f7;
}

.szm-related-articles {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: var(--szm-bg);
}

.szm-related-articles .section-heading {
  margin-bottom: 0;
}

.szm-related-articles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.szm-article-card {
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius-sm);
  color: var(--szm-ink);
  background: #fff;
}

.szm-article-card small {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: var(--szm-radius-pill);
  color: var(--szm-red);
  background: rgba(198, 29, 29, .08);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.szm-article-card strong {
  font-size: 17px;
  line-height: 1.25;
}

.szm-article-card span {
  color: var(--szm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.szm-article-card:hover,
.szm-article-card:focus {
  transform: translateY(-2px);
  border-color: rgba(198, 29, 29, .35);
  color: var(--szm-red);
  box-shadow: var(--szm-shadow-soft);
}

.szm-article-card:hover span,
.szm-article-card:focus span {
  color: var(--szm-muted);
}

.district-landing {
  display: grid;
  gap: 24px;
}

.district-landing__hero {
  padding: 32px;
  border-radius: var(--szm-radius);
  color: #fff;
  background: linear-gradient(135deg, rgba(88, 18, 24, .96), rgba(28, 71, 112, .92));
}

.district-landing__hero h1 {
  color: #fff;
}

.district-landing__hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .88);
}

.district-landing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.district-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius-sm);
  color: var(--szm-ink);
  background: #fff;
  text-decoration: none;
}

.district-card strong {
  font-size: 18px;
}

.district-card span {
  color: var(--szm-muted);
  font-size: 14px;
  line-height: 1.45;
}

.district-card:hover,
.district-card:focus {
  border-color: rgba(198, 29, 29, .35);
  color: var(--szm-red);
  background: #fff7f7;
}

.district-reference-links {
  display: grid;
  gap: 16px;
}

.district-reference-links .section-heading {
  margin-bottom: 0;
}

.district-reference-links__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.district-card--compact {
  min-height: 116px;
}

.district-landing__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.district-landing__info section {
  padding: 22px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: var(--szm-bg);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.widget {
  padding: 22px;
  border: 1px solid var(--szm-line);
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 36, 42, .05);
}

.widget-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--szm-red);
  font-size: 20px;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-form input {
  border-color: var(--szm-line);
}

.service-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-title--secondary {
  margin-top: 18px;
}

.service-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--szm-ink);
  background: var(--szm-bg);
  font-weight: 700;
  text-decoration: none;
}

.service-links a span {
  min-width: 0;
}

.service-links a small {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--szm-red);
  background: rgba(198, 29, 29, .08);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.service-links a:hover,
.service-links a:focus {
  color: #fff;
  background: var(--szm-red);
}

.service-links a.is-active,
.service-links a[aria-current="page"] {
  color: #fff;
  background: var(--szm-red);
}

.service-links a:hover small,
.service-links a:focus small {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.service-links a.is-active small,
.service-links a[aria-current="page"] small {
  color: #fff;
  background: rgba(255, 255, 255, .18);
}

.service-links--muted a {
  color: #5c6470;
  background: #fff;
}

.service-links--muted a:hover,
.service-links--muted a:focus {
  color: var(--szm-red);
  background: #fff7f7;
}

.service-links--muted a:hover small,
.service-links--muted a:focus small {
  color: var(--szm-red);
  background: rgba(198, 29, 29, .1);
}

.navigation,
.pagination,
.post-navigation {
  margin-top: 28px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.page-numbers,
.nav-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--szm-line);
  border-radius: 6px;
  color: var(--szm-ink);
  background: #fff;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.nav-links a:hover {
  color: #fff;
  background: var(--szm-red);
  border-color: var(--szm-red);
}

.post-navigation .nav-links a {
  flex: 1 1 260px;
  display: grid;
  gap: 4px;
}

.post-navigation span {
  color: var(--szm-muted);
  font-size: 13px;
}

.post-navigation strong {
  color: inherit;
}

.comments-area {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--szm-radius);
  background: #fff;
}

.comment-list {
  padding-left: 22px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--szm-line);
  border-radius: 6px;
}

.comment-form input[type="submit"] {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--szm-radius);
  color: #fff;
  background: var(--szm-red);
  font-weight: 800;
}

.not-found {
  padding: 72px 0;
}

.not-found__inner,
.no-results {
  max-width: 720px;
  padding: 32px;
  border-radius: var(--szm-radius);
  background: #fff;
  box-shadow: var(--szm-shadow);
}

.site-footer {
  color: rgba(255, 255, 255, .82);
  background: #171a1f;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(180px, 1fr));
  gap: 28px;
  padding: 42px 0;
}

.brand--footer {
  margin-bottom: 16px;
}

.brand--footer .brand__logo {
  width: min(240px, 64vw);
  max-height: 74px;
}

.brand--footer .brand__mark {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.brand--footer .brand__text strong {
  font-size: 24px;
}

.site-footer p {
  max-width: 480px;
}

.footer-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-directory {
  min-width: 0;
}

.footer-menu a,
.site-footer a {
  color: #fff;
}

.footer-menu a {
  display: inline-flex;
  line-height: 1.35;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus {
  color: #ffb6b6;
}

.site-footer__bottom {
  min-height: 62px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}

.footer-widget__title {
  color: #fff;
  font-size: 18px;
}

.district-page-panel {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--szm-border);
  border-radius: var(--szm-radius);
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
  box-shadow: var(--szm-shadow-soft);
}

.district-page-panel--intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: start;
}

.district-page-panel__text p {
  margin: 10px 0 0;
  color: var(--szm-muted);
  font-size: 17px;
  line-height: 1.65;
}

.district-quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.district-quick-facts div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
}

.district-quick-facts__wide {
  grid-column: 1 / -1;
}

.district-quick-facts dt {
  margin: 0 0 6px;
  color: var(--szm-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.district-quick-facts dd {
  margin: 0;
  color: var(--szm-text);
  font-weight: 800;
  line-height: 1.35;
}

.district-quick-facts a {
  color: var(--szm-red);
  text-decoration: none;
}

.district-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.district-related-grid:empty {
  display: none;
}

.district-related-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--szm-border);
  border-radius: 8px;
  background: #fff;
  color: var(--szm-text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.district-related-card:hover,
.district-related-card:focus {
  transform: translateY(-2px);
  border-color: rgba(194, 31, 43, .35);
  box-shadow: var(--szm-shadow-soft);
}

.district-related-card strong {
  font-size: 18px;
}

.district-related-card span {
  color: var(--szm-muted);
}

.district-service-strip {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--szm-border);
}

.district-service-strip h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.district-service-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.district-service-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(194, 31, 43, .22);
  border-radius: 999px;
  background: rgba(194, 31, 43, .06);
  color: var(--szm-red);
  font-weight: 800;
  text-decoration: none;
}

.district-service-strip a:hover,
.district-service-strip a:focus {
  border-color: var(--szm-red);
  background: var(--szm-red);
  color: #fff;
}

.district-service-strip a:hover *,
.district-service-strip a:focus * {
  color: #fff;
}

.single .district-page-panel ~ .heateor_sss_sharing_container,
.single .entry-content .heateor_sss_sharing_container,
.szm-district-reference .heateor_sss_sharing_container,
.szm-district-reference .heateorSssClear,
.szm-rating-reference .heateor_sss_sharing_container,
.szm-rating-reference .heateorSssClear {
  display: none !important;
}

@media (max-width: 1100px) {
  .layout--sidebar,
  .front-hero__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-news__grid,
  .district-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  .container {
    width: min(var(--szm-container), calc(100% - 28px));
  }

  .site-header__main {
    min-height: 78px;
  }

  .brand__logo {
    width: min(205px, 62vw);
    max-height: 62px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .brand__text strong {
    font-size: 24px;
  }

  .brand__text small {
    font-size: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-menu {
    display: grid;
    padding: 10px 0;
  }

  .main-menu a {
    min-height: 46px;
    padding: 10px 0;
  }

  .main-menu ul {
    position: static;
    display: grid;
    margin-left: 14px;
    box-shadow: none;
  }

  .front-hero {
    padding: 40px 0;
  }

  .front-hero h1 {
    font-size: 35px;
  }

  .front-search,
  .search-form {
    grid-template-columns: 1fr;
  }

  .post-grid,
  .service-grid,
  .sidebar,
  .district-page-panel--intro,
  .district-related-grid,
  .szm-rating__info,
  .szm-rating-context,
  .szm-rating-result__head,
  .szm-rating-result__grid,
  .szm-related-services__grid,
  .szm-related-articles__grid,
  .district-landing__grid,
  .district-landing__info,
  .home-news__grid,
  .district-directory__grid,
  .district-reference-links__grid {
    grid-template-columns: 1fr;
  }

  .entry,
  .archive-header,
  .widget {
    padding: 22px;
  }

  .szm-rating__hero {
    min-height: 330px;
    padding: 24px;
  }

  .szm-rating__hero h1 {
    font-size: 30px;
  }

  .szm-rating__hero p {
    font-size: 16px;
    line-height: 1.55;
  }

  .szm-rating__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .szm-rating-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .szm-rating-card__side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(180px, 240px);
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .szm-rating-card__score {
    justify-content: flex-start;
  }

  .szm-rating-card__call {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  h1,
  .front-hero h1 {
    font-size: 29px;
  }

  h2 {
    font-size: 24px;
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__inner span {
    display: none;
  }

  .site-header__main {
    gap: 12px;
  }

  .brand__text strong {
    font-size: 21px;
  }

  .brand__text small {
    max-width: 180px;
    white-space: normal;
  }

  .front-hero p {
    font-size: 16px;
  }

  .section-heading {
    display: block;
  }

  .service-card {
    min-height: 0;
  }

  .site-footer__bottom {
    display: grid;
    padding: 18px 0;
  }

  .szm-rating__facts {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(var(--szm-container), calc(100% - 20px));
  }

  .entry,
  .archive-header,
  .widget {
    max-width: 100%;
    padding: 14px;
  }

  .entry-header h1 {
    font-size: 26px;
    line-height: 1.18;
  }

  .szm-rating {
    gap: 18px;
    overflow: hidden;
  }

  .szm-rating__hero {
    min-height: 340px;
    max-width: 100%;
    width: 100%;
    padding: 18px;
  }

  .szm-rating__hero-inner {
    max-width: 100%;
  }

  .szm-rating__hero::before {
    background:
      linear-gradient(90deg, rgba(19, 24, 31, .86), rgba(31, 87, 148, .48)),
      linear-gradient(0deg, rgba(19, 24, 31, .58), rgba(19, 24, 31, .14));
  }

  .szm-rating__hero h1 {
    font-size: 24px;
    line-height: 1.16;
  }

  .szm-rating__label {
    max-width: 100%;
    font-size: 11px;
    white-space: normal;
  }

  .szm-rating__fact {
    min-height: 62px;
    padding: 13px 14px;
    font-size: 16px;
  }

  .szm-rating__note {
    padding: 14px;
  }

  .szm-rating-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .szm-rating-card__place {
    width: 42px;
    height: 42px;
  }

  .szm-rating-card__title h2 {
    font-size: 20px;
  }

  .szm-rating-card ul {
    display: grid;
    gap: 7px;
  }

  .szm-rating-card li + li::before {
    display: none;
  }

  .szm-rating-card__side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .szm-rating-result {
    padding: 20px;
  }

  .szm-rating-result h2 {
    font-size: 24px;
  }

  .szm-rating-result__head p {
    font-size: 15px;
    line-height: 1.55;
  }

  .district-page-panel {
    padding: 18px;
  }

  .district-quick-facts {
    grid-template-columns: 1fr;
  }

  .district-service-strip div {
    display: grid;
  }
}
