:root {
  --brand-blue: #2f67f6;
  --brand-blue-dark: #1d4fd4;
  --brand-blue-soft: #f3f7ff;
  --text-main: #2452d2;
  --text-soft: #6677a6;
  --surface: #ffffff;
  --border-soft: rgba(47, 103, 246, 0.1);
  --shadow-soft: 0 10px 28px rgba(34, 72, 180, 0.06);
  --radius-lg: 20px;
  --radius-md: 18px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text-main);
  font-family: "Heebo", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a,
button,
iframe {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.site-header {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.brand {
  color: var(--brand-blue);
  font-size: clamp(2.6rem, 6.2vw, 4.35rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-link,
.menu-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(47, 103, 246, 0.08);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--brand-blue-dark);
}

.menu-button {
  cursor: default;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-button span {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.editorial-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.section-block {
  display: grid;
  gap: 11px;
}

.section-title {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}

.video-frame,
.info-card,
.image-placeholder {
  border-radius: var(--radius-lg);
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: #edf3ff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47, 103, 246, 0.06);
  isolation: isolate;
  cursor: pointer;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0.01;
  z-index: 3;
}

.video-frame.is-loaded {
  cursor: default;
}

.video-frame.is-loaded::before,
.video-frame.is-loaded::after {
  opacity: 0;
  pointer-events: none;
}

.video-frame.is-loaded iframe {
  opacity: 1;
  z-index: 4;
  background: #000;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 27, 74, 0.03), rgba(10, 27, 74, 0.18)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%);
  z-index: 1;
}

.video-frame::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolygon points='6,4 16,10 6,16' fill='%232f67f6'/%3E%3C/svg%3E")
      center / 18px 18px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 246, 255, 0.86));
  box-shadow:
    0 6px 18px rgba(19, 47, 126, 0.12),
    inset 0 0 0 1px rgba(47, 103, 246, 0.06);
  z-index: 2;
}

.section-network .video-frame {
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(21, 36, 76, 0.04), rgba(8, 18, 48, 0.12)),
    url("https://img.youtube.com/vi/CanCZktm0TQ/hqdefault.jpg") center / cover no-repeat;
}

.section-space .video-frame {
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(44, 27, 18, 0.04), rgba(20, 12, 6, 0.12)),
    url("https://img.youtube.com/vi/22tVWwmTie8/hqdefault.jpg") center / cover no-repeat;
}

.section-network .video-frame span,
.section-space .video-frame span {
  display: none;
}

.section-network .video-frame .video-frame__play,
.section-space .video-frame .video-frame__play {
  display: none;
}

.section-network .video-frame:focus-within::after,
.section-space .video-frame:focus-within::after,
.section-network .video-frame:hover::after,
.section-space .video-frame:hover::after {
  transform: translate(-50%, -50%) scale(1.04);
}

.video-frame > * {
  position: relative;
}

.info-card {
  min-height: 184px;
  padding: 24px 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  direction: rtl;
  gap: 7px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.info-card--accent {
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf1ff 100%);
  color: var(--brand-blue-dark);
}

.info-card p {
  margin: 0;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.42;
  font-weight: 500;
}

.recommend-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.recommend-trigger:hover,
.recommend-trigger:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.section-recommend .info-card {
  min-height: 100%;
  justify-items: center;
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
  text-align: center;
  padding-top: 20px;
  padding-bottom: 18px;
}

.recommend-card__eyebrow {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 400;
  color: #5f79c7;
  letter-spacing: 0.01em;
  align-self: start;
}

.recommend-card__message {
  font-size: clamp(1.02rem, 1.34vw, 1.24rem);
  line-height: 1.82;
  font-weight: 200;
  letter-spacing: -0.01em;
  color: var(--brand-blue-dark);
  align-self: center;
  max-width: 15ch;
}

.recommend-card__cta-wrap {
  margin-top: 0;
  align-self: end;
}

.recommend-card__cta {
  color: var(--brand-blue);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  padding-bottom: 0;
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.26em;
  text-decoration-color: rgba(47, 103, 246, 0.22);
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease,
    transform 160ms ease;
}

.recommend-card__cta:hover,
.recommend-card__cta:focus-visible {
  color: var(--brand-blue-dark);
  text-decoration-color: rgba(29, 79, 212, 0.5);
  transform: translateY(-1px);
}

.image-placeholder {
  min-height: 238px;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 226, 152, 0.55), transparent 16%),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.45), transparent 14%),
    linear-gradient(135deg, #d9c3a3 0%, #9bb0c8 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.image-placeholder span {
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-blue-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.image-placeholder--kids-photo {
  background:
    linear-gradient(180deg, rgba(9, 28, 17, 0.04), rgba(9, 28, 17, 0.12)),
    url("./kids-reading.png") center / cover no-repeat;
}

.partner-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.partner-item {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 0;
  color: #8a94b3;
  text-decoration: none;
  background: #fdfefe;
  font-weight: 500;
}

.partner-item--logo {
  overflow: hidden;
  box-shadow: none;
}

.partner-item__logo {
  display: block;
  max-width: 100%;
  max-height: 65px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.partner-item__logo--books {
  width: auto;
  height: 74px;
  max-width: 100%;
  transform: translateY(8px);
}

.partner-item__logo--steimatzky {
  width: 100%;
}

.partner-item__logo--mifal-hapayis {
  width: 100%;
}

.partner-item__logo--book-week {
  width: 100%;
}

.partner-item__logo--library-center {
  width: 100%;
}

.partner-item:hover,
.partner-item:focus-visible {
  color: var(--brand-blue);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 86, 0.26);
  backdrop-filter: blur(8px);
}

.recommend-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #f9fbff);
  box-shadow: 0 24px 60px rgba(20, 44, 118, 0.18);
  border: 1px solid rgba(47, 103, 246, 0.08);
  padding: 28px 24px 24px;
  direction: rtl;
}

.recommend-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 103, 246, 0.08);
  color: var(--brand-blue);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.recommend-modal__header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.recommend-modal__progress {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.recommend-modal__title {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.12;
}

.recommend-modal__body {
  min-height: 320px;
}

.recommend-step {
  display: none;
}

.recommend-step.is-active {
  display: grid;
  gap: 18px;
}

.recommend-step__question {
  margin: 0;
  color: var(--brand-blue-dark);
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
}

.recommend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recommend-chip {
  border: 1px solid rgba(47, 103, 246, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-blue-dark);
  padding: 12px 18px;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.recommend-chip:hover,
.recommend-chip:focus-visible,
.recommend-chip.is-selected {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.recommend-input {
  width: 100%;
  border: 1px solid rgba(47, 103, 246, 0.14);
  border-radius: 18px;
  background: #ffffff;
  padding: 16px 18px;
  color: var(--brand-blue-dark);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 128px;
}

.recommend-input::placeholder {
  color: #8795ba;
}

.recommend-step__actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.recommend-step__actions--single {
  justify-content: flex-start;
}

.recommend-primary,
.recommend-secondary {
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.recommend-primary {
  background: var(--brand-blue);
  color: #ffffff;
}

.recommend-secondary {
  background: transparent;
  color: var(--brand-blue);
  border-color: rgba(47, 103, 246, 0.14);
}

.recommend-result__eyebrow {
  margin: 0;
  color: var(--brand-blue);
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
}

.recommend-result__text,
.recommend-result__disclosure {
  margin: 0;
  color: var(--brand-blue-dark);
  line-height: 1.6;
}

.recommend-result__disclosure {
  color: var(--text-soft);
  font-size: 0.96rem;
}

@media (min-width: 900px) {
  .page-shell {
    width: min(calc(100% - 56px), var(--content-width));
    padding-top: 24px;
  }

  .editorial-grid {
    direction: ltr;
    align-items: start;
    column-gap: 24px;
    row-gap: 22px;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(220px, 0.95fr) minmax(220px, 0.95fr);
    grid-template-areas:
      "network space recommend events"
      "network space kids bestsellers";
  }

  .section-network {
    grid-area: network;
  }

  .section-space {
    grid-area: space;
  }

  .section-recommend {
    grid-area: recommend;
    align-self: start;
    padding-bottom: 8px;
  }

  .section-events {
    grid-area: events;
    align-self: start;
    padding-bottom: 8px;
  }

  .section-kids {
    grid-area: kids;
    align-self: start;
  }

  .section-bestsellers {
    grid-area: bestsellers;
    align-self: start;
  }

  .section-kids .section-title,
  .section-bestsellers .section-title {
    font-size: clamp(1.34rem, 1.95vw, 1.82rem);
    line-height: 1.24;
  }

  .section-block--video .video-frame iframe {
    min-height: 0;
  }

  .section-block--info .info-card {
    min-height: 224px;
  }

  .section-block--image .image-placeholder {
    min-height: 224px;
  }

  .partner-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 899px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--content-width));
    padding: 24px 0 30px;
  }

  .section-recommend {
    order: 1;
  }

  .section-network {
    order: 2;
  }

  .section-events {
    order: 3;
  }

  .section-kids {
    order: 4;
  }

  .section-bestsellers {
    order: 5;
  }

  .section-space {
    order: 6;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .brand {
    text-align: left;
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .header-tools {
    justify-content: space-between;
  }

  .social-nav {
    gap: 8px;
  }

  .social-link,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .editorial-grid {
    gap: 30px;
  }

  .section-block {
    gap: 14px;
  }

  .section-recommend,
  .section-events,
  .section-kids,
  .section-bestsellers {
    justify-items: center;
  }

  .section-title {
    text-align: right;
    font-size: clamp(1.28rem, 5.8vw, 1.68rem);
    line-height: 1.22;
  }

  .section-recommend .section-title,
  .section-events .section-title,
  .section-kids .section-title,
  .section-bestsellers .section-title {
    text-align: center;
  }

  .section-network .section-title,
  .section-space .section-title {
    text-align: center;
  }

  .video-frame iframe {
    min-height: 0;
  }

  .section-network .video-frame,
  .section-space .video-frame {
    aspect-ratio: 4 / 5;
  }

  .video-frame::after {
    width: 62px;
    height: 62px;
  }

  .info-card {
    min-height: 0;
    padding: 18px 17px;
    width: 100%;
    align-content: center;
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .info-card p {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .image-placeholder {
    min-height: 196px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .partner-strip {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 10px;
  }

  .partner-item {
    min-height: 62px;
    padding: 14px 16px;
  }

  .recommend-modal {
    width: 100%;
    padding: 24px 18px 20px;
    border-radius: 22px;
  }

  .recommend-modal__close {
    top: 10px;
    left: 10px;
  }

  .recommend-modal__body {
    min-height: 280px;
  }

  .recommend-chips {
    gap: 10px;
  }

  .recommend-chip {
    width: 100%;
    text-align: center;
  }

  .recommend-step__actions {
    flex-direction: column-reverse;
  }

  .recommend-primary,
  .recommend-secondary {
    width: 100%;
  }
}
