/* Content-led spacing for OTAKO. Load after icon-fixes.css.
 * Motion continues to measure the existing data-egg-slot elements.
 * No portal, shell, footer docking, or SVG styles are changed here. */

.section {
  padding-top: clamp(64px, 6.5vw, 104px);
  padding-bottom: clamp(64px, 6.5vw, 104px);
}

/* Separate ОТАКО / ЯЙЦЯ without moving the description or CTA downward.
 * The second line gains exactly the space removed from the bottom margin. */
.hero-title {
  --hero-line-gap: clamp(14px, .16em, 28px);
  margin-bottom: calc(30px - var(--hero-line-gap));
}

.hero-title > span {
  display: inline-block;
  padding-top: var(--hero-line-gap);
}

@media (max-width: 809px) {
  .hero-title {
    margin-bottom: calc(24px - var(--hero-line-gap));
  }
}

.section-top {
  margin-bottom: clamp(36px, 4.2vw, 64px);
}

/* A halo is a composition around the egg, not a 600px empty column. */
.welfare-art {
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: center;
  padding: 44px 0;
}

.welfare-art .welfare-egg {
  margin: 0 auto;
}

.welfare-art .egg-halo {
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 460px;
  transform: translateY(-50%) rotate(-12deg);
}

/* The heading and both egg illustrations form one content-sized block.
 * Keeping the slot in normal flow eliminates the old 430px padding spacer. */
.manifesto {
  --manifesto-egg-width: clamp(190px, 18vw, 260px);
  --manifesto-art-width: clamp(90px, 10vw, 140px);
  --manifesto-art-gap: clamp(18px, 2vw, 30px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--manifesto-egg-width) calc(var(--manifesto-art-width) + var(--manifesto-art-gap)) minmax(0, 1fr);
  align-items: center;
  padding-top: clamp(64px, 6.5vw, 104px);
  padding-bottom: clamp(64px, 6.5vw, 104px);
}

.manifesto > .eyebrow,
.manifesto > h2 {
  grid-column: 1 / -1;
}

.manifesto > h2 {
  width: 100%;
  max-width: 1240px;
  margin: 28px auto 40px;
  font-size: clamp(40px, 5.8vw, 90px);
  text-wrap: balance;
}

.manifesto .manifesto-egg {
  grid-column: 2;
  grid-row: 3;
  position: relative;
  inset: auto;
  width: var(--manifesto-egg-width);
  height: auto;
  aspect-ratio: 5 / 6;
  margin: 0;
  transform: none;
}

.manifesto .quality-illustration {
  grid-column: 3;
  grid-row: 3;
  position: static;
  inset: auto;
  width: var(--manifesto-art-width);
  height: auto;
  margin-left: var(--manifesto-art-gap);
  transform: none;
}

/* These editorial cards have no icons, so remove their old icon allowance. */
.quality-grid-editorial .quality-card {
  min-height: 0;
}

.quality-grid-editorial .card-index {
  margin-bottom: 28px;
}

.tech-split {
  align-items: center;
}

.tech-art {
  min-height: 0;
  padding-bottom: 48px;
}

.tech-art .tech-egg {
  margin: 0 auto;
}

.tech-art .tech-stamp {
  bottom: 0;
}

.process-layout {
  margin-top: clamp(48px, 5.5vw, 80px);
  padding-top: clamp(35px, 4vw, 55px);
}

/* Keep the partnership illustration with its subject rather than isolated
 * at the bottom corner of a forced 750px section. */
.cooperation {
  min-height: 0;
  align-items: center;
  column-gap: 6%;
}

.cooperation-art {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.cooperation-art .cooperation-egg {
  flex: none;
  width: clamp(190px, 20vw, 280px);
  height: auto;
  aspect-ratio: 5 / 6;
  margin: 0;
}

.cooperation-art .partnership-illustration {
  position: static;
  flex: none;
  width: clamp(100px, 9vw, 140px);
  height: auto;
  margin: 0;
}

/* Short filtered lists should not leave a viewport-sized blank before
 * contacts. Header clearance and the real page content still set height. */
.inner-page {
  min-height: 0;
  padding-bottom: clamp(56px, 6vw, 88px);
}

.inner-heading {
  margin-bottom: clamp(32px, 4vw, 56px);
}

@media (max-width: 809px) {
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-top {
    margin-bottom: 32px;
  }

  /* Match the theme's 809px stacking breakpoint, including tablet widths. */
  .intro-side {
    padding-right: 0;
  }

  .intro-side .approach-illustration {
    width: 150px;
    margin-top: 28px;
  }

  .welfare-art {
    width: min(100%, 340px);
    margin: 12px auto 0;
    padding: 22px 0;
  }

  .welfare-art .egg-halo {
    width: 100%;
    height: 100%;
    left: 0;
    transform: translateY(-50%) rotate(-10deg);
  }

  .manifesto {
    --manifesto-egg-width: clamp(160px, 48vw, 220px);
    --manifesto-art-width: clamp(76px, 20vw, 105px);
    --manifesto-art-gap: 16px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .manifesto > h2 {
    font-size: clamp(38px, 7.8vw, 60px);
    margin: 24px auto 32px;
  }

  .quality-grid-editorial .quality-card {
    min-height: 0;
  }

  .quality-grid-editorial .card-index {
    margin-bottom: 24px;
  }

  .tech-art {
    padding-bottom: 35px;
  }

  .process-layout {
    margin-top: 36px;
  }

  .cooperation-art {
    margin-top: 32px;
    gap: 16px;
  }

  .cooperation-art .cooperation-egg {
    width: clamp(160px, 48vw, 210px);
  }

  .cooperation-art .partnership-illustration {
    width: clamp(76px, 23vw, 115px);
  }
}
