/* Decor reveal animations */
.decor-reveal {
  opacity: 0;
}

.decor-reveal.is-visible {
  animation: decor-fade-up 0.9s ease forwards;
}

.decor-reveal--on-load.decor-reveal--arc.is-visible {
  animation: decor-arc-in 1s ease forwards;
  animation-delay: 0.35s;
}

.decor-reveal--on-load.decor-reveal--underline.is-visible {
  animation: decor-underline-in 1s ease forwards;
  animation-delay: 0.55s;
}

.decor-reveal.decor-reveal--wave,
.hero-waves.decor-reveal {
  opacity: 0.9;
  transform: none;
}

.decor-reveal--on-load.decor-reveal--wave.is-visible {
  animation: none;
  opacity: 0.9;
  transform: none;
}

.decor-reveal--on-load.decor-reveal--quiz.is-visible {
  animation: decor-fade-up 0.9s ease forwards;
  animation-delay: 1s;
}

@keyframes decor-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes decor-arc-in {
  from {
    opacity: 0;
    transform: rotate(180deg) scale(0.88);
  }

  to {
    opacity: 1;
    transform: rotate(180deg) scale(1);
  }
}

@keyframes decor-underline-in {
  from {
    opacity: 0;
    transform: translateX(12px) scaleX(0.85);
    transform-origin: left center;
  }

  to {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .decor-reveal {
    opacity: 1;
    animation: none !important;
    transform: none !important;
  }

  .decor-reveal.decor-reveal--wave,
  .hero-waves.decor-reveal {
    opacity: 0.9;
  }
}

/* Hero waves */
.hero-waves {
  position: absolute;
  top: -330px;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero-waves--bottom {
  top: auto;
  bottom: 0;
  transform: scaleY(-1);
}

/* Hero */
.hero {
  position: relative;
  padding:  8rem var(--cw-gutter) 4rem;
  text-align: center;
  overflow: visible;
}

.hero__title-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 auto 3rem;
}

.hero__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__decor--arc {
  left: -0.5em  ;
  top: -0.5em;
  width: min(23rem, 52vw);
  height: auto;
  transform: rotate(180deg);
  transform-origin: center;
}

.hero__decor--underline {
  right: 0;
  bottom: -2.15em;
  width: min(23.5rem, 58vw);
  height: auto;
}

.hero__title {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--cw-blue);
}

.hero__word {
  position: relative;
  display: inline-block;
}

.hero__pour {
  font-size: 0.35em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cw-text);
  align-self: center;
  margin: 0.5em 0.2rem 0 0.2rem;
}

.hero__intro {
  max-width: 38rem;
  margin: 1.75rem auto 2.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--cw-text);
}

.hero__intro strong {
  color: var(--cw-blue);
  font-weight: 600;
}

.hero__quiz-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__quiz {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cw-blue-light);
  border-radius: 4px;
  background: rgb(230, 246, 255);
}

.hero__quiz p {
  margin: 0;
  font-weight: 600;
  color: var(--cw-blue-dark);
}

.hero__quiz-benefits {
  margin: 0;
  padding: 0;
}

.hero__check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.hero__check-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Stats */
.stats {
  padding: 3rem var(--cw-gutter) 4rem;
  text-align: center;
}

.stats__title {
  margin: 0 0 2.5rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.stats__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem 2.25rem;
}

.stat {
  text-align: left;
}

.stat__value {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
}

.stat__label {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--cw-text-muted);
}

.stat__divider {
  width: 1px;
  height: 3.875rem;
  background: rgba(40, 81, 100, 0.2);
}

/* Cooperations + orbit */
.cooperations-zone {
  background: linear-gradient(
    180deg,
    rgba(51, 182, 255, 0.67) 0%,
    var(--cw-blue) 100%
  );
  overflow: hidden;
  padding-bottom: 7rem;
}

.cooperations {
  position: relative;
  padding: 3rem var(--cw-gutter) 0;
  color: var(--cw-white);
}

.cooperations .container {
  display: flex;
  flex-direction: column;
  min-height: clamp(460px, 58vw, 600px);
}

.cooperations__orbit-stage {
  position: relative;
  flex: 1;
  min-height: clamp(260px, 38vw, 400px);
  overflow: hidden;
}

.cooperations-feedback {
  position: relative;
  z-index: 2;
  margin-top: -7rem;
  padding: 0 var(--cw-gutter) 2.5rem;
  background: transparent;
}

.cooperations__title {
  margin: 0 0 0.2rem;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
}

.cooperations__subtitle {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: 1.125rem;
  text-align: center;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(100%, 876px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  margin: 0;
}

.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  pointer-events: none;
  object-fit: contain;
}

/* Figma proportions (876px reference) */
.orbit__ring--1 { width: 100%; opacity: 1; }
.orbit__ring--2 { width: 79.45%; opacity: 1; }
.orbit__ring--3 { width: 65.53%; opacity: 1; }
.orbit__ring--4 { width: 52.05%; opacity: 1; }

.orbit__track-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: 1;
}

.orbit__track-wrap--outer {
  width: 79.45%;
  height: 79.45%;
}

.orbit__track-wrap--inner {
  width: 52.05%;
  height: 52.05%;
}

.orbit__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.orbit__item {
  --orbit-start: 0;
  --orbit-duration: 60s;
  position: absolute;
  width: 80px;
  height: 80px;
  offset-path: circle(50% at 50% 50%);
  offset-distance: calc(var(--orbit-start) * 1%);
  offset-rotate: 0deg;
  offset-anchor: center;
  animation: orbit-travel var(--orbit-duration) linear infinite;
}

.orbit__track-wrap--outer .orbit__item {
  --orbit-duration: 65s;
}

.orbit__track-wrap--inner .orbit__item {
  --orbit-duration: 45s;
  animation-direction: reverse;
}

.orbit__item-inner {
  width: 80px;
  height: 80px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: var(--cw-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit__item-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.orbit__center {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit__center-logo {
  display: block;
  width: clamp(120px, 18vw, 160px);
  height: auto;
}

@keyframes orbit-travel {
  to {
    offset-distance: calc(var(--orbit-start) * 1% + 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit__item {
    animation: none;
  }
}

.testimonial-slider {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto 1.75rem;
  --testimonial-interval: 7s;
}

.testimonial {
  display: none;
  grid-template-columns: 65px 1fr;
  column-gap: 1.25rem;
  align-items: center;
  height: 12.5rem;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: var(--cw-white);
  color: var(--cw-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.testimonial.is-active {
  display: grid;
}

.testimonial__body {
  position: relative;
  grid-column: 2;
}

.testimonial__quote-mark {
  position: absolute;
  top: -0.35rem;
  left: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1;
  color: #577786;
  opacity: 0.78;
  pointer-events: none;
}

.testimonial__avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__text {
  margin: 0 0 1rem;
  padding-top: 1.35rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.78;
}

.testimonial__author {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial__author span {
  font-weight: 400;
}

.testimonial__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.testimonial__dot {
  position: relative;
  width: 17px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #d9d9d9;
  cursor: pointer;
  overflow: hidden;
}

.testimonial__dot.is-active {
  background: rgba(0, 142, 224, 0.5);
}

.testimonial__dot-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cw-blue-dark);
}

.testimonial__dot.is-active .testimonial__dot-fill {
  animation: testimonial-dot-fill var(--testimonial-interval) linear forwards;
}

.testimonial__dot.is-paused.is-active .testimonial__dot-fill {
  animation-play-state: paused;
}

@keyframes testimonial-dot-fill {
  from {
    width: 0;
    background-color: rgba(0, 142, 224, 0.5);
  }

  to {
    width: 100%;
    background-color: var(--cw-blue-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial__dot.is-active {
    background: var(--cw-blue-dark);
  }

  .testimonial__dot.is-active .testimonial__dot-fill {
    width: 100%;
    animation: none;
  }
}

.cooperations-feedback__link {
  display: block;
  margin-top: 0.25rem;
  text-align: center;
}

/* Publications */
.publications {
  padding: 2rem var(--cw-gutter) 4rem;
}

.publications__title {
  margin: 0 0 2rem;
  font-size: 2.5rem;
  font-weight: 500;
}

.publications__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.publication-card {
  cursor: pointer;
  transition: box-shadow 0.16s cubic-bezier(0.2, 0, 0, 1);
}

.publication-card__thumb {
  aspect-ratio: 313 / 185;
  background: #d9d9d9;
  border-radius: 2px;
  transition: background-color 0.16s cubic-bezier(0.2, 0, 0, 1);
}

.publication-card__body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.publication-card h3 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.16s cubic-bezier(0.2, 0, 0, 1);
}

.publication-card__date {
  display: block;
  margin: 0 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--cw-text-muted);
}

.publication-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cw-text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .publication-card:hover .publication-card__thumb {
    background-color: #c8c8c8;
  }

  .publication-card:hover h3 {
    color: var(--cw-blue-dark);
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-card,
  .publication-card h3 {
    transition: none;
  }
}

.publications__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}

.publications__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.publications__linkedin img {
  width: 24px;
  height: 24px;
}

/* Newsletter */
.newsletter {
  padding: 3.5rem var(--cw-gutter);
  background: var(--cw-yellow);
}

.newsletter__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.newsletter__icon {
  width: 62px;
  margin-bottom: 0.75rem;
}

.newsletter h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 500;
}

.newsletter__lead {
  margin: 0 0 1.5rem;
  max-width: 20rem;
  opacity: 0.8;
}

.newsletter__benefits {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.newsletter__benefits li,
.newsletter__benefits .hero__check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.newsletter__benefits img,
.newsletter__benefits .hero__check-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.newsletter__form {
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  background: var(--cw-white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
}

.newsletter__form h3 {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 600;
}

.newsletter__form label {
  display: block;
  margin-bottom: 0.875rem;
}

.newsletter__form input[type="text"],
.newsletter__form input[type="email"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  font: inherit;
  color: var(--cw-text);
}

.newsletter__form input::placeholder {
  color: var(--cw-text);
  opacity: 0.8;
}

.newsletter__consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0.8;
}

.newsletter__consent a {
  color: inherit;
}

@media (max-width: 1024px) {
  .publications__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem var(--cw-gutter) 2.5rem;
  }

  .hero__title-wrap {
    margin-bottom: 1.5rem;
  }

  .hero__title {
    font-size: clamp(1.875rem, 8vw, 2.75rem);
    gap: 0.25rem 0.5rem;
  }

  .hero__intro {
    margin: 1rem auto 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  .hero__quiz-area {
    gap: 0.75rem;
  }

  .hero__quiz {
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
  }

  .hero__quiz p {
    font-size: 0.875rem;
  }

  .section-title {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
  }

  .section-lead {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .stats {
    padding: 2rem var(--cw-gutter) 2.5rem;
  }

  .stats__title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
  }

  .stats__row {
    gap: 1.25rem 1.5rem;
  }

  .stat__value {
    font-size: 2rem;
  }

  .stat__label {
    font-size: 0.8125rem;
  }

  .cooperations {
    padding: 2rem var(--cw-gutter) 0;
  }

  .cooperations__title {
    font-size: 1.75rem;
  }

  .cooperations__subtitle {
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
  }

  .publications {
    padding: 1.5rem var(--cw-gutter) 2.5rem;
  }

  .publications__title {
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
  }

  .publications__links {
    gap: 1rem 1.5rem;
    margin-top: 1.5rem;
  }

  .publications__linkedin {
    font-size: 0.9375rem;
  }

  .newsletter {
    padding: 2rem var(--cw-gutter);
  }

  .newsletter__inner {
    gap: 1.5rem;
  }

  .newsletter h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .newsletter__lead {
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }

  .newsletter__benefits {
    gap: 0.5rem;
  }

  .newsletter__benefits li,
  .newsletter__benefits .hero__check-item {
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .publications__grid,
  .newsletter__inner {
    grid-template-columns: 1fr;
  }

  .stats__row {
    flex-direction: column;
    align-items: center;
  }

  .stat__divider {
    display: none;
  }

  .cooperations-zone {
    padding-bottom: 5rem;
  }

  .cooperations .container {
    min-height: clamp(380px, 95vw, 480px);
  }

  .cooperations__orbit-stage {
    min-height: clamp(200px, 54vw, 280px);
  }

  .cooperations-feedback {
    margin-top: -4.5rem;
    padding-bottom: 2rem;
  }

  .testimonial {
    grid-template-columns: 1fr;
    height: 21rem;
    padding: 1.25rem;
  }

  .testimonial-slider {
    margin-bottom: 1.5rem;
  }

  .testimonial__avatar {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    margin-bottom: 1rem;
  }

  .testimonial__body {
    grid-column: 1;
  }

  .orbit__item {
    width: 56px;
    height: 56px;
  }

  .orbit__item-inner {
    width: 56px;
    height: 56px;
    padding: 8px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 4rem var(--cw-gutter) 2rem;
  }

  .hero__title-wrap {
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: clamp(1.625rem, 7.5vw, 2.25rem);
  }

  .hero__intro {
    margin: 0.75rem auto 1.25rem;
    font-size: 0.8125rem;
  }

  .hero__quiz p {
    font-size: 0.8125rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-lead {
    font-size: 0.8125rem;
  }

  .stats {
    padding: 1.5rem var(--cw-gutter) 2rem;
  }

  .stats__title {
    margin-bottom: 1rem;
    font-size: 1.125rem;
  }

  .stat__value {
    font-size: 1.75rem;
  }

  .cooperations__title {
    font-size: 1.5rem;
  }

  .cooperations__subtitle {
    font-size: 0.875rem;
  }

  .publications__title {
    font-size: 1.5rem;
  }

  .publication-card h3 {
    font-size: 0.9375rem;
  }

  .publication-card p {
    font-size: 0.8125rem;
  }

  .newsletter {
    padding: 1.5rem var(--cw-gutter);
  }

  .newsletter h2 {
    font-size: 1.375rem;
  }

  .testimonial {
    height: auto;
    min-height: 18rem;
    padding: 1rem;
  }

  .testimonial__text {
    font-size: 0.875rem;
    padding-top: 1rem;
  }

  .testimonial__author {
    font-size: 0.8125rem;
  }
}
