/* KynWorks offers (buy.html, logiciel.html): duration switch on top, one card per offer with the same rows
   (eyebrow, name, audience, price, button, contents) aligned across cards with CSS subgrid. Rendered by offers.js. */
.ofsec { text-align: start; }
.ofsec .ofhead { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.ofsec .ofhead h2 { margin: 0; }
.ofsec .ofhead .ssec__lead { margin: 10px auto 0; }

.ofbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin: 0 0 14px; }
.ofseg { display: inline-flex; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); padding: 4px; gap: 2px; }
.ofseg button { border: 0; background: none; min-height: 40px; padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.ofseg button:hover { color: var(--ink); }
.ofseg button[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(227, 0, 0, .7); }
.ofpcs { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ofpcs button { width: 38px; height: 38px; border-radius: 50%; border: 0; box-shadow: 0 0 0 1px var(--line); background: #fff; font: inherit; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.ofpcs button:hover { background: var(--ink); color: #fff; }
.ofpcs b { min-width: 22px; text-align: center; font-size: 16px; }
.ofnote { text-align: center; font-size: 13px; color: var(--muted); margin: 0 auto 26px; max-width: 760px; line-height: 1.5; }

.ofgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 0; }
@media (min-width: 700px) { .ofgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 34px; row-gap: 50px; } }
@media (min-width: 1100px) { .ofgrid { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); row-gap: 16px; } }

.ofc { position: relative; display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  background: #fff; border-radius: 24px; padding: 26px 22px 24px; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.ofc.is-top { box-shadow: 0 0 0 2px var(--red), 0 30px 60px -36px rgba(227, 0, 0, .55); border-radius: 0 0 24px 24px; margin-top: 34px; }
@media (min-width: 700px) { .ofc.is-top { margin-top: 0; } }
.ofc__flag { position: absolute; left: -2px; right: -2px; bottom: 100%; margin: 0; padding: 8px 12px; background: var(--red); color: #fff;
  border-radius: 24px 24px 0 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .02em; }

.ofc__eye { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--red); }
.ofc h3 { margin: 0 0 10px; font-size: clamp(22px, 2vw, 26px); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
.ofc__for { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.ofc__for b { color: var(--ink); font-weight: 600; }

.ofc__price { margin: 0 0 18px; align-self: end; }
.ofc__from { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.ofc__amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; }
.ofc__amt strong { white-space: nowrap; font-size: clamp(26px, 2.1vw, 30px); font-weight: 700; color: var(--red); line-height: 1.1; letter-spacing: -.01em; }
.ofc__amt span { white-space: nowrap; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ofc__sub { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ofc__sub em { font-style: normal; color: var(--red); font-weight: 600; }
.ofc__na { margin: 0; font-size: 14px; color: var(--muted); }

.ofc__btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 15.5px; text-decoration: none; text-align: center;
  box-shadow: 0 12px 28px -14px rgba(227, 0, 0, .75); transition: background .2s, color .2s, transform .2s; margin: 0 0 22px; }
.ofc__btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); box-shadow: none; }
.ofc__btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(17, 17, 17, .35); }
.ofc__btn--off { background: #f1eee9; color: var(--muted); box-shadow: none; pointer-events: none; }

.ofc__body { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 16px; align-content: start; }
.ofc__base { display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.ofc__base svg { flex: none; color: var(--red); }
.ofg { display: grid; gap: 9px; }
.ofg + .ofg { border-top: 1px solid var(--line); padding-top: 16px; }
.ofg__t { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ofg__t svg { flex: none; color: var(--ink); }
.ofg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ofg li { position: relative; padding-inline-start: 28px; font-size: 14px; line-height: 1.5; color: #3a3631; }
.ofg li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .3em; width: 14px; height: 8px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); transform-origin: center; }
.ofg li.ofm::before { border-color: var(--c, var(--red)); }

.ofmore { text-align: center; margin: 26px auto 0; font-size: 14.5px; color: var(--muted); max-width: 760px; }
.ofmore a { color: var(--red); font-weight: 600; }

@media (max-width: 699px) {
  .ofseg { width: 100%; }
  .ofseg button { flex: 1 1 0; padding: 8px 6px; font-size: 13.5px; }
  .ofc { padding: 22px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { .ofc__btn, .ofseg button { transition: none; } }
