.compare-article {
  --ink: #172033;
  --muted: #5d6a80;
  --line: #d9edf2;
  --brand: #10b7c4;
  --brand-dark: #087986;
  --soft: #eefbfd;
  --accent: #fff3c4;
  background: #f8fbfc;
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

.compare-article html,
.compare-article body,
body.compare-article {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.compare-article * {
  box-sizing: border-box;
  max-width: 100%;
}

.compare-article img,
.compare-article table,
.compare-article figure,
.compare-article section,
.compare-article article,
.compare-article aside {
  max-width: 100%;
}

.compare-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e8f2f5;
  backdrop-filter: blur(10px);
}

.compare-topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.compare-logo img {
  width: 42px;
  height: auto;
}

.compare-logo span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.compare-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.compare-nav a {
  color: var(--ink);
  text-decoration: none;
}

.compare-nav a:hover {
  color: var(--brand-dark);
}

.compare-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #d6eef3;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.compare-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: #172033;
}

.compare-mobile-menu {
  display: none;
}

.compare-hero {
  padding: 46px 20px 28px;
}

.compare-hero__wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 34px;
  align-items: center;
}

.compare-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e6fbfd;
  color: #067986;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.compare-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  margin: 0 0 18px;
  letter-spacing: 0;
}

.compare-lead {
  font-size: 19px;
  color: #334155;
  margin: 0 0 24px;
  max-width: 760px;
}

.compare-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.compare-fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(15, 118, 129, .08);
}

.compare-fact span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 3px;
}

.compare-fact strong {
  font-size: 20px;
  line-height: 1.2;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.compare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.compare-button--light {
  background: #fff;
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.compare-hero__image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 40, 52, .16);
}

.compare-hero__image img,
.compare-photo img,
.compare-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-hero__image figcaption,
.compare-photo figcaption,
.compare-figure figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 14px;
  background: #fff;
}

.compare-figure {
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 118, 129, .08);
}

.compare-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 56px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  min-width: 0;
}

.compare-toc {
  position: sticky;
  top: 86px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(15, 118, 129, .08);
}

.compare-toc strong {
  display: block;
  margin-bottom: 12px;
}

.compare-toc a {
  display: block;
  color: #27435c;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid #eef5f7;
}

.compare-toc a:hover {
  color: var(--brand-dark);
}

.compare-content {
  background: #fff;
  border: 1px solid #e3f0f3;
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 18px 50px rgba(15, 40, 52, .08);
  min-width: 0;
  overflow-wrap: anywhere;
}

.compare-content h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.18;
  margin: 42px 0 16px;
  letter-spacing: 0;
}

.compare-content h2:first-child {
  margin-top: 0;
}

.compare-content h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 26px 0 10px;
}

.compare-content p {
  margin: 0 0 16px;
  color: #304058;
  font-size: 17px;
}

.compare-note {
  background: var(--soft);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
}

.compare-warning {
  background: #fff8db;
  border-left: 5px solid #e0a900;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 22px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8f2f5;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: #eafbfe;
  color: #064d5a;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-photo {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfeff;
}

.compare-card h3 {
  margin-top: 0;
}

.compare-list {
  margin: 12px 0 22px;
  padding-left: 20px;
  color: #304058;
  font-size: 17px;
}

.compare-list li {
  margin: 7px 0;
}

.compare-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0;
  background: #fbfeff;
}

.compare-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

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

.compare-links a {
  display: block;
  padding: 14px 16px;
  background: #eefbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #076f7b;
  text-decoration: none;
  font-weight: 800;
}

.compare-cta {
  margin-top: 38px;
  background: linear-gradient(135deg, #073b49, #0aa7b4);
  color: #fff;
  border-radius: 8px;
  padding: 26px;
}

.compare-cta h2,
.compare-cta p {
  color: #fff;
}

.compare-cta h2 {
  margin-top: 0;
}

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

  .compare-topbar__inner {
    position: relative;
  }

  .compare-menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
  }

  .compare-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .compare-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .compare-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .compare-menu-toggle span {
    transition: transform .18s ease, opacity .18s ease;
  }

  .compare-mobile-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    z-index: 30;
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 10px;
    border: 1px solid #d6eef3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 40, 52, .16);
  }

  .compare-mobile-menu.is-open {
    display: grid;
  }

  .compare-mobile-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 800;
  }

  .compare-mobile-menu a:hover {
    background: #eafbfe;
    color: var(--brand-dark);
  }

  .compare-hero__wrap,
  .compare-layout {
    grid-template-columns: 1fr;
  }

  .compare-toc {
    position: static;
  }
}

@media (max-width: 640px) {
  body.compare-article {
    min-width: 0;
  }

  .compare-topbar__inner {
    padding: 10px 14px;
  }

  .compare-logo {
    gap: 8px;
  }

  .compare-logo img {
    width: 34px;
  }

  .compare-logo span {
    font-size: 11px;
    line-height: 1.25;
  }

  .compare-hero {
    padding: 22px 14px 18px;
  }

  .compare-hero__wrap {
    gap: 18px;
  }

  .compare-label {
    margin-bottom: 12px;
    padding: 7px 12px;
    font-size: 13px;
  }

  .compare-hero h1 {
    font-size: 29px;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .compare-lead {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .compare-hero__facts,
  .compare-grid,
  .compare-links {
    grid-template-columns: 1fr;
  }

  .compare-fact {
    padding: 12px;
  }

  .compare-fact strong {
    font-size: 18px;
  }

  .compare-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compare-button {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
  }

  .compare-hero__image figcaption,
  .compare-photo figcaption {
    font-size: 13px;
    line-height: 1.45;
  }

  .compare-layout {
    padding: 0 14px 36px;
    gap: 16px;
  }

  .compare-toc {
    padding: 14px;
  }

  .compare-toc a {
    font-size: 13px;
    padding: 7px 0;
  }

  .compare-content {
    padding: 20px 14px;
    border-radius: 8px;
  }

  .compare-content h2 {
    font-size: 24px;
    line-height: 1.22;
    margin: 32px 0 12px;
  }

  .compare-content h3 {
    font-size: 19px;
  }

  .compare-content p,
  .compare-list {
    font-size: 16px;
    line-height: 1.6;
  }

  .compare-note,
  .compare-warning {
    padding: 14px;
    margin: 18px 0;
  }

  .compare-table-wrap {
    overflow: visible;
    border: 0;
    margin: 18px 0 26px;
  }

  .compare-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fbfeff;
  }

  .compare-table td {
    border-bottom: 1px solid #e8f2f5;
    padding: 12px 14px;
  }

  .compare-table td:first-child {
    background: #eafbfe;
    color: #064d5a;
    font-weight: 800;
  }

  .compare-table td:nth-child(2)::before {
    content: "Реставрация: ";
    font-weight: 800;
    color: var(--ink);
  }

  .compare-table td:nth-child(3)::before {
    content: "Замена: ";
    font-weight: 800;
    color: var(--ink);
  }

  .compare-photo {
    margin: 20px 0;
  }

  .compare-card {
    padding: 15px;
  }

  .compare-faq details {
    padding: 14px;
  }

  .compare-cta {
    padding: 20px 16px;
    margin-top: 28px;
  }
}

@media (max-width: 380px) {
  .compare-hero h1 {
    font-size: 26px;
  }

  .compare-content h2 {
    font-size: 22px;
  }
}
