/* =========================================================
   SOHOGLAM — DOBIERZ PIELĘGNACJĘ (/rodzaj-skory/)
   ========================================================= */

.sg-guide {
  --sg-black: #191919;
  --sg-muted: #77716e;
  --sg-line: #e8e3df;
  --sg-soft: #f7f4f2;
  --sg-rose: #a76670;
  background: #fff;
  color: #292727;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.sg-guide *,
.sg-guide *::before,
.sg-guide *::after {
  box-sizing: border-box;
}

.sg-guide-container {
  width: min(calc(100% - 48px), 1440px);
  margin-inline: auto;
}

.sg-guide-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--sg-rose);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sg-guide h1,
.sg-guide h2 {
  margin: 0;
  color: var(--sg-black);
  font-weight: 520;
  letter-spacing: -.045em;
}

.sg-guide-hero {
  padding: 80px 0 64px;
  background: #f5f1ee;
}

.sg-guide-hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.065em;
}

.sg-guide-hero p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--sg-muted);
  font-size: 14px;
  line-height: 1.75;
}

.sg-guide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.sg-guide-chips a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border: 1px solid #d9d1cc;
  border-radius: 100px;
  background: #fff;
  color: #2b2725;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sg-guide-chips a:hover {
  border-color: var(--sg-black);
  background: var(--sg-black);
  color: #fff;
}

.sg-guide-types {
  padding: 70px 0;
}

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

.sg-guide-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--sg-line);
  background: #fbfaf9;
  scroll-margin-top: 120px;
}

.sg-guide-card:target {
  border-color: var(--sg-rose);
}

.sg-guide-card h2 {
  font-size: 28px;
  line-height: 1.05;
}

.sg-guide-card__signs {
  margin: 14px 0 22px;
  color: var(--sg-muted);
  font-size: 13px;
  line-height: 1.7;
}

.sg-guide-card__label {
  color: #3c3633;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sg-guide-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 26px !important;
  padding: 0 !important;
  list-style: none !important;
}

.sg-guide-card__tags li {
  margin: 0;
  padding: 5px 10px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--sg-line);
  color: #5d5552;
  font-size: 11px;
  list-style: none;
}

.sg-guide-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sg-guide-card__links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #d9d1cc;
  border-radius: 100px;
  color: #2b2725;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.sg-guide-card__links a:hover {
  border-color: var(--sg-black);
}

.sg-guide-card__links .sg-guide-card__main {
  border-color: var(--sg-black);
  background: var(--sg-black);
  color: #fff;
}

.sg-guide-card__main span {
  min-width: 26px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .16);
  font-size: 10px;
}

.sg-guide-routine {
  padding: 70px 0;
  border-top: 1px solid var(--sg-line);
}

.sg-guide-routine h2 {
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.03;
}

.sg-guide-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.sg-guide-steps li {
  margin: 0;
  list-style: none;
}

.sg-guide-steps a {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--sg-line);
  background: var(--sg-soft);
  color: #282423;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.sg-guide-steps a:hover {
  transform: translateY(-3px);
  border-color: #d2c8c3;
}

.sg-guide-steps span {
  margin-bottom: auto;
  color: #ada5a0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.sg-guide-steps strong {
  font-size: 17px;
  font-weight: 600;
}

.sg-guide-steps small {
  margin-top: 4px;
  color: #958d88;
  font-size: 10px;
}

.sg-guide-cta {
  padding: 80px 0;
  background: #1c1b1b;
  color: #fff;
}

.sg-guide-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.sg-guide-cta .sg-guide-eyebrow {
  color: #c8959d;
}

.sg-guide-cta h2 {
  color: #fff;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.02;
}

.sg-guide-cta p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.7;
}

.sg-guide-cta a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 0 26px;
  border-radius: 100px;
  background: #fff;
  color: #191919;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.sg-guide a:focus-visible {
  outline: 2px solid var(--sg-rose);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .sg-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-guide-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .sg-guide-container {
    width: calc(100% - 30px);
  }

  .sg-guide-hero {
    padding: 55px 0 45px;
  }

  .sg-guide-hero h1 {
    font-size: 46px;
  }

  .sg-guide-grid,
  .sg-guide-steps {
    grid-template-columns: 1fr;
  }

  .sg-guide-card {
    padding: 22px;
  }

  .sg-guide-steps a {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .sg-guide-steps span {
    margin-bottom: 0;
  }

  .sg-guide-steps small {
    margin: 0 0 0 auto;
  }

  .sg-guide-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
