:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel-2: #f1f4f9;
  --text: #10182c;
  --muted: #5d6880;
  --line: #dce2ec;
  --dark: #0b1020;
  --dark-2: #111827;
  --accent: #4d2ee8;
  --accent-2: #25b35b;
  --warn: #f4bf38;
  --shadow: 0 18px 42px rgba(16, 24, 44, 0.11);
  --radius: 6px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1322;
  --panel: #151c2c;
  --panel-2: #101827;
  --text: #f4f7fb;
  --muted: #aab4c7;
  --line: #293348;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, rgba(77, 46, 232, 0.09), transparent 30%), var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

a:hover {
  color: var(--accent);
}

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

button,
select,
a[href] {
  cursor: pointer;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(11, 16, 32, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 0 44px;
}

.brand,
.footer-brand {
  font-weight: 850;
  font-size: 1.35rem;
}

.location-chip,
.icon-button,
.ghost-button,
.primary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 750;
  white-space: nowrap;
}

.location-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 0.92rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(77, 46, 232, 0.25);
}

.outline-button {
  color: var(--accent);
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

main {
  padding-top: 64px;
}

.home-hero,
.hero-local,
.search-panel,
.catalog-section,
.compare-section,
.cta-band,
.simple-page,
.article-page,
.detail-hero,
.detail-grid,
.material-strip {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 24px;
}

.home-copy {
  display: grid;
  align-content: center;
  min-height: 360px;
}

.home-copy h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  line-height: 0.98;
}

.home-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.14rem;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 18px;
}

.home-search label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.home-search input {
  min-height: 48px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.home-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.home-summary span {
  display: grid;
  gap: 4px;
  min-height: 118px;
  align-content: end;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.home-summary strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.hero-local {
  padding: 30px 0 34px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 10px;
  color: #9aa4b8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.98;
  max-width: 760px;
}

.hero-copy h1 strong {
  display: block;
  color: var(--accent);
}

.hero-copy p {
  max-width: 620px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-strip span {
  display: grid;
  gap: 2px;
  padding: 15px 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.stat-strip span:last-child {
  border-right: 0;
}

.stat-strip strong {
  color: var(--text);
  font-size: 1.14rem;
}

.map-panel {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-panel img {
  width: 100%;
  height: auto;
}

.map-panel p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--accent);
  border: 4px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(77, 46, 232, 0.35);
}

.pin-a { left: 25%; top: 35%; }
.pin-b { left: 48%; top: 18%; }
.pin-c { left: 70%; top: 27%; }
.pin-d { left: 80%; top: 55%; }

.map-controls {
  position: absolute;
  right: 14px;
  bottom: 56px;
  display: grid;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-controls button {
  width: 38px;
  height: 34px;
  border: 0;
  background: var(--panel);
  color: var(--text);
  font-weight: 800;
}

.search-panel,
.compare-section,
.cta-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 18px;
}

.search-panel h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-form {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr auto;
  gap: 16px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
  position: relative;
}

.field label,
.newsletter label,
.sort-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.field input,
.field select,
.contact-form input,
.contact-form textarea,
.newsletter input,
.section-head select {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
}

.search-field svg {
  position: absolute;
  right: 12px;
  bottom: 13px;
  color: var(--muted);
}

.popular-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 13px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
}

.see-all {
  margin-left: auto;
  color: var(--accent);
  font-weight: 800;
}

.catalog-section,
.compare-section,
.simple-page,
.article-page {
  padding: 34px 0 0;
}

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

.section-head h2,
.simple-page h1,
.article-page h1,
.detail-hero h1 {
  margin: 0;
  line-height: 1.05;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.company-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 24, 44, 0.08);
}

.media {
  position: relative;
  height: 170px;
  background: var(--dark);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  position: absolute;
  inset: 12px 56px auto 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.76rem;
}

.verified {
  color: #fff;
  background: var(--accent-2);
}

.premium {
  color: #332600;
  background: var(--warn);
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(11, 16, 32, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
}

.favorite.is-active {
  color: #ffdee8;
  background: #bd1550;
}

.company-body {
  padding: 18px;
}

.company-body h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 10px;
  color: #f29a16;
  font-size: 0.9rem;
}

.rating span,
.company-body p,
.meta-line {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.phone-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-weight: 800;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.service-tile {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.service-tile strong {
  font-size: 1.14rem;
}

.service-tile span {
  color: var(--muted);
  font-size: 0.9rem;
}

.favorite-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.favorite-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.favorite-item img {
  width: 180px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius);
}

.favorite-item h2,
.favorite-item p {
  margin: 0 0 6px;
}

.favorite-item p {
  color: var(--muted);
}

.compare-section {
  padding: 24px;
  margin-top: 28px;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-size: 0.84rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 11%, var(--panel)), var(--panel));
}

.cta-band h2 {
  margin: 0 0 4px;
  color: var(--accent);
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 22px;
  padding: 36px 44px 20px;
  color: #dce6f6;
  background: #0b1020;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-grid h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #b5c0d3;
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.newsletter label {
  grid-column: 1 / -1;
  color: #b5c0d3;
}

.newsletter button {
  min-width: 46px;
  border: 0;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, 100%);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.simple-page,
.article-page {
  min-height: 58vh;
  padding-bottom: 36px;
}

.simple-page h1,
.article-page h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.simple-page > p,
.article-page > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.narrow {
  max-width: 820px;
}

.list-grid,
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.plain-card,
.material-card,
.quote-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.plain-card h2,
.material-card h2 {
  margin: 0 0 8px;
}

.plain-card p,
.material-card p {
  color: var(--muted);
}

.material-card dl,
.spec-grid {
  display: grid;
  gap: 10px;
}

.material-card dl div,
.spec-grid span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

dt,
.spec-grid strong {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding-top: 34px;
}

.detail-hero img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.detail-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.detail-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding-top: 28px;
}

.detail-grid article,
.article-body {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 8px;
}

.quote-box {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.contact-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.material-strip {
  padding-top: 28px;
}

.material-pill {
  display: inline-grid;
  min-width: 150px;
  margin: 0 8px 8px 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.material-pill span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header::-webkit-scrollbar {
    height: 3px;
  }

  .site-header::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.34);
  }

  .header-shell {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 14px;
    min-height: 60px;
    padding: 0 14px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .location-chip {
    flex: 0 0 auto;
  }

  .main-nav {
    flex: 0 0 auto;
    margin-left: 0;
    overflow: visible;
    padding: 0;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: 0;
  }

  main {
    padding-top: 60px;
  }

  .home-hero,
  .hero-grid,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .company-grid,
  .footer-grid,
  .list-grid,
  .material-grid,
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-form .primary-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .home-hero,
  .hero-local,
  .search-panel,
  .catalog-section,
  .compare-section,
  .cta-band,
  .simple-page,
  .article-page,
  .detail-hero,
  .detail-grid,
  .material-strip {
    width: min(100% - 28px, 1160px);
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .stat-strip,
  .home-search,
  .home-summary,
  .search-form,
  .company-grid,
  .footer-grid,
  .list-grid,
  .material-grid,
  .service-grid,
  .favorite-item {
    grid-template-columns: 1fr;
  }

  .favorite-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .section-head,
  .cta-band,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer {
    padding-inline: 20px;
  }
}
