:root {
  --smoke-bg:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(160, 165, 175, 0.2), transparent 68%),
    radial-gradient(ellipse 55% 45% at 12% 78%, rgba(110, 115, 125, 0.16), transparent 62%),
    radial-gradient(ellipse 50% 42% at 90% 58%, rgba(130, 135, 145, 0.12), transparent 58%),
    linear-gradient(168deg, #2b2d32 0%, #3a3d44 38%, #2f3238 72%, #26282d 100%);
  --smoke-bg-color: #2f3238;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.11);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-blur: blur(16px);
  --glass-panel-bg:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(175, 180, 190, 0.08) 38%,
      rgba(70, 74, 82, 0.32) 100%
    );
  --glass-panel-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

html {
  background-color: var(--smoke-bg-color);
  min-height: 100%;
}

.subpage-body {
  min-height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  background-color: var(--smoke-bg-color);
  background-image: var(--smoke-bg);
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}

.subpage-body main {
  flex: 1 0 auto;
  background: transparent;
}

.subpage-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(40, 42, 48, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.subpage-back {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.subpage-back:hover {
  color: #fff;
}

.subpage-logo {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.subpage-account {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.subpage-account:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.28);
}

.subpage-main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 max(5rem, calc(3rem + env(safe-area-inset-bottom)));
  background: transparent;
}

.subpage-hero {
  margin-bottom: 2.5rem;
}

.subpage-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.subpage-hero p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 42rem;
  line-height: 1.65;
}

.subpage-section {
  margin-bottom: 2.5rem;
}

.subpage-section h2 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.steps-grid {
  display: grid;
  gap: 1rem;
}

.step-card,
.product-card,
.outfit-card,
.info-item,
.manager-card,
.faq-item {
  border: 1px solid var(--glass-border);
  background: var(--glass-panel-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--glass-panel-shadow);
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
}

.step-card__num {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.step-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.product-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.product-card__brand {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-card__price {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.outfit-card {
  border-radius: 1rem;
  overflow: hidden;
}

.outfit-card__img {
  aspect-ratio: 3 / 4;
}

.outfit-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.outfit-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.outfit-card__body h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.outfit-card__body p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.info-list {
  display: grid;
  gap: 0.85rem;
}

.info-item {
  padding: 1.1rem 1.25rem;
  border-radius: 0.85rem;
}

.info-item h3 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.info-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.manager-card {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 140px 1fr;
  align-items: center;
  padding: 1.5rem;
  border-radius: 1rem;
}

.manager-card__avatar {
  width: 140px;
  height: 140px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.manager-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-card__body h2 {
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.manager-card__body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.manager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.manager-btn:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.28);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border-radius: 0.85rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.45);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

@media (min-width: 769px) {
  .subpage-body {
    background-attachment: fixed;
  }
}

@media (max-width: 640px) {
  .subpage-main {
    padding-top: 1.75rem;
    padding-bottom: max(6rem, calc(3.5rem + env(safe-area-inset-bottom)));
  }

  .manager-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .manager-card__avatar {
    margin: 0 auto;
  }

  .manager-actions {
    justify-content: center;
  }
}
