/* ============================================================
   TheCyclingAcademy — styles
   ============================================================ */
:root {
  /* brand: logo crimson / charcoal / silver */
  --crimson: #ab0836;
  --crimson-deep: #8a062b;
  --charcoal: #414143;
  --silver: #d5d5d5;
  --ink: #2b2b2d;
  --ink-2: #414143;
  --ink-soft: #5a5a5e;
  --muted: #86868b;
  --line: #e3e3e5;
  --bg: #f5f5f6;
  --surface: #ffffff;
  --accent: #ab0836;
  --accent-ink: #ffffff;
  --accent-2: #ab0836;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(43, 43, 45, .08);
  --shadow-lg: 0 24px 60px rgba(43, 43, 45, .16);
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--silver); }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons: one style, repeated ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s, color .18s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(171, 8, 54, .28); }
.btn--accent:hover { background: var(--crimson-deep); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: var(--ink); border-bottom: 1px solid rgba(0,0,0,.06); transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: rgba(255, 255, 255, .96); box-shadow: 0 6px 24px rgba(43,43,45,.08); }
/* transparent over a hero until the page scrolls */
.brand .brand__logo--light { display: none; }
.nav--over:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; color: #fff; }
.nav--over:not(.is-scrolled) .brand .brand__logo--dark { display: none; }
.nav--over:not(.is-scrolled) .brand .brand__logo--light { display: block; }
.nav--over:not(.is-scrolled) .nav__menu a:not(.btn) { opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.nav--over:not(.is-scrolled) .nav__toggle span { background: #fff; }
.nav--over + main { margin-top: -80px; }
.nav--over + main .hero { padding-top: 80px; }
.nav--over + main > .messages { padding-top: 90px; }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand__logo { height: 62px; width: auto; display: block; }
.brand--foot .brand__logo { height: 84px; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a:not(.btn) { font-weight: 500; font-size: .95rem; opacity: .85; position: relative; padding: .3rem 0; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__menu a:not(.btn):hover, .nav__menu a.is-active { opacity: 1; }
.nav__menu a:not(.btn):hover::after, .nav__menu a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - 80px), 920px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; animation: heroZoom 20s ease-out forwards; z-index: -2; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0, rgba(245,245,246,0) 14%),
    linear-gradient(100deg, rgba(31,31,33,.9) 0%, rgba(31,31,33,.7) 38%, rgba(31,31,33,.15) 68%, rgba(31,31,33,0) 100%),
    linear-gradient(to top, rgba(31,31,33,.55), transparent 55%); }
.hero__in { position: relative; padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(5rem, 9vh, 6.5rem); max-width: 720px; }
.hero__title { font-size: clamp(2.7rem, 6.2vw, 4.8rem); font-weight: 800; line-height: 1.02; margin-bottom: 1.4rem; max-width: 13ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero__mark { position: relative; display: inline-block; padding: 0 .16em; isolation: isolate; }
.hero__mark::before { content: ""; position: absolute; inset: .08em -.02em .04em; background: var(--accent); border-radius: .16em; transform: skew(-6deg, -1.2deg); z-index: -1; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 52ch; opacity: .94; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.hero__note { font-size: .88rem; color: var(--silver); opacity: .9; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.2rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem .55rem .75rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .01em; }
.hero__facts svg { width: 18px; height: 18px; color: var(--silver); flex: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; display: block; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: heroScroll 1.8s ease-in-out infinite; }
@keyframes heroScroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--alt { background: var(--surface); }
.section__head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--programs { max-width: 900px; margin: 0 auto; }
.card__list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.card__list li { padding-left: 1.4rem; position: relative; font-size: .95rem; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent-2); }
.callout { margin: 2.5rem auto 0; max-width: 900px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem 2.2rem; box-shadow: var(--shadow-lg); }
.callout h3 { color: #fff; font-size: 1.25rem; margin-bottom: .3rem; }
.callout p { margin: 0; opacity: .8; }

/* ---------- split (intro) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__text p:not(.lead):not(.eyebrow) { color: var(--ink-soft); }
.split__media { position: relative; }
.split__media > img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.float-card { position: absolute; left: -1.5rem; bottom: -1.5rem; background: var(--ink); color: #fff; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); max-width: 280px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--accent); }
.float-card strong { font-family: var(--font-head); display: block; margin-bottom: .3rem; }
.float-card span { font-size: .88rem; opacity: .8; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.pills li { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: .45rem .9rem; border-radius: 999px; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.pillar { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 1.6rem; transition: transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 1.2rem; }
.pillar__icon svg { width: 36px; height: 36px; }
.pillar h3 { font-size: 1.35rem; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

/* ---------- cards (programs) ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.15rem; }
.card__body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card__for { font-size: .8rem; font-weight: 600; color: var(--ink); padding-top: .8rem; border-top: 1px solid var(--line); }
.card__for::before { content: "For: "; color: var(--accent-2); }

/* ---------- coaches ---------- */
.coach { background: var(--surface); border-radius: var(--radius); padding: 1.6rem 1.4rem; box-shadow: var(--shadow); text-align: center; transition: transform .25s; }
.coach:hover { transform: translateY(-4px); }
.coach__photo { width: 110px; height: 110px; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; }
.coach__avatar { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--a, var(--charcoal)), var(--b, var(--crimson))); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; display: grid; place-items: center; box-shadow: inset 0 0 0 4px rgba(255,255,255,.7); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.coach h3 { margin-bottom: .1rem; font-size: 1.1rem; }
.coach__role { color: var(--accent-2); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.coach__cert { font-size: .82rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; margin-bottom: .8rem; }
.coach p:last-child { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.explainer { margin-top: 2.5rem; display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); align-items: center; }
.explainer img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.explainer > div { padding: 2rem 2.2rem; }
.explainer .eyebrow { color: var(--silver); }
.explainer__text { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; line-height: 1.45; margin-bottom: .6rem; }
.explainer__fine { font-size: .88rem; opacity: .7; margin: 0; }

/* ---------- where we ride ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: .8rem; }
.gallery a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery a:nth-child(2), .gallery a:nth-child(5), .gallery a:nth-child(6) { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .gallery a:nth-child(n) { grid-column: span 1; grid-row: span 1; } .gallery a:nth-child(1) { grid-column: span 2; } }

/* ---------- quotes ---------- */
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "“"; position: absolute; top: .4rem; left: 1.2rem; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: var(--accent); }
.quote p { position: relative; font-size: 1.05rem; margin: 1.2rem 0 1.2rem; }
.quote footer { display: flex; flex-direction: column; font-size: .85rem; }
.quote footer strong { font-family: var(--font-head); }
.quote footer span { color: var(--muted); }

/* ---------- final CTA + contact ---------- */
.cta { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 0; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,43,45,.95) 30%, rgba(43,43,45,.6)); }
.cta__in { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cta h2 { max-width: 20ch; }
.cta .lead { color: rgba(255,255,255,.8); }
.info { margin-top: 1.5rem; }
.info li { display: flex; flex-direction: column; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.info li span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); font-weight: 600; margin-bottom: .2rem; }
.info li strong { font-weight: 500; font-size: 1.02rem; }
.info a:hover { text-decoration: underline; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 1.2rem; }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: .35rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: .98rem; font-weight: 400; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(171,8,54,.2); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__fine { text-align: center; font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }

/* ---------- footer ---------- */
.footer { background: #1f1f21; color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__in p { margin: 1rem 0 0; color: rgba(255,255,255,.6); font-size: .95rem; max-width: 40ch; }
.footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .95rem; }
.footer nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .pillars .reveal:nth-child(2) { transition-delay: .1s; }
.grid .reveal:nth-child(3), .pillars .reveal:nth-child(3) { transition-delay: .2s; }
.grid .reveal:nth-child(4), .pillars .reveal:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img { animation: none; }
  .hero__scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .callout { flex-direction: column; align-items: flex-start; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__menu { position: fixed; inset: 80px 0 auto 0; background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: .6rem var(--gutter) 1.4rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .2s; }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .float-card { position: static; margin: -2rem 1rem 0 auto; max-width: none; }
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .explainer { grid-template-columns: 1fr; }
  .explainer img { max-height: 220px; }
  .cta__in { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .pillar { padding: 1.6rem 1.4rem 1.3rem; }
  .hero { min-height: 0; }
  .hero__in { padding: 3.5rem 0 3.5rem; }
  .hero__title { max-width: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__note { display: none; }
  .hero__facts { margin-top: 1.8rem; gap: .45rem; }
  .hero__facts li { font-size: .76rem; padding: .45rem .8rem .45rem .65rem; }
  .hero__scroll { display: none; }
  .btn--lg { padding: 1rem 1.4rem; font-size: 1rem; }
  .form { padding: 1.4rem 1.2rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__in { grid-template-columns: 1fr; }
  .brand__logo { height: 48px; }
  .nav__menu .btn { white-space: normal; }
}

/* ============================================================
   Shop, inner pages, messages
   ============================================================ */
.wrap--narrow { max-width: 820px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.link { font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.link:hover { text-decoration: underline; }
.chip { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: none; }
.section__head--row > div { max-width: 720px; }
.h-sm { font-size: 1.5rem; margin: 3rem 0 1.2rem; }
.ticks li { position: relative; padding-left: 2.1rem; margin-bottom: .7rem; color: var(--ink-soft); font-size: .95rem; }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: .43rem; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.nav__cart { position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); }
.nav__cart svg { width: 22px; height: 22px; }
.nav__cart:hover { background: var(--line); }
.nav__count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-head); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

.page-head { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; margin-bottom: .4rem; }
.page-head .lead { color: rgba(255,255,255,.75); margin: 0; }
.hero--short { min-height: 70vh; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tabs a { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.tabs a.is-active, .tabs a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.product__body h3 { font-size: 1.05rem; margin: 0; }
.product__body p { color: var(--ink-soft); font-size: .9rem; flex: 1; margin: 0 0 .6rem; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; }
.price--lg { font-size: 2rem; margin: .4rem 0 .2rem; }
.stock { font-size: .85rem; color: #2f6f2a; font-weight: 600; }
.stock--out { color: #b42318; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.detail__body h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .4rem; }
.detail__desc { color: var(--ink-soft); margin: 1.4rem 0; }
.buy { display: flex; align-items: flex-end; gap: 1rem; margin: 1rem 0 .5rem; }
.buy label { font-size: .85rem; font-weight: 600; display: flex; flex-direction: column; gap: .3rem; }
.buy input { width: 84px; padding: .75rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }

.tbl { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); margin: 1.5rem 0; }
.cart { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .95rem; }
.cart th { text-align: left; font-family: var(--font-head); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.cart td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart tfoot td { border-bottom: 0; background: var(--bg); }
.cart__item { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.cart__item img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.qty { display: flex; align-items: center; gap: .5rem; }
.qty input { width: 64px; padding: .45rem .5rem; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink-soft); font-size: 1.2rem; cursor: pointer; }
.x:hover { background: #fde2dc; color: #b42318; }
.fine { font-size: .85rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.form--light { box-shadow: var(--shadow); }
.form h3 { margin: 0 0 1rem; }
.form h3 + label, .form .radios { margin-top: .2rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form .has-error input, .form .has-error select, .form .has-error textarea { border-color: #b42318; }
.form .err { display: block; color: #b42318; font-weight: 500; font-size: .8rem; margin-top: .3rem; }
.form__error { background: #fde2dc; color: #7a1c10; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; }
.radios { margin-bottom: 1rem; }
.radios ul { display: grid; gap: .5rem; }
.radios label { display: flex; align-items: center; gap: .6rem; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-weight: 500; margin: 0; cursor: pointer; }
.radios input { width: auto; margin: 0; }
.summary { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem; position: sticky; top: 92px; }
.summary h3 { color: var(--silver); }
.summary ul li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.summary__row { display: flex; justify-content: space-between; padding: .6rem 0; }
.summary .fine { color: rgba(255,255,255,.6); margin: .4rem 0 0; }

.pay { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.8rem 2rem; margin: 1.5rem 0; border-left: 5px solid var(--accent); }
.pay h3 { color: #fff; }
.pay__bank { font-family: var(--font-head); font-weight: 600; background: rgba(255,255,255,.08); padding: .8rem 1rem; border-radius: 10px; }
.pay .fine { color: rgba(255,255,255,.65); margin: 0; }

.messages { padding-top: 1rem; }
.msg { padding: .8rem 1rem; border-radius: 10px; font-weight: 500; font-size: .95rem; margin-bottom: .5rem; background: var(--ink); color: #fff; border-left: 4px solid var(--accent); }
.msg--error { background: #fde2dc; color: #7a1c10; border-color: #b42318; }

@media (max-width: 860px) {
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .detail, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav__cart { width: auto; height: auto; border-radius: 10px; padding: .8rem 0; background: none; justify-content: flex-start; gap: .6rem; }
  .nav__cart::after { content: "Cart"; font-weight: 500; font-size: 1.05rem; }
  .nav__count { position: static; }
}
.pay--ok { border-left-color: #3fbf5a; }
.price small { font-size: .7em; font-weight: 600; color: var(--muted); margin-left: .15em; }
