:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #202426;
  --muted: #5f686d;
  --line: #dfe4e1;
  --accent: #0f5f73;
  --accent-dark: #0a3f4d;
  --danger: #a6372f;
  --shadow: 0 14px 34px rgba(28, 39, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
}

.brand img {
  width: 64px;
  height: 46px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 1.12rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav .nav-phone {
  color: var(--accent);
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: clamp(34px, 6vw, 80px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(10, 24, 29, 0.84), rgba(10, 24, 29, 0.42) 52%, rgba(10, 24, 29, 0.12)),
    var(--hero-image) center / cover no-repeat;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfe4eb;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #edf7f9;
  font-size: clamp(1.12rem, 1.7vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

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

.button.secondary {
  background: #ffffff;
  color: var(--accent-dark);
  border-color: var(--line);
}

.section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 56px);
  background: var(--surface);
}

.section:nth-of-type(odd) {
  background: var(--bg);
}

.section-heading {
  width: min(880px, 100%);
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.services-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 18px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.service-card p,
.text-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.service-card p + p,
.text-block p + p {
  margin-top: 14px;
}

.gallery-tabs {
  width: min(1200px, 100%);
  margin: 0 auto 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-tabs button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.gallery-tabs button.active,
.gallery-tabs button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.gallery-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ece9;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  transition: transform 0.2s ease;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(26px, 5vw, 70px);
}

.text-block {
  max-width: 820px;
  font-size: 1.12rem;
}

.contact-section {
  background: var(--surface);
}

.projects-section .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.projects-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-item {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.project-item h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.project-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

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

.faq-list summary {
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 800;
}

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

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(18px, 4vw, 56px);
  background: #ffffff;
}

.service-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-hero p:not(.eyebrow) {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
}

.contact-details,
.contact-form,
.admin-box,
.admin-login {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(28, 39, 43, 0.06);
}

.contact-details {
  padding: 24px;
  font-size: 1.18rem;
}

.contact-details p {
  margin: 0 0 14px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-form input,
.contact-form textarea {
  font-size: 1.14rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd3d0;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 56px);
  background: #142126;
  color: #e8f0ee;
  font-size: 0.92rem;
}

footer a {
  color: #bfe4eb;
  text-decoration: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 50px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 6px;
  font-size: 2.6rem;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.admin-body {
  background: #f3f5f2;
}

.admin-main {
  padding: clamp(24px, 5vw, 56px);
}

.admin-panel,
.admin-login {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.admin-login {
  max-width: 460px;
  padding: 24px;
}

.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.admin-title h1,
.admin-box h2,
.admin-login h1 {
  margin: 0;
}

.admin-box {
  margin: 18px 0;
  padding: 22px;
}

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

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.service-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.service-editor summary {
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 800;
}

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

.admin-image-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.admin-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.danger {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--danger);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.alert.success {
  background: #e4f3e8;
  color: #235b30;
}

.alert.error {
  background: #f7e4e1;
  color: #7d231d;
}

@media (max-width: 920px) {
  .site-header,
  .contact-grid,
  .split-section,
  .service-hero {
    display: block;
  }

  .brand {
    margin-bottom: 10px;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 560px;
  }

  .services-grid,
  .gallery-grid,
  .admin-images,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-details {
    margin-bottom: 16px;
  }

  .service-hero img {
    margin-top: 24px;
  }

}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 520px;
    padding: 30px 18px;
  }

  .services-grid,
  .gallery-grid,
  .admin-images,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    aspect-ratio: 4 / 3;
  }

  .admin-title,
  footer {
    display: block;
  }

  footer a {
    display: inline-block;
    margin-top: 8px;
  }
}
