.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f6 0%, #ffffff 58%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 54px;
  width: min(100% - var(--page-gutter) * 2, var(--container-width));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 52px 0 64px;
}

.hero__content {
  max-width: 620px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: var(--color-brand-red);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--color-graphite);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  line-height: 0.98;
}

.hero__subtitle {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--color-graphite);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.3;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero__button:hover,
.hero__button:focus-visible {
  transform: translateY(-1px);
}

.hero__button--primary {
  background: var(--color-brand-red);
  color: var(--color-white);
}

.hero__button--primary:hover,
.hero__button--primary:focus-visible {
  background: #e91f37;
}

.hero__button--secondary {
  border-color: var(--color-line);
  background: var(--color-white);
  color: var(--color-graphite);
}

.hero__button--secondary:hover,
.hero__button--secondary:focus-visible {
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual--decorated {
  min-height: 420px;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero__orb--one {
  top: 8%;
  right: 10%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 41, 66, 0.18) 0%, rgba(255, 41, 66, 0) 72%);
}

.hero__orb--two {
  bottom: 10%;
  left: 4%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 91, 110, 0.14) 0%, rgba(255, 91, 110, 0) 70%);
}

.hero__orb--three {
  top: 42%;
  left: 18%;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(255, 41, 66, 0.12) 0%, rgba(255, 41, 66, 0) 72%);
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  aspect-ratio: 1.05;
  display: grid;
  place-items: center;
}

.hero__layer {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(255, 41, 66, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(255, 41, 66, 0.08);
  pointer-events: none;
}

.hero__layer--back {
  inset: 10% 8% 14% 12%;
  transform: rotate(-8deg) translateY(18px);
  opacity: 0.55;
}

.hero__layer--mid {
  inset: 6% 10% 10% 8%;
  transform: rotate(5deg) translateY(8px);
  opacity: 0.78;
}

.hero__image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 48px rgba(32, 33, 36, 0.12));
}

.hero__badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 41, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-graphite);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(32, 33, 36, 0.08);
  backdrop-filter: blur(8px);
  animation: heroBadgeFloat 5.5s ease-in-out infinite;
}

.hero__badge--catalog {
  top: 8%;
  left: 0;
}

.hero__badge--partners {
  top: 18%;
  right: -2%;
  animation-delay: 0.8s;
}

.hero__badge--ai {
  bottom: 16%;
  left: 4%;
  animation-delay: 1.4s;
}

.hero__badge--workbook {
  bottom: 8%;
  right: 4%;
  animation-delay: 2s;
}

.hero__badge:hover,
.hero__badge:focus-visible {
  border-color: var(--color-brand-red);
  color: var(--color-brand-red);
  transform: translateY(-2px);
}

@keyframes heroBadgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.promo-ticker {
  display: grid;
  gap: 10px;
  width: min(100% - var(--page-gutter) * 2, var(--container-width));
  margin: 0 auto;
  padding: 0 0 26px;
  overflow: hidden;
}

.promo-ticker__row {
  display: flex;
  gap: 36px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255, 41, 66, 0.22);
  white-space: nowrap;
}

.promo-ticker__row span {
  flex: 0 0 auto;
  min-width: 100%;
  padding: 12px 18px;
  font-weight: 900;
  animation: famallTicker 24s linear infinite;
}

.promo-ticker__row:hover span,
.promo-ticker__row:focus-visible span {
  animation-play-state: paused;
}

.promo-ticker__row--primary {
  background: #fff0f3;
  color: var(--color-brand-red);
}

.promo-ticker__row--secondary {
  background: var(--color-white);
  color: #9f1f32;
}

.promo-ticker__row--secondary span {
  animation-duration: 30s;
}

@keyframes famallTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 36px));
  }
}

.home-section {
  width: min(100% - var(--page-gutter) * 2, var(--container-width));
  margin: 0 auto;
  padding: 72px 0;
}

.home-section__head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.home-section__head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.home-section__eyebrow {
  margin: 0;
  color: var(--color-brand-red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-section__title {
  margin: 0;
  color: var(--color-graphite);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.home-section__text {
  margin: 0;
  max-width: 640px;
  color: var(--color-soft-graphite);
  font-size: 17px;
  line-height: 1.55;
}

.home-section__link {
  flex: 0 0 auto;
  color: var(--color-brand-red);
  font-weight: 800;
}

.home-catalog {
  background: var(--color-white);
}

.home-category-grid,
.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-category-card,
.home-trust-card {
  display: grid;
  gap: 12px;
  min-height: 202px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
}

.home-category-card {
  background:
    linear-gradient(145deg, rgba(255, 41, 66, 0.05), transparent 54%),
    var(--color-white);
}

.home-category-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff0f3;
  color: var(--color-brand-red);
  font-size: 13px;
  font-weight: 900;
}

.home-category-card h3,
.home-trust-card h3 {
  margin: 0;
  color: var(--color-graphite);
  font-size: 22px;
  line-height: 1.15;
}

.home-category-card p,
.home-trust-card p,
.home-trust__intro p,
.home-maker__text p,
.home-faq-list p {
  margin: 0;
  color: var(--color-soft-graphite);
  line-height: 1.62;
}

.home-trust,
.home-faq {
  background: var(--color-surface);
}

.home-trust .home-section {
  display: grid;
  gap: 28px;
}

.home-trust__intro {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

.home-trust-card {
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(145deg, rgba(255, 41, 66, 0.07), rgba(255, 255, 255, 0) 48%),
    var(--color-white);
}

.home-maker {
  background: var(--color-white);
}

.home-maker__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  gap: 42px;
  align-items: start;
}

.home-maker__text {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255, 41, 66, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 41, 66, 0.06), transparent 42%),
    var(--color-white);
  box-shadow: 0 18px 44px rgba(32, 33, 36, 0.06);
}

.home-faq-list {
  display: grid;
  gap: 10px;
}

.home-faq-list details {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  overflow: hidden;
}

.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 18px 20px;
  color: var(--color-graphite);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff0f3;
  color: var(--color-brand-red);
  font-size: 20px;
  line-height: 1;
}

.home-faq-list details[open] summary::after {
  content: "−";
}

.home-faq-list p {
  padding: 0 20px 20px;
  max-width: 860px;
}

.why-famall {
  background: var(--color-surface);
}

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

.why-card {
  display: flex;
  align-items: end;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-graphite);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.18;
}

.why-card--accent {
  background: var(--color-graphite);
  color: var(--color-white);
}

.hit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hit-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-white);
}

.hit-card__image {
  display: grid;
  place-items: center;
  height: 260px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 41, 66, 0.06), rgba(255, 214, 221, 0.16) 46%, #f7f8fa),
    #f7f8fa;
  color: var(--color-brand-red);
  font-weight: 900;
  overflow: hidden;
}

.hit-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
}

.hit-card__body {
  display: grid;
  grid-template-rows: auto 72px minmax(72px, 1fr) auto auto auto;
  gap: 12px;
  padding: 20px;
}

.hit-card__body span {
  color: var(--color-brand-red);
  font-size: 13px;
  font-weight: 800;
}

.hit-card__body h3 {
  display: -webkit-box;
  overflow: hidden;
  height: 72px;
  margin: 0;
  color: var(--color-graphite);
  font-size: 20px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hit-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-soft-graphite);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hit-card__body strong {
  color: var(--color-graphite);
  font-size: 24px;
}

.hit-card__body small {
  color: var(--color-soft-graphite);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 44px 0 58px;
  }

  .hero__content {
    max-width: none;
  }

  .hero__image {
    width: min(100%, 560px);
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-category-grid,
  .home-trust-grid,
  .home-maker__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hit-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .hero__inner {
    padding: 34px 0 48px;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__button {
    width: 100%;
  }

  .promo-ticker {
    padding-bottom: 20px;
  }

  .promo-ticker__row span {
    padding: 10px 14px;
    font-size: 14px;
  }

  .home-section {
    padding: 52px 0;
  }

  .home-section__head--row {
    display: grid;
    align-items: start;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .home-category-grid,
  .home-trust-grid,
  .home-maker__inner {
    grid-template-columns: 1fr;
  }

  .home-category-card,
  .home-trust-card {
    min-height: auto;
  }

  .home-faq-list summary {
    align-items: flex-start;
    min-height: auto;
    font-size: 16px;
  }

  .why-card {
    min-height: 112px;
  }

}

.home-highlights {
  background: linear-gradient(180deg, #fffafb 0%, #ffffff 100%);
}

.home-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-highlight-card {
  display: grid;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px 18px;
  border: 1px solid rgba(255, 41, 66, 0.12);
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(32, 33, 36, 0.08);
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-highlight-card:hover,
.home-highlight-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 41, 66, 0.24);
  box-shadow: 0 16px 36px rgba(32, 33, 36, 0.12);
}

.home-highlight-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff0f3;
  color: var(--color-brand-red);
  font-size: 18px;
  font-weight: 900;
}

.home-highlight-card__title {
  margin: 0;
  color: var(--color-graphite);
  font-size: 22px;
  line-height: 1.15;
}

.home-highlight-card__text {
  margin: 0;
  color: var(--color-soft-graphite);
  font-size: 15px;
  line-height: 1.5;
}

.home-highlight-card__link {
  margin-top: auto;
  color: var(--color-brand-red);
  font-size: 14px;
  font-weight: 800;
}

.home-news-spotlight {
  background: var(--color-white);
}

.home-news-spotlight__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 41, 66, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 41, 66, 0.05), transparent 58%),
    var(--color-white);
  box-shadow: 0 10px 28px rgba(32, 33, 36, 0.06);
}

.home-news-spotlight__content {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.home-news-spotlight__title {
  margin: 0;
  color: var(--color-graphite);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.home-news-spotlight__text {
  margin: 0;
  color: var(--color-soft-graphite);
  font-size: 17px;
  line-height: 1.55;
}

.home-news-spotlight__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--color-brand-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-news-spotlight__button:hover,
.home-news-spotlight__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 41, 66, 0.24);
}

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

  .home-news-spotlight__card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__visual--decorated {
    min-height: 340px;
  }

  .hero__badge--partners {
    right: 0;
  }
}

@media (max-width: 640px) {
  .home-highlights__grid {
    grid-template-columns: 1fr;
  }

  .hero__badge {
    font-size: 12px;
    min-height: 34px;
    padding: 0 12px;
  }
}
