:root {
  --bg: #0f1211;
  --bg-soft: #1a1f1d;
  --card: #222826;
  --text: #f1eee6;
  --muted: #c2bbaf;
  --accent: #a6251c;
  --accent-2: #d63b2f;
  --line: #3f4642;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #212825 0%, var(--bg) 48%);
  line-height: 1.65;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background-color: rgba(14, 17, 16, 0.88);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #5b615d;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35);
  background: #1f2522;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand-logo:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 10px 22px rgba(214, 59, 47, 0.26);
}

.brand span {
  color: var(--accent-2);
}

.phone-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #711a14);
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(166, 37, 28, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.phone-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(166, 37, 28, 0.42);
  filter: brightness(1.05);
}

section {
  padding: 3.2rem 0;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--accent-2);
  margin-bottom: 1.4rem;
  font-weight: 650;
}

.lead {
  color: var(--muted);
  max-width: 76ch;
  margin-bottom: 1rem;
}

.services {
  background: rgba(14, 17, 16, 0.34);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 1rem;
}

.services-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: visible;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.service-card .card-neon,
.pillar .card-neon {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  overflow: visible;
}

.service-card:hover .card-neon {
  opacity: 1;
}

.pillar .card-neon {
  opacity: 0.3;
}

.pillar:hover .card-neon {
  opacity: 0.6;
}

.service-card .card-neon rect,
.pillar .card-neon rect {
  x: 9px;
  y: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  rx: 15px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card .card-neon .trail,
.pillar .card-neon .trail {
  stroke: rgba(255, 72, 58, 0.75);
  stroke-width: 1.8;
  stroke-dasharray: 12 21.3333;
  filter: drop-shadow(0 0 6px rgba(255, 72, 58, 0.85)) drop-shadow(0 0 14px rgba(255, 72, 58, 0.45));
  animation: neon-path 5s linear infinite;
}

.service-card .card-neon .head,
.pillar .card-neon .head {
  stroke: #ff2f1f;
  stroke-width: 1.4;
  stroke-dasharray: 0 9 3 21.3333;
  filter: drop-shadow(0 0 8px rgba(255, 47, 31, 1));
  animation: neon-path 5s linear infinite;
}

.image-slot {
  width: calc(100% - 12px);
  margin: 6px 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: block;
  height: auto;
  background: linear-gradient(135deg, #2f3532, #252b28);
}

.service-card-content {
  padding: 0.95rem 1rem 1.05rem;
}

.service-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
}

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

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

.pillar {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: #6a4744;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.pillar h3 {
  margin-bottom: 0.45rem;
  color: var(--accent-2);
}

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

.closing {
  margin-top: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.contact {
  background: rgba(14, 17, 16, 0.34);
  border-top: 1px solid var(--line);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.contact-list a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.links a {
  text-decoration: none;
  color: #fff;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.links a:hover {
  transform: translateY(-2px);
  border-color: #7a4a46;
  color: #ffd2cc;
}

@keyframes neon-path {
  to {
    stroke-dashoffset: -100;
  }
}

@media (max-width: 480px) {
  .services-grid {
    gap: 0.8rem;
  }
  .service-card-content {
    padding: 0.75rem 0.6rem 0.85rem;
  }
  .service-card h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 430px) {
  .nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
  }
}

footer {
  padding: 2rem 0 2.4rem;
  color: #9f988e;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

/* Gallery Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 11, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 10px;
  line-height: 1;
  z-index: 1002;
}

.modal-close:hover {
  color: var(--accent-2);
  transform: scale(1.1);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 24, 22, 0.6);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 1002;
}

.modal-prev:hover,
.modal-next:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.modal-prev {
  left: -80px;
}

.modal-next {
  right: -80px;
}

@media (max-width: 768px) {
  .modal-prev {
    left: 10px;
  }
  .modal-next {
    right: 10px;
  }
  .modal-close {
    top: -50px;
    right: 0;
  }
}

.service-card {
  cursor: pointer;
}

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