/* mema.studio offer layer (18.11.2026). Load after home.css, pages.css, offer.css.
   The parts of ma-rius.css that make its Services page (tabs, colour row, open steps, offer box),
   in the MEMA palette: chocolate, paper, cream, terracotta, moss, ochre (vision), rose (habits). */
:root { --m-choc: #3A2A21; --m-paper: #F3EBDD; --m-cream: #FBF7F0; --m-terra: #80591A; --m-moss: #5C6B47; }

/* colour row under the headline: low strips instead of portfolio pages */
.pfrow--low .page { width: 100%; aspect-ratio: 210 / 110; }
.pfrow--low + .tabset { margin-top: clamp(40px, 6vw, 72px); }

/* tabs: one bar, the open tab in chocolate */
.tabset__list { display: none; gap: 8px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); border-bottom: 2px solid var(--m-choc); }
.tabset.is-on .tabset__list { display: grid; }
.tabset__list [role="tab"] { text-align: left; font: inherit; color: var(--m-choc); background: var(--m-paper); border: 0; border-radius: 14px 14px 0 0; padding: 18px 24px 20px; cursor: pointer; transition: background .15s; }
.tabset__list [role="tab"]:hover { background: #EADFCB; }
.tabset__list [role="tab"][aria-selected="true"] { background: var(--m-choc); color: var(--m-cream); }
.tabset__list [role="tab"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tab__name { display: block; font: clamp(20px, 2.1vw, 25px)/1.2 var(--serif); }
.tab__sub { display: block; margin-top: 6px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.35; opacity: .8; }
@media (max-width: 544px) {
  .tabset__list { gap: 6px; }
  .tabset__list [role="tab"] { padding: 12px 12px 14px; border-radius: 10px 10px 0 0; }
  .tab__name { font-size: 17px; }
  .tabset.is-on ~ .case .case__head { padding-top: 20px; }
}

/* one offer = one block */
.case__head, .more-steps { max-width: 52rem; }
.case__head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.case.c-vision .case__head { color: var(--m-choc); }
.more-steps--open { margin-top: clamp(28px, 4vw, 40px); }
.more-steps--open h3 { font: clamp(24px, 2.8vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 12px; }
.steps li { font-size: clamp(17px, 1.35vw, 19px); }
.steps-note { margin-top: 18px; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; }
.steps-note a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }

/* price box: cream, chocolate text, the founding tag in terracotta */
body.sub .deal--vision { background: var(--m-paper); color: var(--m-choc); }
body.sub .deal--vision .founding__tag { background: none; padding: 0; color: var(--m-terra); font-size: 13px; }
body.sub .deal--vision .founding__reg { font-size: 17px !important; opacity: .85; }

/* add-on box (ma-rius: the red "Special offer"), terracotta */
.special { margin-top: clamp(32px, 5vw, 56px); }
.go__box { position: relative; display: grid; gap: 8px; align-content: start; padding: clamp(22px, 3.4vw, 32px); padding-right: clamp(64px, 8vw, 96px); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.go__box::after { content: "→"; position: absolute; right: clamp(20px, 3vw, 32px); bottom: clamp(18px, 3vw, 28px); font: 400 clamp(30px, 3.4vw, 40px)/1 var(--sans); transition: transform .18s; }
.go__box:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(58, 42, 33, .18); }
.go__box:hover::after { transform: translateX(8px); }
.go__box:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .go__box, .go__box::after { transition: none; } .go__box:hover { transform: none; } }
.go__box--terra { background: #EBD3A0; color: var(--m-choc); }
.go__box b { font: 400 clamp(29px, 3.6vw, 44px)/1.05 var(--serif); letter-spacing: -.02em; }
.go__k { font: 500 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.go__list { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.go__list li { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.go__list li strong { display: block; font: italic 400 clamp(19px, 1.7vw, 22px)/1.3 var(--serif); }
.go__link { margin-top: 6px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; text-decoration: underline; text-underline-offset: .18em; }

/* dark background from the footer switch */
[data-theme="dark"] .tabset__list [role="tab"] { background: #2A211B; color: var(--m-cream); }
[data-theme="dark"] .tabset__list [role="tab"][aria-selected="true"] { background: var(--m-cream); color: var(--m-choc); }
[data-theme="dark"] .tabset__list { border-color: var(--m-cream); }
[data-theme="dark"] .case.c-vision .case__head { color: var(--m-cream); }
[data-theme="dark"] body.sub .deal--vision { background: #2A211B; color: var(--m-cream); }

/* "How it works" in chocolate, not the vision ochre the block inherits */
.case .more-steps--open h3 { color: var(--m-choc); }
[data-theme="dark"] .case .more-steps--open h3 { color: var(--m-cream); }
