﻿:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-soft: #eef4f4;
  --text: #122222;
  --muted: #4e6666;
  --line: #d5e0e0;
  --accent: #0f7c7c;
  --accent-dark: #0a5f5f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f5f8f8 0%, #eff4f4 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

main,
.home-main {
  flex: 1;
}

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

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

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244, 249, 249, 0.92);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand img {
  width: 42px;
  height: 53px;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-list a {
  font-size: 0.95rem;
  color: #355151;
  border-bottom: 2px solid transparent;
  padding: 0.45rem 0;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.menu-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.menu-btn:focus-visible {
  outline: 3px solid rgba(15, 124, 124, 0.35);
  outline-offset: 3px;
}


.btn {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.1);
}

.btn:focus-visible {
  outline: 3px solid rgba(15, 124, 124, 0.35);
  outline-offset: 3px;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

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

.btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent-dark);
}

.btn.ghost:hover {
  background: #fff;
}

.btn.danger {
  border-color: #b52b2b;
  color: #b52b2b;
}

.btn.danger:hover {
  background: #b52b2b;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .menu-btn {
    transition: none;
  }
  .btn:hover,
  .btn:active,
  .menu-btn:hover,
  .menu-btn:active {
    transform: none;
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .about-aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

.hero-cover,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #cfdcdc;
}

.hero-cover img,
.page-hero img {
  width: 100%;
  height: clamp(300px, 48vh, 620px);
  object-fit: cover;
  filter: brightness(0.6)
}

.hero-overlay,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(9, 18, 18, 0.72) 18%, rgba(9, 18, 18, 0.28) 62%, rgba(9, 18, 18, 0.12));
  display: flex;
  align-items: flex-end;
}

.hero-content,
.page-hero-content {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 2.2rem;
  color: #fff;
}

.hero-content h1,
.page-hero-content h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-content p,
.page-hero-content p {
  margin: 0.9rem 0 0;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.9);
}

.hero-lead {
  max-width: 42ch;
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.hero-actions .btn.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 2.1rem 0 2.7rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  margin-top: 0;
}

body.page-about #aboutText {
  max-width: 76ch;
  color: #1f3f3f;
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}

body.page-about #aboutText p {
  margin: 0 0 1.05rem;
}

body.page-about #aboutText p:last-child {
  margin-bottom: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.8rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.about-aside {
  border-left: 1px solid var(--line);
  padding-left: 1.2rem;
}

.about-aside h3 {
  margin-top: 0;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 1rem;
  display: grid;
  gap: 0.55rem;
}

.about-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.55rem;
  align-items: start;
  color: #244545;
}

.about-points li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 124, 124, 0.12);
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.panel,
.card,
.panel-block,
.service-detail-shell,
.service-block,
.contact-shell,
.admin-gallery-item,
.contact-row {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 1rem;
}

.home-intro {
  padding: 1.6rem 0 0.8rem;
}

.intro-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
}

.kpi {
  font-size: 2rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.slide-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  height: clamp(240px, 45vh, 480px);
  object-fit: cover;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(10, 18, 18, 0.46);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.slider-nav.left {
  left: 12px;
}

.slider-nav.right {
  right: 12px;
}

.services-page {
  display: grid;
  gap: 1.8rem;
}

.home-services-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-start;
}

.card-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.card-actions .btn {
  width: auto;
}

.admin-hero-preview {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.admin-hero-preview-label {
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  color: #244545;
  border-bottom: 1px solid var(--line);
}

.admin-hero-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eef4f4;
}

.captcha-wrap,
.turnstile-wrap {
  padding: 0.4rem 0;
}

.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.captcha-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 20, 0.35);
  backdrop-filter: blur(7px);
}

.captcha-modal-panel {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 1rem 1rem 1.1rem;
}

.captcha-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.captcha-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.captcha-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

body.modal-open {
  overflow: hidden;
}

.contact-message {
  white-space: pre-wrap;
}

.service-wizard {
  padding: 1.1rem 0 1.35rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-wizard-head h3 {
  margin-bottom: 0.25rem;
}

.calendar-shell {
  margin-top: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.65);
}

.calendar-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.calendar-head .btn {
  justify-self: start;
  padding: 0.55rem 0.85rem;
}

.calendar-head #calendarNext {
  justify-self: end;
}

.calendar-label {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #183131;
  text-align: center;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.cal-day {
  border: 1px solid #cfe0e0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #183131;
  padding: 0.65rem 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.cal-day:hover {
  transform: translateY(-1px);
  border-color: #8fbcbc;
}

.cal-day.is-out {
  opacity: 0.35;
  pointer-events: none;
}

.cal-day.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.6);
}

.cal-day.is-selected {
  border-color: rgba(15, 124, 124, 0.55);
  background: rgba(15, 124, 124, 0.12);
}

.service-wizard-actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-start;
}

.service-wizard-actions .btn.primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-context {
  padding: 1rem 0 1.1rem;
}

.contact-context-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.contact-context-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-context-actions .btn {
  padding: 0.5rem 0.8rem;
}

.context-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  color: var(--accent-dark);
  background: rgba(15, 124, 124, 0.08);
}

.contact-context-body {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.context-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.context-value {
  font-weight: 700;
  color: #1b2d2d;
}

.service-hero {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.services-journey-wrap {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.services-journey {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.journey-card {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  border: 1px solid #b7c8c8;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.journey-card.active {
  border-color: #7fa9a9;
  box-shadow: 0 10px 24px rgba(10, 32, 32, 0.16);
}

.journey-card:focus-visible {
  outline: 3px solid rgba(15, 124, 124, 0.34);
  outline-offset: 2px;
}

.journey-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.28s ease;
}

.journey-card:hover::before {
  transform: scale(1.03);
}

.journey-theme-a::before {
  background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1400&q=80");
}

.journey-theme-b::before {
  background-image: url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1400&q=80");
}

.journey-theme-c::before {
  background-image: url("https://images.unsplash.com/photo-1464375117522-1311dd7d0cd6?auto=format&fit=crop&w=1400&q=80");
}

.journey-theme-d::before {
  background-image: url("https://images.unsplash.com/photo-1475721027785-f74eccf877e2?auto=format&fit=crop&w=1400&q=80");
}

.journey-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(7, 12, 12, 0.14) 12%, rgba(7, 12, 12, 0.8) 78%);
}

.journey-overlay h3,
.journey-overlay p,
.journey-meta {
  margin: 0;
}

.journey-overlay h3 {
  font-size: 1.1rem;
}

.journey-copy {
  max-width: 30ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.journey-copy,
.journey-meta {
  display: none;
}

.journey-card.active .journey-copy,
.journey-card.active .journey-meta {
  display: block;
}

.journey-actions {
  margin-top: 0.2rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.journey-actions .btn {
  padding: 0.45rem 0.78rem;
  font-size: 0.84rem;
}

.services-layout {
  display: block;
}

.service-detail-shell[hidden] {
  display: none;
}

.service-detail-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
  padding: 1.15rem 1.2rem 1.25rem;
}

.service-head {
  display: grid;
  gap: 0.45rem;
}

.service-head #serviceDescription {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.service-block {
  border: 0;
  padding: 0;
  margin-top: 1.05rem;
}

.service-block h3 {
  margin-bottom: 0.65rem;
}

.service-cta-row {
  margin-top: 1.15rem;
  display: flex;
  justify-content: flex-start;
}

.service-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-badge,
.service-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bdd2d2;
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #325151;
  background: #f3f8f8;
}

.service-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-feature-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.service-feature-index {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 124, 124, 0.25);
}

.service-feature-text {
  color: #173636;
  line-height: 1.45;
  padding-top: 0.05rem;
}

.service-empty {
  margin: 0;
  color: var(--muted);
}

.services-process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  padding-top: 0.25rem;
}

.services-process-head {
  border-right: 1px solid var(--line);
  padding-right: 1.2rem;
}

.services-process-kicker,
.process-stage-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5b7575;
  font-weight: 700;
}

.services-process-track {
  display: grid;
  gap: 1rem;
}

.process-stage {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.process-stage:last-child {
  border-bottom: 0;
}

.process-stage-mark {
  display: none;
}

.process-stage-copy {
  display: grid;
  gap: 0.55rem;
}

.process-stage-extra {
  display: grid;
  gap: 0.55rem;
}

.process-more-btn {
  display: none;
  border: 1px solid var(--line);
  background: rgba(15, 124, 124, 0.08);
  color: #0f5f5f;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.process-more-btn:hover {
  background: rgba(15, 124, 124, 0.12);
}

.gallery-page,
.contact-page {
  display: grid;
  gap: 1rem;
}

.gallery-toolbar {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.select-wrap {
  position: relative;
  display: inline-block;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #335757;
  border-bottom: 2px solid #335757;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

form label,
.admin-panel label {
  display: block;
  font-size: 0.92rem;
  color: #2a4d4d;
  font-weight: 700;
}

input,
select,
.cm-select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #a9c2c2;
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0.1rem 0.55rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

textarea {
  width: 100%;
  border: 1px solid #a9c2c2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.8rem 0.9rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(78, 102, 102, 0.78);
}

form {
  display: grid;
  gap: 0.7rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

select,
.cm-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.1rem;
}

input:focus,
textarea:focus,
select:focus,
.cm-select:focus {
  outline: none;
  border-color: #67acac;
  box-shadow: 0 0 0 3px rgba(15, 124, 124, 0.14);
}

.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.login-shell {
  max-width: 520px;
}

.admin-panel-spaced {
  margin-top: 1rem;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid #c7d7d7;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 9, 9, 0.88);
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1120px, 92vw);
}

.lightbox img {
  max-height: 82vh;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

#lightboxCaption,
.lightbox-counter {
  color: #e6f0f0;
  text-align: center;
  margin-top: 0.35rem;
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(8, 14, 14, 0.55);
  color: #fff;
  cursor: pointer;
}

.lightbox-nav.left {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.right {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  right: 16px;
  top: 16px;
}

.notice {
  margin: 0;
  display: none;
  border: 1px solid #b9dddd;
  background: #ebf9f9;
  color: #145353;
  border-radius: 8px;
  padding: 0.65rem;
}

.notice.show {
  display: block;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: auto;
  right: 1rem;
  bottom: 1rem;
  z-index: 130;
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  justify-content: flex-start;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  padding: 0.75rem 0.85rem;
  width: min(420px, calc(100vw - 2rem));
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cookie-banner-title {
  font-weight: 800;
  color: #183131;
  margin-bottom: 0.15rem;
}

.cookie-banner-body {
  color: #2e4b4b;
  line-height: 1.35;
  font-size: 0.95rem;
}

.cookie-banner-link {
  margin-left: 0.4rem;
  white-space: nowrap;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  .cookie-modal {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  .cookie-modal-panel {
    width: auto;
  }
}

.cookie-modal {
  position: fixed;
  inset: auto;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  top: auto;
  z-index: 1100;
  display: block;
  padding: 0;
}

.cookie-modal-backdrop {
  display: none;
}

.cookie-modal-panel {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 1rem 1rem 1.1rem;
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.cookie-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.cookie-modal-content {
  display: grid;
  gap: 0.6rem;
}

.cookie-setting {
  display: grid;
  gap: 0.35rem;
  border: 0;
  padding: 0.25rem 0;
  background: transparent;
}

.cookie-setting + .cookie-setting {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.2rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #183131;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.cookie-modal-links a {
  color: #205a5a;
  font-weight: 700;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(230, 240, 240, 0.8);
  color: #244545;
  font-weight: 800;
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-footer {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #eff5f5 0%, #e6eeee 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.1rem;
  padding: 1.2rem 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #4b6363;
}

.footer-bottom {
  border-top: 1px solid #cfdddd;
  padding: 0.75rem 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.2rem;
}

.dash-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.dash-sidebar p {
  color: var(--muted);
}

.dash-nav {
  display: grid;
  gap: 0.35rem;
}

.dash-nav a {
  padding: 0.6rem 0.75rem;
  color: #2f4d4d;
  border: 1px solid #dde7e7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dash-nav a.active,
.dash-nav a:hover {
  color: var(--accent-dark);
  border-color: rgba(15, 124, 124, 0.48);
  background: rgba(15, 124, 124, 0.1);
}

.dash-side-actions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.dash-content {
  display: grid;
  gap: 1rem;
}

.panel-block.is-hidden {
  display: none;
}

.admin-panel,
.admin-actions,
.admin-list,
.contact-toolbar,
.contact-actions,
.contact-scope {
  display: grid;
  gap: 0.6rem;
}

.contact-toolbar {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.contact-scope {
  display: inline-flex;
  gap: 0.5rem;
}

.contact-scope .btn.active-scope {
  background: var(--accent);
  color: #fff;
}

.contact-meta,
.admin-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-gallery-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-gallery-item img {
  width: 84px;
  height: 56px;
  object-fit: cover;
}

.admin-item-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-session-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(9, 15, 15, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-session-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid #cddddd;
  padding: 1rem;
}

.admin-session-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.global-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 86px;
  background: rgba(7, 13, 13, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.global-loader.show {
  opacity: 1;
  pointer-events: auto;
}

.global-loader-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #c8dddd;
  border-radius: 999px;
  background: #fff;
  color: #174949;
  font-weight: 700;
  padding: 0.48rem 0.84rem;
}

.global-loader-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #b5d9d9;
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.page-enter .topbar,
body.page-enter main,
body.page-enter .site-footer {
  opacity: 0;
  transform: translateY(8px);
}

body.page-enter.page-ready .topbar,
body.page-enter.page-ready main,
body.page-enter.page-ready .site-footer {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

body.page-enter.page-ready main {
  transition-delay: 0.05s;
}

body.page-enter.page-ready .site-footer {
  transition-delay: 0.09s;
}

.page-contact .contact-shell {
  max-width: 760px;
}

.page-contact #contactForm {
  gap: 0.95rem;
}

.page-contact .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.page-contact .field {
  display: grid;
  gap: 0.4rem;
}

.page-contact .form-spacer {
  height: 0.85rem;
}

.page-contact .message-field textarea {
  min-height: 180px;
  resize: vertical;
}

.page-contact #contactForm .btn.primary {
  justify-self: start;
  min-width: 160px;
}

@media (max-width: 980px) {
  .container {
    width: min(var(--max), calc(100% - 1.2rem));
  }

  .section {
    padding: 1.65rem 0 2rem;
  }

  .hero-cover img,
  .page-hero img {
    height: clamp(250px, 42vh, 420px);
  }

  .hero-content,
  .page-hero-content {
    margin-bottom: 1.45rem;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px;
    padding: 0 0.9rem;
    border: 1px solid #c6d6d6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #204646;
    font-size: 0.95rem;
    font-weight: 700;
    position: relative;
    transition: transform 0.14s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .menu-btn.is-open {
    border-color: #88abab;
    background: #f1f7f7;
  }

  .menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  }

  .menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.1);
  }

  .nav-list {
    position: absolute;
    right: 0.7rem;
    top: 74px;
    width: min(300px, calc(100vw - 1.4rem));
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #cfdddd;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(8, 28, 28, 0.14);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.24s ease;
  }

  .nav-list.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.62rem 0.75rem;
    border-radius: 10px;
    border-bottom: 0;
    color: #2a4f4f;
    background: transparent;
  }

  .nav-list a:hover,
  .nav-list a.active {
    background: #edf5f5;
    color: #0f5f5f;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .intro-panels,
  .grid-3,
  .services-process,
  .footer-grid,
  .dash-shell {
    grid-template-columns: 1fr;
  }

  .services-process-head {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.8rem;
  }

  .services-process-track {
    gap: 0.8rem;
  }

  .process-stage {
    border-bottom: 0;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
  }

  .process-stage-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 124, 124, 0.12);
    color: #0f5f5f;
    font-weight: 900;
    margin-bottom: 0.5rem;
  }

  .process-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }

  .service-feature-list {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: static;
    top: auto;
    border: 1px solid var(--line);
    padding: 0.9rem;
  }

  .contact-toolbar {
    grid-template-columns: 1fr;
  }

  .page-contact .form-row {
    grid-template-columns: 1fr;
  }

  .contact-context-body {
    grid-template-columns: 1fr;
  }

  .calendar-shell {
    padding: 0.75rem;
  }

  .calendar-head {
    grid-template-columns: auto 1fr auto;
  }

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

  .gallery-item img {
    height: 136px;
  }

  .lightbox-nav,
  .lightbox-close {
    width: 40px;
    height: 40px;
  }
}

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

  .gallery-item img {
    height: 180px;
  }

  .btn {
    padding: 0.62rem 0.95rem;
  }
}
