/* ===================================================
   LIVAL-ACTIV — Main Stylesheet
   Design: Modern & Elegant Dark Burgundy + Gold
   =================================================== */

/* ─── VISUALLY HIDDEN (a11y) ────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── RESET & BASE ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #5a1a2b;   /* dark burgundy */
  --primary-d:  #3e1020;
  --primary-l:  #7a2a3f;
  --gold:       #c9a84c;
  --gold-l:     #e8c97a;
  --dark:       #1a1a1a;
  --text:       #3d3d3d;
  --text-light: #777;
  --bg:         #f9f7f4;
  --bg-dark:    #edece9;
  --white:      #ffffff;
  --border:     #e0ddd9;
  --shadow:     0 4px 30px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 50px rgba(0,0,0,0.18);
  --radius:     6px;
  --transition: 0.3s ease;
  --font-head:  'Cinzel', serif;
  --font-body:  'Lato', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }
.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 50px;
  text-align: center;
}
.accent { color: var(--primary); }
.section-cta { text-align: center; margin-top: 40px; }

/* ─── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-d);
  border-color: var(--primary-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90,26,43,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-light {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-l);
  border-color: var(--gold-l);
}

/* ─── HEADER ────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-top {
  background: var(--primary);
  padding: 7px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ─── LANGUAGE SWITCHER ─────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 6px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 14px;
  transition: var(--transition);
  font-family: var(--font-body);
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--white);
  color: var(--primary);
}
.header-main { padding: 0; }
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img { width: 54px; height: 54px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.logo-slogan {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* Nav */
.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary);
  background: rgba(90,26,43,0.07);
}

/* Header Contacts */
.header-contacts {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.hc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.hc-icon { font-size: 1.1rem; }
.hc-item strong { display: block; font-size: 0.88rem; color: var(--primary); }
.hc-item small { display: block; color: var(--text-light); font-size: 0.72rem; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  background: url('https://livalactiv.md/wp-content/uploads/2015/05/parallax.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(58,10,22,0.78) 0%, rgba(26,16,10,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 40px 24px;
  animation: fadeUp 1s ease both;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content h1 span { color: var(--gold-l); }
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.18rem);
  opacity: 0.88;
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── ABOUT HOME ────────────────────────────────── */
.about-home { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: 10px; bottom: 10px;
  border: 2px solid var(--gold);
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
}
.about-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.2;
}
.about-text p { margin-bottom: 16px; color: var(--text); }
.about-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── PROMO BANNER ──────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  padding: 36px 0;
  color: var(--white);
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.promo-badge {
  background: var(--gold);
  color: var(--white);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 3px;
  text-transform: uppercase;
}
.promo-inner p {
  font-size: 1.05rem;
  opacity: 0.92;
}

/* ─── SERVICES ──────────────────────────────────── */
.services-home { background: var(--bg-dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-img {
  overflow: hidden;
  height: 240px;
  background: var(--bg-dark);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body { padding: 20px; flex: 1; }
.service-body h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-body p { font-size: 0.88rem; color: var(--text-light); }
.service-link {
  display: block;
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
  transition: var(--transition);
}
.service-card:hover .service-link { color: var(--primary); }

/* ─── PARALLAX ──────────────────────────────────── */
.parallax-section {
  background: url('https://livalactiv.md/wp-content/uploads/2015/05/parallax.jpg') center/cover fixed no-repeat;
  position: relative;
  padding: 110px 0;
  text-align: center;
  color: var(--white);
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 8, 18, 0.7);
}
.parallax-content {
  position: relative;
  z-index: 2;
}
.parallax-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.parallax-content p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 36px;
  font-weight: 300;
}

/* ─── TESTIMONIALS ──────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 32px;
  position: relative;
  border-left: 4px solid var(--gold);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonial-card cite {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.88rem;
}

/* ─── FOOTER ────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo img { width: 44px; height: 44px; object-fit: contain; filter: brightness(1.2); }
.footer-logo span {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
}
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.footer-contacts li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contacts a { color: rgba(255,255,255,0.7); }
.footer-contacts a:hover { color: var(--gold); }
.footer-viber {
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-schedule li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-links a {
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ─── CALL WIDGET ───────────────────────────────── */
.call-widget {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
}
.call-widget-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(90,26,43,0.4);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
}
.call-widget-btn:hover { background: var(--primary-d); transform: scale(1.04); }
.call-icon { font-size: 1.2rem; animation: ring 2.5s infinite; }
@keyframes ring {
  0%, 90%, 100% { transform: rotate(0); }
  92% { transform: rotate(-15deg); }
  96% { transform: rotate(12deg); }
}
.call-widget-form {
  display: none;
  position: absolute;
  bottom: 70px;
  left: 0;
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  width: 280px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
}
.call-widget-form.open { display: block; animation: fadeUp 0.3s ease; }
.call-widget-form p { font-size: 0.88rem; margin-bottom: 14px; color: var(--text); }
.call-widget-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 10px;
  outline: none;
  transition: var(--transition);
}
.call-widget-form input:focus { border-color: var(--primary); }
.call-submit { width: 100%; text-align: center; margin-top: 4px; }
.call-form-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
}

/* ─── SCROLL TOP ────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background: var(--primary);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(90,26,43,0.35);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--primary-d); transform: translateY(-3px); }

/* ─── FADE-IN ANIMATION ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Gallery items must always be visible (no fade-in) */
.gallery-item {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── PAGE HERO (inner pages) ───────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://livalactiv.md/wp-content/uploads/2015/05/parallax.jpg') center/cover;
  opacity: 0.18;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
}
.page-hero .breadcrumb {
  font-size: 0.85rem;
  opacity: 0.7;
}
.page-hero .breadcrumb a { color: var(--gold-l); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ─── ABOUT PAGE ────────────────────────────────── */
.about-page-section { background: var(--white); }
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-page-text h2 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-page-text p { margin-bottom: 16px; color: var(--text); }
.about-page-text ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.about-page-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
}
.about-page-text ul li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.promo-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-l) 100%);
  color: var(--white);
  padding: 36px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: center;
}
.promo-box .promo-badge { display: inline-block; margin-bottom: 14px; font-size: 0.8rem; }
.promo-box h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.promo-box p { opacity: 0.88; margin-bottom: 20px; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.stat-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-dark);
  border-radius: 10px;
  border-top: 3px solid var(--gold);
}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--primary);
  font-weight: 700;
}
.stat-label { font-size: 0.88rem; color: var(--text-light); margin-top: 8px; }

/* ─── SERVICES PAGE ─────────────────────────────── */
.services-page { background: var(--bg-dark); }
.service-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: start;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  padding: 36px;
}
.service-detail:nth-child(even) {
  grid-template-columns: 1fr 300px;
}
.service-detail:nth-child(even) .sd-img { order: 2; }
.service-detail:nth-child(even) .sd-text { order: 1; }
.sd-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 8px;
}
.sd-text h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.sd-text p { margin-bottom: 14px; color: var(--text); }
.sd-text ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.sd-text ul li {
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sd-text ul li::before {
  content: '▸';
  color: var(--primary);
  flex-shrink: 0;
}

/* ─── EPITAFII PAGE ─────────────────────────────── */
.epitafii-page { background: var(--white); }
.epitafii-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.epitaf-card {
  background: var(--bg-dark);
  border-radius: 10px;
  padding: 32px;
  border-left: 4px solid var(--primary);
  position: relative;
}
.epitaf-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}
.epitaf-card p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}
.epitaf-card cite {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.epitafii-intro {
  max-width: 750px;
  margin: 0 auto 60px;
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

/* ─── GALLERY PAGE ──────────────────────────────── */
.gallery-page { background: var(--bg-dark); }
.gallery-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90,26,43,0.55);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ─── CONTACT PAGE ──────────────────────────────── */
.contact-page { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 28px;
}
.contact-info-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ci-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.ci-text p, .ci-text a {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}
.ci-text a:hover { color: var(--primary); }
.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 30px;
}
.contact-map iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}
.contact-form-wrap h2 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90,26,43,0.1);
}
.contact-form textarea { height: 130px; resize: vertical; }
.form-submit { margin-top: 8px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 10px; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 40px; }
  .header-contacts { display: none; }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 30px 30px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.35s ease;
    z-index: 1000;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .about-grid,
  .about-page-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .epitafii-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .sd-img { order: 0; }
  .service-detail:nth-child(even) .sd-text { order: 0; }
  .form-row { grid-template-columns: 1fr; }
  .header-top { display: none; }
  .about-img img { height: 300px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section { padding: 60px 0; }
}



