/* NEO-CLINICA — kinetoterapie și reabilitare medicală */

:root {
  --ink: #141a3c;
  --text: #3d4257;
  --muted: #6a6f82;
  --navy: #1e2a6e;
  --navy-900: #121735;
  --brand: #2a4aa8;
  --brand-50: #eef1fa;
  --gold: #c99a2e;
  --gold-soft: #f6edd6;
  --bg: #ffffff;
  --bg-soft: #f7f5f0;
  --line: #e7e3d9;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(20, 26, 60, .04), 0 10px 30px rgba(20, 26, 60, .06);
  --shadow-lg: 0 2px 6px rgba(20, 26, 60, .05), 0 30px 60px rgba(20, 26, 60, .12);
  --container: 1180px;
  --header-h: 78px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }

.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15.5px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn i { font-size: 1.25em; }
.btn-primary, .btn-navy { background: var(--ink); color: #fff; }
.btn-primary:hover, .btn-navy:hover { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(20, 26, 60, .18); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold-soft); color: var(--ink); }

/* ---------- Top bar (contact details) ---------- */
.topbar { background: var(--navy-900); color: #c9cde0; font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; gap: 6px 22px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e6e8f2; }
.topbar a:hover { color: #fff; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item i { color: var(--gold); font-size: 16px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.tb-social { display: flex; gap: 16px; }
.tb-social i { color: var(--gold); margin-right: 3px; }
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }
.lang a { font-size: 12px; font-weight: 700; color: #c9cde0; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.lang a[aria-current="page"] { background: #fff; color: var(--ink); }
@media (max-width: 1180px) { .tb-email { display: none; } }
@media (max-width: 900px) { .tb-address { display: none; } }
@media (max-width: 640px) { .tb-social { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 26, 60, .05); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); line-height: 1.15; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 58px; height: auto; flex: none; }
.brand-name { display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 23px; color: #0040b6; letter-spacing: .01em; }
.brand-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; max-width: 250px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 14px; }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 26px; cursor: pointer; place-items: center;
}

@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .brand img { width: 48px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 11px; max-width: 200px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.motto { display: block; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; color: var(--ink); font-weight: 800; }
.motto em {
  font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em;
  color: var(--navy); position: relative; white-space: nowrap;
}
.motto em::after {
  content: ""; position: absolute; left: 2%; right: 4%; bottom: -.04em; height: .09em; border-radius: 1em;
  background: var(--gold); opacity: .85;
}
.h1-sub { display: block; margin-top: 22px; font-size: clamp(19px, 2vw, 23px); font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.hero-lead { font-size: 18px; color: var(--text); max-width: 33em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 16px; }
.hero-points i { color: var(--gold); font-size: 21px; flex: none; margin-top: 1px; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%;
  border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--line);
}

@media (max-width: 900px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Conditions ---------- */
.conditions { padding: 56px 0 64px; background: #fff; border-bottom: 1px solid var(--line); }
.conditions h2 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font-size: 22px; font-weight: 700; letter-spacing: -.015em; color: var(--ink);
}
.conditions h2::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.conditions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.conditions-grid li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.conditions-grid li:hover { background: #fff; border-color: var(--gold); transform: translateY(-2px); }
.cond-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--navy); font-size: 22px; box-shadow: 0 1px 2px rgba(20, 26, 60, .06);
  transition: background-color .2s, color .2s;
}
.conditions-grid li:hover .cond-icon { background: var(--ink); color: var(--gold); }
@media (max-width: 1100px) { .conditions-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .conditions-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .conditions { padding: 40px 0 44px; }
  .conditions h2 { font-size: 19px; margin-bottom: 18px; }
  .conditions-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .conditions-grid li { flex-direction: row; align-items: center; gap: 12px; padding: 12px; font-size: 14px; }
  .cond-icon { width: 36px; height: 36px; font-size: 19px; border-radius: 10px; }
}
@media (max-width: 380px) { .conditions-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--navy); font-size: 26px; margin-bottom: 20px;
}
.service h3 { font-size: 21px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.service li { display: flex; gap: 9px; font-size: 15px; color: var(--text); }
.service li i { color: var(--gold); font-size: 18px; margin-top: 3px; flex: none; }

.service-featured {
  grid-column: span 2; background: var(--ink); border-color: var(--ink); color: #c9cde0;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px 40px;
}
.service-featured:hover { border-color: var(--ink); }
.service-featured .service-icon { background: rgba(255, 255, 255, .08); color: var(--gold); }
.service-featured h3 { color: #fff; font-size: 27px; }
.service-featured p { color: #c9cde0; }
.service-featured li { color: #fff; }
.service-featured ul {
  margin-top: 0; border-top: 0; align-content: center; gap: 13px; padding: 22px 24px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
}
.service-featured .service-body { display: flex; flex-direction: column; }
.service-featured .service-body .btn { align-self: flex-start; margin-top: auto; }

.services-note {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-size: 16px;
}
.services-note i { font-size: 24px; color: var(--gold); flex: none; margin-top: 1px; }
.services-note p { margin: 0; }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-featured { grid-column: auto; }
  .service { padding: 24px; }
}

/* ---------- Approach / steps ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.approach-intro p { color: var(--muted); }
.approach-intro .highlight {
  margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--gold);
  background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-weight: 600;
}
.steps { counter-reset: step; display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 4px 0 32px 76px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line);
  color: var(--navy); font-weight: 800; font-size: 16px; box-shadow: var(--shadow);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 26px; top: 60px; bottom: 8px; width: 1px; background: var(--line);
}
.step h3 { font-size: 20px; margin-bottom: 6px; padding-top: 12px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 16px; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:last-child { grid-column: span 2; }
.gallery .zoom { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery figure::after {
  content: ""; position: absolute; inset: 55% 0 0 0;
  background: linear-gradient(transparent, rgba(18, 23, 53, .55)); pointer-events: none;
}
.gallery figure:hover img { transform: scale(1.04); }
.zoom { cursor: zoom-in; }
.zoom::after {
  content: ""; position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141a3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 4px 14px rgba(20, 26, 60, .18); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; transform: none; }
@media (hover: none) { .zoom::after { opacity: 1; transform: none; width: 32px; height: 32px; background-size: 15px; } }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
@media (max-width: 800px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 180px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: auto; }
  .gallery figure:last-child { grid-column: auto; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member {
  display: flex; gap: 18px; align-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  transition: box-shadow .25s, border-color .25s;
}
.member:hover { box-shadow: var(--shadow); border-color: transparent; }
.member img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-soft); }
.member h3 { font-size: 17px; margin: 0 0 2px; letter-spacing: -.01em; }
.member .role { display: block; color: var(--navy); font-weight: 700; font-size: 14px; }
.member .creds { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 4px; }
.member.is-founder { border-color: var(--gold); }
@media (min-width: 901px) {
  .member { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px 24px; }
  .member img { width: 112px; height: 112px; }
  .founder-tag { margin-bottom: 8px; }
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }
.founder-tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #7a5a12; background: var(--gold-soft); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px;
}

/* ---------- Book ---------- */
.book-section { background: radial-gradient(120% 140% at 0% 0%, #26306f 0%, var(--ink) 55%, var(--navy-900) 100%); color: #c9cde0; overflow: hidden; }
.book-grid { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.book-cover { perspective: 1200px; justify-self: center; }
.book-cover a { display: block; }
.book-cover img {
  width: 290px; border-radius: 4px 10px 10px 4px;
  transform: rotateY(-14deg) rotateX(2deg);
  box-shadow: -2px 0 0 rgba(255, 255, 255, .25) inset, 18px 24px 48px rgba(0, 0, 0, .45);
  transition: transform .4s ease;
}
.book-cover a:hover img { transform: rotateY(-4deg); }
.book-section .kicker { color: #e6e8f2; }
.book-section h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.book-author { display: flex; align-items: center; gap: 14px; margin: 22px 0 24px; }
.book-author img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .25); }
.book-author strong { display: block; color: #fff; }
.book-author span { font-size: 15px; }
.book-points { display: grid; gap: 9px; margin-bottom: 30px; }
.book-points li { display: flex; gap: 10px; }
.book-points i { color: var(--gold); font-size: 20px; margin-top: 3px; flex: none; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.book-actions small { color: #9da3c0; }
@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .book-cover img { width: 220px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 4px; position: relative;
  font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy); font-size: 20px; font-weight: 500; line-height: 1;
  transition: background-color .2s, color .2s, transform .25s ease;
}
.faq-item summary:hover::after { border-color: var(--ink); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-item summary:hover { color: var(--navy); }
.faq-item .faq-answer { overflow: hidden; }
.faq-item .faq-answer { padding: 0 56px 24px 4px; color: var(--muted); }
.faq-item .faq-answer p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.contact-card > i {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--navy); font-size: 23px;
}
.contact-card h3 { font-size: 16px; margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); font-size: 16px; }
.contact-card a { font-weight: 700; }
.contact-card .notice {
  margin-top: 10px; color: #6b4f10; background: var(--gold-soft); padding: 9px 12px;
  border-radius: 10px; font-size: 15px; font-weight: 600;
}
.contact-card .map-link { margin-top: 8px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; font-size: 16px; }
.hours dt { color: var(--ink); font-weight: 600; }
.hours dd { margin: 0; color: var(--muted); }
.contact-media { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.entrance .zoom { position: absolute; inset: 0; }
.entrance { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--line); }
.entrance img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 65%; }
.map {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-soft);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
}
@media (max-width: 560px) {
  .contact-media { grid-template-columns: 1fr; }
  .entrance { min-height: 0; aspect-ratio: 3 / 4; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 13, 32, .94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in .2s ease; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
  min-height: 0; padding: 64px 72px 8px;
}
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-caption { padding: 14px 24px 22px; text-align: center; font-size: 15px; font-weight: 600; color: #e6e8f2; }
.lb-count { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #9da3c0; margin-top: 2px; }
.lb-btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 28px; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@media (max-width: 640px) {
  .lb-stage { padding: 64px 12px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-caption { padding: 14px 76px 24px; min-height: 76px; }
}
body.lb-open { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9da3c0; padding: 64px 0 28px; font-size: 15px; }
.site-footer a { color: #e6e8f2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer li + li { margin-top: 8px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; max-width: 30em; }
.footer-motto { font-family: var(--serif); font-style: italic; font-size: 22px; color: #e9d29a; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .15); font-size: 19px;
}
.social a:hover { background: #fff; color: var(--ink); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Careers ---------- */
.careers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 56px; align-items: start; }
.careers-grid .section-head { margin-bottom: 0; }
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow);
}
.job-head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.job-head .service-icon { margin-bottom: 0; flex: none; }
.job-head h3 { font-size: 25px; margin: 0; }
.job-badge {
  display: inline-block; margin-bottom: 6px; padding: 3px 11px; border-radius: 999px;
  background: var(--gold-soft); color: #7a5a12; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.job-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px 36px; }
.job-cols h4 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.job-list { display: grid; gap: 9px; }
.job-list li { display: flex; gap: 9px; font-size: 15.5px; line-height: 1.55; }
.job-list i { color: var(--gold); font-size: 18px; margin-top: 2px; flex: none; }
.job-apply { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.job-apply p { margin: 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .careers-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .job-card { padding: 24px; }
  .job-cols { grid-template-columns: 1fr; }
  .job-head h3 { font-size: 22px; }
  .job-apply .btn { width: 100%; }
}
