/* Urbumiudenim.lv — plain static layout inspired by original theme */

:root {
  --blue: #007bff;
  --blue-dark: #0056b3;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --bg: #f4f7fb;
  --card: #fff;
  --border: #d7deea;
  --max: 1140px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 40, 100, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: auto;
}

.site-header .brand img {
  width: 64px;
  height: auto;
  margin: -10px 0;
  display: block;
}

/* Invisible on desktop: lets the logo img stay a direct flex child */
.brand-logo-badge {
  display: contents;
}

.brand-text strong {
  display: block;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/24px no-repeat;
  cursor: pointer;
}

.nav-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.phone-header {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-switch .lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 1.2;
}

.lang-switch .lang-link:hover {
  color: var(--text);
  border-color: var(--text);
}

.lang-switch .lang-link.is-active {
  color: #fff;
  background: var(--primary, #1a5fb4);
  border-color: var(--primary, #1a5fb4);
}

@media (max-width: 900px) {
  .header-inner {
    padding: 6px 0;
    overflow: visible;
  }

  /* Row height follows title text; logo is out of flow and can extend past the strip */
  .site-header .brand {
    position: relative;
    padding-left: 80px;
    /* flex + min-width lets long EN/RU taglines shrink; burger stays on first row */
    overflow: visible;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
  }

  .site-header .brand-logo-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin: 0;
    z-index: 2;
  }

  .site-header .brand-logo-badge img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
    object-fit: contain;
    transform: scale(1.52);
    transform-origin: center center;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-main {
    width: 100%;
    display: none;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border);
  }

  .nav-main.is-open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
    gap: 4px;
    padding: 0;
  }

  .nav-main a {
    display: block;
    padding: 10px 0 10px 4px;
  }

  .header-contact {
    width: 100%;
    padding: 0 20px 12px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: #2a4a6f;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }

  .service-card.is-flipping {
    animation: none;
    transform: none;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(10, 35, 70, 0.72), rgba(10, 35, 70, 0.35));
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--blue-dark);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Sections */
section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  perspective: 720px;
}

@keyframes service-card-flip {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(180deg);
  }
}

.service-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card.is-flipping {
  animation: service-card-flip 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: none;
}

.service-card.is-flip-reset {
  animation: none;
  transform: rotateY(0deg);
  transition: none;
}

.service-card:hover:not(.is-flipping):not(.is-flip-reset),
.service-card:focus-visible:not(.is-flipping) {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 25, 45, 0.12);
}

.service-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.service-card img,
.service-card p {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.service-card p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Cost / pipes */
.cost-pipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.pipe-card {
  background: linear-gradient(145deg, #e8f1fb, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.pipe-card .label {
  font-size: 0.9rem;
  color: var(--muted);
}

.pipe-card .size {
  font-size: 2rem;
  font-weight: 800;
  margin: 8px 0 20px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.numbered-list {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}

.numbered-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  align-items: start;
}

.numbered-list li i {
  counter-increment: step;
  font-style: normal;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.numbered-list li i::before {
  content: counter(step);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12' fill='none'%3E%3Cpath d='M1.05 5.17L6.4 10.41 15.4 1.41' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.center-actions {
  text-align: center;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Tabs */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.tab-btn[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.tab-panel {
  display: none;
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tab-panel.is-active {
  display: block;
}

.tab-panel h3 {
  margin-top: 0;
}

.tab-panel .media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 700px) {
  .tab-panel .media-row {
    grid-template-columns: 1fr;
  }
}

.tab-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.tab-panel th,
.tab-panel td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

.tab-panel th {
  background: #d1d5d8;
}

.pro-con {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

@media (max-width: 600px) {
  .pro-con {
    grid-template-columns: 1fr;
  }
}

.pro-con ul {
  margin: 0;
  padding-left: 20px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.step-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.step-card h3 {
  font-size: 1rem;
  margin: 12px 0 8px;
}

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

.steps-cta {
  text-align: center;
  margin-top: 32px;
}

.steps-cta a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* Map + contact row */
.contact-map-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map-row .map-embed {
  min-height: 400px;
}

.contact-map-row .map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* OpenStreetMap (Leaflet) */
.osm-map {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #dde8f0;
  z-index: 1;
}

.osm-map--tall {
  height: 500px;
}

.osm-map--short {
  height: 400px;
}

.leaflet-container {
  font-family: inherit;
}

.contact-box {
  padding: 32px;
}

.contact-box ul {
  padding-left: 18px;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 40px 16px 0;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--blue);
}

.faq-item.open .faq-q::after {
  content: "-";
}

.faq-a {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
}

.faq-item.open .faq-a {
  display: block;
}

.faq-a .btn-inline {
  display: inline-block;
  margin-top: 12px;
}

/* Google reviews */
.reviews {
  background: #fff;
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.reviews-google-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.reviews-google-card:hover {
  text-decoration: none;
  border-color: var(--blue);
}

.reviews-google-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.reviews-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.reviews-score-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.reviews-stars {
  color: #fbbc04;
  letter-spacing: 1px;
  font-size: 1rem;
}

.reviews-count {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
}

.reviews-add-btn {
  white-space: nowrap;
}

.reviews-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.review-card-head {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.review-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f1fb, #d0e3f7);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-meta {
  min-width: 0;
}

.review-author {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.review-source,
.review-rating {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.review-text {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.reviews-all-btn {
  min-width: 220px;
}

@media (max-width: 800px) {
  .contact-map-row {
    grid-template-columns: 1fr;
  }

  .reviews-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews-google-card {
    justify-content: center;
    text-align: center;
  }

  .reviews-score {
    justify-content: center;
  }

  .reviews-add-btn {
    text-align: center;
  }
}

/* Footer — match header palette */
.site-footer {
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
  text-decoration: none;
}

.site-footer .brand {
  color: inherit;
}

.site-footer .brand-text strong {
  color: var(--text);
}

.site-footer .brand-text span {
  color: var(--muted);
}

.site-footer .footer-tel {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.site-footer .footer-tel:hover {
  color: var(--blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.footer-nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-copy-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-footer .social-link:hover {
  color: var(--blue);
}

.social-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-shrink: 0;
  display: block;
}

/* Calculator — OSM location picker */
.calc-map-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.calc-pick-map {
  height: 320px;
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: #dde8f0;
  z-index: 1;
}

.calc-coords-label {
  font-size: 0.95rem;
  display: block;
}

.calc-coords-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.calc-dist-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 25, 45, 0.65);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  margin: auto;
  padding: 24px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.modal-maint {
  max-width: 640px;
}

.modal-service {
  max-width: 920px;
  padding: 36px 40px 40px;
}

.modal-service h2 {
  margin: 0 0 20px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.35;
  padding-right: 44px;
}

.service-modal-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.service-modal-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.service-modal-body p {
  margin: 0;
}

.modal-close--dark {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  #modal-service.modal-overlay {
    padding: 0;
    align-items: flex-end;
    cursor: pointer;
  }

  #modal-service .modal-service {
    max-width: none;
    width: 100%;
    max-height: 88dvh;
    min-height: auto;
    margin: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 56px 24px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    cursor: default;
    -webkit-overflow-scrolling: touch;
  }

  #modal-service .modal-close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    background-size: 22px;
  }
}

/* Phone modal (desktop) */
.modal-phone {
  max-width: 420px;
  text-align: center;
  padding: 32px 28px;
}

.modal-phone h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-phone .phone-modal-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  word-break: keep-all;
}

.modal-phone .phone-modal-note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.modal-phone .btn {
  display: inline-block;
  min-width: 180px;
}

.modal-maint .maint-body {
  margin-top: 12px;
  text-align: center;
}

.modal-maint .maint-body p {
  margin: 0;
}

.modal-maint .maint-body p + p {
  margin-top: 14px;
}

.modal-maint .maint-phone a {
  display: inline-block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.modal-maint .maint-phone a:hover {
  color: var(--blue);
}

.modal-maint .maint-ru {
  opacity: 0.9;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/20px no-repeat;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

/* Calculator wizard */
.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.75rem;
}

.calc-tabs li {
  flex: 1 1 90px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  background: #f0f4f9;
}

.calc-tabs li.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.calc-tabs .num {
  font-weight: 800;
  display: block;
}

.calc-step {
  display: none;
}

.calc-step.active {
  display: block;
}

.calc-options label.calc-opt {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.calc-options label.calc-opt.is-selected {
  border-color: var(--blue);
  background: #f0f7ff;
}

.calc-options input {
  margin-right: 8px;
}

.calc-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.calc-result-box {
  background: #f0f7ff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.calc-result-box dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.calc-result-box dt {
  font-weight: 600;
}

.calc-result-box dd {
  margin: 0 0 8px;
  color: var(--muted);
}

.price-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid transparent;
}

.form-status:empty {
  display: none;
}

.form-status[data-kind="info"] {
  background: #eef4ff;
  color: #1f3a76;
  border-color: #c7d6ef;
}

.form-status[data-kind="success"] {
  background: #e8f6ec;
  color: #1f6b34;
  border-color: #b9e3c4;
}

.form-status[data-kind="error"] {
  background: #fdecec;
  color: #8c1f1f;
  border-color: #f1b8b8;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----------------------------------------------------------------------
 * Well types & connection types — urbu.ms-style card layouts
 * Replaces the previous tab-bar interface in #well and #construction.
 * ---------------------------------------------------------------------- */

.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.cards-row--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .cards-row,
  .cards-row--2 {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.info-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg);
}

.info-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 22px 10px;
  color: var(--text);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 22px 22px;
}

/* Artēziskā detail block ----------------------------------------------- */
.artez-wrap {
  margin: 32px 0 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}

.artez-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.artez-hero--summary {
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .artez-hero {
    grid-template-columns: 1fr;
  }
}

.artez-img-col {
  overflow: hidden;
  background: #eef2f7;
  min-height: 320px;
}

@media (max-width: 900px) {
  .artez-img-col {
    min-height: 240px;
  }
}

.artez-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artez-intro-col {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.artez-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blue);
  margin: 0;
}

.artez-intro-col > p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.artez-pipes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.artez-pipes strong {
  color: var(--text);
  font-weight: 600;
  width: 100%;
}

.artez-pipe-badge {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 100px;
}

.artez-pipe-note {
  font-style: italic;
  font-size: 0.8rem;
}

.artez-depth-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.artez-depth-cell {
  background: var(--card);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artez-depth-cell--gold {
  background: rgba(255, 193, 7, 0.08);
  min-width: 130px;
  text-align: center;
  align-items: center;
}

.artez-depth-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.artez-depth-val {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.artez-depth-cell--gold .artez-depth-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.artez-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: var(--card);
}

@media (max-width: 900px) {
  .artez-features {
    grid-template-columns: 1fr;
  }
}

.artez-feature-col {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.artez-feature-col:last-child {
  border-right: none;
}

@media (max-width: 900px) {
  .artez-feature-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .artez-feature-col:last-child {
    border-bottom: none;
  }
}

.artez-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.artez-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artez-list li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.artez-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-dark);
}

.artez-list--numbered {
  counter-reset: artez-counter;
}

.artez-list--numbered li {
  counter-increment: artez-counter;
  padding-left: 24px;
}

.artez-list--numbered li::before {
  content: counter(artez-counter) ".";
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.artez-list--check li::before {
  content: "";
  left: 0;
  top: 0.2em;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12' fill='none'%3E%3Cpath d='M1.05 5.17L6.4 10.41 15.4 1.41' stroke='%2316a34a' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.artez-ideal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.artez-ideal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.artez-ideal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artez-ideal ul li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.artez-ideal ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* Connection type cards ----------------------------------------------- */
.conn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .conn-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .conn-grid {
    grid-template-columns: 1fr;
  }
}

.conn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.conn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 40, 100, 0.12);
  border-color: var(--blue);
}

.conn-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f5f9;
}

.conn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.conn-card:hover .conn-img {
  transform: scale(1.04);
}

.conn-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.conn-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  margin: 0;
}

.conn-desc-wrap {
  flex: 1;
}

.conn-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 8px;
}

.conn-pros,
.conn-cons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.conn-list-label {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}

.conn-pros-label {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.conn-cons-label {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.conn-pros ul,
.conn-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conn-pros ul li,
.conn-cons ul li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.conn-pros ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12' fill='none'%3E%3Cpath d='M1.05 5.17L6.4 10.41 15.4 1.41' stroke='%2316a34a' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.conn-cons ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 2l8 8M10 2L2 10' stroke='%23dc2626' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
