/* TT Fors - налаштування локального веб-шрифту.
   Розмістіть файли шрифту TT Fors у ./fonts/ (наприклад, TTFors-Regular.woff2)
   За наявності локального встановлення джерело `local()` використає його автоматично. */
@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
}

img {
  max-width: 100%;
  height: auto;
}

:root {
  --menu-label-font-size-desktop: clamp(1.5rem, 1.85vw + 1.6vh, 3.15rem);
  --menu-label-font-size-mobile: clamp(1.08rem, 3.2vw, 1.35rem);
}

html,
body {
  width: 100%;
  height: 100%;
  min-zoom: 0.75;
  overflow: hidden;
  font-family: 'Roboto', 'TT Fors', sans-serif;
  color: #ffffff;
  background-color: #010d2e;
}

body {
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  background-image: url('../img/bg.jpg');
  background-image: image-set(url('../img/bg.webp') type('image/webp'), url('../img/bg.jpg') type('image/jpeg'));
}

/* ДОСТУПНІСТЬ ТА SEO */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* МАКЕТ СТОРІНКИ */
.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  z-index: 2;
}

/* ЛОГОТИП */
.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-wrap {
  width: 0;
  height: 0;
  flex: 0 0 0px;
  position: relative;
  overflow: visible;
}

/* Повноекранна дуга SVG */
.menu-line-svg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Основний шлях дуги: малюється зверху вниз */
.line-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

/* Підписи пунктів меню */
.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(14px, 2.2vh, 30px);
  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, 38vw, 560px);
}

.menu-item-disabled {
  cursor: default;
}

.menu-item-disabled .menu-label,
.menu-mobile-row span.menu-label {
  color: #ffffff;
}

.menu-mobile-row {
  display: none;
  /* приховано на десктопі */
  position: absolute;
  align-items: center;
  justify-content: center;
  --bullet-size: 2.16em;
  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(48px, 7.5vh, 86px);
  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 16px rgba(60, 150, 240, 0.5), 0 0 32px rgba(40, 120, 220, 0.3);
  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.12);
  filter: brightness(1.12);
  box-shadow: 0 0 24px rgba(91, 174, 255, 0.85), 0 0 44px rgba(60, 140, 255, 0.55);
}

.menu-item:hover .menu-bullet::after,
.menu-mobile-row:has(.menu-label:hover) .menu-bullet::after {
  transform: scale(1.06);
}

.menu-label {
  font-family: 'Roboto', sans-serif;
  font-size: var(--menu-label-font-size-desktop, clamp(1.35rem, 1.65vw + 1.45vh, 2.75rem));
  text-transform: uppercase;
  font-weight: 400;
  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;
}

@media (min-width: 1025px) {
  /* Компактна розмітка, коли на сторінці 5+ пунктів меню (наприклад, 11 пунктів у main-pro-nas.html) */
  .menu-items:has(.menu-item:nth-child(5)) .menu-bullet {
    --bullet-size: clamp(38px, 5.4vh, 60px);
  }

  .menu-items:has(.menu-item:nth-child(5)) .menu-item {
    gap: clamp(14px, 1.8vh, 26px);
    max-width: clamp(320px, 50vw, 680px);
  }

  .menu-items:has(.menu-item:nth-child(5)) .menu-label {
    font-size: clamp(1.25rem, 1.45vw + 1.25vh, 2.15rem);
    line-height: 1.16;
    font-weight: 400;
  }

  /* Ультракомпактна розмітка для 8+ пунктів меню */
  .menu-items:has(.menu-item:nth-child(8)) .menu-bullet {
    --bullet-size: clamp(34px, 4.8vh, 52px);
  }

  .menu-items:has(.menu-item:nth-child(8)) .menu-item {
    gap: clamp(12px, 1.5vh, 22px);
    max-width: clamp(300px, 46vw, 600px);
  }

  .menu-items:has(.menu-item:nth-child(8)) .menu-label {
    font-size: clamp(1.15rem, 1.2vw + 1.1vh, 1.75rem);
    line-height: 1.15;
    font-weight: 400;
  }
}

.menu-item:hover .menu-label,
.menu-mobile-row .menu-label:hover {
  letter-spacing: .07em;
  text-shadow: 0 0 24px rgba(120, 200, 255, .9);
}



.page-breadcrumbs {
  position: fixed;
  top: clamp(24px, 4vh, 48px);
  right: clamp(24px, 4.5vw, 64px);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: clamp(0.85rem, 1.05vw, 1.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 10;
}

.page-breadcrumbs a {
  color: #ffffff;
  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: #ffffff;
}

.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: #ffffff;
}

.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;
  color: #ffffff;
  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: #ffffff;
}

.about-panel .about-kicker {
  margin-bottom: 28px;
  color: #ffffff;
  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: #ffffff;
  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 {
  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: #ffffff;
  font-family: 'Roboto', sans-serif;
  text-align: right;
  animation: footerFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ── Плашка тестового режиму у футері ── */
.footer-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28), inset 0 0 12px rgba(245, 158, 11, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: clamp(11px, 0.82vw, 13px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 7px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.footer-notice:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.18), inset 0 0 14px rgba(245, 158, 11, 0.12);
}

.footer-notice .notice-badge {
  background: #f59e0b;
  color: #010d2e;
  font-size: clamp(9px, 0.68vw, 11px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.2;
  flex-shrink: 0;
}

.footer-notice .notice-text {
  color: #ffffff;
  font-size: inherit;
  font-weight: 500;
}

.footer-line {
  font-size: clamp(11px, 0.85vw, 13px);
  color: #ffffff;
  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: #ffffff;
  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);
  }
}

/* СВІТЛОВА ХВИЛЯ / СТРІЧКА */
.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);
  }
}

/* МОБІЛЬНА АДАПТИВНІСТЬ */
@media (max-width: 1024px) {
  html {
    background-color: #010d2e;
  }

  body {
    overflow: hidden;
    background-color: #010d2e;
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .wave,
  .wave2 {
    animation: none !important;
  }

  .page {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: max(env(safe-area-inset-top, 0px), 14px);
    padding-left: max(env(safe-area-inset-left, 0px), 12px);
    padding-right: max(env(safe-area-inset-right, 0px), 12px);
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 12px);
    box-sizing: border-box;
  }

  .logo-wrap {
    width: min(54vw, 24vh, 190px);
    max-width: 190px;
    margin: clamp(6px, 1.5vh, 16px) 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;
    z-index: 2;
    overflow: hidden;
    touch-action: none;
  }

  .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;
  }

  /* Вимикаємо приховування десктопних елементів та анімацію ковзання */
  .menu-item[data-desktop="true"] {
    display: flex;
  }

  .menu-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    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(105px, 30vw, 150px);
    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(36px, 5.2vh, 50px);
    margin: 0;
    box-shadow: 0 0 10px rgba(60, 150, 240, 0.4), 0 0 20px rgba(40, 120, 220, 0.22);
  }

  .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: var(--menu-label-font-size-mobile, clamp(1.08rem, 3.2vw, 1.35rem));
    line-height: 1.14;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    -webkit-hyphens: none;
    white-space: normal;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(91, 174, 255, 0.4);
  }

  .menu-item:hover .menu-label {
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(120, 200, 255, 0.6);
  }

  .menu-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 3%,
      rgba(0, 0, 0, 0.8) 8%,
      #000 15%,
      #000 85%,
      rgba(0, 0, 0, 0.8) 92%,
      rgba(0, 0, 0, 0.25) 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 3%,
      rgba(0, 0, 0, 0.8) 8%,
      #000 15%,
      #000 85%,
      rgba(0, 0, 0, 0.8) 92%,
      rgba(0, 0, 0, 0.25) 97%,
      transparent 100%
    );
  }

  /* Повністю приховуємо старі мобільні рядки */
  .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-notice {
    font-size: clamp(9.5px, 2.7vw, 11.5px);
    padding: 5px 12px;
    gap: 8px;
    margin-bottom: 7px;
    justify-content: center;
    text-align: center;
    max-width: 95vw;
  }

  .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;
  }
}