:root {
  --bg: #f5f8fc;
  --text: #1f2d3d;
  --muted: #5d6b7c;
  --primary: #2f6ea8;
  --primary-dark: #1f4f7f;
  --accent: #dceaf8;
  --white: #ffffff;
  --border: #cfdcec;
  --shadow: 0 18px 45px rgba(20, 45, 75, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.hero {
  background:
    linear-gradient(rgba(15, 15, 15, 0.45), rgba(15, 15, 15, 0.45)),
    url("lepcso.jpg") center/cover;
  color: #f8f8f8;
  padding-bottom: 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cfcfcf;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}

.lead {
  max-width: 680px;
  color: #d6d6d6;
  font-size: 1.02rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary,
.btn-reference {
  background: var(--primary);
  color: var(--white);
}

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

.btn-secondary,
.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-card,
.card,
.contact-box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--text);
  padding: 1.5rem;
}

.hero-card h2 {
  margin-top: 0;
}

.phone-pill {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
}

.phone-pill a,
.phone-link {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section {
  padding: 4rem 0;
}

.alt-section {
  background: #edf4fb;
}

.section-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title h2,
.split h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 780px;
  margin: 0 auto;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin: 0;
}

.card h3 {
  margin-top: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

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

.step {
  background: var(--white);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.contact-top-action {
  margin-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-light {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}

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

.quote-form {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

 .reference-page {
  background: var(--bg);
}

.reference-hero {
  background:
    linear-gradient(rgba(15, 15, 15, 0.55), rgba(15, 15, 15, 0.55)),
    url("lepcso.jpg") center/cover;
  color: var(--white);
  padding-bottom: 4rem;
}

.reference-intro {
  padding-top: 3rem;
}

.reference-groups {
  display: grid;
  gap: 1.5rem;
}

.reference-group {
  background: var(--white);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.reference-group h2 {
  margin-top: 0;
  text-align: center;
}

.gallery-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.gallery-shell.single-card {
  grid-template-columns: 1fr;
}

.gallery-view {
  position: relative;
  min-height: 360px;
}

.gallery-card {
  display: none;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-card.active {
  display: block;
}

.gallery-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.gallery-card p {
  margin: 0;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
}

.gallery-arrow {
  border: none;
  background: var(--primary);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 30, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 960px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-content,
  .cards,
  .split,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-box {
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.site-footer {
  padding: 1rem 0 2rem;
  text-align: center;
}

.footer-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn,
  .contact-actions .btn,
  .quote-form .btn {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-box {
    padding: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 0;
  }
}
