/* Файл для загрузки на хостинг: /Css/style.css */

:root,
[data-theme="light"] {
  --bg: #f5f4ef;
  --surface: #fffefa;
  --surface-alt: #eae8e0;
  --ink: #1a1b18;
  --muted: #66675f;
  --line: rgba(26, 27, 24, 0.14);
  --yellow: #f5c518;
  --yellow-deep: #bd8c00;
  --dark: #1b1c19;
  --dark-2: #2a2b27;
  --light-on-dark: #f6f4ec;
  --radius: 1rem;
  --shadow: 0 1rem 3rem rgba(24, 25, 22, 0.08);
  --font-display: "Cabinet Grotesk", Arial, sans-serif;
  --font-body: "Satoshi", Arial, sans-serif;
  --container: 76rem;
}

[data-theme="dark"] {
  --bg: #161714;
  --surface: #20211d;
  --surface-alt: #292a25;
  --ink: #f3f1ea;
  --muted: #b8b7ad;
  --line: rgba(243, 241, 234, 0.15);
  --yellow: #f5c518;
  --yellow-deep: #ffd94d;
  --dark: #f1efe7;
  --dark-2: #d9d6ca;
  --light-on-dark: #171815;
  --shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 20rem;
  margin: 0;
  padding-bottom: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #161714;
  background: var(--yellow);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(1rem);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--yellow-deep);
}

.brand-dot {
  color: var(--yellow-deep);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav a:hover,
.button-link:hover,
.site-footer a:hover {
  color: var(--yellow-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
}

.theme-toggle svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 0.5rem;
  color: #171815;
  background: var(--yellow);
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

.button:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.button-header {
  min-height: 2.7rem;
}

.button-dark {
  color: var(--light-on-dark);
  background: var(--dark);
}

.button-dark:hover {
  background: var(--dark-2);
}

.button-as-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.hero {
  padding-top: clamp(3.5rem, 8vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.2rem;
  height: 2px;
  background: var(--yellow-deep);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.065em;
  line-height: 0.97;
}

h1 {
  max-width: 9.5ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  font-weight: 800;
}

h1 em {
  color: var(--yellow-deep);
  font-style: normal;
}

h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
}

.hero-lead {
  max-width: 43rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

/* Карточки первого экрана */
.hero-info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-info-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.hero-info-card-accent {
  border-color: color-mix(in srgb, var(--yellow-deep) 42%, var(--line));
  background: color-mix(in srgb, var(--yellow) 18%, var(--surface));
}

.hero-info-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--yellow-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-info-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-info-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button-link {
  display: inline-flex;
  gap: 0.55rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 4rem;
}

.hero-metrics div {
  display: grid;
  gap: 0.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-metrics strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius);
  color: #171815;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.live-dot::before {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #227a2d;
  content: "";
}

.hero-panel h2 {
  margin: 4rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.hero-panel p {
  color: rgba(23, 24, 21, 0.7);
}

.panel-call {
  display: grid;
  gap: 0.25rem;
  margin: 2rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(23, 24, 21, 0.2);
  border-bottom: 1px solid rgba(23, 24, 21, 0.2);
}

.panel-call span {
  font-size: 0.75rem;
  font-weight: 800;
}

.panel-call strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.circuit-lines {
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 13rem;
  height: 13rem;
  opacity: 0.16;
}

.circuit-lines i {
  position: absolute;
  border: 2px solid #171815;
  border-radius: 50%;
}

.circuit-lines i:nth-child(1) {
  inset: 0;
}

.circuit-lines i:nth-child(2) {
  inset: 2rem;
}

.circuit-lines i:nth-child(3) {
  inset: 4rem;
}

.section-head {
  max-width: 47rem;
  margin-bottom: 3rem;
}

.section-head-wide {
  display: grid;
  max-width: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
}

.section-head-wide > p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.section-head-wide b {
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.72rem;
}

/* Карточки услуг страницы электрика */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.category-card {
  position: relative;
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease;
}

.category-card:hover,
.category-card.is-active {
  color: #171815;
  background: var(--yellow);
}

.category-card svg {
  width: 2.1rem;
  height: 2.1rem;
  margin: auto 0 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.category-number {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.category-card.is-active .category-number,
.category-card:hover .category-number {
  color: rgba(23, 24, 21, 0.65);
}

.category-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.category-card small {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.category-card.is-active small,
.category-card:hover small {
  color: rgba(23, 24, 21, 0.68);
}

/* Главная: основные и дополнительные услуги */
.main-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.main-service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.main-service-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.main-service-body {
  padding: 1.5rem;
}

.main-service-body h3,
.compact-service-card h3,
.education-card h3 {
  margin: 0.8rem 0;
  font-size: 1.75rem;
}

.main-service-body > p,
.compact-service-card p,
.education-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-tag {
  display: inline-flex;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  color: #171815;
  background: color-mix(in srgb, var(--yellow) 55%, var(--surface));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  margin-right: 0.5rem;
  color: var(--yellow-deep);
  font-weight: 900;
  content: "✓";
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.secondary-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.compact-service-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compact-service-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.compact-service-card > div {
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.compact-service-card h3 {
  margin: 0.65rem 0;
  font-size: 1.3rem;
}

.compact-service-card > div > strong {
  display: block;
  margin-top: 1rem;
  color: var(--yellow-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.compact-service-card .card-actions {
  margin-top: auto;
  padding-top: 1.1rem;
}

.work-rules {
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
}

.rule-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-list article {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.rule-list span,
.education-index {
  color: var(--yellow-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

.rule-list p {
  margin: 0;
}

.education {
  background: var(--surface);
}

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

.education-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.education-card h3 {
  margin-top: 2.2rem;
}

.regions {
  border-block: 1px solid var(--line);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.region-card {
  position: relative;
  display: grid;
  min-height: 11rem;
  align-content: start;
  gap: 0.45rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  transition: transform 0.18s ease, background 0.18s ease;
}

.region-card:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.region-card > span {
  color: var(--yellow-deep);
  font-size: 0.7rem;
  font-weight: 900;
}

.region-card strong {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.region-card small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.region-card b {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--yellow-deep);
}

/* Прайс страницы электрика */
.price-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--yellow);
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface));
}

.price-note span {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-accordion {
  border-top: 1px solid var(--line);
}

.price-group {
  border-bottom: 1px solid var(--line);
}

.price-group summary {
  display: grid;
  grid-template-columns: 3rem 1fr auto 1.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1.55rem 0;
  cursor: pointer;
  list-style: none;
}

.price-group summary::-webkit-details-marker {
  display: none;
}

.price-index {
  color: var(--yellow-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.price-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.price-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chevron {
  font-size: 1.55rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.price-group[open] .chevron {
  transform: rotate(45deg);
}

.price-list {
  padding: 0 0 1.5rem 4rem;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.price-row > span {
  display: grid;
  gap: 0.15rem;
  color: var(--ink);
}

.price-row small {
  color: var(--muted);
  font-size: 0.75rem;
}

.price-row strong {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.info-button {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.info-button:hover {
  border-color: var(--yellow);
  color: #171815;
  background: var(--yellow);
}

/* Галерея до / после */
.work-gallery {
  background: var(--surface);
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.before-after-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.before-after-photo {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.before-after-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}

.before-after-photo span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 0.3rem;
  color: #fff;
  background: rgba(23, 32, 25, 0.88);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.before-after-card h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  color: var(--ink);
  font-size: 1.3rem;
}

/* Блок тепловизора */
.thermal {
  color: var(--light-on-dark);
  background: var(--dark);
}

.thermal-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.thermal-graphic {
  position: relative;
  display: grid;
  width: min(100%, 21rem);
  aspect-ratio: 1;
  place-items: center;
  margin-inline: auto;
}

.thermal-graphic svg {
  width: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.3;
  opacity: 0.9;
}

.thermal-graphic span {
  position: absolute;
  color: var(--light-on-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-align: center;
}

.eyebrow-light {
  color: var(--light-on-dark);
}

.eyebrow-light span {
  background: var(--yellow);
}

.thermal h2 {
  max-width: 12ch;
}

.thermal p {
  max-width: 45rem;
  color: color-mix(in srgb, var(--light-on-dark) 70%, transparent);
}

/* FAQ */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 1.5rem;
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 900;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 1.4rem;
  font-weight: 400;
  text-align: right;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 43rem;
  padding-bottom: 1.3rem;
  color: var(--muted);
}

/* Анкеты */
.request {
  background: var(--surface-alt);
}

.request-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.request-copy > p:not(.eyebrow) {
  max-width: 30rem;
  color: var(--muted);
}

.rustore-link {
  display: grid;
  width: fit-content;
  gap: 0.2rem;
  margin-top: 2.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--ink);
  font-weight: 900;
}

.rustore-link span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.rustore-link b {
  margin-left: 0.35rem;
}

.request-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0 0 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-step + .form-step {
  padding-top: 1.5rem;
}

.form-step:last-of-type {
  border-bottom: 0;
}

.form-step legend {
  width: 100%;
  padding: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.form-step legend span {
  margin-right: 0.55rem;
  color: var(--yellow-deep);
  font-size: 0.8rem;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.choice-grid button {
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.choice-grid button:hover,
.choice-grid button.is-selected {
  border-color: var(--yellow);
  color: #171815;
  background: var(--yellow);
}

.form-step.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 900;
}

.field b {
  color: var(--yellow-deep);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--yellow-deep);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.time-custom.is-hidden,
.is-hidden {
  display: none !important;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
}

.form-submit p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--yellow-deep);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-success {
  color: #227a2d;
}

/* Анкета-мастер для главной страницы */
.request-wizard {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.request-benefits {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.5rem 0.75rem;
  margin-top: 1.8rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.request-benefits span {
  color: var(--yellow-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.request-benefits p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-progress {
  margin-bottom: 1.7rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.form-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-progress-track {
  height: 0.35rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-alt);
}

.form-progress-track i {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.form-progress-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.65rem;
}

.form-progress-dots span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.68rem;
  font-weight: 900;
}

.form-progress-dots span.is-current,
.form-progress-dots span.is-done {
  border-color: var(--yellow);
  color: #171815;
  background: var(--yellow);
}

.wizard-step {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard-step.is-current {
  display: block;
  animation: wizard-show 0.25s ease;
}

@keyframes wizard-show {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step legend {
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.step-number {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--yellow-deep);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.step-help {
  max-width: 32rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.topic-cards button {
  min-height: 8.5rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topic-cards button:hover {
  transform: translateY(-2px);
}

.topic-cards button.is-selected {
  border-color: var(--dark);
  color: var(--light-on-dark);
  background: var(--dark);
}

.topic-icon {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.45rem;
  color: #171815;
  background: var(--yellow);
  font-size: 1rem;
  font-weight: 900;
}

.topic-cards strong,
.topic-cards small {
  display: block;
}

.topic-cards strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.topic-cards small {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.topic-cards button.is-selected small {
  color: color-mix(in srgb, var(--light-on-dark) 72%, transparent);
}

.field-large textarea {
  min-height: 8rem;
  font-size: 1rem;
}

.location-list {
  display: grid;
  gap: 0.5rem;
}

.location-list button {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.location-list button b {
  color: var(--yellow-deep);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.location-list button:hover b,
.location-list button.is-selected b {
  transform: translateX(0.2rem);
}

.location-list button.is-selected {
  border-color: var(--dark);
  color: var(--light-on-dark);
  background: var(--dark);
}

.call-time-block {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.call-time-title {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.time-chips button {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
}

.time-chips button.is-selected {
  border-color: var(--dark);
  color: var(--light-on-dark);
  background: var(--dark);
}

.form-review {
  margin-top: 1.25rem;
  padding: 0.9rem;
  border-radius: 0.55rem;
  background: var(--surface-alt);
}

.form-review span {
  display: block;
  color: var(--yellow-deep);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-review p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.wizard-actions .button {
  min-width: 9.1rem;
  min-height: 3rem;
}

.wizard-back {
  min-height: 2.7rem;
  padding: 0.5rem 0.3rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 800;
}

.wizard-actions-final {
  justify-content: space-between;
}

.form-submit-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Контакты и футер */
.contact-strip {
  color: var(--light-on-dark);
  background: var(--dark);
}

.contact-strip-inner {
  display: grid;
  min-height: 9rem;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 2rem;
  align-items: center;
}

.contact-strip-inner > div {
  display: grid;
  gap: 0.25rem;
}

.contact-strip-inner span {
  color: color-mix(in srgb, var(--light-on-dark) 55%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-strip-inner a:not(.button) {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.button-strip {
  color: #171815;
  background: var(--yellow);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner > a:last-child {
  font-size: 0.82rem;
  font-weight: 900;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-call,
.mobile-form {
  display: none;
}

/* Модальные окна */
.info-modal {
  width: min(calc(100% - 2rem), 35rem);
  padding: 2rem;
  border: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.3);
}

.info-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(0.2rem);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 1.5rem;
}

.modal-kicker {
  margin-bottom: 0.8rem;
  color: var(--yellow-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.info-modal h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.info-modal p {
  color: var(--muted);
}

.info-modal .modal-note {
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--yellow) 15%, var(--surface));
}

@media (max-width: 1050px) {
  .secondary-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-info-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav,
  .header-phone {
    display: none;
  }

  .hero-layout,
  .rule-layout,
  .thermal-layout,
  .faq-layout,
  .request-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 34rem;
  }

  .section-head-wide {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-grid,
  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-service-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .thermal-graphic {
    margin-left: 0;
  }

  .contact-strip-inner {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 0;
  }

  .contact-strip-inner .button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 4.5rem;
  }

  body {
    padding-bottom: calc(5.9rem + env(safe-area-inset-bottom));
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .header-inner {
    min-height: 4.25rem;
  }

  .button-header {
    display: none;
  }

  .section {
    padding: 4.2rem 0;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.7rem);
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.45;
  }

  .hero-info-cards {
    gap: 0.5rem;
    margin-top: 1.2rem;
  }

  .hero-info-card {
    position: relative;
    padding: 0.85rem 2.85rem 0.85rem 0.85rem;
    border-radius: 0.65rem;
  }

  .hero-info-card::after {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border-radius: 50%;
    color: var(--yellow-deep);
    background: var(--surface-alt);
    font-size: 0.85rem;
    font-weight: 900;
    content: "↗";
    transform: translateY(-50%);
  }

  .hero-info-card-accent::after {
    color: #171815;
    background: var(--yellow);
  }

  .hero-info-label {
    margin-bottom: 0.3rem;
    font-size: 0.55rem;
  }

  .hero-info-card strong {
    font-size: 1rem;
  }

  .hero-info-card p {
    margin-top: 0.3rem;
    font-size: 0.74rem;
    line-height: 1.27;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1.4rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .button-link {
    justify-content: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2.4rem;
  }

  .hero-metrics div {
    grid-template-columns: minmax(7.6rem, 42%) 1fr;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.7rem 0;
  }

  .hero-metrics strong {
    font-size: 1rem;
  }

  .hero-metrics span {
    font-size: 0.73rem;
  }

  .hero-panel {
    padding: 1.2rem;
    border-radius: 0.8rem;
  }

  .hero-panel h2 {
    margin: 2rem 0 0.65rem;
    font-size: 2rem;
  }

  .hero-panel p {
    font-size: 0.9rem;
  }

  .category-grid,
  .region-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 10.5rem;
  }

  .category-card svg {
    margin: auto 0 0.8rem;
  }

  .main-service-body,
  .education-card {
    padding: 1.1rem;
  }

  .main-service-body h3 {
    font-size: 1.5rem;
  }

  .secondary-service-grid,
  .before-after-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .before-after-card {
    border-radius: 0.75rem;
  }

  .before-after-photo span {
    top: 0.55rem;
    left: 0.55rem;
    font-size: 0.6rem;
  }

  .section-head {
    margin-bottom: 1.8rem;
  }

  .section-head-wide > p {
    font-size: 0.93rem;
  }

  .rule-layout,
  .faq-layout,
  .thermal-layout,
  .request-layout {
    gap: 2rem;
  }

  .rule-list article {
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
  }

  .price-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem;
  }

  .price-group summary {
    grid-template-columns: 2.2rem 1fr 1.2rem;
    gap: 0.6rem;
    padding: 1.2rem 0;
  }

  .price-count {
    display: none;
  }

  .price-list {
    padding-left: 0;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) 1.35rem auto;
    gap: 0.45rem;
  }

  .price-row strong {
    font-size: 0.92rem;
  }

  .price-row > span {
    font-size: 0.9rem;
  }

  .thermal-layout {
    gap: 2.5rem;
  }

  .thermal-graphic {
    max-width: 15rem;
  }

  .request-form,
  .request-wizard {
    padding: 1rem;
    box-shadow: none;
  }

  .request-benefits {
    grid-template-columns: 1.8rem 1fr;
    gap: 0.4rem 0.6rem;
    margin-top: 1.3rem;
    padding-top: 1rem;
  }

  .request-benefits p {
    font-size: 0.78rem;
  }

  .form-progress {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .wizard-step legend {
    font-size: 1.6rem;
  }

  .step-help {
    margin: 0.65rem 0 1rem;
    font-size: 0.84rem;
  }

  .topic-cards {
    gap: 0.45rem;
  }

  .topic-cards button {
    min-height: 7.55rem;
    padding: 0.65rem;
    border-radius: 0.55rem;
  }

  .topic-icon {
    width: 1.55rem;
    height: 1.55rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
  }

  .topic-cards strong {
    font-size: 0.82rem;
  }

  .topic-cards small {
    font-size: 0.59rem;
  }

  .location-list {
    gap: 0.45rem;
  }

  .location-list button {
    min-height: 3.1rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }

  .field-large textarea {
    min-height: 7rem;
  }

  .field {
    margin-top: 0.75rem;
  }

  .contact-fields {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .wizard-actions {
    margin-top: 1.1rem;
  }

  .wizard-actions .button {
    min-width: 8.2rem;
    min-height: 3rem;
  }

  .time-chips {
    gap: 0.4rem;
  }

  .time-chips button {
    min-height: 2.35rem;
    font-size: 0.72rem;
  }

  .contact-strip-inner {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 2rem 0;
  }

  .contact-strip-inner .button {
    grid-column: auto;
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem 0;
  }

  .footer-contacts {
    display: grid;
    gap: 0.45rem;
  }

  .mobile-call {
    position: fixed;
    z-index: 30;
    top: 0.7rem;
    right: 0.7rem;
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(23, 24, 21, 0.12);
    border-radius: 999px;
    color: #171815;
    background: var(--yellow);
    box-shadow: 0 0.45rem 1.3rem rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
    font-weight: 900;
  }

  /* Нижняя кнопка: плотное матовое стекло */
  .mobile-form {
    position: fixed;
    z-index: 9999;
    right: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    left: 0.65rem;
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 0.9rem;
    color: #fff;
    background: rgba(27, 28, 25, 0.9);
    box-shadow: 0 0.75rem 1.9rem rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    font-size: 0.92rem;
    font-weight: 900;
  }

  .mobile-form span {
    display: inline-grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border-radius: 50%;
    color: #171815;
    background: var(--yellow);
    font-size: 1rem;
  }

  .mobile-form:active {
    transform: scale(0.98);
  }

  .info-modal {
    width: min(calc(100% - 1.25rem), 35rem);
    max-height: 82vh;
    padding: 1.35rem 1rem;
    overflow-y: auto;
    border-radius: 0.85rem;
  }

  .info-modal h2 {
    margin-right: 2rem;
    font-size: 1.8rem;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  h1 {
    font-size: 3rem;
  }

  .topic-cards button {
    min-height: 7.1rem;
    padding: 0.55rem;
  }

  .topic-cards strong {
    font-size: 0.77rem;
  }

  .topic-cards small {
    font-size: 0.54rem;
  }

  .price-row > span,
  .price-row strong {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================
   ТЕПЛОВИЗОР — ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ
   Вставить в конец /Css/style.css
========================================= */

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--yellow-deep);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Первый экран тепловизора */
.thermal-hero {
  position: relative;
  overflow: hidden;
}

.thermal-hero::after {
  position: absolute;
  top: -180px;
  right: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid color-mix(in srgb, var(--yellow) 55%, transparent);
  border-radius: 50%;
  opacity: 0.35;
  pointer-events: none;
  content: "";
}

.thermal-hero .hero-copy,
.thermal-hero .hero-panel {
  position: relative;
  z-index: 1;
}

/* Тепловизор и прибор */
.thermal-device {
  background: var(--surface);
}

.thermal-device-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.thermal-device-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  box-shadow: var(--shadow);
}

.thermal-device-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: var(--surface);
}

.thermal-device-layout h2 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
}

.thermal-device-layout > div:last-child > p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.thermal-device-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--yellow);
  color: var(--ink);
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface-alt));
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Пример тепловизионной проверки */
.thermal-example {
  color: var(--light-on-dark);
  background: var(--dark);
}

.thermal-example-head > p {
  color: color-mix(in srgb, var(--light-on-dark) 72%, transparent);
}

.thermal-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.thermal-photo-pair article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--light-on-dark) 7%, transparent);
}

.thermal-photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: #0f100e;
}

.thermal-photo-pair h3 {
  margin: 1.15rem 1.2rem 0.55rem;
  color: var(--light-on-dark);
  font-size: 1.5rem;
}

.thermal-photo-pair p {
  margin: 0 1.2rem 1.2rem;
  color: color-mix(in srgb, var(--light-on-dark) 70%, transparent);
  font-size: 0.9rem;
  line-height: 1.45;
}

.thermal-status {
  display: block;
  width: fit-content;
  margin: 1rem 1rem 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.thermal-status-hot {
  color: #fff;
  background: #c0352b;
}

.thermal-status-normal {
  color: #10281c;
  background: #8fda67;
}

/* Короткие индикаторы под примерами */
.thermal-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.thermal-indicators article {
  min-height: 175px;
  padding: 1.35rem;
  background: color-mix(in srgb, var(--light-on-dark) 7%, transparent);
}

.thermal-indicators span {
  display: block;
  margin-bottom: 2rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
}

.thermal-indicators h3 {
  margin-bottom: 0.5rem;
  color: var(--light-on-dark);
  font-size: 1.25rem;
}

.thermal-indicators p {
  margin: 0;
  color: color-mix(in srgb, var(--light-on-dark) 70%, transparent);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Зимняя проверка */
.winter-section {
  color: var(--light-on-dark);
  background:
    radial-gradient(circle at 90% 0, rgba(245, 197, 24, 0.18), transparent 27%),
    var(--dark);
}

.winter-section .section-head-wide > p {
  color: color-mix(in srgb, var(--light-on-dark) 72%, transparent);
}

.winter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.winter-grid article {
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.winter-grid article > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin-bottom: 2.4rem;
  border-radius: 50%;
  color: #171815;
  background: var(--yellow);
  font-size: 1.25rem;
}

.winter-grid h3 {
  margin-bottom: 0.7rem;
  color: var(--light-on-dark);
  font-size: 1.4rem;
}

.winter-grid p {
  margin: 0;
  color: color-mix(in srgb, var(--light-on-dark) 72%, transparent);
  font-size: 0.92rem;
  line-height: 1.42;
}

.winter-electrical {
  margin-top: 1rem;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
}

.winter-electrical h3 {
  margin-bottom: 0.75rem;
  color: var(--yellow);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
}

.winter-electrical p {
  max-width: 900px;
  margin: 0;
  color: color-mix(in srgb, var(--light-on-dark) 80%, transparent);
  font-size: 1rem;
  line-height: 1.55;
}

/* Тарифы тепловизора */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tariff-card-new {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tariff-card-featured {
  position: relative;
  border-color: color-mix(in srgb, var(--yellow-deep) 45%, var(--line));
  background: color-mix(in srgb, var(--yellow) 12%, var(--surface));
}

.tariff-card-featured::before {
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 4rem;
  height: 3px;
  background: var(--yellow-deep);
  content: "";
}

.tariff-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #171815;
  background: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tariff-card-new h3,
.preparation-grid h3 {
  margin-bottom: 0.45rem;
  color: var(--yellow-deep);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.tariff-card-new > p {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.tariff-time {
  font-size: 0.9rem;
  font-weight: 800;
}

.tariff-card-new .check-list {
  margin: 1.1rem 0 1.6rem;
}

.tariff-card-new .button {
  width: 100%;
  margin-top: auto;
}

.extra-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.extra-work-grid article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-alt);
}

.extra-work-grid h3 {
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}

.extra-work-grid p {
  margin: 0;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.extra-work-grid p:first-of-type {
  border-top: 0;
}

/* Детальная проверка */
.detailed-check {
  background: var(--surface-alt);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.detail-grid article {
  min-height: 180px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-grid h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

/* Подготовка объекта */
.preparation {
  background: var(--surface);
}

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

.preparation-grid article {
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.preparation-grid .check-list {
  margin-top: 1.2rem;
}

.preparation-grid .check-list li {
  line-height: 1.45;
}

/* Выбранная услуга в анкете тепловизора */
.selected-service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--yellow-deep) 42%, var(--line));
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--yellow) 14%, var(--surface));
}

.selected-service-card .topic-icon {
  margin: 0;
}

.selected-service-card strong,
.selected-service-card small {
  display: block;
}

.selected-service-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.selected-service-card small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Адаптив тепловизора */
@media (max-width: 900px) {
  .thermal-device-layout {
    grid-template-columns: 1fr;
  }

  .thermal-device-photo {
    max-width: 38rem;
  }

  .thermal-photo-pair,
  .tariff-grid,
  .preparation-grid {
    grid-template-columns: 1fr;
  }

  .thermal-indicators,
  .winter-grid,
  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .breadcrumbs {
    margin-bottom: 1rem;
    font-size: 0.68rem;
  }

  .thermal-hero::after {
    top: -110px;
    right: -160px;
    width: 300px;
    height: 300px;
  }

  .thermal-device-photo img {
    aspect-ratio: 4 / 3;
  }

  .thermal-device-layout > div:last-child > p {
    font-size: 0.94rem;
  }

  .thermal-device-note {
    margin-top: 1rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.82rem;
  }

  .thermal-photo-pair,
  .tariff-grid,
  .preparation-grid,
  .winter-grid,
  .detail-grid,
  .thermal-indicators,
  .extra-work-grid {
    grid-template-columns: 1fr;
  }

  .thermal-photo-pair article {
    border-radius: 0.75rem;
  }

  .thermal-photo-pair h3 {
    margin: 0.9rem 1rem 0.45rem;
    font-size: 1.35rem;
  }

  .thermal-photo-pair p {
    margin: 0 1rem 1rem;
    font-size: 0.84rem;
  }

  .thermal-status {
    margin: 0.75rem 0.75rem 0;
    font-size: 0.62rem;
  }

  .thermal-indicators {
    gap: 0.5rem;
    border: 0;
    border-radius: 0;
  }

  .thermal-indicators article {
    min-height: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.65rem;
  }

  .thermal-indicators span {
    margin-bottom: 1rem;
  }

  .winter-grid article {
    min-height: 0;
    padding: 1.1rem;
    border-radius: 0.7rem;
  }

  .winter-grid article > span {
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 1.35rem;
  }

  .winter-grid h3 {
    font-size: 1.25rem;
  }

  .winter-grid p,
  .winter-electrical p {
    font-size: 0.86rem;
  }

  .winter-electrical {
    margin-top: 0.75rem;
    padding: 1.15rem;
    border-radius: 0.7rem;
  }

  .tariff-card-new,
  .preparation-grid article,
  .detail-grid article {
    padding: 1.15rem;
    border-radius: 0.75rem;
  }

  .tariff-card-new h3,
  .preparation-grid h3 {
    font-size: 2.35rem;
  }

  .extra-work-grid article {
    padding: 1rem;
    border-radius: 0.65rem;
  }

  .extra-work-grid p {
    font-size: 0.78rem;
  }

  .selected-service-card {
    gap: 0.65rem;
    padding: 0.8rem;
  }
}
/* ========================================================================== 
   SERVICE PAGES — ROOF, HEATING, WATER
   Add this block at the end of /Css/style.css
   ========================================================================== */

/* Shared service-page components */
.water-hero,
.heating-hero,
.roof-hero {
  position: relative;
  overflow: hidden;
}

.water-hero::before,
.heating-hero::before,
.roof-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
}

.water-hero::before {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 201, 31, .26) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 39%, rgba(255, 255, 255, .12) 0 1px, transparent 2px),
    linear-gradient(120deg, transparent 0 52%, rgba(255, 255, 255, .04) 52% 52.4%, transparent 52.4%);
  background-size: 115px 115px, 77px 77px, auto;
}

.heating-hero::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 119, 33, .26) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 36%, rgba(255, 201, 31, .19) 0 2px, transparent 3px),
    radial-gradient(circle at 71% 65%, rgba(255, 255, 255, .09) 0 1px, transparent 2px);
  background-size: 116px 116px, 86px 86px, 64px 64px;
}

.roof-hero::before {
  background:
    repeating-linear-gradient(145deg, transparent 0 34px, rgba(255, 255, 255, .05) 35px 36px, transparent 37px 70px),
    linear-gradient(135deg, transparent 0 56%, rgba(255, 201, 31, .10) 56% 56.6%, transparent 56.6%);
}

.water-hero .hero-layout,
.heating-hero .hero-layout,
.roof-hero .hero-layout {
  position: relative;
  z-index: 1;
}

.water-category-grid,
.heating-category-grid,
.roof-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 20px;
  background: var(--surface, #fff);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .06);
  color: var(--text, #1a1a1a);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 201, 31, .9);
  box-shadow: 0 22px 44px rgba(16, 24, 40, .11);
}

.service-card-index {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 34px;
  color: var(--accent, #ffc91f);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
}

.service-card-index::before {
  content: "—";
  margin-right: 8px;
}

.service-card h3 {
  max-width: 19ch;
  margin: 0 0 13px;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.32rem, 2vw, 1.72rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.service-card > p {
  margin: 0 0 20px;
  color: var(--muted, #62666b);
  font-size: .96rem;
  line-height: 1.62;
}

.service-card .check-list {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line, #e3e5e7);
}

.service-card .check-list li {
  font-size: .89rem;
}

.service-price {
  display: block;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line, #e3e5e7);
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: 1.23rem;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.service-card-grid-dark .service-card {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
  color: #fff;
}

.service-card-grid-dark .service-card:hover {
  border-color: var(--accent, #ffc91f);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .2);
}

.service-card-grid-dark .service-card > p,
.service-card-grid-dark .check-list li {
  color: rgba(255, 255, 255, .75);
}

.service-card-grid-dark .service-card .check-list,
.service-card-grid-dark .service-price {
  border-color: rgba(255, 255, 255, .15);
}

.service-card-grid-dark .service-price {
  color: #fff;
}

/* Water page */
.water-services,
.plumbing-section,
.roof-services,
.roof-insulation,
.heating-services {
  background: var(--bg, #f6f6f3);
}

.plumbing-section {
  background: var(--surface, #fff);
}

.pump-section,
.heating-terms,
.roof-problem {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.pump-section::before,
.heating-terms::before,
.roof-problem::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(130deg, transparent 0 58%, rgba(255, 201, 31, .10) 58% 58.3%, transparent 58.3%),
    radial-gradient(circle at 85% 22%, rgba(255, 201, 31, .18) 0 2px, transparent 3px);
  background-size: auto, 100px 100px;
}

.pump-section .container,
.heating-terms .container,
.roof-problem .container {
  position: relative;
  z-index: 1;
}

.pump-section .section-head h2,
.heating-terms .section-head h2,
.roof-problem h2 {
  color: #fff;
}

.pump-section .section-head > p,
.heating-terms .section-head > p {
  color: rgba(255, 255, 255, .7);
}

.water-thermal,
.heating-thermal,
.roof-thermal {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.water-thermal::before,
.heating-thermal::before,
.roof-thermal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 87% 16%, rgba(255, 201, 31, .25) 0 2px, transparent 3px),
    linear-gradient(130deg, transparent 0 59%, rgba(255, 255, 255, .05) 59% 59.25%, transparent 59.25%);
  background-size: 92px 92px, auto;
}

.water-thermal-layout,
.heating-thermal-layout,
.roof-thermal-layout,
.roof-problem-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
}

.water-thermal h2,
.heating-thermal h2,
.roof-thermal h2,
.roof-problem h2 {
  max-width: 11ch;
  margin: 0 0 20px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.water-thermal-layout > div:first-child > p:not(.eyebrow),
.heating-thermal-layout > div:first-child > p:not(.eyebrow),
.roof-thermal-layout > div:first-child > p:not(.eyebrow),
.roof-problem-layout > div:first-child > p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.68;
}

.water-thermal .button,
.heating-thermal .button,
.roof-thermal .button {
  margin-top: 12px;
}

.thermal-check-card,
.roof-problem-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .2);
}

.thermal-check-card-label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent, #ffc91f);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.thermal-check-card > strong,
.roof-problem-card > strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.thermal-check-card > p,
.roof-problem-card > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.62;
}

.thermal-check-card .check-list,
.roof-problem-card .check-list {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.thermal-check-card .check-list li,
.roof-problem-card .check-list li {
  color: rgba(255, 255, 255, .82);
}

.work-terms {
  background: var(--bg, #f6f6f3);
}

.work-terms .detail-grid,
.object-examples .detail-grid,
.heating-detail-grid {
  margin-top: 0;
}

/* Heating page */
.heating-services {
  background: var(--surface, #fff);
}

.heating-terms .detail-grid article {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
}

.heating-terms .detail-grid article h3 {
  color: #fff;
}

.heating-terms .detail-grid article p {
  color: rgba(255, 255, 255, .72);
}

.object-examples {
  background: var(--surface, #fff);
}

/* Roof page */
.roof-problem-card {
  background: rgba(255, 255, 255, .09);
}

.roof-insulation {
  background: var(--surface, #fff);
}

/* Price accordions for all three pages */
.water-price-list,
.heating-price-list,
.roof-price-list {
  width: min(100%, 980px);
  margin: 0 auto;
}

.water-price-list details,
.heating-price-list details,
.roof-price-list details {
  overflow: hidden;
  border-top: 1px solid var(--line, #e3e5e7);
}

.water-price-list details:last-child,
.heating-price-list details:last-child,
.roof-price-list details:last-child {
  border-bottom: 1px solid var(--line, #e3e5e7);
}

.water-price-list summary,
.heating-price-list summary,
.roof-price-list summary {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 25px 2px;
  cursor: pointer;
  list-style: none;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.52rem);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.water-price-list summary::-webkit-details-marker,
.heating-price-list summary::-webkit-details-marker,
.roof-price-list summary::-webkit-details-marker {
  display: none;
}

.water-price-list summary > span,
.heating-price-list summary > span,
.roof-price-list summary > span {
  color: var(--accent, #ffc91f);
  font-family: "Satoshi", sans-serif;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.water-price-list summary > b,
.heating-price-list summary > b,
.roof-price-list summary > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--text, #1a1a1a);
  color: var(--surface, #fff);
  font-family: "Satoshi", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .2s ease, background .2s ease;
}

.water-price-list details[open] summary > b,
.heating-price-list details[open] summary > b,
.roof-price-list details[open] summary > b {
  transform: rotate(45deg);
  background: var(--accent, #ffc91f);
  color: #17191d;
}

.price-rows {
  padding: 0 0 24px 60px;
}

.price-rows p {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line, #e3e5e7);
  color: var(--muted, #62666b);
  font-size: .94rem;
  line-height: 1.42;
}

.price-rows p strong {
  flex: 0 0 auto;
  color: var(--text, #1a1a1a);
  font-size: .96rem;
  text-align: right;
}

/* Dark mode fallback for the new components */
[data-theme="dark"] .water-services,
[data-theme="dark"] .plumbing-section,
[data-theme="dark"] .heating-services,
[data-theme="dark"] .roof-services,
[data-theme="dark"] .roof-insulation,
[data-theme="dark"] .work-terms,
[data-theme="dark"] .object-examples {
  background: var(--bg, #101114);
}

[data-theme="dark"] .service-card {
  border-color: rgba(255, 255, 255, .12);
  background: var(--surface, #1a1c20);
  box-shadow: none;
}

[data-theme="dark"] .service-card > p,
[data-theme="dark"] .price-rows p {
  color: var(--muted, #adb0b6);
}

[data-theme="dark"] .service-price,
[data-theme="dark"] .price-rows p strong {
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .service-card .check-list,
[data-theme="dark"] .service-price,
[data-theme="dark"] .water-price-list details,
[data-theme="dark"] .heating-price-list details,
[data-theme="dark"] .roof-price-list details,
[data-theme="dark"] .price-rows p {
  border-color: rgba(255, 255, 255, .12);
}

[data-theme="dark"] .water-price-list summary > b,
[data-theme="dark"] .heating-price-list summary > b,
[data-theme="dark"] .roof-price-list summary > b {
  background: #f4f4f0;
  color: #17191d;
}

/* Responsive */
@media (max-width: 980px) {
  .water-category-grid,
  .heating-category-grid,
  .roof-category-grid,
  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .water-thermal-layout,
  .heating-thermal-layout,
  .roof-thermal-layout,
  .roof-problem-layout {
    grid-template-columns: 1fr;
  }

  .thermal-check-card,
  .roof-problem-card {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .water-category-grid,
  .heating-category-grid,
  .roof-category-grid,
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 24px 21px;
    border-radius: 17px;
  }

  .service-card-index {
    margin-bottom: 25px;
  }

  .water-thermal h2,
  .heating-thermal h2,
  .roof-thermal h2,
  .roof-problem h2 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .thermal-check-card,
  .roof-problem-card {
    padding: 25px 21px;
    border-radius: 18px;
  }

  .water-price-list summary,
  .heating-price-list summary,
  .roof-price-list summary {
    grid-template-columns: 31px 1fr 22px;
    gap: 9px;
    padding: 21px 0;
    font-size: 1.12rem;
  }

  .price-rows {
    padding-left: 0;
  }

  .price-rows p {
    flex-direction: column;
    gap: 5px;
    padding: 14px 0;
  }

  .price-rows p strong {
    text-align: left;
  }
}
/* ========================================================================== 
   CARCASS EXTENSION PAGE
   Add this block at the end of /Css/style.css
   ========================================================================== */

.extension-hero {
  position: relative;
  overflow: hidden;
}

.extension-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(151deg, transparent 0 52%, rgba(255, 201, 31, .11) 52% 52.28%, transparent 52.28%),
    repeating-linear-gradient(31deg, transparent 0 56px, rgba(255, 255, 255, .045) 57px 58px, transparent 59px 112px),
    radial-gradient(circle at 79% 17%, rgba(255, 201, 31, .22) 0 2px, transparent 3px);
  background-size: auto, auto, 96px 96px;
}

.extension-hero .hero-layout {
  position: relative;
  z-index: 1;
}

.extension-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extension-services {
  background: var(--bg, #f6f6f3);
}

.extension-prices {
  background: var(--surface, #fff);
}

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

.extension-price-card {
  position: relative;
  min-height: 100%;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 20px;
  background: var(--bg, #f6f6f3);
  color: var(--text, #1a1a1a);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .05);
}

.extension-price-card > span {
  display: block;
  margin-bottom: 25px;
  color: var(--muted, #62666b);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.extension-price-card > strong {
  display: block;
  margin-bottom: 17px;
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.06em;
}

.extension-price-card h3 {
  margin: 0 0 10px;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.extension-price-card p {
  margin: 0;
  color: var(--muted, #62666b);
  font-size: .93rem;
  line-height: 1.63;
}

.extension-price-card-featured {
  overflow: hidden;
  border-color: #17191d;
  background: #17191d;
  box-shadow: 0 24px 50px rgba(23, 25, 29, .2);
}

.extension-price-card-featured::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -82px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 201, 31, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 201, 31, .06), 0 0 0 56px rgba(255, 201, 31, .04);
  pointer-events: none;
}

.extension-price-card-featured > span {
  color: var(--accent, #ffc91f);
}

.extension-price-card-featured > strong,
.extension-price-card-featured h3 {
  position: relative;
  z-index: 1;
  color: #fff;
}

.extension-price-card-featured p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .7);
}

.extension-types {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.extension-types::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(124deg, transparent 0 56%, rgba(255, 201, 31, .09) 56% 56.3%, transparent 56.3%),
    radial-gradient(circle at 88% 18%, rgba(255, 201, 31, .2) 0 2px, transparent 3px);
  background-size: auto, 100px 100px;
}

.extension-types .container {
  position: relative;
  z-index: 1;
}

.extension-types .section-head h2 {
  color: #fff;
}

.extension-types .section-head > p {
  color: rgba(255, 255, 255, .72);
}

.extension-detail-grid article {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
}

.extension-detail-grid article h3 {
  color: #fff;
}

.extension-detail-grid article p {
  color: rgba(255, 255, 255, .72);
}

.extension-technology {
  background: var(--surface, #fff);
}

.extension-feature-list {
  display: grid;
  gap: 16px;
}

.extension-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, .78fr);
  gap: clamp(22px, 5vw, 74px);
  align-items: center;
  padding: clamp(23px, 4vw, 42px);
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 22px;
  background: var(--bg, #f6f6f3);
  box-shadow: 0 13px 30px rgba(16, 24, 40, .04);
}

.extension-feature:nth-child(even) {
  grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
}

.extension-feature:nth-child(even) > div {
  order: 2;
}

.extension-feature:nth-child(even) img {
  order: 1;
}

.feature-index {
  display: block;
  margin-bottom: 29px;
  color: var(--accent, #ffc91f);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
}

.feature-index::before {
  content: "—";
  margin-right: 8px;
}

.extension-feature h3 {
  max-width: 18ch;
  margin: 0 0 13px;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.extension-feature p {
  max-width: 56ch;
  margin: 0;
  color: var(--muted, #62666b);
  line-height: 1.68;
}

.extension-feature img {
  display: block;
  width: 100%;
  min-height: 228px;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(16, 24, 40, .15);
}

.extension-process {
  background: var(--bg, #f6f6f3);
}

[data-theme="dark"] .extension-services,
[data-theme="dark"] .extension-prices,
[data-theme="dark"] .extension-technology,
[data-theme="dark"] .extension-process {
  background: var(--bg, #101114);
}

[data-theme="dark"] .extension-price-card,
[data-theme="dark"] .extension-feature {
  border-color: rgba(255, 255, 255, .12);
  background: var(--surface, #1a1c20);
  box-shadow: none;
}

[data-theme="dark"] .extension-price-card > strong,
[data-theme="dark"] .extension-price-card h3 {
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .extension-price-card p,
[data-theme="dark"] .extension-feature p {
  color: var(--muted, #adb0b6);
}

[data-theme="dark"] .extension-price-card-featured {
  border-color: #000;
  background: #000;
}

[data-theme="dark"] .extension-price-card-featured > strong,
[data-theme="dark"] .extension-price-card-featured h3 {
  color: #fff;
}

[data-theme="dark"] .extension-price-card-featured p {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 980px) {
  .extension-category-grid,
  .extension-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extension-price-card-featured {
    grid-column: span 2;
  }

  .extension-feature,
  .extension-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .extension-feature:nth-child(even) > div,
  .extension-feature:nth-child(even) img {
    order: initial;
  }
}

@media (max-width: 640px) {
  .extension-category-grid,
  .extension-price-grid {
    grid-template-columns: 1fr;
  }

  .extension-price-card-featured {
    grid-column: auto;
  }

  .extension-price-card {
    padding: 25px 21px;
    border-radius: 17px;
  }

  .extension-price-card > span {
    margin-bottom: 20px;
  }

  .extension-feature {
    gap: 23px;
    padding: 22px 20px 20px;
    border-radius: 17px;
  }

  .feature-index {
    margin-bottom: 22px;
  }

  .extension-feature h3 {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
  }

  .extension-feature img {
    min-height: 0;
    border-radius: 12px;
  }
}
/* ========================================================================== 
   BALCONY / PVC-MDF PANELS PAGE
   Add this block at the end of /Css/style.css
   ========================================================================== */

.balcony-hero {
  position: relative;
  overflow: hidden;
}

.balcony-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(142deg, transparent 0 57%, rgba(255, 201, 31, .11) 57% 57.28%, transparent 57.28%),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(255, 255, 255, .04) 38px 39px, transparent 40px 78px),
    radial-gradient(circle at 79% 18%, rgba(255, 201, 31, .22) 0 2px, transparent 3px);
  background-size: auto, auto, 94px 94px;
}

.balcony-hero .hero-layout {
  position: relative;
  z-index: 1;
}

.balcony-notice {
  padding-top: clamp(28px, 4vw, 58px);
  padding-bottom: 0;
  background: var(--bg, #f6f6f3);
}

.balcony-notice-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 58px);
  align-items: start;
  padding: clamp(22px, 3vw, 31px);
  border: 1px solid rgba(255, 201, 31, .56);
  border-radius: 18px;
  background: #fff7dc;
  color: #1d1e21;
}

.balcony-notice-index {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent, #ffc91f);
  color: #17191d;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.balcony-notice p {
  max-width: 78ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
}

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

.balcony-price-card {
  position: relative;
  min-height: 100%;
  padding: clamp(25px, 3vw, 34px);
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 20px;
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  box-shadow: 0 14px 36px rgba(16, 24, 40, .05);
}

.balcony-price-card > span {
  display: block;
  margin-bottom: 25px;
  color: var(--muted, #62666b);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.balcony-price-card > strong {
  display: block;
  margin-bottom: 17px;
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 800;
  line-height: .93;
  letter-spacing: -.06em;
}

.balcony-price-card h3 {
  margin: 0 0 10px;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: 1.15rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.balcony-price-card p {
  margin: 0;
  color: var(--muted, #62666b);
  font-size: .93rem;
  line-height: 1.63;
}

.balcony-price-card-featured {
  overflow: hidden;
  border-color: #17191d;
  background: #17191d;
  box-shadow: 0 24px 50px rgba(23, 25, 29, .2);
}

.balcony-price-card-featured::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -72px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 201, 31, .3);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 201, 31, .06), 0 0 0 60px rgba(255, 201, 31, .035);
  pointer-events: none;
}

.balcony-price-card-featured > span {
  color: var(--accent, #ffc91f);
}

.balcony-price-card-featured > strong,
.balcony-price-card-featured h3,
.balcony-price-card-featured p {
  position: relative;
  z-index: 1;
}

.balcony-price-card-featured > strong,
.balcony-price-card-featured h3 {
  color: #fff;
}

.balcony-price-card-featured p {
  color: rgba(255, 255, 255, .7);
}

.balcony-services {
  background: var(--bg, #f6f6f3);
}

.balcony-heat,
.balcony-thermal {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.balcony-heat::before,
.balcony-thermal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 201, 31, .24) 0 2px, transparent 3px),
    linear-gradient(130deg, transparent 0 59%, rgba(255, 255, 255, .05) 59% 59.25%, transparent 59.25%);
  background-size: 94px 94px, auto;
}

.balcony-heat-layout,
.balcony-thermal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: center;
}

.balcony-heat h2,
.balcony-thermal h2 {
  max-width: 11ch;
  margin: 0 0 20px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.balcony-heat-layout > div:first-child > p:not(.eyebrow),
.balcony-thermal-layout > div:first-child > p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.68;
}

.balcony-heat-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .2);
}

.balcony-heat-card > strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.balcony-heat-card > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.62;
}

.balcony-heat-card .check-list {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.balcony-heat-card .check-list li {
  color: rgba(255, 255, 255, .82);
}

.panel-rooms {
  background: var(--surface, #fff);
}

[data-theme="dark"] .balcony-notice,
[data-theme="dark"] .balcony-services,
[data-theme="dark"] .panel-rooms {
  background: var(--bg, #101114);
}

[data-theme="dark"] .balcony-notice-inner {
  border-color: rgba(255, 201, 31, .35);
  background: rgba(255, 201, 31, .11);
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .balcony-price-card {
  border-color: rgba(255, 255, 255, .12);
  background: var(--surface, #1a1c20);
  box-shadow: none;
}

[data-theme="dark"] .balcony-price-card > strong,
[data-theme="dark"] .balcony-price-card h3 {
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .balcony-price-card p {
  color: var(--muted, #adb0b6);
}

[data-theme="dark"] .balcony-price-card-featured {
  border-color: #000;
  background: #000;
}

[data-theme="dark"] .balcony-price-card-featured > strong,
[data-theme="dark"] .balcony-price-card-featured h3 {
  color: #fff;
}

[data-theme="dark"] .balcony-price-card-featured p {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 980px) {
  .balcony-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balcony-price-card-featured {
    grid-column: span 2;
  }

  .balcony-heat-layout,
  .balcony-thermal-layout {
    grid-template-columns: 1fr;
  }

  .balcony-heat-card,
  .balcony-thermal .thermal-check-card {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .balcony-notice {
    padding-top: 26px;
  }

  .balcony-notice-inner {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 20px;
    border-radius: 15px;
  }

  .balcony-price-grid {
    grid-template-columns: 1fr;
  }

  .balcony-price-card-featured {
    grid-column: auto;
  }

  .balcony-price-card {
    padding: 25px 21px;
    border-radius: 17px;
  }

  .balcony-price-card > span {
    margin-bottom: 20px;
  }

  .balcony-heat h2,
  .balcony-thermal h2 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .balcony-heat-card {
    padding: 25px 21px;
    border-radius: 18px;
  }
}
.error-page {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
  background: var(--bg, #f6f6f3);
}

.error-page-inner {
  max-width: 900px;
  padding-top: clamp(70px, 12vw, 150px);
  padding-bottom: clamp(70px, 12vw, 150px);
  text-align: center;
}

.error-page h1 {
  margin: 18px 0;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.error-page h1 em {
  color: var(--accent, #ffc91f);
  font-style: normal;
}

.error-page .hero-lead {
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
}

.error-page .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.error-service-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 850px;
  margin: 55px auto 0;
}

.error-service-links a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 999px;
  color: var(--text, #1a1a1a);
  background: var(--surface, #fff);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.error-service-links a:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #ffc91f);
}

.error-service-links span {
  color: var(--accent, #ffc91f);
}

[data-theme="dark"] .error-page {
  background: var(--bg, #101114);
}

[data-theme="dark"] .error-service-links a {
  border-color: rgba(255, 255, 255, 0.13);
  background: var(--surface, #1a1c20);
  color: var(--text, #f4f4f0);
}

@media (max-width: 640px) {
  .error-page {
    min-height: auto;
  }

  .error-page-inner {
    padding-top: 110px;
    padding-bottom: 115px;
  }

  .error-service-links {
    gap: 7px;
    margin-top: 38px;
  }

  .error-service-links a {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}
/* ========================================================================== 
   THERMAL ARTICLE — BLOG: HEATING OF CIRCUIT BREAKERS AND OUTLETS
   Add this complete block at the end of /Css/style.css
   ========================================================================== */

.thermal-article {
  background: var(--surface, #fff);
}

.thermal-article-hero {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.thermal-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 81% 17%, rgba(255, 201, 31, .25) 0 2px, transparent 3px),
    radial-gradient(circle at 91% 35%, rgba(255, 255, 255, .10) 0 1px, transparent 2px),
    linear-gradient(132deg, transparent 0 55%, rgba(255, 201, 31, .10) 55% 55.28%, transparent 55.28%);
  background-size: 102px 102px, 69px 69px, auto;
}

.thermal-article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1010px;
}

.thermal-article-hero .breadcrumbs {
  margin-bottom: clamp(42px, 7vw, 80px);
}

.thermal-article-hero .breadcrumbs,
.thermal-article-hero .breadcrumbs a {
  color: rgba(255, 255, 255, .68);
}

.thermal-article-hero .breadcrumbs a:hover {
  color: var(--accent, #ffc91f);
}

.thermal-article-hero h1 {
  max-width: 12ch;
  margin: 18px 0 23px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(3.1rem, 7.1vw, 6.75rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.085em;
}

.thermal-article-hero h1 em {
  color: var(--accent, #ffc91f);
  font-style: normal;
}

.thermal-article-lead {
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1.03rem, 1.55vw, 1.25rem);
  line-height: 1.62;
}

.thermal-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 29px 0;
}

.thermal-article-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  color: rgba(255, 255, 255, .75);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

.thermal-article-hero .hero-actions {
  justify-content: flex-start;
}

.thermal-article-hero .button-link {
  color: #fff;
}

.thermal-article-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 730px);
  gap: clamp(34px, 7vw, 108px);
  max-width: 1160px;
  padding-top: clamp(55px, 8vw, 104px);
  padding-bottom: clamp(55px, 8vw, 104px);
}

.thermal-article-nav {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 19px 0 20px;
  border-top: 2px solid var(--accent, #ffc91f);
  border-bottom: 1px solid var(--line, #e3e5e7);
}

.thermal-article-nav > span {
  display: block;
  margin-bottom: 14px;
  color: var(--text, #1a1a1a);
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.thermal-article-nav a {
  display: block;
  padding: 8px 0;
  color: var(--muted, #62666b);
  font-size: .84rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.thermal-article-nav a:hover {
  transform: translateX(4px);
  color: var(--text, #1a1a1a);
}

.thermal-article-content section + section {
  margin-top: clamp(50px, 7vw, 82px);
}

.thermal-article-content h2 {
  max-width: 16ch;
  margin: 0 0 20px;
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.065em;
}

.thermal-article-content > section > p {
  max-width: 66ch;
  margin: 0 0 15px;
  color: var(--muted, #62666b);
  font-size: 1rem;
  line-height: 1.74;
}

.thermal-article-callout {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 31px 0 0;
  padding: 22px;
  border: 1px solid rgba(255, 201, 31, .55);
  border-radius: 16px;
  background: #fff7dc;
}

.thermal-article-callout > span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--accent, #ffc91f);
  color: #17191d;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}

.thermal-article-callout p {
  margin: 0;
  color: #26211a;
  line-height: 1.62;
}

.thermal-article-callout-dark {
  border-color: #17191d;
  background: #17191d;
}

.thermal-article-callout-dark > span {
  background: var(--accent, #ffc91f);
}

.thermal-article-callout-dark p {
  color: rgba(255, 255, 255, .76);
}

.thermal-article-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 29px;
}

.thermal-article-steps article,
.thermal-article-grid article {
  padding: 22px 19px;
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 16px;
  background: var(--bg, #f6f6f3);
}

.thermal-article-steps article > span {
  display: block;
  margin-bottom: 25px;
  color: var(--accent, #ffc91f);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
}

.thermal-article-steps h3,
.thermal-article-grid h3,
.thermal-article-related h3 {
  margin: 0 0 10px;
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -.035em;
}

.thermal-article-steps p,
.thermal-article-grid p {
  margin: 0;
  color: var(--muted, #62666b);
  font-size: .9rem;
  line-height: 1.58;
}

.thermal-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 27px;
}

.thermal-article-list,
.thermal-article-numbered {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.thermal-article-list li {
  position: relative;
  padding: 0 0 0 22px;
  color: var(--muted, #62666b);
  line-height: 1.58;
}

.thermal-article-list li::before {
  content: "×";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent, #ffc91f);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
}

.thermal-article-numbered {
  counter-reset: thermal-steps;
}

.thermal-article-numbered li {
  position: relative;
  min-height: 50px;
  padding: 2px 0 0 66px;
  color: var(--muted, #62666b);
  line-height: 1.62;
}

.thermal-article-numbered li::before {
  counter-increment: thermal-steps;
  content: "0" counter(thermal-steps);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent, #ffc91f);
  color: #17191d;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.thermal-article-numbered strong {
  color: var(--text, #1a1a1a);
}

.thermal-article-related {
  margin-top: clamp(50px, 7vw, 82px);
  padding: clamp(25px, 4vw, 37px);
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 19px;
  background: var(--bg, #f6f6f3);
}

.thermal-article-related > span {
  display: block;
  margin-bottom: 23px;
  color: var(--accent, #ffc91f);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.thermal-article-related h3 {
  max-width: 23ch;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.thermal-article-related p {
  max-width: 62ch;
  margin: 0 0 19px;
  color: var(--muted, #62666b);
  line-height: 1.65;
}

.thermal-article-tariffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 29px 0;
}

.thermal-article-tariffs article {
  min-height: 100%;
  padding: 22px 19px;
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 16px;
  background: var(--surface, #fff);
}

.thermal-article-tariffs article > span {
  display: block;
  min-height: 31px;
  margin-bottom: 18px;
  color: var(--muted, #62666b);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.thermal-article-tariffs strong {
  display: block;
  margin-bottom: 15px;
  color: var(--text, #1a1a1a);
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: .94;
  letter-spacing: -.055em;
}

.thermal-article-tariffs p {
  margin: 0;
  color: var(--muted, #62666b);
  font-size: .88rem;
  line-height: 1.6;
}

.thermal-article-next {
  position: relative;
  overflow: hidden;
  background: #17191d;
  color: #fff;
}

.thermal-article-next::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 89% 18%, rgba(255, 201, 31, .24) 0 2px, transparent 3px),
    linear-gradient(130deg, transparent 0 60%, rgba(255, 255, 255, .05) 60% 60.3%, transparent 60.3%);
  background-size: 100px 100px, auto;
}

.thermal-article-next-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
}

.thermal-article-next h2 {
  max-width: 13ch;
  margin: 0 0 15px;
  color: #fff;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: .93;
  letter-spacing: -.065em;
}

.thermal-article-next p:not(.eyebrow) {
  max-width: 63ch;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.64;
}

.thermal-article-next .button {
  flex: 0 0 auto;
}

[data-theme="dark"] .thermal-article {
  background: var(--bg, #101114);
}

[data-theme="dark"] .thermal-article-nav {
  border-bottom-color: rgba(255, 255, 255, .12);
}

[data-theme="dark"] .thermal-article-nav > span,
[data-theme="dark"] .thermal-article-content h2,
[data-theme="dark"] .thermal-article-steps h3,
[data-theme="dark"] .thermal-article-grid h3,
[data-theme="dark"] .thermal-article-related h3,
[data-theme="dark"] .thermal-article-tariffs strong,
[data-theme="dark"] .thermal-article-numbered strong {
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .thermal-article-nav a,
[data-theme="dark"] .thermal-article-content > section > p,
[data-theme="dark"] .thermal-article-steps p,
[data-theme="dark"] .thermal-article-grid p,
[data-theme="dark"] .thermal-article-list li,
[data-theme="dark"] .thermal-article-numbered li,
[data-theme="dark"] .thermal-article-related p,
[data-theme="dark"] .thermal-article-tariffs p {
  color: var(--muted, #adb0b6);
}

[data-theme="dark"] .thermal-article-steps article,
[data-theme="dark"] .thermal-article-grid article,
[data-theme="dark"] .thermal-article-related,
[data-theme="dark"] .thermal-article-tariffs article {
  border-color: rgba(255, 255, 255, .12);
  background: var(--surface, #1a1c20);
}

[data-theme="dark"] .thermal-article-callout {
  border-color: rgba(255, 201, 31, .42);
  background: rgba(255, 201, 31, .11);
}

[data-theme="dark"] .thermal-article-callout p {
  color: var(--text, #f4f4f0);
}

[data-theme="dark"] .thermal-article-callout-dark {
  border-color: #000;
  background: #000;
}

[data-theme="dark"] .thermal-article-callout-dark p {
  color: rgba(255, 255, 255, .76);
}

@media (max-width: 980px) {
  .thermal-article-layout {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .thermal-article-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 15px 0 17px;
  }

  .thermal-article-nav > span {
    width: 100%;
    margin-bottom: 5px;
  }

  .thermal-article-nav a {
    padding: 4px 0;
  }

  .thermal-article-steps,
  .thermal-article-tariffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thermal-article-tariffs article:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .thermal-article-hero h1 {
    font-size: clamp(3rem, 15vw, 4.35rem);
    line-height: .87;
  }

  .thermal-article-hero .breadcrumbs {
    margin-bottom: 42px;
  }

  .thermal-article-meta {
    margin: 24px 0;
  }

  .thermal-article-hero .hero-actions {
    align-items: flex-start;
  }

  .thermal-article-layout {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .thermal-article-content h2 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .thermal-article-callout {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 19px;
    border-radius: 14px;
  }

  .thermal-article-steps,
  .thermal-article-grid,
  .thermal-article-tariffs {
    grid-template-columns: 1fr;
  }

  .thermal-article-tariffs article:last-child {
    grid-column: auto;
  }

  .thermal-article-steps article,
  .thermal-article-grid article,
  .thermal-article-tariffs article {
    padding: 20px 18px;
  }

  .thermal-article-numbered li {
    padding-left: 58px;
  }

  .thermal-article-numbered li::before {
    width: 40px;
    height: 40px;
  }

  .thermal-article-related {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .thermal-article-next-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .thermal-article-next .button {
    width: 100%;
  }
}
.article-promo {
  background: var(--bg, #f6f6f3);
}

.article-promo-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line, #e3e5e7);
  border-radius: 22px;
  background: var(--surface, #fff);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.06);
}

.article-promo h2 {
  max-width: 15ch;
  margin: 0 0 16px;
  font-family: "Cabinet Grotesk", "Satoshi", sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.article-promo p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted, #62666b);
  line-height: 1.65;
}

.article-promo-link {
  display: inline-flex;
  min-width: 184px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 999px;
  background: var(--text, #1a1a1a);
  color: var(--surface, #fff);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.article-promo-link:hover {
  transform: translateY(-3px);
  background: var(--accent, #ffc91f);
  color: #17191d;
}

.article-promo-link b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent, #ffc91f);
  color: #17191d;
  font-size: 1rem;
}

.article-promo-link:hover b {
  background: #17191d;
  color: #fff;
}

[data-theme="dark"] .article-promo {
  background: var(--bg, #101114);
}

[data-theme="dark"] .article-promo-inner {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--surface, #1a1c20);
  box-shadow: none;
}

[data-theme="dark"] .article-promo-link {
  background: #f4f4f0;
  color: #17191d;
}

@media (max-width: 640px) {
  .article-promo-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 25px 21px;
    border-radius: 17px;
  }

  .article-promo-link {
    width: 100%;
  }
}

/* Единые компактные адаптивные правила */
.price-group { scroll-margin-top: 6.25rem; }
.hero-title-mobile, .hero-lead-mobile, .hero-pains-mobile, .button-label-mobile { display: none; }

/* Постоянно тёмная шапка для всех страниц и обеих тем */
.site-header { color:#fff; background:#202522; border-bottom-color:rgba(255,255,255,.14); }
.site-header .brand, .site-header .nav a, .site-header .header-phone { color:#fff; }
.site-header .brand-mark, .site-header .brand-dot { color:var(--yellow); }
.site-header .theme-toggle { color:#fff; border-color:rgba(255,255,255,.28); }
.site-header .theme-toggle:hover { border-color:var(--yellow); }
.site-header .button-header { color:#171815; background:var(--yellow); }
.site-header .button-header:hover { color:#171815; background:var(--yellow-deep); }

.contact-strip-inner { grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) auto auto; gap:1rem; }
@media (max-width:900px) {
  .contact-strip-inner { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contact-strip-inner > .button { grid-column:auto; width:100%; }
}
@media (max-width:640px) {
  html { scroll-padding-top:4.5rem; }
  body { padding-bottom:calc(5.9rem + env(safe-area-inset-bottom)); font-size:15px; }
  .container { width:min(calc(100% - 1.25rem),var(--container)); }
  .header-inner { min-height:4.25rem; }
  .nav, .header-phone, .button-header { display:none; }
  .section { padding:3rem 0; }
  .hero.section { padding-top:1.5rem; padding-bottom:2rem; }
  .hero h1 { max-width:none; margin-bottom:.75rem; font-size:clamp(2.35rem,10vw,3.5rem); line-height:.96; }
  .hero-lead { display:block; font-size:.95rem; line-height:1.42; }
  .hero-info-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; margin-top:1rem; }
  .hero-info-card { padding:.7rem; }
  .hero-info-card:last-child:nth-child(odd) { grid-column:1 / -1; }
  .hero-info-card strong { font-size:.95rem; }
  .hero-info-card p { font-size:.72rem; }
  .hero-metrics { display:none; }
  .hero-panel { max-width:none; margin-top:.8rem; padding:1rem; }
  .hero-panel h2 { margin:.8rem 0 .45rem; font-size:1.4rem; line-height:1.05; }
  .hero-panel p { margin-bottom:.6rem; font-size:.84rem; line-height:1.38; }
  .panel-call { margin:.6rem 0; padding:.6rem 0; }
  .panel-call strong { font-size:1.05rem; }
  .circuit-lines { display:none; }
  .hero-actions { gap:.55rem; margin-top:1rem; }
  .hero-actions .button { width:100%; }
  .hero-actions .button-link { min-height:auto; padding:.55rem 0; }
  .section-head { margin-bottom:1.5rem; }
  .section-head-wide { gap:.75rem; }
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .category-card { min-height:7.4rem; padding:.7rem; }
  .category-card strong { font-size:.95rem; }
  .category-card small { margin-top:.35rem; font-size:.68rem; line-height:1.25; }
  .service-card-grid, .secondary-service-grid, .before-after-grid { grid-template-columns:1fr; gap:.75rem; }
  .service-card { padding:1.2rem; }
  .service-card-index { margin-bottom:1.1rem; }
  .prices.section, .request.section { padding:2.6rem 0; }
  .price-group { scroll-margin-top:4.75rem; }
  .price-group summary { padding:.8rem 0; }
  .price-row { padding:.55rem 0; }
  .price-note { align-items:flex-start; flex-direction:column; gap:.45rem; padding:.75rem; }
  .request-layout { gap:1rem; }
  .request-form, .request-wizard { padding:.85rem; box-shadow:none; }
  .form-progress { margin-bottom:1rem; padding-bottom:.8rem; }
  .topic-cards { gap:.45rem; }
  .topic-cards button { min-height:6.4rem; padding:.55rem; }
  .topic-icon { width:1.55rem; height:1.55rem; margin-bottom:.4rem; }
  .topic-cards strong { font-size:.82rem; }
  .topic-cards small { font-size:.6rem; }
  .field { margin-top:.75rem; }
  .field-large textarea { min-height:5.5rem; }
  .contact-fields { grid-template-columns:1fr; gap:.5rem; }
  input, textarea, select { font-size:16px; }
  .contact-strip-inner { grid-template-columns:1fr; gap:1rem; padding:1.5rem 0; }
  .contact-strip-inner > .button { width:100%; }
  .footer-inner { align-items:flex-start; flex-direction:column; gap:.8rem; padding:1.4rem 0; }
  .footer-contacts { display:grid; gap:.4rem; }
}
@media (max-width:360px) {
  .container { width:min(calc(100% - 1rem),var(--container)); }
  .category-grid, .topic-cards { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; }
}
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  z-index: 60;
  width: min(30rem, calc(100% - 1rem));
}

.cookie-banner__inner {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--surface) 94%, var(--bg));
  box-shadow: var(--shadow);
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 900;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.cookie-banner__text a {
  color: var(--yellow-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-banner__actions .button {
  min-height: 2.65rem;
  padding: 0.6rem 0.9rem;
}

.cookie-banner__reject {
  background: var(--surface-alt);
  color: var(--ink);
}

.cookie-banner__reject:hover {
  background: var(--surface-alt);
}

@media (max-width: 900px) {
  .cookie-banner {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: 5.8rem;
  }
}

@media (max-width: 560px) {
  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }
}
/* Cookie: баннер всегда выше мобильных кнопок */
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  width: min(32rem, calc(100% - 2rem));
}

.cookie-banner__inner {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner__text strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 900;
}

.cookie-banner__text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.cookie-banner__text a {
  color: var(--yellow-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions .button {
  min-height: 2.5rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
}

.cookie-banner__reject {
  color: var(--ink);
  background: var(--surface-alt);
}

.cookie-banner__reject:hover {
  background: var(--surface-alt);
}

/* На телефоне: баннер выше "Позвонить" и "Оставить заявку" */
@media (max-width: 700px) {
  .cookie-banner {
    right: 0.5rem;
    bottom: calc(6.45rem + env(safe-area-inset-bottom));
    left: 0.5rem;
    width: auto;
  }

  .cookie-banner__inner {
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
  }

  .cookie-banner__text strong {
    font-size: 0.84rem;
  }

  .cookie-banner__text p {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__actions .button {
    width: 100%;
    min-height: 2.45rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .cookie-banner {
    bottom: calc(6.1rem + env(safe-area-inset-bottom));
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }
}
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: .15rem 0 0;
  accent-color: var(--yellow-deep);
}

.privacy-consent a {
  color: var(--yellow-deep);
  text-decoration: underline;
  text-underline-offset: .15em;
}
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: .15rem 0 0;
  accent-color: var(--yellow-deep);
}

.privacy-consent a {
  color: var(--yellow-deep);
  text-decoration: underline;
  text-underline-offset: .15em;
}