﻿:root {
  --ink: #171b1f;
  --muted: #5f6872;
  --line: #dce4e8;
  --soft: #f4f8f9;
  --white: #ffffff;
  --teal: #087d7b;
  --teal-dark: #075d5d;
  --amber: #d19028;
  --blue: #2f6f9f;
  --mint: #e4f3ee;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(16, 31, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
}

.brand-logo {
  width: 240px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  display: none;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 9px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--teal-dark);
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.header-phone {
  white-space: nowrap;
  color: var(--teal-dark);
  font-weight: 900;
}

.header-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 125, 123, 0.09);
  color: #16494b;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.header-messenger--telegram {
  background: rgba(0, 136, 204, 0.12);
}

.header-messenger--max {
  background: rgba(26, 122, 170, 0.12);
}

.messenger-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.messenger-icon svg {
  width: 100%;
  height: 100%;
}

.messenger-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-messenger--telegram .messenger-icon {
  color: #0f87c7;
}

.header-messenger--max {
  padding-left: 8px;
}

.header-messenger--max .messenger-icon {
  color: #1a7aaa;
}

.messenger-label {
  white-space: nowrap;
  font-size: 12px;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(620px, 76svh);
  padding: clamp(34px, 5vw, 56px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/hero-window-repair.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 34, 40, 0.86) 0%, rgba(5, 34, 40, 0.63) 43%, rgba(5, 34, 40, 0.12) 100%),
    linear-gradient(0deg, rgba(7, 93, 93, 0.35), rgba(7, 93, 93, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.5vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  background: var(--amber);
  color: #21170a;
  box-shadow: 0 12px 24px rgba(209, 144, 40, 0.24);
}

.btn-primary:hover {
  background: #e0a23f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-dark);
  border-color: rgba(255, 255, 255, 0.62);
}

.btn-secondary:hover {
  background: var(--white);
}

.catalog-page .btn-secondary,
.price-section .btn-secondary,
.request-section .btn-secondary {
  background: var(--white);
  color: var(--teal-dark);
  border-color: var(--line);
}

.catalog-page .btn-secondary:hover,
.price-section .btn-secondary:hover,
.request-section .btn-secondary:hover {
  border-color: var(--teal);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0;
}

.quick-stats div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  backdrop-filter: blur(9px);
}

.quick-stats dt {
  font-size: 22px;
  font-weight: 900;
}

.quick-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.hero + .section {
  padding-top: clamp(28px, 4vw, 44px);
}

.band {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(260px, 0.38fr);
  gap: 32px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading p:last-child,
.section-heading.compact p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.compact {
  display: block;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.symptom-grid,
.service-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

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

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

.symptom-grid article,
.service-grid article,
.content-block,
.side-panel,
details {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.symptom-grid span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--amber);
  font-weight: 900;
}

.symptom-grid p,
.service-grid p,
.content-block p,
.content-block li,
.side-panel p,
.side-panel li,
details p {
  color: var(--muted);
}

.service-grid a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--teal-dark);
  font-weight: 900;
}

.price-section,
.answer-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto;
}

.price-section p,
.answer-box p:last-child,
.request-copy p:last-child {
  color: var(--muted);
  font-size: 17px;
}

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

.metric-list div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-list span {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.metric-list strong {
  color: var(--teal-dark);
  font-size: 22px;
}

.metric-list small {
  color: var(--muted);
  font-size: 14px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 24px auto 0;
}

.process-grid div {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-grid b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
}

.process-grid span {
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist div {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--mint);
  border: 1px solid #cfe5de;
  border-radius: var(--radius);
}

.checklist span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  font-weight: 900;
}

.faq-section {
  background: var(--white);
}

details {
  display: block;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 7px;
  color: var(--teal-dark);
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd9de;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(8, 125, 123, 0.16);
  border-color: var(--teal);
}

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

.lead-form-inline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  padding: 18px;
}

.lead-form-inline .lead-comment,
.lead-form-inline .form-note {
  grid-column: span 2;
}

.lead-form-inline .btn {
  min-height: 52px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note.is-error {
  color: #9a3b22;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.site-footer p,
.site-footer span {
  color: #cfdae0;
}

.site-footer div:last-child {
  display: grid;
  gap: 6px;
  text-align: right;
}

.catalog-page {
  background: var(--soft);
}

.page-hero {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
}

.page-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(18px, 5vw, 72px) 72px;
}

.content-main {
  display: grid;
  gap: 16px;
}

.side-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.side-panel .btn {
  width: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  background: var(--mint);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 14px;
}

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

.link-grid a {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 900;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  color: var(--teal-dark);
  width: 38%;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-contacts {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .header-contacts::-webkit-scrollbar {
    display: none;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 34, 40, 0.88) 0%, rgba(5, 34, 40, 0.66) 100%);
  }

  .section-heading,
  .price-section,
  .answer-section,
  .request-section,
  .page-hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .symptom-grid,
  .service-grid,
  .faq-grid,
  .process-grid,
  .market-grid,
  .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    position: static;
  }

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

@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 190px;
    height: 54px;
  }

  .brand small {
    font-size: 11px;
  }

  .main-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 13px;
  }

  .header-phone {
    font-size: 15px;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    margin: 16px 0 18px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .symptom-grid,
  .service-grid,
  .faq-grid,
  .process-grid,
  .metric-list,
    .form-row,
  .lead-form-inline,
  .link-grid,
  .knowledge-grid,
  .market-grid,
  .knowledge-links,
  .reviews-list {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-stats::-webkit-scrollbar {
    display: none;
  }

  .quick-stats div {
    flex: 0 0 150px;
  }

  .quick-stats dt {
    font-size: 20px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer div:last-child {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .header-contacts {
    flex-wrap: wrap;
  }

  .header-messenger {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--teal);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.theme-toggle-text {
  font-size: 12px;
  letter-spacing: 0;
}

.brand-wrap {
  position: relative;
}

.reviews-carousel {
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
}

.reviews-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.review-slide {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  scroll-snap-align: start;
  min-width: 0;
}

.section-reviews-carousel .section-heading {
  margin-bottom: 12px;
}

.reviews-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  max-width: 1180px;
  margin: -8px auto 12px;
}

.reviews-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.reviews-nav:hover {
  border-color: var(--teal);
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 4px 0;
  padding: 10px 14px;
  background: #fffbf0;
  color: #2a1b00;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 900;
}

.header-phone {
  line-height: 1.2;
  padding: 8px 11px;
  border: 1px solid rgba(8, 125, 123, 0.2);
  border-radius: var(--radius);
  background: rgba(8, 125, 123, 0.08);
  font-weight: 900;
}

.header-phone small {
  display: block;
  font-weight: 600;
  color: #2f5c68;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: #ffd38f;
}

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

.knowledge-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.knowledge-card h3 {
  margin-bottom: 10px;
}

.knowledge-card p {
  color: var(--muted);
}

.knowledge-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 900;
}

.market-conditions {
  background: var(--soft);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.market-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.market-grid h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.market-grid p {
  color: var(--muted);
  margin: 0;
}

.floating-call {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #19a4a4, #0c7d7c);
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(6, 120, 118, 0.46);
}

.article-page .section {
  padding-left: clamp(14px, 4vw, 62px);
  padding-right: clamp(14px, 4vw, 62px);
}

.article-breadcrumb {
  display: inline-flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-breadcrumb a:hover {
  color: var(--teal-dark);
}

.article-page-title {
  margin-top: 0;
}

.article-content {
  max-width: 900px;
}

.article-block {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-block h2 {
  font-size: 28px;
}

.article-block p,
.article-block li {
  color: var(--muted);
}

.article-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.article-list li {
  margin: 0;
}

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

.knowledge-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.75);
}

.knowledge-links a:hover {
  border-color: var(--teal);
}

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

.review-card {
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.review-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
}

.review-stars {
  display: inline-flex;
  gap: 2px;
  color: #f3b33f;
  font-size: 16px;
  line-height: 1;
}

.review-meta {
  display: grid;
  gap: 5px;
}

.review-meta b {
  color: var(--teal-dark);
}

.review-meta span {
  color: var(--muted);
  font-size: 13px;
}

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

.review-slide p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .reviews-carousel-track {
    grid-auto-columns: calc((100% - 36px) / 4);
  }
}

@media (max-width: 760px) {
  .reviews-carousel-track {
    grid-auto-columns: 78%;
  }
}

.review-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
}

.review-summary p {
  margin: 0;
  color: var(--muted);
}

.review-summary strong {
  color: var(--teal-dark);
}

.article-inline-note {
  display: block;
  margin: 10px 0 0;
  color: #2e5f6b;
}

@media (max-width: 980px) {
  .knowledge-grid,
  .knowledge-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero-phone {
    width: 100%;
    justify-content: center;
  }

  .floating-call {
    display: inline-flex;
  }
}

[data-theme="light"] {
  --ink: #171b1f;
  --muted: #5f6872;
  --line: #dce4e8;
  --soft: #f4f8f9;
  --white: #ffffff;
  --teal: #087d7b;
  --teal-dark: #075d5d;
  --amber: #d19028;
  --blue: #2f6f9f;
  --mint: #e4f3ee;
  --shadow: 0 18px 44px rgba(16, 31, 38, 0.16);
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --footer-bg: #171b1f;
  --accent-color: #fff;
}

[data-theme="dark"] {
  --ink: #edf1f5;
  --muted: #a8b7c4;
  --line: #2a3948;
  --soft: #14202a;
  --white: #0e151d;
  --teal: #3db1b0;
  --teal-dark: #1f8c8b;
  --amber: #f1b64a;
  --blue: #82b4d8;
  --mint: #142c3a;
  --shadow: 0 20px 48px rgba(2, 9, 14, 0.58);
  --page-bg: #090f16;
  --card-bg: #101b24;
  --header-bg: rgba(13, 21, 30, 0.92);
  --footer-bg: #060a0f;
  --accent-color: #ffffff;
}

[data-theme="dark"] body {
  background: var(--page-bg);
}

[data-theme="dark"] .site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .hero,
[data-theme="dark"] .hero-content {
  color: var(--accent-color);
}

[data-theme="dark"] .hero-phone {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--blue);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

[data-theme="dark"] .catalog-page .btn-secondary,
[data-theme="dark"] .price-section .btn-secondary,
[data-theme="dark"] .request-section .btn-secondary {
  background: var(--soft);
  color: #cce3f7;
}

[data-theme="dark"] .symptom-grid article,
[data-theme="dark"] .service-grid article,
[data-theme="dark"] .content-block,
[data-theme="dark"] .side-panel,
[data-theme="dark"] details,
[data-theme="dark"] .process-grid div,
[data-theme="dark"] .lead-form,
[data-theme="dark"] .metric-list div,
[data-theme="dark"] .knowledge-card,
[data-theme="dark"] .market-grid article,
[data-theme="dark"] .review-card,
[data-theme="dark"] .review-summary,
[data-theme="dark"] .article-block,
[data-theme="dark"] .knowledge-links a {
  background: var(--card-bg);
}

[data-theme="dark"] .site-footer {
  background: var(--footer-bg);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .knowledge-links a,
[data-theme="dark"] .btn-secondary {
  color: var(--accent-color);
}

[data-theme="dark"] .header-messenger {
  color: #cde6ff;
  border-color: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .review-slide,
[data-theme="dark"] .reviews-nav {
  background: var(--card-bg);
}

/* Current pass: header, readability, reviews and compact floating lead form */
body {
  background: var(--page-bg, var(--white));
  color: var(--ink);
}

.site-header {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  min-width: 0;
}

.brand-logo {
  width: 214px;
  height: 58px;
}

.main-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.header-contacts {
  min-width: max-content;
}

.header-phone,
.header-messenger,
.theme-toggle {
  box-shadow: 0 8px 20px rgba(12, 44, 52, 0.06);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .header-phone,
[data-theme="dark"] .header-messenger {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
  color: #edf8ff;
}

[data-theme="dark"] .header-phone small,
[data-theme="dark"] .brand small {
  color: #b8c9d4;
}

[data-theme="dark"] .main-nav a:hover,
[data-theme="dark"] .knowledge-card a,
[data-theme="dark"] .service-grid a,
[data-theme="dark"] .link-grid a {
  color: #79d9d6;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #0a121a;
  color: #f3f7fb;
  border-color: #344756;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #7f94a3;
}

[data-theme="dark"] label {
  color: #bde8e5;
}

[data-theme="dark"] .page-hero,
[data-theme="dark"] .faq-section {
  background: #0b1219;
}

[data-theme="dark"] .symptom-grid article,
[data-theme="dark"] .service-grid article,
[data-theme="dark"] .content-block,
[data-theme="dark"] .side-panel,
[data-theme="dark"] details,
[data-theme="dark"] .process-grid div,
[data-theme="dark"] .lead-form,
[data-theme="dark"] .metric-list div,
[data-theme="dark"] .knowledge-card,
[data-theme="dark"] .market-grid article,
[data-theme="dark"] .review-card,
[data-theme="dark"] .review-slide,
[data-theme="dark"] .article-block,
[data-theme="dark"] .knowledge-links a,
[data-theme="dark"] .request-panel,
[data-theme="dark"] .lead-widget {
  border-color: #2d3e4d;
  background: #101b24;
}

.reviews-carousel {
  max-width: 1220px;
}

.reviews-carousel-track {
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  padding: 2px 0 8px;
  scroll-padding-left: 0;
}

.review-slide,
.review-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 9px;
  min-height: 100%;
}

.review-photo {
  aspect-ratio: 4 / 3;
  background: var(--soft);
}

.review-slide p,
.review-card p {
  color: var(--muted);
  line-height: 1.45;
}

.reviews-nav {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.reviews-nav:hover {
  transform: translateY(-1px);
}

.request-panel {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.75fr);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 12%, rgba(8, 125, 123, 0.16), transparent 34%),
    linear-gradient(135deg, var(--white), var(--soft));
  box-shadow: var(--shadow);
}

.request-panel::after {
  content: "";
  position: absolute;
  right: -88px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(209, 144, 40, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.request-copy,
.request-benefits {
  position: relative;
  z-index: 1;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.request-benefits {
  display: grid;
  gap: 12px;
}

.request-benefits div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.request-benefits strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.request-benefits span {
  color: var(--ink);
  font-weight: 800;
}

.lead-widget {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 18px;
  width: min(370px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(7, 26, 34, 0.24);
  backdrop-filter: blur(18px);
}

.lead-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lead-widget-head strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.lead-widget-subtitle {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.lead-widget-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.lead-form-floating {
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lead-form-floating label {
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead-form-floating input,
.lead-form-floating textarea,
.lead-form-floating select {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.lead-form-floating textarea {
  min-height: 58px;
}

.lead-form-floating .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.lead-form-floating .form-note {
  font-size: 12px;
}

.lead-widget.is-collapsed .lead-form-floating,
.lead-widget.is-collapsed .lead-widget-subtitle {
  display: none;
}

.lead-widget.is-collapsed {
  width: auto;
  min-width: 210px;
}

.lead-widget.is-collapsed .lead-widget-head {
  margin-bottom: 0;
  align-items: center;
}

.lead-widget.is-collapsed .lead-widget-close {
  transform: rotate(180deg);
}

.seo-area-note a {
  color: var(--teal-dark);
  font-weight: 900;
}

.seo-area-note a:hover {
  color: var(--amber);
}

@media (min-width: 1320px) {
  .reviews-carousel-track {
    grid-auto-columns: calc((100% - 48px) / 5);
  }
}

@media (max-width: 1200px) {
  .site-header {
    gap: 8px;
  }

  .brand-logo {
    width: 176px;
    height: 50px;
  }

  .messenger-label,
  .header-phone small {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr;
    align-items: center;
    flex-direction: initial;
  }

  .theme-toggle {
    order: 1;
  }

  .brand-wrap,
  .brand {
    order: 2;
    justify-self: end;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
  }

  .header-contacts {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
  }

  .request-panel {
    grid-template-columns: 1fr;
  }

  .reviews-carousel-track {
    grid-auto-columns: calc((100% - 12px) / 2);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 9px 14px;
  }

  .brand-logo {
    width: 166px;
    height: 48px;
  }

  .request-actions .btn {
    width: 100%;
  }

  .reviews-carousel-track {
    grid-auto-columns: 82%;
  }

  .lead-widget {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    max-height: calc(100svh - 104px);
    overflow-y: auto;
  }

  .floating-call {
    display: inline-flex;
  }
}

/* Current correction: clean header, compact lead form and all-review carousel */
.site-header {
  display: grid;
  grid-template-columns: auto minmax(205px, auto) minmax(420px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 48px);
}

.brand {
  min-width: 0;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  max-width: 170px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 8px 7px;
  font-size: 13px;
  line-height: 1;
}

.header-contacts {
  justify-self: end;
  min-width: max-content;
}

.header-phone {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  line-height: 1;
}

.header-phone small {
  color: var(--muted);
  font-size: 11px;
}

.header-messenger {
  height: 38px;
  padding: 0 10px;
}

.messenger-icon {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .brand strong {
  color: #f2f8fc;
}

[data-theme="dark"] .site-header {
  background: rgba(9, 15, 22, 0.94);
}

[data-theme="dark"] .header-phone,
[data-theme="dark"] .header-messenger,
[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f4fbff;
}

.reviews-carousel-track {
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  align-items: stretch;
}

.review-slide {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  padding: 13px;
}

.review-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.review-slide p {
  font-size: 13px;
  line-height: 1.42;
}

.request-panel {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.72fr);
  align-items: center;
  border-radius: 18px;
}

.lead-widget {
  width: min(340px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 18px;
}

.lead-widget-head {
  margin-bottom: 10px;
}

.lead-widget-head strong {
  font-size: 17px;
}

.lead-widget-subtitle,
.lead-form-floating .form-note {
  font-size: 12px;
}

.lead-form-floating {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lead-form-floating label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.lead-form-floating input,
.lead-form-floating textarea,
.lead-form-floating select {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.25;
}

.lead-form-floating textarea {
  min-height: 54px;
}

.lead-form-floating .btn {
  width: 100%;
  min-height: 42px;
  border-radius: 11px;
}

.lead-widget.is-collapsed .lead-form-floating,
.lead-widget.is-collapsed .lead-widget-subtitle {
  display: none;
}

.lead-widget.is-collapsed {
  width: auto;
}

@media (min-width: 1380px) {
  .reviews-carousel-track {
    grid-auto-columns: calc((100% - 48px) / 5);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(190px, auto) 1fr;
  }

  .header-contacts {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .brand-wrap,
  .brand {
    justify-self: end;
  }

  .main-nav,
  .header-contacts {
    grid-column: 1 / -1;
    width: 100%;
  }

  .reviews-carousel-track {
    grid-auto-columns: calc((100% - 12px) / 2);
  }

  .request-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .reviews-carousel-track {
    grid-auto-columns: 84%;
  }

  .lead-widget {
    left: 10px;
    right: 10px;
    bottom: 74px;
    width: auto;
    max-height: calc(100svh - 100px);
    overflow-y: auto;
  }
}

/* Service cards and article photo guides */
.service-section {
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 125, 123, 0.08), transparent 28%),
    var(--page-bg, var(--white));
}

.service-heading {
  max-width: 860px;
  margin-bottom: 22px;
  text-align: center;
}

.service-heading h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(26px, 2.35vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.service-heading p:last-child {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(15px, 1.2vw, 17px);
}

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

.service-grid-rich .service-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(15, 39, 48, 0.08);
}

.service-card-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: var(--soft);
}

.service-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.service-card-body h3,
.catalog-service-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.service-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.service-card-body a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: var(--teal-dark);
  font-weight: 900;
}

.service-card-body a::after {
  content: "→";
  margin-left: 7px;
  transition: transform 160ms ease;
}

.service-card-body a:hover::after {
  transform: translateX(3px);
}

.lead-widget-close {
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.lead-widget-arrow {
  display: block;
  transform: translateY(-1px);
  font-size: 20px;
  line-height: 1;
}

.lead-widget.is-collapsed .lead-widget-arrow {
  transform: rotate(180deg) translateY(1px);
}

.article-photo-guide {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(8, 125, 123, 0.08), rgba(209, 144, 40, 0.08));
}

.article-photo-guide figcaption {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.article-photo-grid div {
  overflow: hidden;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.article-photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.article-photo-grid span {
  display: block;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

[data-theme="dark"] .service-grid-rich .service-card,
[data-theme="dark"] .article-photo-grid div {
  background: var(--card-bg);
  border-color: #2d3e4d;
}

[data-theme="dark"] .service-card-body h3,
[data-theme="dark"] .catalog-service-card h2,
[data-theme="dark"] .article-photo-guide figcaption {
  color: #f2f8fc;
}

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

@media (max-width: 640px) {
  .service-heading {
    text-align: left;
  }

  .service-grid-rich,
  .article-photo-grid {
    grid-template-columns: 1fr;
  }

  .service-card-photo,
  .article-photo-grid img {
    height: 180px;
  }
}

/* Current correction: specialist wording, header buttons, service area copy */
.hero h1 {
  max-width: 900px;
}

.header-contacts {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-contacts::-webkit-scrollbar {
  display: none;
}

.header-phone,
.header-messenger {
  min-height: 46px;
  border-radius: 14px;
}

.header-phone {
  min-width: 172px;
  padding: 9px 12px;
}

.header-phone-main {
  font-size: 15px;
  line-height: 1.05;
}

.header-phone small {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.05;
  white-space: nowrap;
}

.header-messenger {
  padding: 0 13px;
  font-size: 13px;
}

.messenger-label {
  font-size: 12px;
}

.lead-widget-close {
  color: var(--teal-dark);
}

.lead-widget-arrow {
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  transform-origin: center;
}

.lead-widget.is-collapsed .lead-widget-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

.service-area-copy {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(8, 125, 123, 0.08), rgba(209, 144, 40, 0.08));
}

.service-area-copy p {
  margin: 0;
}

.service-area-copy strong {
  color: var(--teal-dark);
}

.service-area-copy a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[data-theme="dark"] .service-area-copy {
  border-color: #2d3e4d;
  background: linear-gradient(135deg, rgba(61, 177, 176, 0.12), rgba(241, 182, 74, 0.10));
}

[data-theme="dark"] .lead-widget-close,
[data-theme="dark"] .service-area-copy strong,
[data-theme="dark"] .service-area-copy a {
  color: #8ee5df;
}

@media (min-width: 1181px) {
  .site-header {
    grid-template-columns: auto minmax(184px, auto) minmax(360px, 1fr) minmax(320px, auto);
  }
}

@media (max-width: 1240px) {
  .header-phone {
    min-width: 158px;
  }

  .header-messenger {
    padding: 0 11px;
  }
}

@media (max-width: 760px) {
  .header-phone,
  .header-messenger {
    min-height: 42px;
  }

  .header-phone {
    min-width: 160px;
  }
}


/* fix5 hero nav phone reviews */
[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .hero .btn-ghost {
  color: #10212a;
}

[data-theme="dark"] .hero .btn-primary {
  background: #f0b84d;
  border-color: rgba(240, 184, 77, 0.9);
}

[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .hero .btn-ghost {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.72);
}

.main-nav {
  gap: 7px;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 10px 11px;
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.main-nav a:hover {
  background: rgba(8, 125, 123, 0.10);
}

[data-theme="dark"] .main-nav a {
  color: #eff8fb;
}

[data-theme="dark"] .main-nav a:hover {
  background: rgba(255, 255, 255, 0.10);
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd9de;
  border-radius: 11px;
  background: var(--white);
}

.phone-prefix {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 48px;
  padding: 0 10px;
  background: rgba(8, 125, 123, 0.10);
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.phone-field input {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-field input:focus {
  outline: 0;
}

.phone-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 125, 123, 0.16);
}

[data-theme="dark"] .phone-field {
  background: #0a121a;
  border-color: #344756;
}

[data-theme="dark"] .phone-prefix {
  background: rgba(61, 177, 176, 0.14);
  color: #8ee5df;
}

@media (min-width: 1181px) {
  .site-header {
    grid-template-columns: auto minmax(184px, auto) minmax(430px, 1fr) minmax(320px, auto);
  }
}

@media (max-width: 1280px) {
  .main-nav a {
    padding: 9px 9px;
    font-size: 14px;
  }
}


/* fix6 section rhythm and phone polish */
html {
  scroll-padding-top: 96px;
}

.section {
  padding-top: clamp(42px, 5.5vw, 76px);
  padding-bottom: clamp(42px, 5.5vw, 76px);
}

.hero + .section {
  padding-top: clamp(30px, 4vw, 52px);
}

.section-heading.compact {
  max-width: 940px;
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(8, 125, 123, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 249, 0.92));
  box-shadow: 0 16px 34px rgba(10, 35, 43, 0.08);
}

.section-heading.compact h2 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-heading.compact p:last-child {
  max-width: 760px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.45;
}

.service-heading {
  text-align: left;
}

[data-theme="dark"] .section-heading.compact {
  background:
    radial-gradient(circle at 8% 0%, rgba(61, 177, 176, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(16, 27, 36, 0.96), rgba(10, 18, 26, 0.94));
  border-color: #2d3e4d;
}

[data-theme="dark"] .hero .btn-primary,
[data-theme="dark"] .hero .btn-secondary,
[data-theme="dark"] .hero .btn-ghost {
  color: #10212a !important;
}

.site-header {
  z-index: 100;
}

.reviews-page .site-header,
.catalog-page .site-header {
  align-items: center;
}

.phone-label {
  gap: 6px;
}

.phone-field {
  grid-template-columns: 50px minmax(0, 1fr);
}

.phone-field input {
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 128px;
  }

  .section-heading.compact {
    border-radius: 18px;
  }

  .section-heading.compact h2 {
    font-size: clamp(28px, 9vw, 40px);
  }
}

/* OKNARADAR_HEADING_REVIEW_POLISH_START */
:root {
  --ok-title-max: 1120px;
  --ok-title-size: clamp(2.2rem, 5.4vw, 5.95rem);
  --ok-section-size: clamp(1.95rem, 3.2vw, 3.6rem);
  --ok-title-tracking: -0.055em;
}

html {
  scroll-padding-top: 104px;
}

body {
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.page-hero h1,
.catalog-hero h1,
.article-page-title,
.service-heading h1,
.service-heading h2,
.section-heading h2,
.section-title,
.reviews-page h1 {
  font-family: var(--font-heading, "Manrope", "Segoe UI", sans-serif);
  text-wrap: balance;
}

.page-hero,
.catalog-hero,
.article-hero,
.service-hero {
  padding-block: clamp(78px, 9vw, 124px) clamp(38px, 6vw, 70px);
}

.page-hero .container,
.catalog-hero .container,
.article-hero .container,
.service-hero .container {
  max-width: var(--ok-title-max);
}

.page-hero h1,
.catalog-hero h1,
.article-page-title,
.service-heading h1,
.reviews-page h1,
main > .container > h1:first-child {
  max-width: 940px;
  margin: 0;
  font-size: var(--ok-title-size);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: var(--ok-title-tracking);
}

.page-hero p,
.catalog-hero p,
.article-hero p,
.service-heading p,
.reviews-page .hero-lead,
.page-lead {
  max-width: 760px;
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(1.05rem, 1.25vw, 1.26rem);
  line-height: 1.58;
}

.section,
.catalog-section,
.article-section,
.reviews-section,
.services-section {
  padding-block: clamp(48px, 7vw, 86px);
}

.section-heading,
.section-heading.compact,
.service-heading,
.article-heading,
.reviews-heading,
.catalog-heading {
  display: grid;
  max-width: var(--ok-title-max);
  margin: 0 auto clamp(26px, 4vw, 44px);
  gap: 14px;
  text-align: left;
}

.section-heading.center,
.section-heading.is-centered {
  justify-items: center;
  text-align: center;
}

.section-eyebrow,
.eyebrow,
.kicker,
.section-label {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--accent, #2f7dff) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #2f7dff) 11%, transparent);
  color: var(--accent-strong, var(--accent, #2f7dff));
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.section-heading h2,
.section-title,
.service-heading h2,
.article-heading h2,
.reviews-heading h2,
.catalog-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: var(--ok-section-size);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.section-heading p,
.section-lead,
.service-heading .lead,
.article-heading p,
.reviews-heading p,
.catalog-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted, #667085);
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  line-height: 1.62;
}

.review-card {
  overflow: hidden;
}

.review-photo,
.review-card .review-photo,
.reviews-page .review-photo {
  width: 100%;
  max-height: 260px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card, #ffffff) 80%, var(--accent, #2f7dff) 8%);
}

@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
  .section-eyebrow,
  .eyebrow,
  .kicker,
  .section-label {
    border-color: rgba(47, 125, 255, 0.25);
    background: rgba(47, 125, 255, 0.1);
  }
}

@media (max-width: 760px) {
  :root {
    --ok-title-size: clamp(2.15rem, 12vw, 3.9rem);
    --ok-section-size: clamp(1.8rem, 8vw, 2.55rem);
    --ok-title-tracking: -0.046em;
  }

  html {
    scroll-padding-top: 82px;
  }

  .page-hero,
  .catalog-hero,
  .article-hero,
  .service-hero {
    padding-block: 62px 34px;
  }

  .section,
  .catalog-section,
  .article-section,
  .reviews-section,
  .services-section {
    padding-block: 42px;
  }

  .section-heading,
  .section-heading.compact,
  .service-heading,
  .article-heading,
  .reviews-heading,
  .catalog-heading {
    margin-bottom: 24px;
    gap: 12px;
  }

  .page-hero h1,
  .catalog-hero h1,
  .article-page-title,
  .service-heading h1,
  .reviews-page h1,
  main > .container > h1:first-child {
    line-height: 1.02;
  }
}
/* OKNARADAR_HEADING_REVIEW_POLISH_END */

/* fix7 services phone review photos */
#services.service-section {
  padding-block: clamp(42px, 6vw, 76px);
}

#services .service-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: clamp(18px, 3vw, 42px);
  max-width: 1180px;
  margin: 0 auto clamp(24px, 3.8vw, 42px);
  padding: clamp(22px, 3.2vw, 38px);
  border: 1px solid color-mix(in srgb, var(--accent, #2f7dff) 18%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--accent, #2f7dff) 16%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--card, #ffffff) 94%, var(--accent, #2f7dff) 6%), color-mix(in srgb, var(--card, #ffffff) 86%, var(--bg, #f5f7fb) 14%));
  box-shadow: 0 22px 60px rgba(15, 33, 64, 0.08);
  text-align: left;
}

#services .service-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

#services .service-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4.45rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

#services .service-heading p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted, #667085);
  font-size: clamp(1.02rem, 1.12vw, 1.18rem);
  font-weight: 560;
  line-height: 1.62;
}

#services .service-grid-rich {
  margin-top: 0;
}

.phone-label {
  display: grid;
  gap: 7px;
}

.phone-field {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-height: 46px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text, #132238) 16%, transparent);
  border-radius: 16px;
  background: var(--card, #fff);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.phone-prefix {
  display: grid;
  place-items: center;
  border-right: 1px solid color-mix(in srgb, var(--text, #132238) 12%, transparent);
  background: color-mix(in srgb, var(--accent, #2f7dff) 10%, transparent);
  color: var(--text, #132238);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.phone-field input,
.lead-form-floating .phone-field input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.045em;
}

.phone-field:focus-within {
  border-color: var(--accent, #2f7dff);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #2f7dff) 15%, transparent);
}

.review-photo,
.review-card .review-photo,
.review-slide .review-photo,
.reviews-page .review-photo {
  aspect-ratio: 1 / 1;
  max-height: 286px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
}

[data-theme="dark"] #services .service-heading {
  border-color: rgba(128, 207, 255, 0.22);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 171, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(17, 29, 46, 0.98), rgba(11, 20, 34, 0.96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

[data-theme="dark"] #services .service-heading p:last-child {
  color: rgba(229, 239, 250, 0.78);
}

[data-theme="dark"] .phone-field {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .phone-prefix {
  border-right-color: rgba(255, 255, 255, 0.16);
  background: rgba(96, 178, 255, 0.16);
  color: #f5fbff;
}

@media (max-width: 900px) {
  #services .service-heading {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 22px;
    border-radius: 26px;
  }

  #services .service-heading h2 {
    font-size: clamp(2rem, 10vw, 3.35rem);
    line-height: 1;
  }

  #services .service-heading p:last-child {
    max-width: 100%;
  }
}

/* fix8 district reviews header and section heroes */
:root {
  --page-hero-bg: url("assets/hero-sections/default-hero.jpg");
  --page-hero-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.92) 0%, rgba(4, 24, 32, 0.78) 46%, rgba(4, 24, 32, 0.38) 100%);
}

.catalog-page {
  --page-hero-bg: url("assets/hero-sections/catalog-hero.jpg");
}

.reviews-page {
  --page-hero-bg: url("assets/hero-sections/reviews-hero.jpg");
}

.article-page {
  --page-hero-bg: url("assets/hero-sections/articles-hero.jpg");
}

.site-header {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 284px) minmax(360px, 1fr) minmax(340px, auto) !important;
  align-items: center !important;
  gap: 10px 14px !important;
  overflow: visible !important;
}

.site-header .theme-toggle,
.site-header .brand-wrap,
.site-header .brand,
.site-header .main-nav,
.site-header .header-contacts {
  min-width: 0;
}

.site-header .brand-wrap,
.site-header > .brand {
  justify-self: start;
}

.site-header .brand {
  min-width: 0 !important;
  width: 100%;
}

.site-header .brand-logo {
  width: clamp(176px, 16vw, 238px) !important;
  height: 58px !important;
  object-fit: contain;
}

.site-header .main-nav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  scrollbar-width: none;
}

.site-header .main-nav::-webkit-scrollbar {
  display: none;
}

.site-header .main-nav a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}

.site-header .main-nav a[aria-current="page"] {
  background: rgba(8, 125, 123, 0.14);
  color: var(--teal-dark);
}

.site-header .header-contacts {
  justify-self: end;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
  overflow: visible !important;
}

.site-header .header-phone,
.site-header .header-messenger {
  flex: 0 0 auto;
}

.site-header .header-messenger {
  min-width: 46px;
  min-height: 46px;
}

.site-header .messenger-icon,
.site-header .messenger-icon svg,
.site-header .messenger-icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.page-hero,
.catalog-page .page-hero,
.reviews-page .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(330px, 42vw, 520px);
  padding: clamp(76px, 8vw, 126px) clamp(18px, 5vw, 72px) clamp(56px, 7vw, 96px) !important;
  border: 0 !important;
  color: #fff;
  background-image: var(--page-hero-overlay), var(--page-hero-bg) !important;
  background-position: center !important;
  background-size: cover !important;
}

.page-hero::after,
.reviews-page .page-hero::after,
.article-page main.article-content::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent);
  pointer-events: none;
}

.page-hero-inner,
.page-hero-inner--copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(260px, 0.52fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
}

.page-hero-inner--copy {
  grid-template-columns: minmax(0, 850px);
}

.page-hero .eyebrow,
.article-page .article-breadcrumb,
.article-page .article-breadcrumb a {
  color: #ffd48a !important;
}

.page-hero h1,
.catalog-page .page-hero h1,
.reviews-page .page-hero h1 {
  max-width: 880px;
  color: #fff;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
}

.page-hero p,
.catalog-page .page-hero p,
.reviews-page .page-hero p {
  max-width: 760px;
  color: rgba(245, 250, 252, 0.88) !important;
  font-weight: 560;
}

.page-hero img {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.article-page main.article-content {
  position: relative;
  isolation: isolate;
  max-width: none !important;
  padding: clamp(72px, 8vw, 118px) clamp(18px, 5vw, 72px) clamp(54px, 7vw, 86px) !important;
}

.article-page main.article-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: clamp(360px, 48vw, 540px);
  background-image: var(--page-hero-overlay), var(--page-hero-bg);
  background-position: center;
  background-size: cover;
}

.article-page .article-breadcrumb,
.article-page .article-page-title,
.article-page main.article-content > p:not(.article-breadcrumb):first-of-type,
.article-page .article-block,
.article-page .article-photo-guide,
.article-page .knowledge-links {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .article-page-title {
  color: #fff;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.34);
}

.article-page main.article-content > p:not(.article-breadcrumb):first-of-type {
  color: rgba(245, 250, 252, 0.88);
  font-size: clamp(1.06rem, 1.25vw, 1.24rem);
  line-height: 1.62;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.reviews-section {
  background: var(--soft);
}

.reviews-section .reviews-heading {
  max-width: 1060px;
  margin-bottom: 24px;
}

.reviews-list {
  align-items: stretch;
  gap: clamp(14px, 1.5vw, 20px) !important;
}

.review-card,
.review-slide {
  display: grid !important;
  grid-template-rows: auto auto auto 1fr;
  gap: 10px !important;
  overflow: hidden;
  min-width: 0;
  border-radius: 22px !important;
}

.review-photo,
.review-card .review-photo,
.review-slide .review-photo,
.reviews-page .review-photo {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 18px !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: translateZ(0);
}

.review-meta span {
  color: var(--teal-dark);
  font-weight: 850;
}

[data-theme="dark"] .site-header .main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-theme="dark"] .review-meta span {
  color: #8ee5df;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: auto minmax(190px, 260px) minmax(280px, 1fr) minmax(292px, auto) !important;
    gap: 10px;
  }

  .site-header .header-phone {
    min-width: 150px;
  }

  .site-header .messenger-label {
    display: none;
  }

  .site-header .header-messenger {
    width: 46px;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr !important;
  }

  .site-header .brand-wrap,
  .site-header > .brand {
    justify-self: end;
  }

  .site-header .main-nav,
  .site-header .header-contacts {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .site-header .header-contacts::-webkit-scrollbar {
    display: none;
  }

  .page-hero-inner,
  .page-hero-inner--copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero,
  .catalog-page .page-hero,
  .reviews-page .page-hero {
    min-height: 0;
    padding-block: 58px 44px !important;
  }

  .site-header .brand-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .site-header .brand strong {
    display: block;
    font-size: 18px;
  }

  .site-header .brand small {
    display: none;
  }

  .site-header .header-phone {
    min-width: 164px;
  }
}

/* fix8b article hero lead selector */
.article-page .article-breadcrumb + .article-page-title + p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(28px, 5vw, 54px);
  color: rgba(245, 250, 252, 0.88) !important;
  font-size: clamp(1.06rem, 1.25vw, 1.24rem);
  line-height: 1.62;
}

/* fix9 stable header and category photos */
.site-header {
  grid-template-columns: auto minmax(142px, 190px) minmax(0, 1fr) max-content !important;
  gap: 8px 12px !important;
  padding-block: 10px !important;
  min-height: 72px;
}

.site-header .theme-toggle {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-inline: 10px;
}

.site-header .brand-wrap,
.site-header > .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: start !important;
  width: 100%;
}

.site-header .brand,
.site-header > .brand {
  gap: 0 !important;
  min-width: 0 !important;
  width: auto !important;
}

.site-header .brand-logo {
  width: clamp(136px, 12vw, 174px) !important;
  height: 50px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.site-header .brand span {
  display: none !important;
}

.site-header .main-nav {
  grid-column: 3;
  grid-row: 1;
  justify-content: center !important;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 3px;
}

.site-header .main-nav a {
  min-height: 36px;
  padding: 9px 10px !important;
  font-size: clamp(13px, 0.96vw, 15px) !important;
  white-space: nowrap;
}

.site-header .header-contacts {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
}

.site-header .header-phone {
  min-width: 150px !important;
  padding: 8px 10px !important;
}

.site-header .header-phone-main {
  font-size: 14px !important;
}

.site-header .header-phone small {
  font-size: 10.5px !important;
}

.site-header .header-messenger {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 14px !important;
}

.site-header .header-messenger .messenger-label {
  display: none !important;
}

.site-header .messenger-icon,
.site-header .messenger-icon svg,
.site-header .messenger-icon img {
  width: 21px !important;
  height: 21px !important;
}

.catalog-page.service-ruchka { --page-hero-bg: url("assets/hero-sections/service-ruchka-hero.jpg"); }
.catalog-page.service-furnitura { --page-hero-bg: url("assets/hero-sections/service-furnitura-hero.jpg"); }
.catalog-page.service-regulirovka { --page-hero-bg: url("assets/hero-sections/service-regulirovka-hero.jpg"); }
.catalog-page.service-produvanie { --page-hero-bg: url("assets/hero-sections/service-produvanie-hero.jpg"); }
.catalog-page.service-uplotnitel { --page-hero-bg: url("assets/hero-sections/service-uplotnitel-hero.jpg"); }
.catalog-page.service-balkon { --page-hero-bg: url("assets/hero-sections/service-balkon-hero.jpg"); }

.catalog-page .page-hero {
  --page-hero-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.9) 0%, rgba(4, 24, 32, 0.72) 45%, rgba(4, 24, 32, 0.34) 100%);
}

.catalog-page .page-hero-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.54fr) !important;
}

.catalog-page .page-hero img {
  display: block !important;
  width: 100% !important;
  min-height: 280px;
  max-height: 390px;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  object-position: center !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 30px !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4) !important;
  background: rgba(255,255,255,0.08);
}

.catalog-page .page-hero h1,
.reviews-page .page-hero h1 {
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.catalog-page .page-hero p,
.reviews-page .page-hero p {
  color: rgba(248, 252, 255, 0.91) !important;
  text-shadow: 0 8px 30px rgba(0,0,0,0.34);
}

.reviews-page { --page-hero-bg: url("assets/hero-sections/reviews-hero.jpg"); }

.reviews-page .page-hero {
  --page-hero-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.94) 0%, rgba(4, 24, 32, 0.78) 48%, rgba(4, 24, 32, 0.46) 100%);
}

.reviews-page .reviews-list .review-photo,
.review-slide .review-photo {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 1320px) {
  .site-header {
    grid-template-columns: auto minmax(120px, 160px) minmax(0, 1fr) max-content !important;
    gap: 8px !important;
  }

  .site-header .brand-logo {
    width: 138px !important;
    height: 46px !important;
  }

  .site-header .header-phone {
    min-width: 142px !important;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto 1fr !important;
  }

  .site-header .brand-wrap,
  .site-header > .brand {
    grid-column: 2;
  }

  .site-header .brand-logo {
    width: 168px !important;
    height: 50px !important;
  }

  .site-header .main-nav,
  .site-header .header-contacts {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-content: flex-start !important;
    width: 100% !important;
    overflow-x: auto !important;
  }

  .catalog-page .page-hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .site-header .brand-logo {
    width: 48px !important;
    height: 48px !important;
  }

  .site-header .brand span {
    display: block !important;
  }

  .site-header .brand strong {
    display: block !important;
    font-size: 18px;
  }

  .catalog-page .page-hero img {
    min-height: 210px;
    border-radius: 22px !important;
  }
}

/* fix10 homepage section photo headings */
.section-topic {
  --topic-bg: url("assets/hero-sections/default-hero.jpg");
  --topic-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.88) 0%, rgba(4, 24, 32, 0.66) 54%, rgba(4, 24, 32, 0.35) 100%);
}

.section-topic--symptoms { --topic-bg: url("assets/hero-sections/default-hero.jpg"); }
.section-topic--reviews { --topic-bg: url("assets/hero-sections/reviews-hero.jpg"); }
.section-topic--services { --topic-bg: url("assets/hero-sections/catalog-hero.jpg"); }
.section-topic--knowledge { --topic-bg: url("assets/hero-sections/articles-hero.jpg"); }
.section-topic--process { --topic-bg: url("assets/hero-sections/service-regulirovka-hero.jpg"); }

.section-topic > .section-heading.compact,
.section-topic .section-heading.compact.service-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid !important;
  align-content: end;
  min-height: clamp(250px, 30vw, 370px);
  max-width: 1180px !important;
  margin-bottom: clamp(24px, 3.8vw, 42px) !important;
  padding: clamp(24px, 4vw, 48px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 34px !important;
  background-image: var(--topic-overlay), var(--topic-bg) !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: 0 28px 76px rgba(6, 24, 34, 0.22) !important;
  color: #fff;
}

.section-topic > .section-heading.compact::after,
.section-topic .section-heading.compact.service-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent);
}

.section-topic > .section-heading.compact .eyebrow,
.section-topic .section-heading.compact.service-heading .eyebrow {
  margin: 0 0 4px !important;
  border-color: rgba(255, 212, 138, 0.54) !important;
  background: rgba(255, 212, 138, 0.12) !important;
  color: #ffd48a !important;
}

.section-topic > .section-heading.compact h2,
.section-topic .section-heading.compact.service-heading h2 {
  max-width: 820px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2.15rem, 4.2vw, 4.9rem) !important;
  line-height: 0.97 !important;
  letter-spacing: -0.06em !important;
  text-shadow: 0 14px 46px rgba(0, 0, 0, 0.38);
}

.section-topic > .section-heading.compact p:last-child,
.section-topic .section-heading.compact.service-heading p:last-child {
  max-width: 720px !important;
  margin: 0 !important;
  color: rgba(248, 252, 255, 0.9) !important;
  font-size: clamp(1rem, 1.18vw, 1.22rem) !important;
  font-weight: 560;
  line-height: 1.58 !important;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}

#services .section-heading.compact.service-heading {
  grid-template-columns: 1fr !important;
  align-items: end !important;
}

.section-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
  color: #fff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 76px rgba(6, 24, 34, 0.18);
}

.section-panel--prices {
  background-image: linear-gradient(90deg, rgba(4, 24, 32, 0.9), rgba(4, 24, 32, 0.58)), url("assets/hero-sections/service-furnitura-hero.jpg");
}

.section-panel--request {
  background-image: linear-gradient(90deg, rgba(4, 24, 32, 0.9), rgba(4, 24, 32, 0.58)), url("assets/hero-sections/reviews-hero.jpg");
}

.section-panel .eyebrow,
.section-panel h2,
.section-panel p,
.section-panel span,
.section-panel small {
  color: inherit;
}

.section-panel > div:first-child p,
.section-panel .request-copy p {
  color: rgba(248, 252, 255, 0.88) !important;
}

.section-panel .metric-list div,
.section-panel .request-benefits div {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
}

.section-panel .metric-list strong,
.section-panel .request-benefits strong {
  color: #ffd48a !important;
}

.section-panel .btn-secondary {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #10212a !important;
}

@media (max-width: 900px) {
  .section-topic > .section-heading.compact,
  .section-topic .section-heading.compact.service-heading {
    min-height: 230px;
    padding: 24px !important;
    border-radius: 26px !important;
  }

  .section-topic > .section-heading.compact h2,
  .section-topic .section-heading.compact.service-heading h2 {
    font-size: clamp(2rem, 9vw, 3.35rem) !important;
    line-height: 1 !important;
  }

  .section-panel {
    border-radius: 26px;
  }
}

/* fix11 ai photo sections and final header */
.site-header {
  grid-template-columns: auto minmax(220px, 260px) minmax(0, 1fr) max-content !important;
  min-height: 70px !important;
  padding: 9px clamp(14px, 3vw, 34px) !important;
  gap: 10px 14px !important;
}

.site-header .brand,
.site-header > .brand {
  display: inline-grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.site-header .brand-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  object-fit: contain !important;
}

.site-header .brand span,
.site-header .brand .brand-text {
  display: grid !important;
  gap: 1px;
  min-width: 0;
}

.site-header .brand strong {
  display: block !important;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px !important;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header .brand small {
  display: block !important;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.site-header .header-phone small {
  color: var(--muted) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
}

[data-theme="dark"] .site-header .brand strong {
  color: #f5fbff;
}

[data-theme="dark"] .site-header .brand small,
[data-theme="dark"] .site-header .header-phone small {
  color: rgba(229, 239, 250, 0.72) !important;
}

.section-topic--symptoms { --topic-bg: url("assets/ai-sections/section-diagnostic-ai.png"); }
.section-topic--services { --topic-bg: url("assets/ai-sections/section-ruchka-ai.png"); }
.section-topic--knowledge { --topic-bg: url("assets/ai-sections/section-uplotnitel-ai.png"); }
.section-topic--market { --topic-bg: url("assets/ai-sections/section-request-ai.png"); }
.section-topic--process { --topic-bg: url("assets/ai-sections/section-diagnostic-ai.png"); }
.section-topic--reviews { --topic-bg: url("assets/hero-sections/reviews-hero.jpg"); }

.section-panel--prices {
  background-image: linear-gradient(90deg, rgba(4, 24, 32, 0.88), rgba(4, 24, 32, 0.54)), url("assets/ai-sections/section-ruchka-ai.png") !important;
}

.section-panel--request {
  background-image: linear-gradient(90deg, rgba(4, 24, 32, 0.88), rgba(4, 24, 32, 0.54)), url("assets/ai-sections/section-request-ai.png") !important;
}

.section-topic > .section-heading.compact,
.section-topic .section-heading.compact.service-heading {
  --topic-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.9) 0%, rgba(4, 24, 32, 0.68) 44%, rgba(4, 24, 32, 0.2) 100%);
  background-image: var(--topic-overlay), var(--topic-bg) !important;
  background-position: center !important;
  background-size: cover !important;
}

.market-conditions.section-topic {
  background: var(--soft) !important;
}

.market-conditions.section-topic > .section-heading.compact {
  max-width: 1180px !important;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr !important;
  }

  .site-header .brand-wrap,
  .site-header > .brand {
    grid-column: 2 !important;
    justify-self: end !important;
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .site-header .brand,
  .site-header > .brand {
    grid-template-columns: 40px minmax(0, 1fr) !important;
  }

  .site-header .brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
  }

  .site-header .brand strong {
    font-size: 17px !important;
  }

  .site-header .brand small {
    font-size: 11px !important;
  }
}

/* fix12 nav review last and review code */
.site-header .main-nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(max-content, 1fr)) minmax(116px, auto) !important;
  align-items: center;
  gap: 7px !important;
  overflow: hidden !important;
}

.site-header .main-nav a {
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.site-header .main-nav a.nav-review {
  justify-self: end;
  width: auto;
  min-width: 116px;
  padding-inline: 14px !important;
  border-color: rgba(209, 144, 40, 0.5) !important;
  background: linear-gradient(135deg, rgba(209, 144, 40, 0.22), rgba(8, 125, 123, 0.12)) !important;
  color: var(--teal-dark) !important;
}

[data-theme="dark"] .site-header .main-nav a.nav-review {
  color: #ffe0a6 !important;
  border-color: rgba(255, 212, 138, 0.36) !important;
  background: linear-gradient(135deg, rgba(255, 212, 138, 0.14), rgba(61, 177, 176, 0.12)) !important;
}

.reviews-page { --page-hero-bg: url("assets/ai-sections/reviews-hero-ai.png") !important; }

.reviews-page .page-hero {
  --page-hero-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.92) 0%, rgba(4, 24, 32, 0.72) 45%, rgba(4, 24, 32, 0.26) 100%) !important;
}

.review-code-note {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(260px, 1fr);
  gap: 12px 18px;
  align-items: center;
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(209, 144, 40, 0.28);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 244, 218, 0.92), rgba(226, 246, 242, 0.88));
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(8, 31, 38, 0.09);
}

.review-code-note strong {
  color: var(--teal-dark);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.review-code-note span {
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.5;
}

.review-code-note--page {
  margin: 0 auto 22px;
}

[data-theme="dark"] .review-code-note {
  border-color: rgba(255, 212, 138, 0.24);
  background: linear-gradient(135deg, rgba(38, 32, 18, 0.92), rgba(12, 35, 39, 0.9));
  color: #f5fbff;
}

[data-theme="dark"] .review-code-note strong {
  color: #ffd48a;
}

[data-theme="dark"] .review-code-note span {
  color: rgba(229, 239, 250, 0.78);
}

@media (max-width: 1180px) {
  .site-header .main-nav {
    display: flex !important;
    overflow-x: auto !important;
  }

  .site-header .main-nav a {
    width: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .review-code-note {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 18px;
  }
}
/* fix13 knowledge rhythm and review-photo cleanup */
#symptoms,
#homepageReviews,
#services,
#knowledge,
#prices,
#process,
#request {
  scroll-margin-top: 96px;
}

.section-topic {
  padding-top: clamp(46px, 6vw, 82px) !important;
  padding-bottom: clamp(46px, 6vw, 82px) !important;
}

.section-topic > .section-heading.compact,
.section-topic .section-heading.compact.service-heading {
  align-content: center !important;
  min-height: clamp(220px, 25vw, 330px) !important;
  gap: 12px !important;
  padding: clamp(24px, 3.4vw, 44px) !important;
  background-position: center right !important;
}

.section-topic--knowledge {
  --topic-overlay: linear-gradient(90deg, rgba(4, 24, 32, 0.94) 0%, rgba(4, 24, 32, 0.74) 52%, rgba(4, 24, 32, 0.28) 100%) !important;
}

.section-topic > .section-heading.compact h2,
.section-topic .section-heading.compact.service-heading h2 {
  max-width: 760px !important;
  font-size: clamp(2rem, 3.55vw, 4.05rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.042em !important;
  text-wrap: balance;
}

.section-topic > .section-heading.compact p:last-child,
.section-topic .section-heading.compact.service-heading p:last-child {
  max-width: 680px !important;
  margin-top: 10px !important;
  font-size: clamp(1rem, 1.06vw, 1.14rem) !important;
  line-height: 1.55 !important;
  text-wrap: pretty;
}

.knowledge-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  max-width: 1180px;
  margin: 0 auto;
}

.knowledge-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 226px;
  padding: 22px !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 42px rgba(8, 31, 38, 0.07);
}

.knowledge-card h3 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.32vw, 22px) !important;
  line-height: 1.16 !important;
  letter-spacing: -0.025em;
}

.knowledge-card p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.reviews-section {
  padding-top: clamp(34px, 5vw, 64px) !important;
}

.review-code-note--page {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

.review-card,
.review-slide {
  background: linear-gradient(180deg, var(--white), rgba(255,255,255,0.94)) !important;
  border-color: rgba(8, 125, 123, 0.14) !important;
  box-shadow: 0 18px 44px rgba(8, 31, 38, 0.08);
}

.review-photo,
.review-card .review-photo,
.review-slide .review-photo,
.reviews-page .review-photo {
  background: #e6eef1;
  filter: saturate(1.02) contrast(1.03);
}

[data-theme="dark"] .knowledge-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] .review-slide {
  background: linear-gradient(180deg, rgba(18, 32, 39, 0.96), rgba(12, 25, 31, 0.96)) !important;
  border-color: rgba(130, 220, 215, 0.16) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .knowledge-card p,
[data-theme="dark"] .review-card p,
[data-theme="dark"] .review-slide p {
  color: rgba(229, 239, 250, 0.76) !important;
}

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

@media (max-width: 720px) {
  #symptoms,
  #homepageReviews,
  #services,
  #knowledge,
  #prices,
  #process,
  #request {
    scroll-margin-top: 132px;
  }

  .section-topic > .section-heading.compact,
  .section-topic .section-heading.compact.service-heading {
    min-height: 218px !important;
    border-radius: 24px !important;
    padding: 22px !important;
  }

  .section-topic > .section-heading.compact h2,
  .section-topic .section-heading.compact.service-heading h2 {
    font-size: clamp(1.8rem, 8.5vw, 2.8rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
  }

  .section-topic > .section-heading.compact p:last-child,
  .section-topic .section-heading.compact.service-heading p:last-child {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .knowledge-grid {
    grid-template-columns: 1fr !important;
  }

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

/* fix14 article knowledge template */
.article-page.article-close { --article-hero-bg: url("assets/ai-articles/article-close-hero.png"); }
.article-page.article-ruchka { --article-hero-bg: url("assets/ai-articles/article-ruchka-hero.png"); }
.article-page.article-produvanie { --article-hero-bg: url("assets/ai-articles/article-produvanie-hero.png"); }
.article-page.article-skrip { --article-hero-bg: url("assets/ai-articles/article-skrip-hero.png"); }

.article-page {
  --article-hero-bg: url("assets/ai-sections/section-diagnostic-ai.png");
  --article-card-bg: rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #edf5f6 0, var(--soft) 520px, var(--white) 100%);
}

.article-page main.article-content {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding: clamp(54px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(62px, 8vw, 96px) !important;
}

.article-page main.article-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: clamp(430px, 52vw, 610px) !important;
  background-image: linear-gradient(90deg, rgba(3, 20, 27, 0.94) 0%, rgba(3, 20, 27, 0.78) 43%, rgba(3, 20, 27, 0.24) 100%), var(--article-hero-bg) !important;
  background-position: center right !important;
  background-size: cover !important;
}

.article-page main.article-content::after {
  content: "";
  position: absolute;
  inset: clamp(330px, 42vw, 470px) 0 auto;
  z-index: -1;
  height: 210px;
  background: linear-gradient(180deg, transparent, var(--soft));
  pointer-events: none;
}

.article-page .article-breadcrumb,
.article-page .article-page-title,
.article-page .article-page-title + p,
.article-page .article-hero-meta,
.article-page .article-block,
.article-page .article-photo-guide,
.article-page .knowledge-links {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: rgba(245, 250, 252, 0.78) !important;
}

.article-page .article-breadcrumb a {
  color: #fff;
  font-weight: 850;
}

.article-page .article-page-title {
  max-width: 930px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.article-page .article-page-title + p {
  max-width: 780px;
  margin-bottom: 18px !important;
  color: rgba(245, 250, 252, 0.9) !important;
  font-size: clamp(1.05rem, 1.42vw, 1.28rem) !important;
  line-height: 1.6;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(46px, 7vw, 78px) !important;
}

.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 212, 138, 0.36);
  border-radius: 999px;
  background: rgba(255, 212, 138, 0.14);
  color: #ffe2a6;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.article-page .article-block,
.article-page .article-photo-guide {
  margin-bottom: 18px;
  border: 1px solid rgba(8, 125, 123, 0.13);
  border-radius: 28px;
  background: var(--article-card-bg);
  box-shadow: 0 24px 64px rgba(8, 31, 38, 0.1);
}

.article-page .article-block {
  padding: clamp(22px, 3vw, 34px);
}

.article-page .article-block h2 {
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.article-page .article-block p,
.article-page .article-block li {
  font-size: 17px;
  line-height: 1.68;
}

.article-page .article-list {
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.article-page .article-list li {
  position: relative;
  padding-left: 30px;
}

.article-page .article-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.73em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(209, 144, 40, 0.14);
}

.article-photo-guide {
  overflow: hidden;
  padding: 0 !important;
}

.article-photo-guide figcaption {
  padding: 18px 22px 0;
  color: var(--teal-dark);
  font-weight: 950;
  font-size: 18px;
}

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

.article-photo-grid div {
  overflow: hidden;
  border-radius: 22px;
  background: var(--soft);
}

.article-photo-grid div + div {
  margin-left: 12px;
}

.article-photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-photo-grid span {
  display: block;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.article-inline-note {
  margin-top: 18px !important;
  padding: 18px 20px;
  border: 1px solid rgba(209, 144, 40, 0.26);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 244, 218, 0.94), rgba(226, 246, 242, 0.9));
  color: var(--ink) !important;
  font-weight: 760;
}

.article-inline-note a {
  color: var(--teal-dark);
  font-weight: 950;
}

.article-page .knowledge-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-theme="dark"] .article-page {
  --article-card-bg: rgba(13, 28, 35, 0.96);
  background: linear-gradient(180deg, #07171d 0, #0b1a21 560px, #0a1419 100%);
}

[data-theme="dark"] .article-page .article-block,
[data-theme="dark"] .article-page .article-photo-guide {
  border-color: rgba(130, 220, 215, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .article-page .article-block h2,
[data-theme="dark"] .article-photo-guide figcaption,
[data-theme="dark"] .article-inline-note a {
  color: #8ee5df;
}

[data-theme="dark"] .article-inline-note {
  border-color: rgba(255, 212, 138, 0.24);
  background: linear-gradient(135deg, rgba(42, 34, 18, 0.95), rgba(13, 44, 48, 0.92));
  color: #f5fbff !important;
}

@media (max-width: 720px) {
  .article-page main.article-content {
    padding-top: 44px !important;
  }

  .article-page main.article-content::before {
    height: 520px !important;
    background-position: 62% center !important;
  }

  .article-page .article-page-title {
    font-size: clamp(2.15rem, 11vw, 3.45rem);
    line-height: 1;
  }

  .article-hero-meta {
    margin-bottom: 42px !important;
  }

  .article-photo-grid,
  .article-page .knowledge-links {
    grid-template-columns: 1fr;
  }

  .article-photo-grid div + div {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* mobile adaptation: readable first screen and compact lead sheet */
@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    padding: 8px 12px 10px !important;
    gap: 8px !important;
  }

  .site-header .theme-toggle {
    width: 42px !important;
    min-width: 42px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  .site-header .theme-toggle-text {
    display: none !important;
  }

  .site-header .brand-wrap,
  .site-header > .brand {
    max-width: none !important;
    justify-self: start !important;
  }

  .site-header .brand,
  .site-header > .brand {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .site-header .brand-logo {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
  }

  .site-header .brand span,
  .site-header .brand .brand-text {
    display: grid !important;
  }

  .site-header .brand strong {
    font-size: 17px !important;
    letter-spacing: 0 !important;
  }

  .site-header .brand small {
    font-size: 11px !important;
  }

  .site-header .main-nav {
    gap: 6px !important;
    padding: 2px 0 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .main-nav a {
    min-height: 34px !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    scroll-snap-align: start;
  }

  .site-header .header-contacts {
    gap: 7px !important;
    padding: 0 0 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .header-phone {
    min-width: 172px !important;
    min-height: 42px !important;
  }

  .site-header .header-messenger {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  html {
    scroll-padding-top: 142px !important;
  }

  .hero {
    min-height: auto !important;
    padding: 30px 18px 124px !important;
    background-position: 62% center !important;
  }

  .hero-content {
    max-width: none !important;
    margin: 0 !important;
    padding-top: 0 !important;
  }

  .hero h1 {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 12.2vw, 3.55rem) !important;
    line-height: 0.98 !important;
    letter-spacing: 0 !important;
  }

  .hero h1 br {
    display: none;
  }

  .hero-lead {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .hero-phone {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1.15;
  }

  .quick-stats {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    gap: 10px;
    overflow: visible !important;
  }

  .quick-stats div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-topic > .section-heading.compact,
  .section-topic .section-heading.compact.service-heading {
    min-height: auto !important;
    padding: 22px 18px !important;
    border-radius: 22px !important;
    background-position: 60% center !important;
  }

  .section-topic > .section-heading.compact h2,
  .section-topic .section-heading.compact.service-heading h2 {
    font-size: clamp(1.85rem, 8.4vw, 2.7rem) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
  }

  .section-topic > .section-heading.compact p:last-child,
  .section-topic .section-heading.compact.service-heading p:last-child {
    font-size: 15px !important;
  }

  .reviews-list {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .reviews-list .review-card {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    grid-template-rows: auto auto 1fr !important;
    align-items: start;
    padding: 14px !important;
  }

  .reviews-list .review-photo {
    grid-row: 1 / 4;
    width: 108px !important;
    height: 108px !important;
    aspect-ratio: auto !important;
  }

  .reviews-list .review-stars,
  .reviews-list .review-meta,
  .reviews-list .review-card p {
    min-width: 0;
  }

  .reviews-list .review-card p {
    font-size: 14px !important;
    line-height: 1.45;
  }

  .lead-widget {
    left: 12px !important;
    right: 86px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: calc(100dvh - 96px);
    padding: 10px !important;
    border-radius: 18px !important;
    overflow-y: auto;
  }

  .lead-widget:not(.is-collapsed) {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-height: calc(100dvh - 22px);
    z-index: 150;
  }

  .lead-widget.is-collapsed {
    min-width: 0 !important;
  }

  .lead-widget.is-collapsed .lead-widget-head {
    gap: 8px !important;
  }

  .lead-widget-head {
    align-items: center;
  }

  .lead-widget-head strong {
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }

  .lead-widget-close {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px;
  }

  .lead-form-floating input,
  .lead-form-floating textarea,
  .lead-form-floating select {
    min-height: 44px;
    font-size: 16px;
  }

  .floating-call {
    right: 18px !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    width: 56px;
    height: 56px;
    z-index: 151;
  }
}

@media (max-width: 380px) {
  .site-header .brand strong {
    font-size: 16px !important;
  }

  .site-header .brand small {
    font-size: 10px !important;
  }

  .hero {
    padding-inline: 14px !important;
  }

  .reviews-list .review-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .reviews-list .review-photo {
    width: 96px !important;
    height: 96px !important;
  }
}

@media (max-width: 350px) {
  .hero-actions {
    grid-template-columns: 1fr !important;
  }
}
