:root {
  --bg: #e8f0f9;
  --bg-soft: #dce8f4;
  --panel: #f6faff;
  --panel-tint: #edf4fc;
  --blue-900: #16395f;
  --blue-800: #245482;
  --blue-700: #3d6f9f;
  --blue-600: #5a88b3;
  --text: #1c3148;
  --text-soft: #57708a;
  --line: rgba(22, 57, 95, 0.14);
  --line-strong: rgba(22, 57, 95, 0.24);
  --success: #247a4b;
  --danger: #ac3a3a;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 24px 46px rgba(20, 51, 85, 0.18);
  --shadow-md: 0 12px 26px rgba(17, 45, 80, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background:
    radial-gradient(circle at 92% -8%, rgba(46, 95, 145, 0.34), transparent 34%),
    radial-gradient(circle at -6% 10%, rgba(63, 114, 165, 0.24), transparent 34%),
    linear-gradient(180deg, #f1f7ff 0%, var(--bg) 42%, var(--bg-soft) 100%);
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-800);
}

.container {
  width: min(1220px, 94vw);
  margin: 0 auto;
}

.narrow {
  width: min(860px, 94vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(235, 244, 253, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.26rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.34rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-list a:hover {
  background: rgba(61, 111, 159, 0.1);
  color: var(--blue-800);
}

.nav-list a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-700));
}

main {
  padding: 2.2rem 0 3.8rem;
}

.hero {
  margin-bottom: 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.23fr 0.77fr;
  gap: 1.05rem;
  align-items: stretch;
}

.hero-content,
.hero-panel,
.card,
.team-card,
.contact-form,
.contact-block,
.cta-panel,
.gallery-item,
.intro-section,
.legal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-content {
  padding: clamp(1.4rem, 2.2vw, 2rem);
}

.hero-panel {
  padding: clamp(1.1rem, 1.8vw, 1.45rem);
  background:
    linear-gradient(160deg, rgba(36, 84, 130, 0.96), rgba(22, 57, 95, 0.96));
  color: #ebf5ff;
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  color: #fff;
}

.feature-list {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.55rem;
}

.feature-list li::marker {
  color: #d7ebfb;
}

.eyebrow {
  margin: 0 0 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue-600);
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(1.86rem, 3.8vw, 2.55rem);
  margin-bottom: 0.68rem;
  color: var(--blue-900);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
  margin-bottom: 0.65rem;
  color: var(--blue-900);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
  margin-bottom: 0.4rem;
  color: var(--blue-900);
  font-weight: 700;
}

.lead {
  color: var(--text-soft);
  max-width: 65ch;
  margin-bottom: 1rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-700));
  box-shadow: 0 8px 18px rgba(36, 84, 130, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.btn-ghost {
  color: var(--blue-800);
  background: transparent;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.section {
  padding-top: 0.75rem;
  margin-bottom: 1.1rem;
}

.section-head {
  margin-bottom: 0.9rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 0.9rem;
}

.card {
  padding: 0.96rem;
  border-radius: var(--radius-lg);
}

.card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.section-highlight {
  margin-top: 0.6rem;
}

.cta-panel {
  text-align: center;
  padding: clamp(1.25rem, 2.2vw, 1.82rem);
  background:
    radial-gradient(circle at 82% 0%, rgba(90, 136, 179, 0.24), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f1f7fe 100%);
}

.cta-panel p {
  margin: 0 auto 0.75rem;
  max-width: 64ch;
  color: var(--text-soft);
}

.intro-section {
  padding: clamp(1.15rem, 2vw, 1.8rem);
  background:
    linear-gradient(180deg, #f8fcff 0%, var(--panel-tint) 100%);
}

.gallery-grid {
  column-width: 300px;
  column-gap: 1rem;
}

.gallery-item {
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  break-inside: avoid;
  background: #fff;
}

.gallery-open {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  background: #fff;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  transition: transform 0.25s ease;
}

.gallery-open:hover img {
  transform: scale(1.02);
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 18, 32, 0.68);
  display: grid;
  grid-template-columns: auto minmax(300px, 84vw) auto;
  place-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.46rem;
  font-weight: 800;
  color: var(--blue-900);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  overflow: hidden;
}

.team-grid {
  display: grid;
  gap: 0.95rem;
}

.profile-placeholder {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(61, 111, 159, 0.14),
      rgba(61, 111, 159, 0.14) 14px,
      rgba(90, 136, 179, 0.08) 14px,
      rgba(90, 136, 179, 0.08) 28px
    );
}

.profile-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.92rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--blue-800);
  font-weight: 600;
  font-size: 0.9rem;
}

.team-content {
  padding: 1.1rem;
}

.team-role {
  margin-top: -0.35rem;
  color: var(--blue-700);
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.contact-layout {
  gap: 1.2rem;
}

.contact-block,
.contact-form {
  border-radius: var(--radius-lg);
  padding: 0.96rem;
}

.contact-block {
  margin-bottom: 0.75rem;
  background:
    linear-gradient(180deg, #f9fcff 0%, #f1f7ff 100%);
}

.contact-block a {
  color: var(--blue-800);
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.12rem;
}

.contact-form-card h2 {
  margin-bottom: 0.32rem;
}

.form-intro {
  margin: 0 0 0.86rem;
  color: var(--text-soft);
}

.contact-form label {
  display: block;
  margin-bottom: 0.32rem;
  font-weight: 600;
  font-size: 0.93rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fdfefe;
  color: var(--text);
  font: inherit;
  padding: 0.68rem 0.74rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.contact-form input[type="file"] {
  margin-bottom: 0.32rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.upload-shell {
  margin-bottom: 0.68rem;
  border: 1px dashed rgba(36, 84, 130, 0.28);
  border-radius: var(--radius-md);
  background: #f8fbff;
  padding: 0.66rem 0.72rem 0.58rem;
}

.upload-hint {
  margin: 0 0 0.3rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.file-list {
  margin: 0;
  color: var(--blue-800);
  font-size: 0.82rem;
  font-weight: 500;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.2rem 0 0.8rem;
}

.check-field input[type="checkbox"] {
  margin: 0.18rem 0 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}

.check-field span {
  display: block;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 111, 159, 0.15);
  border-color: var(--blue-700);
  background: #fff;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-lead {
  margin-bottom: 0.75rem;
}

.form-hint {
  margin: 0.7rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  min-height: 1.35em;
}

.form-hint.is-error {
  color: var(--danger);
  font-weight: 600;
}

.form-hint.is-success {
  color: var(--success);
  font-weight: 600;
}

.map-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 410px;
  border: 0;
}

.map-placeholder {
  min-height: 410px;
  display: grid;
  place-content: center;
  gap: 0.7rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-soft);
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.map-placeholder p {
  margin: 0;
}

.map-wrapper:not(.has-map) iframe {
  display: none;
}

.map-wrapper.has-map .map-placeholder {
  display: none;
}

.legal-panel {
  padding: 1.1rem;
}

.legal-panel h2 {
  margin-top: 1.2rem;
}

.legal-panel h2:first-of-type {
  margin-top: 0;
}

.legal-panel ul {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  background: rgba(236, 244, 252, 0.86);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue-800);
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 700;
  margin: 0 auto;
  width: min(860px, calc(100vw - 2rem));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 84, 130, 0.3);
  background: #ffffff;
  box-shadow:
    0 18px 38px rgba(20, 51, 85, 0.2),
    0 0 0 2px rgba(185, 208, 229, 0.4);
  padding: 0.95rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
}

.cookie-banner a {
  color: var(--blue-800);
  text-decoration: underline;
}

.cookie-banner .btn {
  box-shadow: 0 8px 18px rgba(36, 84, 130, 0.2);
}

.cookie-banner .btn:not(.btn-ghost) {
  background: linear-gradient(145deg, var(--blue-800), var(--blue-700));
  color: #fff;
}

.cookie-banner .btn.btn-ghost {
  background: #ffffff;
  color: var(--blue-900);
  border: 1px solid rgba(36, 84, 130, 0.34);
}

.cookie-banner .btn.btn-ghost:hover {
  background: rgba(36, 84, 130, 0.07);
}

.cookie-actions {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cookie-small {
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-col,
  .team-card {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-placeholder {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.76rem 0;
  }

  .nav-list {
    flex-wrap: wrap;
  }

  .brand {
    font-size: 1.14rem;
  }

  h1 {
    font-size: clamp(1.52rem, 7.8vw, 2.04rem);
  }

  .gallery-grid {
    column-width: 100%;
  }

  .lightbox {
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .lightbox-nav {
    justify-self: center;
  }
}
