/* =========================================================
   SCA — Design system
   ========================================================= */

/* ---------- Font (self-hosted, files in fonts/) ----------
   One variable file covers all weights 200–800.
   unicode-range: the browser downloads a file only if the page uses those characters. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Hryvnia sign ₴ and extended Cyrillic. Basic Cyrillic is not in this font:
   for a Ukrainian version of the site a different font would be needed. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  /* Colors */
  --bg-main: #09090b;
  --bg-card: #121214;
  --bg-raised: #18181b;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #f97316;
  --accent-hover: #ea580c;
  --text-heading: #fafafa;
  --text-body: #a1a1aa;
  --text-muted: #71717a;
  --text-on-accent: #09090b;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --fs-body: 15px;
  --fs-small: 12px;
  --fs-h3: 18px;
  --fs-h2: clamp(28px, 4vw, 40px);
  --fs-h1: clamp(36px, 7vw, 64px);
  --tracking-tight: -0.02em;
  --lh-body: 1.6;

  /* Shape & spacing */
  --radius-lg: 16px;
  --radius-sm: 12px;
  --pad-card: 24px;
  --gap: 16px;
  --section-space: 64px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;

  --transition: 0.25s ease;
}

@media (min-width: 768px) {
  :root {
    --pad-card: 32px;
    --gap: 20px;
    --section-space: 96px;
    --gutter: 32px;
  }
}

/* ---------- Reset & base ---------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-main);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

h1, h2, h3 {
  color: var(--text-heading);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.noscript {
  padding: 24px;
  text-align: center;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 24px;
  font-size: 15px;
}

/* ---------- 1. Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid var(--border-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Logo image: height is set in settings.js (brand.logoHeight) */
.header__logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

.header__toggle-line {
  display: block;
  height: 1.5px;
  background: var(--text-heading);
  transition: transform var(--transition);
}

.header__toggle[aria-expanded="true"] .header__toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  height: calc(100vh - var(--header-h));
  padding: 16px var(--gutter);
  background: var(--bg-main);
}

.nav--open {
  display: block;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 18px;
  font-weight: 500;
  transition: background-color var(--transition), color var(--transition);
}

.nav__link:hover {
  background: var(--bg-card);
}

@media (min-width: 768px) {
  .header__toggle {
    display: none;
  }

  .nav {
    position: static;
    display: block;
    height: auto;
    padding: 0;
    background: none;
  }

  .nav__list {
    flex-direction: row;
    gap: 4px;
  }

  .nav__link {
    padding: 8px 14px;
    color: var(--text-body);
    font-size: 14px;
  }

  .nav__link:hover {
    background: none;
    color: var(--text-heading);
  }
}

/* ---------- 2. Hero ---------- */

.hero {
  padding-block: 40px var(--section-space);
}

.hero__grid {
  display: grid;
  gap: var(--gap);
}

.hero__content {
  min-width: 0;
  padding: var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

/* Glowing badge.
   The glow is a blurred layer behind the pill, not a box-shadow,
   so the "no shadows" rule of the design system still holds. */
.hero__badge-wrap {
  margin-bottom: 28px;
}

.badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.13) 50%, transparent 65%) no-repeat,
    rgba(20, 12, 8, 0.9);
  background-size: 250% 100%, auto;
  background-position: 150% 0, 0 0;
  color: var(--text-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
  animation: badge-shine 4.5s ease-in-out infinite;
}

/* Soft orange halo */
.badge::before {
  content: '';
  position: absolute;
  inset: -60% -12%;
  z-index: -2;
  background: radial-gradient(closest-side, rgba(249, 115, 22, 0.35), transparent);
  filter: blur(14px);
  animation: badge-glow 3.2s ease-in-out infinite;
}

.badge__dot {
  position: relative;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.badge__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: badge-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.badge__sep {
  color: var(--text-muted);
}

.badge__text--accent {
  color: var(--accent);
}

@keyframes badge-glow {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

@media (max-width: 479px) {
  .badge {
    flex-wrap: nowrap;
    gap: 7px;
    padding: 7px 12px 7px 10px;
    font-size: clamp(8.5px, 2.55vw, 12px);
    letter-spacing: 0.03em;
  }
}

.badge__text {
  white-space: nowrap;
}

/* Light sweep across the pill */
@keyframes badge-shine {
  0%, 55%  { background-position: 150% 0, 0 0; }
  100%     { background-position: -50% 0, 0 0; }
}

@keyframes badge-ping {
  0%        { transform: scale(1); opacity: 0.8; }
  75%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero__title {
  max-width: 18ch;
  font-size: var(--fs-h1);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__subtitle {
  max-width: 40ch;
  margin-top: 20px;
  color: var(--text-heading);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--tracking-tight);
}

.hero__description {
  max-width: 52ch;
  margin-top: 12px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Trust facts */
.hero__facts {
  display: grid;
  gap: 12px;
}

.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.fact__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.fact__title {
  font-size: 15px;
  font-weight: 600;
}

.fact__text {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

@media (min-width: 640px) {
  .hero__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 56px;
  }

  .hero__content {
    padding: 64px;
  }
}

/* ---------- Shared section ---------- */

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--border-card);
}

.section__head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section__title {
  font-size: var(--fs-h2);
}

.section__text {
  margin-top: 12px;
}

/* ---------- 3. Products ---------- */

.products__grid {
  display: grid;
  gap: var(--gap);
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.product-card:hover {
  border-color: var(--border-strong);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
}

.product-card__media > svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  opacity: 0.6;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.product-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-card);
}

.product-card__feature {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
}

/* Check mark drawn with borders */
.product-card__feature::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.product-card__btn {
  width: 100%;
}

@media (min-width: 600px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- 4. Why choose us (bento) ---------- */

.why__grid {
  display: grid;
  gap: var(--gap);
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--pad-card);
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.why-card:hover {
  border-color: var(--border-strong);
}

.why-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  color: var(--accent);
}

.why-card__title {
  font-size: 20px;
}

.why-card__text {
  max-width: 52ch;
}

@media (min-width: 640px) {
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop bento: wide cards zigzag — [1 1][2] / [3][4 4] / [5 5][6] */
@media (min-width: 1000px) {
  .why__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-card:nth-child(1),
  .why-card:nth-child(4),
  .why-card:nth-child(5) {
    grid-column: span 2;
  }

  .why-card:nth-child(1),
  .why-card:nth-child(4),
  .why-card:nth-child(5) {
    min-height: 260px;
    justify-content: flex-end;
  }

  .why-card:nth-child(1) .why-card__icon,
  .why-card:nth-child(4) .why-card__icon,
  .why-card:nth-child(5) .why-card__icon {
    margin-bottom: auto;
  }

  .why-card:nth-child(1) .why-card__title,
  .why-card:nth-child(4) .why-card__title,
  .why-card:nth-child(5) .why-card__title {
    max-width: 16ch;
    font-size: 28px;
    line-height: 1.1;
  }
}

/* The lead card carries the accent */
.why-card:first-child {
  border-color: rgba(249, 115, 22, 0.3);
}

.why-card:first-child .why-card__icon {
  border-color: transparent;
  background: var(--accent);
  color: var(--text-on-accent);
}

/* ---------- 5. FAQ ---------- */

.faq__inner {
  max-width: 840px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.faq__item--open {
  border-color: var(--border-strong);
}

.faq__heading {
  font-size: inherit;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px var(--pad-card);
  border-radius: var(--radius-lg);
  color: var(--text-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  text-align: left;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item--open .faq__icon {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-on-accent);
  transform: rotate(45deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq__item--open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel-inner {
  overflow: hidden;
}

.faq__answer {
  max-width: 64ch;
  padding: 0 var(--pad-card) 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq__item--open .faq__answer {
  opacity: 1;
}

/* ---------- 6. Contact ---------- */

.contact__card {
  padding: var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.contact__buttons {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .contact__buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .contact__card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    column-gap: 48px;
    padding: 48px;
  }

  .contact__card .section__text {
    grid-column: 1;
  }

  .contact__buttons {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

/* ---------- 7. Footer ---------- */

.footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--border-card);
}

.footer__top {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-card);
}

.footer__brand {
  color: var(--text-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.footer__tagline {
  max-width: 32ch;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer__heading {
  margin-bottom: 12px;
  color: var(--text-heading);
  font-size: 14px;
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--text-body);
  font-size: 14px;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--accent);
}

.footer__link--icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link--icon:hover svg {
  color: var(--accent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.footer__email {
  transition: color var(--transition);
}

.footer__email:hover {
  color: var(--accent);
}

@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Product card: links, tags, price ---------- */

.product-card__media-link {
  display: block;
}

.product-card__title-link {
  transition: color var(--transition);
}

.product-card__title-link:hover {
  color: var(--accent);
}

.product-card__tags,
.product-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-body);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.product-card__price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

/* Card: "from $XX · 5 amounts" */
.product-card__variants {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.product-card__variants::before {
  content: '·';
  margin-right: 10px;
}

/* Product page: list of amounts and prices.
   Deliberately a plain table, not buttons: it is information, nothing to select. */
.variants__title {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.variants__table {
  width: 100%;
  border-collapse: collapse;
}

.variants__table th,
.variants__table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
  vertical-align: baseline;
}

.variants__table tbody tr:first-child th,
.variants__table tbody tr:first-child td {
  border-top: 1px solid var(--border-card);
}

.variants__table th {
  color: var(--text-heading);
  font-size: 15px;
  font-weight: 500;
}

.variants__table td {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.variants__note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Hidden visually, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 13px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* Separator between steps */
.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  margin-inline: 10px;
  color: var(--text-muted);
}

.breadcrumbs__link {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__current {
  overflow: hidden;
  color: var(--text-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Product detail ---------- */

.product-detail {
  padding-block: 24px var(--section-space);
}

.product-detail__grid {
  display: grid;
  gap: var(--gap);
}

.product-detail__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.product-detail__media > svg {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  opacity: 0.6;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.product-detail__title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.product-detail__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-detail__price-label {
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail__price-value {
  color: var(--accent);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

.product-detail__description {
  max-width: 56ch;
}

.product-detail__features-title {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.product-detail__actions .btn {
  flex: 1 1 200px;
}

@media (min-width: 900px) {
  /* Photo keeps its own proportions (does not stretch with a long description)
     and stays in view while the description is scrolled. */
  .product-detail__grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .product-detail__media-wrap {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .product-detail__info {
    padding: 48px;
  }
}

/* ---------- Related products ---------- */

.related__grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 600px) {
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- SEO article ---------- */

.seo-article {
  max-width: 760px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.75;
}

.seo-article > * + * {
  margin-top: 1em;
}

.seo-article h2 {
  margin-top: 1.6em;
  font-size: 26px;
}

.seo-article h3 {
  margin-top: 1.4em;
  font-size: 20px;
}

.seo-article h2:first-child,
.seo-article h3:first-child {
  margin-top: 0;
}

.seo-article ul,
.seo-article ol {
  padding-left: 1.4em;
}

.seo-article ul {
  list-style: disc;
}

.seo-article ol {
  list-style: decimal;
}

.seo-article li + li {
  margin-top: 0.4em;
}

.seo-article li::marker {
  color: var(--accent);
}

.seo-article strong {
  color: var(--text-heading);
  font-weight: 600;
}

.seo-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-article a:hover {
  color: var(--accent-hover);
}

/* ---------- Text pages (About, Terms, Refund policy) ---------- */

.text-page {
  padding-block: 24px var(--section-space);
}

.text-page__card {
  max-width: 840px;
  padding: var(--pad-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.text-page__title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-page__updated {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.text-page__content {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-card);
}

@media (min-width: 960px) {
  .text-page__card {
    padding: 56px;
  }
}

/* ---------- 404 ---------- */

.not-found {
  border-top: 0;
}

.not-found__card {
  display: block;
  max-width: 640px;
}

.not-found__code {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Images inside SEO texts and pages */
.seo-article img {
  height: auto;
  border-radius: var(--radius-sm);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
