:root {
  --color-bg: #f5f7fb;
  --color-bg-alt: #ffffff;
  --color-primary: #2b6cb0;
  --color-primary-soft: #e3f2ff;
  --color-accent: #38b2ac;
  --color-text: #1a202c;
  --color-muted: #718096;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-full: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at top, #ffffff 0%, #edf2f7 40%, #e0f2fe 100%);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(
    90deg,
    rgba(247, 250, 252, 0.98),
    rgba(237, 242, 247, 0.96),
    rgba(237, 248, 255, 0.96)
  );
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--color-primary);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.35rem 0.55rem;
  margin-left: auto;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
  font-size: 1.3rem;
  line-height: 1;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
  position: relative;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle:hover {
  background: rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 4px rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9rem;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.12s ease;
}

.nav-link:hover {
  background: rgba(226, 232, 240, 0.7);
  border-color: rgba(203, 213, 224, 0.9);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(49, 130, 206, 0.3);
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: left;
  background-image: linear-gradient(
      135deg,
      rgba(43, 108, 176, 0.75),
      rgba(56, 178, 172, 0.82)
    ),
    url("images/razlog.jpg");
  background-size: cover;
  background-position: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero::before {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, #ebf4ff, rgba(49, 130, 206, 0.15));
  top: -40px;
  right: 6%;
  animation: floatBlob 18s ease-in-out infinite alternate;
}

.hero::after {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle at 70% 70%, #c6f6d5, rgba(56, 178, 172, 0.2));
  bottom: -60px;
  left: -10%;
  animation: floatBlob 20s ease-in-out infinite alternate-reverse;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 55%);
  mix-blend-mode: screen;
}

.hero-content {
  position: relative;
  max-width: 640px;
  padding: 4.5rem 0 3.5rem;
  animation: heroFadeIn 0.7s ease-out forwards;
  opacity: 0;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.8rem);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.hero p {
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  color: #edf2f7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.btn.primary {
  background-image: linear-gradient(135deg, #ffffff, #edf2ff);
  color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.3);
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 5rem;
}

.section-alt {
  background: rgba(247, 250, 252, 0.7);
}

.visit-cta {
  padding: 3rem 0;
}

.visit-cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(135deg, #ebf8ff, #e6fffa);
  border: 1px solid rgba(129, 230, 217, 0.7);
  box-shadow: 0 12px 30px rgba(56, 178, 172, 0.25);
}

.visit-cta h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.visit-cta p {
  margin: 0;
}

.visit-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.visit-cta-note {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.section h2 {
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.section-grid {
  display: grid;
  gap: 1.8rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  padding: 0.75rem;
}

.gallery-image {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  max-height: 260px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: zoom-in;
}

.gallery-item:hover .gallery-image {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card h3,
.card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  margin-top: 0;
  line-height: 1.6;
}

.card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-text);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 178, 172, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  border-color: rgba(129, 140, 248, 0.45);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background-image: linear-gradient(135deg, #ebf4ff, #bee3f8);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.25);
  font-size: 1.4rem;
}

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.contact-card {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(203, 213, 224, 0.9);
}

.map-placeholder {
  background: var(--color-primary-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(99, 179, 237, 0.9);
  padding: 0.1rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
}

.map-frame {
  position: relative;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.map-frame::before {
  content: "";
  display: block;
  padding-top: 70%;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero {
  padding: 3.2rem 0 2.4rem;
  background-image: linear-gradient(
      135deg,
      rgba(43, 108, 176, 0.92),
      rgba(56, 178, 172, 0.95)
    ),
    url("https://images.pexels.com/photos/3932976/pexels-photo-3932976.jpeg?auto=compress&cs=tinysrgb&w=1600");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.gallery-hero {
  background-image: linear-gradient(
      135deg,
      rgba(43, 108, 176, 0.9),
      rgba(56, 178, 172, 0.95)
    ),
    url("images/1/20250205_115513.jpg");
}

.services-hero {
  background-image: linear-gradient(
      135deg,
      rgba(43, 108, 176, 0.92),
      rgba(56, 178, 172, 0.95)
    ),
    url("https://images.pexels.com/photos/3932976/pexels-photo-3932976.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.about-hero {
  background-image: linear-gradient(
      135deg,
      rgba(43, 108, 176, 0.92),
      rgba(56, 178, 172, 0.95)
    ),
    url("https://images.pexels.com/photos/3932976/pexels-photo-3932976.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 40;
  padding: 1.5rem;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(960px, 100%);
  max-height: 100%;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: min(80vh, 640px);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  background: #f9fafb;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.lightbox-close:hover {
  background: #e5e7eb;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.3rem);
}

.page-hero p {
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
  color: #e2e8f0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid rgba(203, 213, 224, 0.7);
  background: rgba(247, 250, 252, 0.98);
  padding: 1.5rem 0 1.8rem;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .hero {
    min-height: 70vh;
  }

  .header-inner {
    padding: 1rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.7rem 0.5rem 0.9rem;
  }

  .home-header .header-inner {
    padding: 0.55rem 0.5rem 0.7rem;
    gap: 1rem;
  }

  .home-header .logo-subtitle {
    display: none;
  }

  .home-header .logo-title {
    font-size: 0.9rem;
  }

  .hero-content {
    padding: 2.6rem 1.5rem 2.2rem;
    max-width: 100%;
  }

  .hero {
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 5vw + 0.5rem, 2.1rem);
  }

  .hero p {
    font-size: 0.96rem;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.2rem;
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
  }

  .main-nav.nav-open {
    display: flex;
  }

  .nav-link {
    padding-inline: 0.9rem;
  }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBlob {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, 10px, 0) scale(1.06);
  }
  100% {
    transform: translate3d(12px, -12px, 0) scale(0.98);
  }
}



