.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.76rem 1.05rem;
  border-radius: 0.72rem;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 850;
  transition:
    transform var(--fast),
    background var(--fast),
    box-shadow var(--fast);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--primary-2);
  box-shadow: var(--shadow-sm);
}
.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn--danger {
  background: var(--danger);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.15rem, 2.4vw, 1.7rem);
  box-shadow: var(--shadow-sm);
}
.card--flat {
  box-shadow: none;
}
.card img {
  border-radius: 0.8rem;
  margin-bottom: 1.2rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--normal) var(--ease),
    box-shadow var(--normal);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.icon {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.55rem;
  background: var(--soft);
  border-radius: 0.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tag {
  display: inline-flex;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.76rem;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
}
.trust-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 750;
}
.emergency {
  background: #982e2e;
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}
.emergency a {
  color: #fff;
}
.quote-card {
  background: linear-gradient(140deg, #092f36, #0d5c63);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 5vw, 4rem);
}
.project-card {
  overflow: hidden;
  padding: 0;
}
.project-card .content {
  padding: 1.2rem 1.35rem;
}
.project-card img {
  border-radius: 0;
  margin: 0;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.testimonial blockquote {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.stars {
  letter-spacing: 0.13em;
  color: #9a7000;
}
.accordion {
  border-top: 1px solid var(--line);
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 1.1rem 0.1rem;
  font-weight: 850;
  color: var(--ink);
}
.accordion-panel {
  padding: 0 0.1rem 1.2rem;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 800;
}
.filter-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.comparison {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #123;
  aspect-ratio: 16/9;
}
.comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison .after {
  clip-path: inset(0 calc(100% - var(--position, 50%)) 0 0);
}
.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position, 50%);
  width: 4px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.comparison-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.comparison-label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border-radius: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
}
.comparison-label.before {
  left: 1rem;
}
.comparison-label.after-label {
  right: 1rem;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 20, 24, 0.72);
}
.modal-panel {
  background: #fff;
  width: min(680px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.toast-region {
  position: fixed;
  right: 1rem;
  top: 6rem;
  z-index: 150;
}
.toast {
  background: #092f36;
  color: #fff;
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  margin-top: 0.5rem;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
}
th,
td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--soft);
}
.pagination {
  display: flex;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
}
.pagination a {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  text-decoration: none;
}
.empty-state,
.error-state,
.success-state {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 2rem;
}
.success-state {
  border-color: #79b696;
  background: #eef9f2;
}
.error-state {
  border-color: #d99;
  background: #fff3f3;
}
.tabs [role="tablist"] {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.tabs [role="tab"] {
  border: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  font-weight: 800;
}
.tabs [role="tab"][aria-selected="true"] {
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}
.tooltip {
  position: relative;
}
.tooltip:hover:after,
.tooltip:focus:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 0.35rem;
  white-space: nowrap;
  font-size: 0.75rem;
}
