@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* TT Fors - local/served webfont setup.
   Place your TT Fors font files in ./fonts/ (e.g. TTFors-Regular.woff2)
   If you have a local installation, the `local()` source will use it automatically. */
@font-face {
  font-family: 'TT Fors';
  src: local('TT Fors'),
    url('../fonts/TT Fors Trial Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Fors';
  src: local('TT Fors Bold'),
    url('../fonts/TT Fors Trial Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html,
body {
  width: 100%;
  height: 100%;
  min-zoom: 0.75;
  overflow: hidden;
  font-family: 'Raleway', 'TT Fors', sans-serif
}

body {
  background: url('../img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #010d2e;
}

/* PAGE LAYOUT */
.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 2;
}

/* LOGO */
.logo-wrap {
  position: relative;
  width: min(800px, 82vh, 46vw);
  aspect-ratio: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: logoEntry 1.4s cubic-bezier(.22, 1, .36, 1) .1s both;
}

@keyframes logoEntry {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(.85)
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1)
  }
}

.logo-svg-wrap {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  animation: wrapPulse 4s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg-wrap::before {
  content: '';
  position: absolute;
  inset: -3%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 180, 255, .18) 0%, transparent 70%);
  animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: .6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes wrapPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }
}

@keyframes shadowPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0px rgba(150, 220, 255, 0));
  }

  50% {
    filter: drop-shadow(0 0 15px rgba(150, 220, 255, 0.6));
  }
}

.logo-svg-wrap:hover {
  transform: scale(1.04) !important;
  animation-play-state: paused;
}

.logo-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 5;
  animation: shadowPulse 4s ease-in-out infinite;
  transition: filter 0.4s ease;
}

.logo-svg-wrap:hover .logo-svg {
  animation-play-state: paused;
  filter: drop-shadow(0 0 25px rgba(150, 220, 255, 0.9)) !important;
}

/* MENU SECTION */
.menu-wrap {
  width: 0;
  height: 0;
  flex: 0 0 0px;
  position: relative;
  overflow: visible;
}

/* Full-height SVG arc */
.menu-line-svg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Main arc path: draws from top to bottom */
.line-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

/* Menu item labels */
.menu-items {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.menu-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vh, 26px);
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-50%) translateX(28px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  max-width: clamp(280px, 48vw, 680px);
}

.menu-item-disabled {
  cursor: default;
}

.menu-item-disabled .menu-label,
.menu-mobile-row span.menu-label {
  color: rgba(255, 255, 255, 0.58);
}

.menu-mobile-row {
  display: none;
  /* hidden on desktop */
  position: absolute;
  align-items: center;
  justify-content: center;
  --bullet-size: 1.08em;
  grid-template-columns: minmax(0, 1fr) var(--bullet-size) minmax(0, 1fr);
  gap: clamp(12px, 3vw, 20px);
  width: min(88vw, 460px);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, calc(-50% + 20px));
}

@keyframes menuFadeUp {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* bullet */
.menu-bullet {
  --bullet-size: clamp(20px, 3.4vh, 38px);
  width: var(--bullet-size);
  height: var(--bullet-size);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(155deg, #2b7ca4 0%, #4597bd 35%, #76bcdb 70%, #bee5f5 100%);
  box-shadow: 0 0 8px rgba(60, 150, 240, 0.45), 0 0 16px rgba(40, 120, 220, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  z-index: 2;
}

.menu-bullet::before {
  content: '';
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: #0000a6;
  transition: transform 0.3s ease;
}

.menu-bullet::after {
  content: '';
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-bullet,
.menu-mobile-row:has(.menu-label:hover) .menu-bullet {
  transform: scale(1.15);
  filter: brightness(1.12);
  box-shadow: 0 0 14px rgba(91, 174, 255, 0.8), 0 0 24px rgba(60, 140, 255, 0.5);
}

.menu-item:hover .menu-bullet::after,
.menu-mobile-row:has(.menu-label:hover) .menu-bullet::after {
  transform: scale(1.06);
}

.menu-label {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.15rem, 1.4vw + 1.2vh, 2.25rem);
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 0 16px rgba(91, 174, 255, .45);
  transition: letter-spacing .3s ease, text-shadow .3s ease, color .3s ease;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-decoration: none;
  flex: 1 1 auto;
}

/* Compact layout when page has 5+ menu items (e.g. 11 items in main-pro-nas.html) */
.menu-items:has(.menu-item:nth-child(5)) .menu-bullet {
  --bullet-size: clamp(15px, 2.3vh, 26px);
}

.menu-items:has(.menu-item:nth-child(5)) .menu-item {
  gap: clamp(8px, 1.3vh, 16px);
  max-width: clamp(260px, 44vw, 580px);
}

.menu-items:has(.menu-item:nth-child(5)) .menu-label {
  font-size: clamp(0.95rem, 1.1vw + 1vh, 1.55rem);
  line-height: 1.15;
}

/* Ultra-compact layout for 8+ menu items */
.menu-items:has(.menu-item:nth-child(8)) .menu-bullet {
  --bullet-size: clamp(13px, 1.8vh, 20px);
}

.menu-items:has(.menu-item:nth-child(8)) .menu-item {
  gap: clamp(6px, 1vh, 12px);
  max-width: clamp(240px, 40vw, 480px);
}

.menu-items:has(.menu-item:nth-child(8)) .menu-label {
  font-size: clamp(0.85rem, 0.85vw + 0.8vh, 1.22rem);
  line-height: 1.12;
}

.menu-item:hover .menu-label,
.menu-mobile-row .menu-label:hover {
  letter-spacing: .07em;
  text-shadow: 0 0 24px rgba(120, 200, 255, .9);
}

@keyframes fadeInEl {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* FOOTER */
.footer {
  position: fixed;
  bottom: 20px;
  right: 32px;
  text-align: right;
  opacity: 0;
  animation: fadeInEl .8s ease 2.4s forwards;
  z-index: 10;
}

.footer-line {
  font-size: clamp(9px, 1vw, 12px);
  color: rgba(180, 210, 255, .75);
  line-height: 1.7;
  font-weight: 300
}

.footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px
}

.social-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 180, 255, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(180, 220, 255, .8);
  font-size: 10px;
  text-decoration: none;
  transition: color .3s, border-color .3s, box-shadow .3s, transform .3s;
  cursor: pointer;
}

.social-icon:hover,
.social-icon:focus-visible {
  color: #fff;
  border-color: #78c8ff;
  box-shadow: 0 0 10px rgba(91, 174, 255, .75), 0 0 18px rgba(120, 200, 255, .35);
  transform: translateY(-1px) scale(1.12);
  outline: none;
}

.footer-copy {
  font-size: clamp(8px, .9vw, 11px);
  color: rgba(130, 170, 220, .55);
  margin-top: 3px
}

.menu-item.active .menu-label,
.page-breadcrumbs {
  position: fixed;
  top: clamp(24px, 4vh, 48px);
  right: clamp(24px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.85rem, 1.05vw, 1.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

.page-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.page-breadcrumbs a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
}

.page-breadcrumbs span {
  color: rgba(255, 255, 255, 0.5);
}

.page-breadcrumbs span.active {
  color: #2b77ff;
  border-bottom: 1px dashed rgba(43, 119, 255, 0.6);
}

.profile-feature {
  margin-left: auto;
  width: min(34vw, 430px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10vh;
  z-index: 4;
}

.about-panel {
  position: relative;
  z-index: 4;
  width: min(34vw, 520px);
  margin-left: auto;
  margin-right: clamp(22px, 3vw, 58px);
  padding: 16vh 0 10vh;
  color: rgba(238, 246, 255, 0.9);
}

.about-panel h1 {
  margin: 0 0 28px;
  font-size: clamp(2.1rem, 3.2vw, 4rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(108, 172, 255, 0.28);
}

.about-panel p {
  margin: 0 0 22px;
  font-size: clamp(1rem, 1.2vw, 1.34rem);
  line-height: 1.42;
  color: rgba(235, 244, 255, 0.8);
}

.about-panel .about-kicker {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.95rem, 1.05vw, 1.2rem);
  letter-spacing: 0.03em;
}

.profile-card {
  width: min(28vw, 340px);
  min-width: 250px;
  margin: 0;
  color: rgba(235, 245, 255, 0.9);
  text-align: center;
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 0.9 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(150, 205, 255, 0.32);
  box-shadow: 0 0 26px rgba(0, 42, 130, 0.38);
}

.profile-card figcaption {
  margin-top: 22px;
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  line-height: 1.35;
  text-shadow: 0 0 16px rgba(92, 174, 255, 0.35);
}

.profile-card strong,
.profile-card span {
  display: block;
  font-weight: 400;
}

/* ── FOOTER ── */
.footer {
  position: absolute;
  right: clamp(24px, 4.2vw, 75px);
  left: auto;
  bottom: clamp(14px, 2.4vh, 32px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Raleway', sans-serif;
  text-align: right;
  animation: footerFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.footer-line {
  font-size: clamp(11px, 0.85vw, 13px);
  color: rgba(229, 238, 255, 0.85);
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: right;
}

.footer-line a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-line a:hover {
  color: #78c8ff;
  text-shadow: 0 0 12px rgba(120, 200, 255, 0.8);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 6px 0 2px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transition: all 0.25s ease;
}

.social-icon svg {
  display: block;
}

.social-icon:hover {
  background: rgba(24, 82, 230, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 82, 230, 0.5);
}

.footer-copy {
  font-size: clamp(10px, 0.75vw, 12px);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
  margin-top: 2px;
  text-align: right;
}

.footer-copy a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-copy a:hover {
  color: #78c8ff !important;
  text-decoration: none !important;
  text-shadow: 0 0 12px rgba(120, 200, 255, 0.8);
}

/* Якщо на сторінці є права інформаційна колонка (наприклад "Про нас" з фото) */
body:has(.profile-feature) .footer,
body:has(.about-panel) .footer,
.page:has(.profile-feature) ~ .footer,
.page:has(.about-panel) ~ .footer,
.page-template-page-main-pro-nas .footer {
  right: auto;
  left: clamp(20px, 3.8vw, 60px);
  text-align: left;
  align-items: flex-start;
}

body:has(.profile-feature) .footer .footer-line,
body:has(.about-panel) .footer .footer-line,
.page:has(.profile-feature) ~ .footer .footer-line,
.page:has(.about-panel) ~ .footer .footer-line,
.page-template-page-main-pro-nas .footer .footer-line,
body:has(.profile-feature) .footer .footer-copy,
body:has(.about-panel) .footer .footer-copy,
.page:has(.profile-feature) ~ .footer .footer-copy,
.page:has(.about-panel) ~ .footer .footer-copy,
.page-template-page-main-pro-nas .footer .footer-copy {
  text-align: left;
}

body:has(.profile-feature) .footer .footer-socials,
body:has(.about-panel) .footer .footer-socials,
.page:has(.profile-feature) ~ .footer .footer-socials,
.page:has(.about-panel) ~ .footer .footer-socials,
.page-template-page-main-pro-nas .footer .footer-socials {
  justify-content: flex-start;
}

@keyframes footerFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LIGHT WAVE / RIBBON */
.wave-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 200deg at 35% 60%,
      transparent 0deg,
      rgba(80, 160, 255, 0.06) 20deg,
      rgba(120, 200, 255, 0.14) 40deg,
      rgba(80, 160, 255, 0.06) 60deg,
      transparent 80deg,
      transparent 360deg);
  animation: waveRotate 18s linear infinite;
  transform-origin: 25% 45%;
}

.wave2 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 140%;
  height: 160%;
  background: radial-gradient(ellipse 30% 60% at 40% 55%, rgba(100, 180, 255, 0.13) 0%, transparent 70%);
  animation: waveDrift 9s ease-in-out infinite alternate;
}

@keyframes waveRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes waveDrift {
  from {
    transform: translateX(-3%) skewX(-3deg);
  }

  to {
    transform: translateX(3%) skewX(3deg);
  }
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
  body {
    overflow: hidden;
  }

  .page {
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
  }

  .logo-wrap {
    width: min(62vw, 30vh, 220px);
    max-width: 220px;
    margin: clamp(8px, 2vh, 20px) auto 0;
    animation: logoEntryMobile 1.4s cubic-bezier(.22, 1, .36, 1) .1s both;
  }

  .logo-svg {
    animation: shadowPulseMobile 4s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(150, 220, 255, 0.3));
  }

  .logo-svg-wrap:hover .logo-svg {
    filter: drop-shadow(0 0 8px rgba(150, 220, 255, 0.5)) !important;
  }

  @keyframes shadowPulseMobile {
    0%,
    100% {
      filter: drop-shadow(0 0 0px rgba(150, 220, 255, 0));
    }

    50% {
      filter: drop-shadow(0 0 5px rgba(150, 220, 255, 0.35));
    }
  }

  @keyframes logoEntryMobile {
    from {
      opacity: 0;
      transform: translateY(-40px) scale(0.85);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .menu-wrap {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    inset: 0;
  }

  .menu-line-svg {
    position: fixed;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    left: 0;
    top: 0;
    z-index: 1;
  }

  .menu-line-svg .line-path:first-child {
    filter: none;
    opacity: 0.4;
    stroke-width: 2.5px;
  }

  .line-path {
    animation: none;
  }

  /* Disable desktop item display hidden and slide animation */
  .menu-item[data-desktop="true"] {
    display: flex;
  }

  .menu-item {
    position: absolute;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    --mobile-item-rise: 0px;
    --mobile-item-scale: 1;
    transform: translate(-50%, var(--mobile-item-rise)) scale(var(--mobile-item-scale)) !important;
    transform-origin: 50% 16px;
    animation: none !important;
    width: clamp(110px, 30vw, 160px);
    max-width: 90vw;
    text-align: center;
    margin: 0;
    pointer-events: auto;
    opacity: 0;
    transition: filter 0.3s ease;
    will-change: left, top, opacity, transform;
  }

  .menu-item .menu-bullet {
    --bullet-size: clamp(18px, 2.8vh, 26px);
    margin: 0;
    box-shadow: 0 0 5px rgba(60, 150, 240, 0.35), 0 0 10px rgba(40, 120, 220, 0.18);
  }

  .menu-item:hover .menu-bullet,
  .menu-item.active .menu-bullet {
    box-shadow: 0 0 8px rgba(91, 174, 255, 0.6), 0 0 14px rgba(60, 140, 255, 0.3);
  }

  .menu-item .menu-label {
    text-align: center;
    font-size: clamp(0.85rem, 3.2vw, 1.12rem);
    line-height: 1.18;
    font-weight: 300;
    letter-spacing: 0.03em;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(91, 174, 255, 0.3);
  }

  .menu-item:hover .menu-label {
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(120, 200, 255, 0.6);
  }

  /* Make container fill viewport so touch drag events register nicely */
  .menu-wrap {
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    overflow: hidden;
    touch-action: none;
  }

  .menu-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    overflow: hidden;
    clip-path: inset(0);
  }

  /* Hide old mobile rows completely */
  .menu-mobile-row {
    display: none !important;
  }

  .page-breadcrumbs {
    top: auto;
    bottom: clamp(170px, 27vh, 250px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: 92vw;
    justify-content: center;
    font-size: clamp(0.75rem, 2.7vw, 0.94rem);
    z-index: 10;
  }

  .footer,
  .footer.footer-right,
  body.home .footer,
  body.front-page .footer,
  body.page-template-front-page .footer,
  body.page-template-page-main .footer {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    width: max-content;
    max-width: 92vw;
    text-align: center !important;
    align-items: center !important;
    transform: translateX(-50%) !important;
    z-index: 15;
    animation: footerFadeInMobile 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both !important;
  }

  .footer-line {
    font-size: clamp(8.5px, 2.5vw, 11px);
    line-height: 1.45;
    text-align: center !important;
  }

  .footer-socials {
    justify-content: center !important;
    margin-top: 6px;
    margin-bottom: 2px;
    gap: 8px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .footer-copy {
    font-size: clamp(8px, 2.2vw, 10px);
    margin-top: 3px;
    text-align: center !important;
  }

  @keyframes footerFadeInMobile {
    from {
      opacity: 0;
      transform: translate(-50%, 14px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  .profile-feature {
    min-height: auto;
    width: 100%;
    margin-left: 0;
    padding: 8px 0 0;
  }

  .about-panel {
    width: min(92vw, 560px);
    margin: 18px auto 0;
    padding: 0;
    text-align: left;
  }

  .about-panel h1 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }

  .about-panel p {
    font-size: clamp(0.96rem, 4vw, 1.14rem);
  }

  .profile-card {
    width: min(58vw, 220px);
    min-width: 0;
  }

  .profile-card figcaption {
    margin-top: 12px;
    font-size: clamp(0.9rem, 3.6vw, 1.1rem);
  }
}

@media (max-width: 1024px) and (max-height: 520px) {
  .logo-wrap {
    width: min(45vw, 24vh, 140px);
    max-width: 140px;
    margin: 4px auto 0;
  }

  .page-breadcrumbs {
    bottom: 95px;
    font-size: 0.72rem;
  }

  .footer-line {
    font-size: 8px;
    line-height: 1.35;
  }
}