/* Kosmetiikka-sivun omat tyylit */

.cosmetics-intro-inner {
  max-width: 760px;
}

.cosmetics-intro h2 {
  margin-bottom: 1rem;
}

.cosmetics-intro p {
  max-width: 68ch;
  margin-bottom: 0;
}

.cosmetics-heading {
  margin-bottom: 2rem;
}

.cosmetics-heading p {
  max-width: 62ch;
  margin-top: .75rem;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cosmetics-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.cosmetics-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.25rem;
  background: #f7f7f4;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  color: #727272;
  text-align: center;
  font-size: .9rem;
}

.cosmetics-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
}

.cosmetics-card-content {
  flex: 1;
  padding: 1.5rem;
}

.cosmetics-card h3 {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.cosmetics-card p {
  margin: 0;
  line-height: 1.65;
}

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

@media (max-width: 640px) {
  .cosmetics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cosmetics-card-content {
    padding: 1.25rem;
  }

  .cosmetics-card-image {
    aspect-ratio: 3 / 1;
  }
}

/* ==================================================
   KOSMETIIKKAPASSI
   ================================================== */

.cosmetics-pass {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;

  max-width: 920px;
  margin: 0 0 72px;
  padding: 36px 40px;

  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--green);
  border-radius: var(--radius);

  box-shadow: var(--shadow);
}


/* 6 leiman tunnus */

.cosmetics-pass-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 92px;
  height: 92px;
  flex: 0 0 92px;

  border-radius: 50%;

  background: var(--green);
  color: #fff;

  box-shadow: 0 12px 30px rgba(2, 150, 67, .20);
}

.cosmetics-pass-icon span {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 800;
}


/* Sisältö */

.cosmetics-pass-content {
  min-width: 0;
}

.cosmetics-pass-content h2 {
  margin-top: .15em;
  margin-bottom: .3em;
}

.cosmetics-pass-lead {
  max-width: 680px;
  margin: 0 0 18px;

  font-size: 1.2rem;
  line-height: 1.55;

  color: var(--text);
}

.cosmetics-pass-lead strong {
  color: var(--green-dark);
  font-size: 1.15em;
}


/* Tarkemmat ehdot */

.cosmetics-pass-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.cosmetics-pass-details p {
  margin: 0;
  color: var(--muted);
}


/* Tuotemerkkien otsikolle hieman tilaa */

.cosmetics-pass + .cosmetics-heading {
  margin-top: 0;
  margin-bottom: 2rem;
}


/* ==================================================
   KOSMETIIKKAPASSI – MOBIILI
   ================================================== */

@media (max-width: 700px) {

  .cosmetics-pass {
    grid-template-columns: 1fr;
    gap: 20px;

    margin-bottom: 52px;
    padding: 28px 24px;
  }

  .cosmetics-pass-icon {
    width: 72px;
    height: 72px;
  }

  .cosmetics-pass-icon span {
    font-size: 2rem;
  }

  .cosmetics-pass-lead {
    font-size: 1.08rem;
  }

  .cosmetics-pass-details {
    display: grid;
    gap: 8px;
  }
}
