:root {
  color-scheme: light;
  --bg: #f4fbfd;
  --surface: #ffffff;
  --surface-soft: #eaf8fb;
  --text: #132534;
  --muted: #587182;
  --line: #cde6ee;
  --primary: #0478a8;
  --primary-dark: #055f86;
  --cyan: #13b8d6;
  --green: #0f8f6f;
  --shadow: 0 18px 60px rgba(5, 95, 134, 0.14);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(205, 230, 238, 0.8);
  background: rgba(244, 251, 253, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a { text-decoration: none; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-legal a { text-decoration: none; }

.section, .hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 32px;
  padding: 56px 0 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 7vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
}

.city-search {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 24px;
}

.city-search label {
  color: var(--primary-dark);
  font-weight: 800;
}

.city-search-row { display: grid; gap: 10px; }

.city-search input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 20px rgba(5, 95, 134, 0.06);
}

.city-search input:focus {
  outline: 3px solid rgba(19, 184, 214, 0.22);
  border-color: var(--cyan);
}

.city-search-note { margin: 0; }

.city-search-error {
  min-height: 1.4em;
  margin: 0;
  color: #a33d12;
  font-size: 0.95rem;
  font-weight: 800;
}

.city-context {
  padding: 22px;
}

.city-context p {
  margin: 0 0 10px;
  color: var(--text);
}

.city-context .muted {
  color: var(--muted);
}

.city-search.home-search input {
  min-height: 60px;
  font-size: 1.15rem;
  padding: 0 18px;
}

.home-search .city-search-row {
  grid-template-columns: 1fr auto;
}

.home-search .city-search-row .button {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.08rem;
}

.verdict-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: #e6fbf4;
}

.verdict-card .verdict-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.verdict-card strong {
  display: block;
  color: #07533f;
  font-size: 1.08rem;
}

.verdict-card span {
  color: #0b7255;
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: white;
}

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

.button-secondary {
  border-color: var(--line);
  background: white;
  color: var(--primary-dark);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-panel, .card, .calculator, .product-panel, .final-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.hero-panel-note {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: #dff8ef;
  color: #07634b;
  font-weight: 800;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.metric-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.metric-list dt {
  color: var(--muted);
  font-weight: 700;
}

.metric-list dd { margin: 0; font-weight: 800; }

.notice {
  margin: 8px 0 0;
  border-left: 4px solid var(--cyan);
  padding: 10px 12px;
  background: var(--surface-soft);
  color: #24475a;
  font-size: 0.95rem;
}

.section { padding: 42px 0; }

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

.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; }

.grid-2, .grid-3 { grid-template-columns: 1fr; }

.card { padding: 20px; }

.city-link {
  display: grid;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
}

.city-link strong {
  color: var(--primary-dark);
  font-size: 1.08rem;
}

.city-link span { color: var(--muted); }

.map-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}

.interactive-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}

.interactive-map .leaflet-container {
  width: 100%;
  height: 520px;
  background: #e7fbff;
}

.interactive-map .leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  font-family: inherit;
}

.interactive-map .leaflet-popup-content {
  font-size: 0.95rem;
  margin: 10px 14px;
}

.leaflet-control-zoom { display: none !important; }

.map-panel .button { width: fit-content; }

.city-list-heading { margin-top: 30px; }

.parameter-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 164px;
  transform-style: preserve-3d;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 248, 251, 0.9)),
    radial-gradient(circle at 12% 12%, rgba(19, 184, 214, 0.2), transparent 32%);
  box-shadow: 0 18px 42px rgba(5, 95, 134, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.parameter-card strong {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.parameter-card p {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  color: var(--muted);
}

.parameter-card::before {
  content: "";
  position: absolute;
  inset: -60px auto auto -50px;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(19, 184, 214, 0.12);
  transform: translateZ(-1px);
}

.parameter-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -48px;
  z-index: 0;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(4, 120, 168, 0.14);
  border-radius: 32px;
  transform: rotate(18deg);
}

.parameter-card:hover {
  border-color: rgba(19, 184, 214, 0.72);
  box-shadow: 0 28px 58px rgba(5, 95, 134, 0.18);
  transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-6px);
}

.parameter-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(4, 120, 168, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #d9f5fb);
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 24px rgba(4, 120, 168, 0.12);
}

.parameter-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(4, 120, 168, 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.highlight-band {
  background: linear-gradient(135deg, #ffffff, #dff7fb);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-grid { display: grid; gap: 14px; }

.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(233, 247, 250, 0.92)),
    radial-gradient(circle at 16% 12%, rgba(19, 184, 214, 0.14), transparent 34%);
  box-shadow: 0 16px 34px rgba(5, 95, 134, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.summary-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: rgba(19, 184, 214, 0.1);
  transform: rotate(18deg);
}

.summary-card:hover {
  border-color: rgba(19, 184, 214, 0.72);
  box-shadow: 0 24px 48px rgba(5, 95, 134, 0.14);
  transform: perspective(900px) rotateX(3deg) translateY(-4px);
}

.summary-label {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.summary-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--primary-dark);
  font-size: 1.05rem;
  line-height: 1.25;
}

.summary-card-accent { background: linear-gradient(145deg, #ffffff, #e8fbf6); }

.summary-card-accent strong { color: #0b7255; }

.summary-note { margin-top: 14px; }

.insight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(4, 120, 168, 0.16);
  box-shadow: 0 18px 42px rgba(5, 95, 134, 0.1);
}

.insight-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(4, 120, 168, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hardness-scale {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.hardness-scale-bar {
  height: 14px;
  border-radius: 999px;
  background: #eef8f3;
  border: 1px solid var(--line);
  overflow: hidden;
}

.hardness-scale-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 600ms ease;
}

.hardness-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.hardness-scale-current {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.analysis-empty {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.calculator {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 14% 10%, rgba(19, 184, 214, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(223, 247, 251, 0.92));
}

.calculator::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(4, 120, 168, 0.12);
  border-radius: 58px;
  transform: rotate(18deg);
}

.calculator-controls, .calculator-output {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(205, 230, 238, 0.86);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(5, 95, 134, 0.09);
}

.calc-kicker {
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(4, 120, 168, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid { display: grid; gap: 14px; }

.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #25465a;
  font-weight: 800;
}

.field label .calc-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #e6f8fc;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: linear-gradient(180deg, #ffffff, #f8fdff);
  color: var(--text);
  font: inherit;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 20px rgba(5, 95, 134, 0.06);
}

.field input:focus {
  outline: 3px solid rgba(19, 184, 214, 0.22);
  border-color: var(--cyan);
}

.calc-readonly input {
  color: var(--primary-dark);
  background: #eafbff;
}

.calc-legal-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.calc-legal-note small { font-weight: 700; }

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

.result-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfeff;
  box-shadow: 0 14px 28px rgba(5, 95, 134, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.result-item::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(19, 184, 214, 0.1);
  transform: rotate(16deg);
}

.result-item:hover {
  border-color: rgba(19, 184, 214, 0.72);
  box-shadow: 0 22px 44px rgba(5, 95, 134, 0.15);
  transform: perspective(900px) rotateX(3deg) translateY(-4px);
}

.result-item span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.result-item strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: var(--primary-dark);
  font-size: 1.55rem;
  line-height: 1.1;
}

.result-source { background: linear-gradient(145deg, #ffffff, #eaf8fb); }

.result-saving {
  border-color: rgba(15, 143, 111, 0.24);
  background: linear-gradient(145deg, #ffffff, #e6fbf4);
}

.result-saving strong { color: var(--green); }

.commercial-message {
  margin: 0;
  border-radius: var(--radius);
  padding: 14px;
  background: #e6fbf4;
  color: #07533f;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

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

.data-table th {
  background: var(--surface-soft);
  color: var(--primary-dark);
  font-size: 0.9rem;
}

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

.product-panel {
  display: grid;
  gap: 20px;
  overflow: hidden;
}

.product-panel .button-row { margin-top: 18px; }

.product-copy { padding: 22px; }

.product-visual {
  min-height: 360px;
  padding: 26px;
  background: linear-gradient(145deg, #ecfbff, #bceef6);
  display: grid;
  place-items: center;
}

.product-image {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(4, 76, 108, 0.22));
}

.faq-list { display: grid; gap: 12px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: white;
}

.faq-list summary { cursor: pointer; font-weight: 900; }

.faq-list p { margin: 10px 0 0; color: var(--muted); }

.related-cities .city-link { min-height: 104px; }

.mobile-cta { display: none; }

.final-cta {
  margin-bottom: 48px;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-dark), #069fbd);
  color: white;
}

.final-cta p { color: rgba(255, 255, 255, 0.86); }

.final-cta .notice {
  color: #24475a;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: white;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .nav-links { display: flex; }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: center;
    padding: 64px 0 54px;
  }

  .city-search-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }

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

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

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

  .calculator { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); padding: 26px; }

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

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

  .map-layout { grid-template-columns: minmax(0, 1fr) 320px; }

  .product-copy { padding: 32px; }

  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 759px) {
  main { padding-bottom: 148px; }

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(205, 230, 238, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(5, 95, 134, 0.18);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 420px) {
  .interactive-map { min-height: 400px; }
  .interactive-map .leaflet-container { height: 400px; }

  .parameter-card:hover { transform: translateY(-3px); }

  .result-item:hover { transform: translateY(-3px); }

  .metric-list div { grid-template-columns: 1fr; gap: 2px; }

  .button { width: 100%; }

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