/* NOREM — O NAS (strona "O nas", desktop reference: 1440px)
   Korzysta wyłącznie z tokenów i klas współdzielonych z css/styles.css.
   Nowe klasy są przestrzenie pod prefiksem .about- i nie modyfikują styles.css. */

.about-page .main-nav a:first-child::after {
  display: none;
}
.about-page .main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  border-top: 1px solid currentColor;
}

/* ================= HERO ================= */
.about-hero {
  overflow: hidden;
  background: #f9f8f6;
}
.about-hero .hero-grid {
  height: auto;
  min-height: 560px;
  padding-block: 120px;
}
.about-hero .hero-copy {
  position: relative;
  z-index: 3;
}

/* ================= PROBLEM ================= */
.about-problems {
  padding-block: var(--section-space);
  background: var(--page);
}
.about-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.about-problem-card {
  text-align: center;
}
.about-problem-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
}
.about-problem-icon svg,
.about-problem-icon i {
  width: 38px;
  height: 38px;
}
.about-problem-card h3 {
  font-size: 18px;
  font-weight: 650;
}
.about-problem-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: var(--font-body);
  line-height: 1.55;
}

/* ================= PHOTO CTA (doświadczenie / produkcja) ================= */
.about-photo-cta {
  padding-block: var(--section-space);
}
.about-quality .cta-inner {
  --cta-photo: url("../../assets/generated/detail-material-16x9.png");
}
.about-production .cta-inner {
  --cta-photo: url("../../assets/generated/detail-logo-16x9.png");
}
.about-production .cta-inner::before {
  background-position: left center;
}
.about-production .cta-inner::after {
  background: linear-gradient(
    270deg,
    #f7f5f1 0 31%,
    rgba(247, 245, 241, 0.82) 42%,
    transparent 61%
  );
}
.about-production .cta-copy {
  margin-left: auto;
}
.cta-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
}
.cta-feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: var(--font-min);
  font-weight: 550;
}
.cta-feature-list i {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--ink);
}
.about-chip-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.about-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: var(--font-body);
  font-weight: 600;
}
.about-chip i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px;
}

/* ================= ZROBILIŚMY TO INACZEJ ================= */
.about-steps {
  padding-block: var(--section-space);
  background: var(--page);
}
.about-steps__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}
.about-steps__item {
  flex: 1;
  max-width: 280px;
  text-align: center;
}
.about-steps__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.about-steps__icon i {
  width: 32px;
  height: 32px;
}
.about-steps__item h3 {
  font-size: 16px;
  font-weight: 650;
}
.about-steps__item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--font-body);
  line-height: 1.5;
}
.about-steps__arrow {
  flex: 0 0 auto;
  margin-top: 16px;
  color: var(--line-strong);
}

/* ================= CO JEST W ŚRODKU ================= */
.about-inside {
  padding-block: var(--section-space);
  background: var(--page);
}
.about-inside__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 260px);
  align-items: center;
  gap: 40px;
}
.about-inside__body h2 {
  max-width: 14ch;
  font-size: var(--font-section);
}
.about-inside__body p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: var(--font-body);
  line-height: 1.6;
}
.about-inside__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.about-inside__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-inside__list i {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px;
}
.about-inside__list h3 {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.about-inside__list p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: var(--font-min);
  line-height: 1.5;
}
.about-inside__media img {
  display: block;
  width: 100%;
  height: auto;
}
.about-inside__callouts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 340px;
}
.about-inside__callouts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-inside__leader {
  width: 26px;
  height: 0;
  flex: 0 0 26px;
  border-top: 1px dashed var(--line-strong);
  position: relative;
}
.about-inside__leader::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.about-inside__callouts h3 {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.about-inside__callouts p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

/* ================= TRZY TWARDOŚCI ================= */
.about-firmness {
  padding-block: var(--section-space);
  background: var(--page);
}
.about-firmness__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  align-items: center;
  gap: clamp(56px, 7vw, 108px);
}
.about-firmness__body h2 {
  max-width: 10ch;
  font-size: clamp(48px, 4.3vw, 68px);
  line-height: 0.98;
}
.about-firmness__body p {
  max-width: 38ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: var(--font-body);
  line-height: 1.6;
}
.about-firmness__body .btn {
  margin-top: 32px;
}

.about-scale {
  min-width: 0;
  margin: 0;
  padding: 32px;
  border: 1px solid #e1ded8;
  border-radius: var(--radius);
  background: #f2f0ec;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 46px rgba(34, 39, 43, 0.07);
}
.about-scale__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.about-scale__kicker {
  display: block;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
}
.about-scale__head p {
  max-width: 34ch;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}
.about-scale__constant {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #d8d5cf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
.about-scale__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}
.about-scale__option {
  min-width: 0;
  cursor: pointer;
}
.about-scale__option-content {
  --option-accent: #34424e;
  --option-surface: #e9edf0;
  min-height: 194px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid #dedbd5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink-soft);
  transition:
    transform 220ms var(--ease),
    border-color 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}
.about-scale__option--soft .about-scale__option-content {
  --option-accent: #3f698e;
  --option-surface: #eaf0f5;
}
.about-scale__option--medium .about-scale__option-content {
  --option-accent: #705644;
  --option-surface: #efeae5;
}
.about-scale__option:hover .about-scale__option-content {
  border-color: #bbb8b2;
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-3px);
}
.about-scale__option input:focus-visible + .about-scale__option-content {
  outline: 3px solid rgba(47, 123, 199, 0.45);
  outline-offset: 3px;
}
.about-scale__option input:checked + .about-scale__option-content {
  border-color: transparent;
  background: var(--option-surface);
  color: var(--option-accent);
  transform: translateY(-8px);
  box-shadow: 0 12px 26px rgba(38, 43, 48, 0.1);
}
.about-scale__option input:checked + .about-scale__option-content .about-scale__feel {
  opacity: 1;
}
.about-scale__code {
  margin-bottom: auto;
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 350;
  letter-spacing: -0.06em;
  line-height: 1;
  opacity: 0.88;
}
.about-scale__name {
  color: inherit;
  font-size: 18px;
  font-weight: 650;
}
.about-scale__feel {
  margin-top: 4px;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}
.about-scale__hint {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.about-scale__hint strong {
  color: var(--ink);
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .about-inside__grid {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 220px);
    gap: 28px;
  }
}

@media (max-width: 940px) {
  .about-hero__main {
    padding-bottom: 0;
  }

  .about-hero__main::after {
    background: linear-gradient(
      180deg,
      #f9f8f6 0 40%,
      rgba(249, 248, 246, 0.94) 48%,
      rgba(249, 248, 246, 0.48) 60%,
      transparent 76%
    );
  }

  .about-hero .hero-grid {
    min-height: 720px;
    align-items: flex-start;
    padding-block: 360px;
  }

  .about-hero .hero-copy {
    width: auto;
    margin-inline: var(--container-gutter);
    padding: 0;
  }

  .about-hero .hero-media {
    top: 39%;
    right: 0;
    left: 0;
  }
}

@media (max-width: 900px) {
  .about-problems,
  .about-steps,
  .about-firmness,
  .about-inside {
    padding-block: var(--section-space);
  }
  .about-photo-cta {
    padding-block: var(--section-space);
  }
  .about-problem-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-steps__row {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .about-steps__item {
    max-width: none;
  }
  .about-steps__arrow {
    display: none;
  }
  .about-inside__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-inside__body h2,
  .about-inside__body p {
    max-width: none;
  }
  .about-inside__callouts {
    min-height: 0;
    gap: 16px;
  }
  .about-inside__leader {
    display: none;
  }
  .about-firmness__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .about-firmness__body h2 {
    margin-inline: auto;
  }
  .about-firmness__body p {
    margin-inline: auto;
  }
  .about-scale {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .about-hero .hero-grid {
    min-height: 650px;
    padding-block: 290px;
  }

  .about-hero .hero-media {
    top: 45%;
  }

  .about-production .cta-inner::before {
    background-position: 35% center;
  }
  .about-production .cta-inner::after {
    background: linear-gradient(
      90deg,
      rgba(247, 245, 241, 0.96) 0 48%,
      rgba(247, 245, 241, 0.76) 76%,
      rgba(247, 245, 241, 0.35)
    );
  }
  .about-scale {
    padding: 26px 20px 24px;
  }
  .about-firmness__body h2 {
    font-size: 40px;
  }
  .about-scale__head {
    flex-direction: column;
    gap: 16px;
  }
  .about-scale__options {
    gap: 6px;
    margin-top: 26px;
  }
  .about-scale__option-content {
    min-height: 158px;
    padding: 14px;
  }
  .about-scale__option input:checked + .about-scale__option-content {
    transform: translateY(-5px);
  }
  .about-scale__code {
    font-size: 38px;
  }
  .about-scale__name {
    font-size: 15px;
  }
  .about-scale__feel {
    font-size: 11px;
  }
}
