/* JTF home page — секции главной (токены + chrome подключаются отдельно) */

.jtf-skolkovo__grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: var(--jtf-gap);
  align-items: center;
}

.jtf-skolkovo__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jtf-skolkovo__logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
}

.jtf-skolkovo__content {
  display: grid;
  gap: 0.85rem;
}

.jtf-skolkovo__content .jtf-lead {
  margin: 0;
  max-width: 42rem;
}

.jtf-skolkovo__content .jtf-link-more {
  justify-self: start;
}

/* Hero — без full-viewport, лаконичнее */
.jtf-hero {
  position: relative;
  overflow: hidden;
  background: var(--jtf-white);
}

.jtf-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jtf-gap);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.jtf-hero__brand {
  font-family: var(--font);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--jtf-ink);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.jtf-hero__title {
  font-family: var(--font);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--jtf-ink);
  margin: 0 0 0.75rem;
  max-width: 28ch;
}

.jtf-hero__text {
  margin: 0 0 1.5rem;
  color: var(--jtf-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34rem;
}

.jtf-hero__visual {
  position: relative;
}

.jtf-hero__visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--jtf-radius);
  background: var(--jtf-soft);
}

/* Reveal */
.jtf-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.jtf-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Shared card surface */
.jtf-card {
  background: var(--jtf-white);
  border: 1px solid var(--jtf-line);
  border-radius: var(--jtf-radius);
}

/* Services */
.jtf-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jtf-gap);
}

.jtf-service {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--jtf-card-pad);
  min-height: 188px;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jtf-service:hover {
  border-color: #c9d6ff;
  box-shadow: var(--jtf-shadow);
  color: inherit;
}

.jtf-service__icon {
  width: var(--jtf-icon);
  height: var(--jtf-icon);
  border-radius: var(--jtf-radius-sm);
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--jtf-blue);
  flex-shrink: 0;
}

.jtf-service__icon svg {
  width: 22px;
  height: 22px;
}

.jtf-service__icon--mint {
  background: #f3fad0;
  color: #5a6b00;
}

.jtf-service__icon--navy {
  background: var(--jtf-soft);
  color: var(--jtf-ink);
}

.jtf-service h3,
.jtf-target h3,
.jtf-benefit h3,
.jtf-case h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--jtf-ink);
}

.jtf-service p,
.jtf-benefit p,
.jtf-case p {
  margin: 0;
  color: var(--jtf-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.jtf-service p {
  flex: 1;
}

/* Targetings */
.jtf-targets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jtf-gap);
}

.jtf-target {
  text-align: center;
  padding: var(--jtf-card-pad);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.jtf-target__icon {
  width: var(--jtf-icon);
  height: var(--jtf-icon);
  border-radius: var(--jtf-radius-sm);
  display: grid;
  place-items: center;
  background: var(--jtf-soft);
  color: var(--jtf-ink);
}

.jtf-target__icon svg {
  width: 22px;
  height: 22px;
}

/* Benefits */
.jtf-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jtf-gap);
}

.jtf-benefit {
  padding: var(--jtf-card-pad);
  min-height: 176px;
}

.jtf-benefit__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--jtf-icon);
  height: var(--jtf-icon);
  border-radius: var(--jtf-radius-sm);
  background: #eef2ff;
  color: var(--jtf-blue);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.jtf-benefit h3 {
  margin-bottom: 0.4rem;
}

.jtf-since {
  margin: 1.25rem 0 0;
  color: var(--jtf-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Industries */
.jtf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.jtf-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: var(--jtf-radius-pill);
  background: var(--jtf-white);
  border: 1px solid var(--jtf-line);
  color: var(--jtf-ink);
  font-weight: 500;
  font-size: 0.92rem;
}

/* Presentations */
.jtf-pres {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jtf-gap);
}

.jtf-pres a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--jtf-card-pad);
  min-height: 72px;
  color: var(--jtf-ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jtf-pres a:hover {
  border-color: #c9d6ff;
  box-shadow: var(--jtf-shadow);
  color: var(--jtf-ink);
}

.jtf-pres__mark {
  width: var(--jtf-icon);
  height: var(--jtf-icon);
  border-radius: var(--jtf-radius-sm);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--jtf-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Trust logos — 3 бегущие строки внутри контейнера */
.jtf-logos-marquee {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  width: 100%;
  max-width: 100%;
}

.jtf-marquee-row__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.jtf-marquee-row__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: max-content;
  animation: jtf-marquee-left 104s linear infinite;
  will-change: transform;
}

.jtf-marquee-row--2 .jtf-marquee-row__track {
  animation-name: jtf-marquee-right;
  animation-duration: 116s;
  animation-delay: -24s;
}

.jtf-marquee-row--3 .jtf-marquee-row__track {
  animation-duration: 92s;
  animation-delay: -48s;
}

@keyframes jtf-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes jtf-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.jtf-logo-chip {
  flex: 0 0 auto;
  width: clamp(108px, 12vw, 156px);
  height: clamp(68px, 9vw, 92px);
  display: grid;
  place-items: center;
  padding: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
}

.jtf-logo-chip img {
  max-height: clamp(52px, 6.5vw, 84px);
  max-width: min(148px, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Cases */
.jtf-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jtf-gap);
}

.jtf-case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.jtf-case:hover {
  box-shadow: var(--jtf-shadow);
  border-color: #c9d6ff;
  color: inherit;
}

.jtf-case img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--jtf-soft);
}

.jtf-case__body {
  padding: var(--jtf-card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 148px;
}

.jtf-case__tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jtf-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jtf-case__link {
  margin-top: auto;
  padding-top: 0.65rem;
  font-weight: 600;
  color: var(--jtf-blue);
  font-size: 0.92rem;
}

/* Contact */
.jtf-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jtf-gap);
  align-items: start;
}

.jtf-contact__map {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.jtf-contact__card {
  padding: var(--jtf-card-pad);
  box-shadow: var(--jtf-shadow);
}

.jtf-form {
  display: grid;
  gap: 0.85rem;
}

.jtf-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--jtf-ink);
}

.jtf-field input,
.jtf-field textarea {
  width: 100%;
  min-height: var(--jtf-control-h);
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--jtf-line);
  border-radius: var(--jtf-radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--jtf-ink);
  background: var(--jtf-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jtf-field textarea {
  min-height: 104px;
  resize: vertical;
}

.jtf-field input:focus,
.jtf-field textarea:focus {
  outline: none;
  border-color: var(--jtf-blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.jtf-form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--jtf-muted);
  line-height: 1.4;
}

.jtf-thanks {
  display: none;
  padding: var(--jtf-card-pad);
  text-align: center;
  color: var(--jtf-ink);
  font-weight: 600;
}

.jtf-contacts-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.jtf-contacts-list a {
  font-weight: 600;
  color: var(--jtf-ink);
}

.jtf-contacts-list a:hover {
  color: var(--jtf-blue);
}

.jtf-contacts-list li {
  display: grid;
  gap: 0.15rem;
}

.jtf-contacts-list span {
  font-size: 0.8rem;
  color: var(--jtf-muted);
  font-weight: 500;
}

.jtf-map {
  border-radius: var(--jtf-radius);
  overflow: hidden;
  border: 1px solid var(--jtf-line);
  aspect-ratio: 21 / 9;
  background: var(--jtf-soft);
}

.jtf-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


@media (max-width: 980px) {
  .jtf-hero__grid,
  .jtf-skolkovo__grid,
  .jtf-contact {
    grid-template-columns: 1fr;
  }

  .jtf-skolkovo__grid {
    text-align: center;
  }

  .jtf-skolkovo__logo img {
    max-width: 180px;
    margin-inline: auto;
  }

  .jtf-skolkovo__content .jtf-link-more {
    justify-self: center;
  }

  .jtf-services,
  .jtf-targets,
  .jtf-pres {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jtf-logo-chip {
    width: clamp(96px, 22vw, 132px);
    height: clamp(60px, 14vw, 76px);
  }

  .jtf-logo-chip img {
    max-height: 64px;
  }

  .jtf-benefits,
  .jtf-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .jtf-service,
  .jtf-benefit {
    min-height: 0;
  }

  .jtf-hero__visual img {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .jtf-services,
  .jtf-targets,
  .jtf-pres {
    grid-template-columns: minmax(0, 1fr);
  }

  .jtf-logo-chip {
    width: clamp(88px, 26vw, 120px);
    height: clamp(56px, 16vw, 68px);
  }

  .jtf-logo-chip img {
    max-height: 52px;
  }

  .jtf-case img {
    height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jtf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .jtf-marquee-row__track {
    animation: none;
  }
}
