section {
  content-visibility: auto;
  padding-block: clamp(1rem, 1rem + 2vw, 6rem);
  contain-intrinsic-size: auto 1200px;
}

.section-dark {
  background-color: var(--color-blue-200);
  color: var(--color-white);
}

/* Синім секціям — герб університету ледь помітним водяним знаком, як синім блокам
   на сторінках кафедр zp.edu.ua. Шар лежить під вмістом (isolation тримає z-index
   усередині секції), тож нічого в самих секціях піднімати не треба. */
.fp-section.section-dark {
  position: relative;
  isolation: isolate;
}

/* у партнерів і в спорті («Енергія твоїх перемог») на тлі й так багато всього —
   герб там зайвий */
.fp-section.section-dark:not(#section-partners):not(#section-sport)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../../img/bg/gerb-watermark.webp") center / min(80%, 800px) no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* Водяний знак (5% непрозорості) — лише після першого малювання сторінки (клас fp
   від скрипта в <head>, inc/enqueue.php): його 51 КБ не ділять повільний канал
   телефона з першим екраном. Так само для блоку новин (css-blocks/section-news.css). */
html:not(.fp) .fp-section::before,
html:not(.fp) .pk-news-section::before {
  background-image: none !important;
}

.section-light {
  background-color: var(--color-white);
  color: var(--color-black);
}

.section-black {
  background-color: var(--color-black);
}

.swiper {
  user-select: none;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes rotateText {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounceArrow {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.section-header {
  max-width: 800px;
  margin-bottom: 60px;
}

.section-header.mb-0 {
  margin-bottom: 0;
}

.section-header h2 {
  /* на ноутбуках заголовок секції менший за гасло hero (hero.css), а не більший */
  font-size: clamp(30px, 1.6vw + 14px, 44px);
  color: var(--color-blue-200);
  margin-bottom: 24px;
  line-height: 1.1;
}



.highlight-tag {
  background-color: var(--color-highlight);
  color: var(--color-black);
}

.highlight-text {
  background-color: var(--color-highlight);
  padding: 0 10px;
  color: var(--color-black);
}

.text-white {
  color: var(--color-white) !important;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-blue-200);
  border-color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
} 
@media (hover: hover) {
  .btn-white:hover {
  background-color: var(--color-highlight);
  border-color: var(--color-highlight);
  color: var(--color-black);
}
}

.btn-yellow {
  background-color: var(--color-highlight);
  color: var(--color-black);
  border-color: var(--color-highlight);
} 
@media (hover: hover) {
  .btn-yellow:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
}
}

.slider-btn {
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border: 1px solid var(--color-black);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 10;
}

.slider-btn:active {
  transform: scale(0.94);
  transition-duration: 80ms;
} 
@media (hover: hover) {
  .slider-btn:hover {
  background: var(--color-blue-200);
  color: var(--color-white);
  border-color: var(--color-blue-200);
}
}

.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.typing-cursor::after {
  content: "|";
  color: var(--color-blue-100);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

#typing-text {
  min-height: 54px;
  margin-bottom: 0;
  max-width: 500px;
}

.scroll-indicator-orbit {
  position: absolute;
  bottom: 10px;
  right: 30px;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--color-blue-200);
  z-index: 10;
}

.orbit-text {
  position: absolute;
  top: 0;
  left: 0;
  animation: rotateText 10s linear infinite;
  will-change: transform;
  fill: currentColor;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.orbit-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceArrow 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 32px;
  }
  
  .section-header.mb-0 {
    margin-bottom: 0;
  }
  
  .section-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  
  
  #typing-text {
    font-size: 16px;
    min-height: 75px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 28px;
  }
  
  #typing-text {
    font-size: 15px;
    min-height: 65px;
  }
}
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 32px;
  }
  
  .section-header.mb-0 {
    margin-bottom: 0;
  }
  
  .section-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  
  
  #typing-text {
    font-size: 16px;
    min-height: 75px;
    margin-bottom: 16px;
  }

  .btn-white,
  .btn-yellow {
    font-size: 14px;
    padding: 12px 24px;
    gap: 8px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .scroll-indicator-orbit {
    width: 80px;
    height: 80px;
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 28px;
  }
  
  #typing-text {
    font-size: 15px;
    min-height: 65px;
  }

  .btn-white,
  .btn-yellow {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .slider-btn {
    width: 44px;
    height: 44px;
  }

  .scroll-indicator-orbit {
    width: 60px;
    height: 60px;
    right: 12px;
    bottom: 12px;
  }
}






.section-dark .label-tag,
.section-black 

@media (max-width: 768px) {
  
}

.label-tag {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--color-blue-200);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-dark .label-tag,
.section-black .label-tag {
  color: var(--color-grey-100);
  background: transparent;
  border: none;
}

@media (max-width: 768px) {
  .label-tag {
    font-size: 11px;
    margin-bottom: 8px;
  }
}

/* Телефон: дрібні текстові посилання секцій отримують зону натискання ~44px без зміни
   розкладки (відступ компенсовано від'ємним полем; у рядковому <a> відступ і так не зсуває рядки). */
@media (max-width: 768px) {
  .text-highlight {
    padding-block: 12px;
  }

  .view-all-link,
  .partners-link-text {
    padding-block: 12px;
    margin-block: -12px;
  }
}
