:root {
  --panthel-red: #d63b3b;
  --panthel-text: #2d2d2d;
  --panthel-muted: #4b4b4b;
  --panthel-bg: #ffffff;
  --panthel-header-bg: #f0f0f0;
  --panthel-footer: #4a4a4a;
  --panthel-line: #d4d4d4;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--panthel-bg);
  color: var(--panthel-text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--panthel-bg);
}

.brand-header {
  background: var(--panthel-header-bg);
}

.brand-inner {
  padding-top: 0.2rem;
  padding-left: 3.2rem;
  padding-right: 0;
  border-bottom: 1px solid var(--panthel-line);
  padding-bottom: 0.02rem;
}

.brand-logo {
  max-height: 220px;
  width: auto;
  object-fit: contain;
  display: block;
  transform: translateY(-0.05rem);
}

.site-content {
  flex: 1 0 auto;
}

.content-area {
  padding: 2.4rem 0 0 0;
  max-width: 100%;
}

h1 {
  margin: 0 0 2.6rem 0;
  padding-left: 3.2rem;
  font-size: clamp(2.4rem, 3vw, 5rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--panthel-text);
}

.contact-block {
  padding-left: 3.2rem;
  margin: 0 0 2.5rem 0;
}

.contact-block p {
  margin: 0 0 0.35rem 0;
  font-size: clamp(1.05rem, 1.3vw, 2rem);
  line-height: 1.5;
  color: var(--panthel-text);
  font-weight: 300;
}

.person-name {
  margin-bottom: 0.8rem !important;
  font-size: clamp(1.2rem, 1.35vw, 2.2rem) !important;
  font-weight: 300 !important;
  line-height: 1.35 !important;
}

.person-name strong {
  color: var(--panthel-text);
  font-weight: 700;
}

.degree {
  color: var(--panthel-text) !important;
  font-weight: 400 !important;
}

.contact-block a {
  color: var(--panthel-red);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.second-person {
  margin-top: 2rem;
}

.site-footer {
  background: var(--panthel-footer);
  color: #fff;
  min-height: 74px;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  width: 100%;
  padding: 0.8rem 1rem;
}

.footer-links a {
  color: #f3f3f3;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
}

.footer-links a:hover {
  text-decoration: underline;
}

.modal-content {
  border: none;
  border-radius: 0;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.18);
}

.modal-header {
  border-bottom: 1px solid #e7e7e7;
  padding: 1rem 1.25rem;
}

.modal-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--panthel-text);
}

.modal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.modal-footer-custom {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-footer-custom .btn {
  border-radius: 0;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-width: 1px;
  background: var(--panthel-red);
  border-color: var(--panthel-red);
  color: #fff;
  box-shadow: none;
}

.modal-footer-custom .btn:hover,
.modal-footer-custom .btn:focus,
.modal-footer-custom .btn:active {
  background: #b92d2d;
  border-color: #b92d2d;
  color: #fff;
  box-shadow: none;
}

.btn-close {
  filter: invert(0.5);
}

@media (max-width: 767.98px) {
  .brand-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .brand-logo {
    width: auto;
    max-height: 150px;
  }

  h1 {
    padding-left: 1.25rem;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
  }

  .contact-block {
    padding-left: 1.25rem;
  }

  .content-area {
    padding-top: 1.8rem;
  }

  .footer-links {
    gap: 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-links a {
    font-size: 1rem;
  }
}
