.home-hero {
  position: relative;
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fc 100%);
}

.home-hero__grid {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  align-items: stretch;
  position: relative;
}

.chalkboard-wrap {
  display: flex;
  align-items: center;
  padding: 42px 0 42px 20px;
}

.chalkboard {
  --size-plank: 18px;
  position: relative;
  width: 100%;
  min-height: 500px;
  padding: 54px 56px;
  border: var(--size-plank) solid #8c5428;
  border-radius: 2px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(255, 255, 255, 0.05),
      transparent 25%
    ),
    linear-gradient(135deg, #0f5737, #0a3f2b 60%, #073722);
  box-shadow:
    inset 10px 10px 30px rgba(0, 0, 0, 0.5),
    0 16px 28px rgba(59, 35, 18, 0.6);
}
.chalkboard-stuff {
  position: absolute;
}

.chalkboard-chalk {
  bottom: calc(-12px + 16px);
  width: 80px;
  height: 15px;
  right: 150px;
  border-radius: 2px;
  background-color: white;
    background:
    /* drobne zabrudzenia i przebarwienia */
    repeating-radial-gradient(
      circle at 20% 40%,
      rgba(120, 120, 120, 0.06) 0 1px,
      transparent 1px 6px
    ),
    repeating-radial-gradient(
      circle at 70% 60%,
      rgba(145, 145, 145, 0.05) 0 1.2px,
      transparent 1.2px 7px
    ),
    /* delikatne smugi / nierówności powierzchni */
    repeating-linear-gradient(
      8deg,
      transparent 0 4px,
      rgba(255, 255, 255, 0.18) 4px 5px,
      rgba(180, 180, 180, 0.06) 5px 6px,
      transparent 6px 11px
    ),
    /* główny kolor kredy */
    linear-gradient(
      180deg,
      #f7f6f2 0%,
      #ece9e1 22%,
      #f4f2ed 50%,
      #e2ded5 78%,
      #f8f7f4 100%
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(120, 120, 120, 0.18),
    inset 2px 0 3px rgba(255, 255, 255, 0.35),
    inset -2px 0 3px rgba(130, 130, 130, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.12);
    background-size: 2px 12px;
}

.chalkboard::after {
  position: absolute;
  right: -25px;
  bottom: -12px;
  left: -25px;
  height: 16px;
  border-radius: 2px;
  background:
    /* ciemniejsze, nieregularne słoje */
    repeating-radial-gradient(
      ellipse at -20% 50%,
      transparent 0 18px,
      rgba(68, 36, 15, 0.21) 20px 22px,
      transparent 24px 38px,
      rgba(80, 43, 18, 0.17) 40px 43px,
      transparent 45px 65px
    ),
    /* delikatne podłużne linie drewna */
    repeating-linear-gradient(
        2deg,
        transparent 0 7px,
        rgba(70, 36, 15, 0.1) 8px,
        transparent 9px 15px
      ),
    /* subtelne różnice koloru deski */
    linear-gradient(
        90deg,
        rgba(255, 225, 174, 0.09),
        rgba(90, 47, 20, 0.11) 25%,
        rgba(255, 222, 166, 0.07) 48%,
        rgba(70, 36, 14, 0.11) 72%,
        rgba(255, 224, 172, 0.06)
      ),
    #a96835;

  background-size: 200px 60px;

  box-shadow:
    inset 0 0 45px rgba(55, 27, 10, 0.27),
    inset 0 2px rgba(255, 255, 255, 0.12),
    0 7px 10px rgba(0, 0, 0, 0.5),
    6px 4px 10px rgba(0, 0, 0, 0.6);
  content: "";
}

.chalkboard-topplank {
  width: calc(100% + 2 * var(--size-plank));
  height: var(--size-plank);
  left: calc(-1 * var(--size-plank));
  bottom: 100%;
  clip-path: polygon(
    var(--size-plank) 100%,
    calc(100% - var(--size-plank)) 100%,
    100% 0,
    0 0
  );
  background:
    /* ciemniejsze, nieregularne słoje */
    repeating-radial-gradient(
      ellipse at -20% 50%,
      transparent 0 18px,
      rgba(78, 42, 18, 0.18) 20px 22px,
      transparent 24px 38px,
      rgba(92, 51, 22, 0.14) 40px 43px,
      transparent 45px 65px
    ),
    /* delikatne podłużne linie drewna */
    repeating-linear-gradient(
        2deg,
        transparent 0 7px,
        rgba(80, 42, 18, 0.08) 8px,
        transparent 9px 15px
      ),
    /* subtelne różnice koloru deski */
    linear-gradient(
        90deg,
        rgba(255, 225, 174, 0.12),
        rgba(103, 56, 24, 0.08) 25%,
        rgba(255, 222, 166, 0.1) 48%,
        rgba(82, 42, 16, 0.08) 72%,
        rgba(255, 224, 172, 0.08)
      ),
    #b7793f;
  background-size: 200px 60px;
  box-shadow:
    inset 0 0 45px rgba(65, 32, 12, 0.22),
    inset 0 2px rgba(255, 255, 255, 0.15);
}

.chalkboard-topplank::before {
  content: "";
  position: absolute;
  inset: -20%;

  background: repeating-radial-gradient(
    ellipse at 30% 50%,
    transparent 0 25px,
    rgba(65, 34, 14, 0.13) 27px 29px,
    transparent 31px 52px
  );
  background-size: 200px 60px;
  transform: rotate(1deg) scaleX(1.8);

  opacity: 0.8;
  pointer-events: none;
}

.chalkboard-topplank::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 200px 60px;
  background: repeating-linear-gradient(
    91deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.025) 4px,
    transparent 5px 11px,
    rgba(40, 20, 8, 0.025) 12px,
    transparent 13px 19px
  );

  mix-blend-mode: multiply;
  pointer-events: none;
}

.chalkboard-rightplank {
  width: var(--size-plank);
  height: calc(100% + 2 * var(--size-plank));
  left: 100%;
  bottom: calc(-1 * var(--size-plank));
  clip-path: polygon(0 var(--size-plank), 100% 0, 100% 100%, 0 100%);

  background:
    repeating-radial-gradient(
      ellipse at 50% -20%,
      transparent 0 18px,
      rgba(78, 42, 18, 0.18) 20px 22px,
      transparent 24px 38px,
      rgba(92, 51, 22, 0.14) 40px 43px,
      transparent 45px 65px
    ),
    repeating-linear-gradient(
      92deg,
      transparent 0 7px,
      rgba(80, 42, 18, 0.08) 8px,
      transparent 9px 15px
    ),
    linear-gradient(
      180deg,
      rgba(255, 225, 174, 0.12),
      rgba(103, 56, 24, 0.08) 25%,
      rgba(255, 222, 166, 0.1) 48%,
      rgba(82, 42, 16, 0.08) 72%,
      rgba(255, 224, 172, 0.08)
    ),
    #b7793f;

  box-shadow:
    inset 0 0 45px rgba(65, 32, 12, 0.22),
    inset 2px 0 rgba(255, 255, 255, 0.15);
}

.chalkboard-rightplank::before {
  content: "";
  position: absolute;
  inset: -20%;

  background: repeating-radial-gradient(
    ellipse at 50% 30%,
    transparent 0 25px,
    rgba(65, 34, 14, 0.13) 27px 29px,
    transparent 31px 52px
  );

  transform: rotate(1deg) scaleY(1.8);

  opacity: 0.8;
  pointer-events: none;
}

.chalkboard-rightplank::after {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    1deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.025) 4px,
    transparent 5px 11px,
    rgba(40, 20, 8, 0.025) 12px,
    transparent 13px 19px
  );

  mix-blend-mode: multiply;
  pointer-events: none;
}

.chalkboard-leftplank {
  width: var(--size-plank);
  height: calc(100% + 2 * var(--size-plank));

  top: calc(-1 * var(--size-plank));
  right: 100%;

  clip-path: polygon(
    100% var(--size-plank),
    100% calc(100% - var(--size-plank)),
    0 100%,
    0 0
  );

  background:
    /* większe, nieregularne pionowe słoje */
    repeating-radial-gradient(
      ellipse at 50% -20%,
      transparent 0 18px,
      rgba(78, 42, 18, 0.18) 20px 22px,
      transparent 24px 38px,
      rgba(92, 51, 22, 0.14) 40px 43px,
      transparent 45px 65px
    ),
    /* delikatne pionowe linie drewna */
    repeating-linear-gradient(
        92deg,
        transparent 0 7px,
        rgba(80, 42, 18, 0.08) 8px,
        transparent 9px 15px
      ),
    /* subtelne przebarwienia wzdłuż deski */
    linear-gradient(
        180deg,
        rgba(255, 225, 174, 0.12),
        rgba(103, 56, 24, 0.08) 25%,
        rgba(255, 222, 166, 0.1) 48%,
        rgba(82, 42, 16, 0.08) 72%,
        rgba(255, 224, 172, 0.08)
      ),
    #b7793f;

  background-size: 60px 800px;

  box-shadow:
    inset 0 0 45px rgba(65, 32, 12, 0.22),
    inset 2px 0 rgba(255, 255, 255, 0.15);
}

.chalkboard-leftplank::before {
  content: "";
  position: absolute;
  inset: -20%;

  background: repeating-radial-gradient(
    ellipse at 50% 30%,
    transparent 0 25px,
    rgba(65, 34, 14, 0.13) 27px 29px,
    transparent 31px 52px
  );

  background-size: 60px 200px;

  transform: rotate(1deg) scaleY(1.8);

  opacity: 0.8;
  pointer-events: none;
}

.chalkboard-leftplank::after {
  content: "";
  position: absolute;
  inset: 0;

  background: repeating-linear-gradient(
    1deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.025) 4px,
    transparent 5px 11px,
    rgba(40, 20, 8, 0.025) 12px,
    transparent 13px 19px
  );

  background-size: 60px 200px;

  mix-blend-mode: multiply;
  pointer-events: none;
}

.chalkboard__eyebrow {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.chalkboard__eyebrow strong {
  color: #ffe36d;
}

.chalkboard h1 {
  max-width: 660px;
  margin: 0 0 24px;
  color: #ffffff;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.chalkboard__lead {
  max-width: 650px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.chalkboard__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 800;
}

.chalkboard__benefits li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chalkboard__benefits iconify-icon {
  color: #8ef29c;
}

.home-hero__portrait {
  min-height: 620px;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.offer-hero-image,
.offer-hero-person {
  background-repeat: no-repeat;
  background-position: center bottom;
}

.offer-hero-image {
  --zoom: 106%;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: auto var(--zoom);
  background-image: url(../../img/home-bg.png);
}
.offer-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  background: linear-gradient(90deg, #f9fbfe 0%, #f9fbfe 5%, transparent 100%);
}
.chalkboard-wrap {
  z-index: 1;
}
.offer-hero-person {
  position: absolute;
  left: 0;
  right: -230px;
  bottom: 0;
  height: var(--zoom);
  background-size: auto 100%;
  background-image: url(../../img/home-agata.png);
  pointer-events: none;
  z-index: 1;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.service-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.service-card h3 {
  margin: 18px 0 12px;
  color: var(--navy-950);
  font-size: 1.05rem;
  line-height: 1.3;
}

.service-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.service-card .text-link {
  margin-top: auto;
  font-size: 0.88rem;
}

.home-offer-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.learning-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
}

.learning-mode {
  position: relative;
  padding: 0 42px;
  text-align: center;
}

.learning-mode + .learning-mode::before {
  position: absolute;
  top: 24px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: #bfd0e5;
  content: "";
}

.learning-mode .icon-disc {
  background: #dceafe;
}

.learning-mode h3 {
  margin: 15px 0 8px;
  font-size: 1.12rem;
}

.learning-mode p {
  max-width: 310px;
  margin: 0 auto;
  color: var(--ink-soft);
}

.about-preview {
  position: relative;
  overflow: hidden;
}

.about-preview::after {
  position: absolute;
  z-index: 0;
  right: -120px;
  top: 60px;
  width: 360px;
  height: 360px;
  border: 44px solid #063f86;
  border-radius: 50%;
  content: "";
  opacity: 0.95;
}

.about-preview__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-preview__copy p {
  max-width: 620px;
  color: var(--ink-soft);
}

.about-preview__portrait {
  min-height: 460px;
  background-color: rgba(255, 255, 255, 0.8);
}

.about-hero__image {
  position: relative;
  height: 100%;
  min-height: 500px;
}
.about-hero__image:after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-main);
  background-image: url(../../img/about-page-portrait.webp);
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, white 20%, hsl(211, 100%, 18%));
  position: absolute;
}

.circle.one {
  width: 120px;
  height: 120px;
  bottom: 70px;
  right: -30px;
}

.circle.two {
  width: 80px;
  height: 80px;
  top: 50px;
  left: 30px;
}

.big-circle {
  position: absolute;
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    var(--col-cir-main),
    var(--col-cir-second)
  );
  bottom: 80px;
  left: 400px;
}

.big-circle:after {
  content: "";
  position: absolute;
  width: 160px;
  aspect-ratio: 1;
  background-color: #fafafa;
  border-radius: 50%;
  top: calc(50% - 80px);
  left: calc(50% - 80px);
}

.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  padding: 28px 22px;
  text-align: center;
}

.trust-card h3 {
  margin: 14px 0 8px;
  font-size: 1.04rem;
  line-height: 1.3;
}

.trust-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.bottom-cta {
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(0, 23, 62, 0.97), rgba(0, 47, 103, 0.97)),
    repeating-linear-gradient(
      45deg,
      transparent 0 30px,
      rgba(255, 255, 255, 0.02) 30px 31px
    );
}

.bottom-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.bottom-cta h2,
.bottom-cta p {
  margin: 0;
  color: #ffffff;
}

.bottom-cta h2 {
  font-size: 1.6rem;
}

.bottom-cta p {
  margin-top: 4px;
  color: #dbe9fb;
}

@media (max-width: 1120px) {
  .home-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .offer-hero-person{
    right: -120px ;
  }

  .chalkboard {
    padding: 44px 40px;
  }

  .service-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
    .offer-hero-person{
    right: -20px ;
  }
}
@media (max-width: 910px) {
    .offer-hero-person{
    right: 0px ;
  }
}
@media (max-width: 820px) {
  .offer-hero-image,
      .offer-hero-person{
    display: none;
  }
  .about-preview::after {
    display: none;
  }
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .chalkboard-wrap {
    padding: 26px 14px 30px;
  }

  .chalkboard {
    min-height: auto;
    padding: 40px 28px;
    border-width: 12px;
  }

  .home-hero__portrait {
    min-height: 440px;
    border: 1px dashed #b9cbe2;
    border-radius: 0;
  }

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

  .learning-modes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .learning-mode {
    padding: 0;
  }

  .learning-mode + .learning-mode::before {
    display: none;
  }

  .about-preview__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .chalkboard h1 {
    font-size: 2.55rem;
  }

  .chalkboard__benefits {
    display: grid;
    gap: 10px;
  }

  .service-cards,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .bottom-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }
}
