@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../font/Ubuntu-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../font/Ubuntu-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../font/Ubuntu-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../font/Ubuntu-Bold.ttf') format('truetype');
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  background-image: url('../img/msj_buero.jpg');
  background-image: -webkit-image-set(url('../img/msj_buero.webp') 1x);
  background-image: image-set(url('../img/msj_buero.webp') type('image/webp'), url('../img/msj_buero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 780px;
  margin: auto;
}

/* --- Hero card --- */
.card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  padding: 56px 48px;
  width: 100%;
  text-align: left;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: 0 0 8px;
}

.divider {
  width: 48px;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 0;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.7);
}

/* --- Contact box --- */
.contact-box {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  padding: 40px 48px;
  width: 100%;
  display: flex;
  gap: 0;
  color: #1a1a1a;
}

.contact-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 40px;
  flex-shrink: 0;
}

.contact-col h2 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-type {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.5);
  margin-top: -8px;
}

.contact-col address {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.contact-col p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
}

.contact-col a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.contact-col a:hover {
  border-color: rgba(0, 0, 0, 0.6);
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  line-height: 1;
}

/* --- Modal --- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 52px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.4);
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: rgba(0, 0, 0, 0.85);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}

.impr-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impr-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.impr-section h4 {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 8px;
}

.impr-section p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.75);
}

.impr-section a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s;
}

.impr-section a:hover {
  border-color: rgba(0, 0, 0, 0.6);
}

.impr-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 28px 0;
}

/* --- Responsive --- */
@media (max-width: 580px) {
  .card {
    padding: 40px 28px;
  }

  h1 {
    font-size: 1.4rem;
  }

  .logo {
    max-width: 300px;
  }

  .contact-box {
    flex-direction: column;
    padding: 32px 28px;
    gap: 32px;
  }

  .contact-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .modal {
    padding: 36px 24px;
    max-height: 90vh;
  }
}
