.product-page {
  padding-top: calc(var(--header-height) + 70px);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 52px;
  align-items: center;
  margin-bottom: 72px;
}

.product-hero__copy h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.product-hero__copy p {
  margin: 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.product-hero__visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0b0e14;
  box-shadow: var(--shadow-soft);
}

.product-hero__visual img {
  width: 100%;
  height: auto;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.product-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 26, 0.7);
}

.product-panel h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.product-panel > p {
  margin: 0;
  color: var(--text-muted);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}

.feature-list .icon {
  margin-top: 4px;
  color: var(--accent-bright);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b0e14;
}

.product-gallery img {
  width: 100%;
  height: auto;
}

.product-gallery figcaption {
  padding: 12px 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgba(168, 85, 247, 0.12), transparent 45%),
    rgba(16, 19, 26, 0.9);
}

.product-aside__price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.product-aside__price span {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-aside dl {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-aside dt {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-aside dd {
  margin: 4px 0 0;
  font-size: 0.94rem;
}

.product-aside .btn {
  width: 100%;
}

.product-aside__secondary {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.related-section {
  margin-top: 84px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.related-section h2 {
  margin: 0 0 28px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.docs-page {
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: var(--section-gap);
}

.docs-shell {
  max-width: 840px;
  margin-inline: auto;
}

.docs-shell h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.docs-shell__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 40px;
}

.docs-shell__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.docs-block {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(16, 19, 26, 0.7);
}

.docs-block h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.docs-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.docs-block ol,
.docs-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.docs-block li {
  margin-bottom: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  align-items: start;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.error-page .page-hero__actions {
  margin-top: 32px;
}
