:root {
  --rxcy-navy: #0f2544;
  --rxcy-ink: #17243a;
  --rxcy-muted: #64748b;
  --rxcy-red: #e30613;
  --rxcy-surface: #f5f7fa;
  --rxcy-border: rgba(15, 37, 68, .12);
}

html body .rxp-cylinder-page {
  color: var(--rxcy-ink);
  background: var(--rxcy-surface);
  font-family: "IRANYekanXFaNum", "IRANSansXFaNum", Tahoma, sans-serif;
}

.rxp-cylinder-page * {
  box-sizing: border-box;
}

.rxp-cylinder-page :where(h1, h2, h3, p, ul, ol, figure) {
  margin-top: 0;
}

.rxp-cylinder-page :where(h1, h2, h3) {
  color: var(--rxcy-navy) !important;
  font-family: "Yekan_Bakh", "IRANYekanXFaNum", Tahoma, sans-serif;
}

.rxp-cylinder-hero {
  padding: clamp(34px, 5vw, 70px) 0 clamp(54px, 7vw, 94px);
  background:
    radial-gradient(circle at 86% 10%, rgba(227, 6, 19, .10), transparent 28%),
    linear-gradient(180deg, #fff, #f5f7fa) !important;
}

.rxp-power-unit-page .rxp-cylinder-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(227, 6, 19, .11), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(15, 37, 68, .07), transparent 26%),
    linear-gradient(180deg, #fff, #f5f7fa) !important;
}

.rxp-cylinder-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.rxp-cylinder-hero__copy h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.rxp-cylinder-hero__copy p {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--rxcy-muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 2;
}

.rxp-cylinder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rxp-cylinder-page .rxp-button-secondary {
  color: var(--rxcy-navy) !important;
  border: 1px solid var(--rxcy-border) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.rxp-cylinder-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rxcy-border);
  border-radius: 24px;
  background: #e7ebf1;
}

.rxp-cylinder-media :where(picture, img) {
  display: block;
  width: 100%;
  height: 100%;
}

.rxp-cylinder-media img {
  object-fit: cover;
}

.rxp-cylinder-media figcaption {
  position: absolute;
  inset-inline: 14px;
  inset-block-end: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  color: #fff;
  background: rgba(9, 21, 39, .76);
  backdrop-filter: blur(10px);
  font-size: .82rem;
  line-height: 1.7;
}

.rxp-cylinder-hero__media {
  aspect-ratio: 4 / 3;
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(15, 37, 68, .16);
}

.rxp-cylinder-section {
  padding: clamp(64px, 7vw, 104px) 0;
  background: #fff !important;
}

.rxp-cylinder-section:nth-of-type(even) {
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 37, 68, .07) 1px, transparent 1.2px) 0 0 / 24px 24px,
    var(--rxcy-surface) !important;
}

.rxp-cylinder-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.rxp-cylinder-heading h2,
.rxp-cylinder-inputs h2,
.rxp-cylinder-faq h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 950;
  line-height: 1.45;
  text-wrap: balance;
}

.rxp-cylinder-heading p,
.rxp-cylinder-inputs p,
.rxp-cylinder-faq header p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--rxcy-muted);
  line-height: 2;
}

.rxp-cylinder-path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rxp-cylinder-path-grid article {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--rxcy-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 37, 68, .07);
}

.rxp-cylinder-path-grid article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--rxcy-red), var(--rxcy-navy));
  content: "";
}

.rxp-cylinder-path-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 15px;
  color: #fff;
  background: var(--rxcy-navy);
  font-weight: 900;
}

.rxp-cylinder-path-grid h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.rxp-cylinder-path-grid p {
  margin-bottom: 18px;
  color: var(--rxcy-muted);
  line-height: 1.95;
}

.rxp-cylinder-path-grid ul {
  display: grid;
  gap: 10px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.rxp-cylinder-path-grid li {
  position: relative;
  padding-inline-start: 22px;
}

.rxp-cylinder-path-grid li::before {
  position: absolute;
  inset-inline-start: 0;
  color: var(--rxcy-red);
  content: "✓";
  font-weight: 900;
}

.rxp-cylinder-inputs__grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(34px, 6vw, 88px);
}

.rxp-cylinder-inputs ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rxp-cylinder-inputs li {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--rxcy-border);
  border-radius: 18px;
  background: #fff;
}

.rxp-cylinder-inputs strong,
.rxp-cylinder-inputs span {
  display: block;
}

.rxp-cylinder-inputs strong {
  margin-bottom: 6px;
  color: var(--rxcy-navy);
}

.rxp-cylinder-inputs span {
  color: var(--rxcy-muted);
  font-size: .91rem;
  line-height: 1.85;
}

.rxp-cylinder-process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rxp-cylinder-process li {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--rxcy-border);
  border-radius: 20px;
  background: #fff;
}

.rxp-cylinder-process li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--rxcy-red);
  font-weight: 900;
}

.rxp-cylinder-process h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.rxp-cylinder-process p {
  margin-bottom: 0;
  color: var(--rxcy-muted);
  font-size: .9rem;
  line-height: 1.9;
}

.rxp-cylinder-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 16px;
  margin-bottom: 24px;
}

.rxp-cylinder-gallery__grid .rxp-cylinder-media {
  grid-column: span 4;
  min-height: 0;
  height: 100%;
}

.rxp-cylinder-gallery__grid .rxp-cylinder-media picture {
  position: absolute;
  inset: 0;
}

.rxp-cylinder-gallery__grid .rxp-cylinder-media img {
  height: 100% !important;
  object-fit: cover;
}

.rxp-cylinder-gallery__grid .rxp-cylinder-gallery__primary {
  grid-column: span 8;
  grid-row: span 2;
}

.rxp-cylinder-page .rxp-text-link {
  color: var(--rxcy-red) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.rxp-cylinder-faq__grid {
  display: grid;
  grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: clamp(34px, 6vw, 84px);
}

.rxp-cylinder-faq details {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--rxcy-border);
  border-radius: 18px;
  background: #fff;
}

.rxp-cylinder-faq summary {
  position: relative;
  min-height: 62px;
  padding: 18px 20px 18px 56px;
  color: var(--rxcy-navy);
  font-weight: 900;
  line-height: 1.8;
  list-style: none;
  cursor: pointer;
}

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

.rxp-cylinder-faq summary::after {
  position: absolute;
  inset-inline-start: 20px;
  top: 17px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--rxcy-red);
  background: rgba(227, 6, 19, .08);
  content: "+";
  font-size: 1.2rem;
}

.rxp-cylinder-faq details[open] summary::after {
  content: "−";
}

.rxp-cylinder-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--rxcy-muted);
  line-height: 2;
}

.rxp-cylinder-rfq-anchor {
  scroll-margin-top: 104px;
}

.rxp-cylinder-rfq-anchor .rxp-rfq-intro {
  padding-top: clamp(68px, 8vw, 112px);
  background: var(--rxcy-navy) !important;
}

.rxp-cylinder-rfq-anchor .rxp-rfq-intro :where(h2, p) {
  color: #fff !important;
}

.rxp-cylinder-rfq-anchor .rxp-rfq-intro p {
  color: #d9e2ee !important;
}

@media (max-width: 980px) {
  .rxp-cylinder-hero__grid,
  .rxp-cylinder-inputs__grid,
  .rxp-cylinder-faq__grid {
    grid-template-columns: 1fr;
  }

  .rxp-cylinder-hero__media {
    max-height: 560px;
  }

  .rxp-cylinder-process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rxp-cylinder-gallery__grid .rxp-cylinder-media,
  .rxp-cylinder-gallery__grid .rxp-cylinder-gallery__primary {
    grid-column: span 6;
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .rxp-cylinder-hero {
    padding-top: 24px;
  }

  .rxp-cylinder-hero__grid {
    gap: 24px;
  }

  .rxp-cylinder-hero__copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .rxp-cylinder-actions,
  .rxp-cylinder-path-grid,
  .rxp-cylinder-inputs ul,
  .rxp-cylinder-process ol {
    grid-template-columns: 1fr;
  }

  .rxp-cylinder-actions {
    display: grid;
  }

  .rxp-cylinder-actions .rxp-button {
    width: 100%;
  }

  .rxp-cylinder-path-grid {
    display: grid;
  }

  .rxp-cylinder-gallery__grid {
    display: flex;
    margin-inline: calc(-1 * var(--rxp-safe));
    padding-inline: var(--rxp-safe);
    padding-bottom: 12px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
  }

  .rxp-cylinder-gallery__grid .rxp-cylinder-media,
  .rxp-cylinder-gallery__grid .rxp-cylinder-gallery__primary {
    flex: 0 0 min(84vw, 380px);
    height: 280px;
    scroll-snap-align: start;
  }

  .rxp-cylinder-media figcaption {
    inset-inline: 10px;
    inset-block-end: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rxp-cylinder-gallery__grid {
    scroll-behavior: auto;
  }
}
