/* ==========================================================================
   /offers/ — «Акции». Concept: Orion over a quiet field of small stars, its
   main stars placed by their (approximate) sky positions. The three stars of
   the belt — the three projects on the offer — are the brightest and are
   numbered 01 · 02 · 03 in the same chart notation as the expert and web-app
   pages; they light up one after another, then the rest of the figure. Below: the price list (old price struck through, new
   price), the «Запуск» package and the terms.
   ========================================================================== */

.service-offers {
  --of-top: clamp(16px, 1.6vw, 24px);                     /* Orion's top inside the hero */
  --of-h: clamp(420px, 40vw, 560px);                      /* Orion's height */
}
/* the hero is just tall enough for Orion, so the prices follow closely */
.service-offers .svc-hero {
  min-height: calc(var(--of-top) + var(--of-h) + 12px);
  padding-bottom: clamp(28px, 3vw, 44px);
}
.service-offers .of-prices { padding-top: clamp(8px, 1vw, 16px); }

/* --- Hero: the star field ----------------------------------------------- */
.of-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.of-field circle { fill: #f1ebdd; }
.of-sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 15, 15, .92) 0%, rgba(14, 15, 15, .6) 36%, rgba(14, 15, 15, 0) 60%);
}

/* --- Hero: Orion ------------------------------------------------------- */
.of-orion {
  position: absolute;
  z-index: -1;
  top: var(--of-top);
  right: calc(var(--nk2-pad) + 4vw);
  height: var(--of-h);
}
.of-orion-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.of-orion-lines line {
  stroke: rgba(241, 235, 221, .22);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.of-orion-lines .of-belt-seg { stroke: rgba(241, 235, 221, .5); stroke-dasharray: none; }
.of-star { position: absolute; width: 0; height: 0; }

/* a star: bright core, soft glow and four thin rays; size by role */
.of-star-core {
  --s: 56px;
  position: absolute;
  top: calc(var(--s) / -2);
  left: calc(var(--s) / -2);
  width: var(--s);
  height: var(--s);
  background:
    radial-gradient(circle closest-side, #fff 0 7%, rgba(255, 255, 255, .65) 12%, rgba(232, 236, 240, .18) 36%, transparent 100%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .7) 50%, transparent) 50% 50% / 100% 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(255, 255, 255, .7) 50%, transparent) 50% 50% / 1px 100% no-repeat;
}
.of-belt .of-star-core { --s: 60px; }
.of-big .of-star-core { --s: 56px; opacity: .85; }
.of-mid .of-star-core { --s: 44px; opacity: .72; }
.of-small .of-star-core { --s: 34px; opacity: .6; }
.of-star-label {
  position: absolute;
  top: 16px;
  left: 50%;
  color: rgba(241, 235, 221, .8);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .16em;
  transform: translateX(-50%);
  text-shadow: 0 0 10px rgba(14, 15, 15, .95);
}

@media (prefers-reduced-motion: no-preference) {
  .of-star-core { animation: of-star-in 1.4s cubic-bezier(.16, 1, .3, 1) both; }
  .of-belt .of-star-core { animation: of-star-in 1.4s cubic-bezier(.16, 1, .3, 1) both, of-twinkle 5s ease-in-out infinite alternate; }
  .of-star-label { opacity: 0; animation: of-fade 1s ease forwards; }
  .of-b1 > * { --d: .5s; }
  .of-b2 > * { --d: 1.2s; }
  .of-b3 > * { --d: 1.9s; }
  .of-star:not(.of-belt) > * { --d: 2.8s; }
  .of-star-core { animation-delay: var(--d); }
  .of-belt .of-star-core { animation-delay: var(--d), calc(var(--d) + 1.4s); }
  .of-star-label { animation-delay: calc(var(--d) + .5s); }
  .of-orion-lines { opacity: 0; animation: of-fade 2s ease 2.6s forwards; }
}
@keyframes of-star-in { from { opacity: 0; transform: scale(.3); } }
@keyframes of-twinkle { from { filter: brightness(.82); } to { filter: brightness(1.15); } }
@keyframes of-fade { to { opacity: 1; } }

/* --- Prices: old → new ----------------------------------------------------- */
.of-rows {
  max-width: 1120px;
  margin: clamp(24px, 2.6vw, 36px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--svc-line);
}
.of-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--svc-line);
}
.of-name {
  margin: 0;
  font-size: clamp(1.375rem, 1.75vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}
.of-name a { color: var(--svc-ink); text-decoration: none; transition: color .2s ease; }
.of-name a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.of-old,
.of-new { margin: 0; white-space: nowrap; }
.of-old { color: var(--svc-label); font-size: clamp(1rem, 1.2vw, 1.125rem); }
.of-old s { text-decoration-thickness: 1px; text-decoration-color: rgba(241, 235, 221, .55); }
.of-new {
  color: var(--svc-ink);
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  font-weight: 300;
  letter-spacing: -.03em;
}
.of-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--svc-ink);
  border-radius: 8px;
  color: var(--svc-ink);
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.of-cta:hover { background: var(--svc-ink); color: var(--home-graphite, #232622); }

/* --- «Запуск»: the band — a launch on a long exposure ----------------------
   A glowing trajectory rises from a lit horizon, curves and enters orbit,
   where a small satellite keeps circling. The trail draws itself when the
   block comes into view; the copy sits over the dark left part. */
.of-launch-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.of-launch-until {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(241, 235, 221, .3);
  border-radius: 999px;
  color: var(--svc-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.of-launch-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 42vw, 600px);
  margin-top: clamp(20px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(210, 214, 218, .12);
  border-radius: 16px;
  background: radial-gradient(120% 90% at 85% 30%, #14171a 0%, #0e0f0f 70%);
}
.of-launch-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.of-launch-stars circle { fill: #f1ebdd; }
.of-horizon-line { fill: none; stroke: rgba(241, 235, 221, .28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.of-launch-orbit-path { fill: none; stroke: rgba(241, 235, 221, .26); stroke-width: 1; stroke-dasharray: 2 6; vector-effect: non-scaling-stroke; }
.of-traj { fill: none; stroke: url(#of-trail); stroke-width: 2.2; stroke-linecap: round; }
.of-traj-glow { fill: none; stroke: url(#of-trail); stroke-width: 10; stroke-linecap: round; opacity: .45; }
.of-sat, .of-sat-tail { fill: #fff; }
.of-sat-glow { fill: rgba(255, 255, 255, .12); }

.of-launch-copy {
  position: relative;
  max-width: 540px;
  padding: clamp(32px, 4vw, 64px);
}
.of-launch-copy::before {                               /* keeps the copy readable over the art */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -30% -40% -60%;
  background: radial-gradient(closest-side, rgba(14, 15, 15, .85), rgba(14, 15, 15, 0));
}
.of-launch-title {
  margin: 0;
  color: var(--svc-ink);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1.04;
}
.of-launch-lead {
  margin: 18px 0 0;
  color: var(--svc-text);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.6;
}
.of-launch-price {
  margin: clamp(24px, 2.6vw, 36px) 0 0;
  color: var(--svc-ink);
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 300;
  letter-spacing: -.05em;
  line-height: 1;
  white-space: nowrap;
}
.of-launch-copy .button { margin-top: 28px; }

@media (prefers-reduced-motion: no-preference) {
  .of-traj, .of-traj-glow { stroke-dasharray: 520; stroke-dashoffset: 520; }
  .of-launch-orbit-path, .of-sat-group { opacity: 0; }
  .of-launch.is-visible .of-traj,
  .of-launch.is-visible .of-traj-glow { animation: of-draw 2.4s cubic-bezier(.45, 0, .25, 1) .3s forwards; }
  .of-launch.is-visible .of-launch-orbit-path { animation: of-fade 1.6s ease 2.2s forwards; }
  .of-launch.is-visible .of-sat-group { animation: of-fade .8s ease 3s forwards; }
}
@keyframes of-draw { to { stroke-dashoffset: 0; } }

/* --- «Запуск»: what is included — nine numbered cells, 3 × 3 ------------- */
.of-launch .of-inc-title { margin-top: clamp(64px, 7vw, 104px); }
.of-inc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  max-width: 1120px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.of-inc li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 6px 16px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--svc-line);
}
.of-inc-n {
  grid-row: 1 / 3;
  padding-top: 4px;
  color: var(--svc-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
}
.of-inc h4 {
  margin: 0;
  color: var(--svc-ink);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.of-inc p {
  margin: 0;
  color: var(--svc-text);
  font-size: 1rem;
  line-height: 1.55;
}

/* --- Terms --------------------------------------------------------------- */
.of-terms { padding-top: clamp(48px, 6vw, 88px); }
.of-terms-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(32px, 5vw, 80px);
  max-width: 1120px;
  margin: clamp(24px, 2.6vw, 36px) 0 0;
  padding: 0;
  list-style: none;
}
.of-terms-list li { padding-top: 16px; border-top: 1px solid var(--svc-line); }
.of-terms-list p { margin: 0; color: var(--svc-text); font-size: 1rem; line-height: 1.6; }

/* --- Reveal ---------------------------------------------------------------- */
.svc-motion .service-offers .svc-reveal { transform: translate3d(0, 28px, 0); }
.svc-motion .service-offers .svc-reveal.is-visible { transform: none; }
.svc-motion .service-offers .svc-reveal-item {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(.15s + var(--i, 0) * .12s);
}
.svc-motion .service-offers .is-visible .svc-reveal-item { opacity: 1; transform: none; }

/* --- Tablet / mobile ------------------------------------------------------- */
@media (max-width: 960px) {
  .service-offers .svc-hero { padding-top: 420px; }
  .of-orion { top: 24px; right: 12vw; height: 380px; }
  .of-row { grid-template-columns: minmax(0, 1fr) auto; }
  .of-name { grid-column: 1 / -1; }
  .of-old { grid-column: 1; grid-row: 2; }
  .of-new { grid-column: 1; grid-row: 3; }
  .of-cta { grid-column: 2; grid-row: 2 / 4; align-self: end; }
  .of-terms-list { grid-template-columns: minmax(0, 1fr); }
  .of-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-launch-band { flex-direction: column; align-items: stretch; }
  .of-launch-art { position: relative; height: 300px; }
  .of-launch-copy { max-width: none; padding-top: 8px; }
  .of-launch-copy::before { display: none; }
}
@media (max-width: 680px) {
  .service-offers .svc-hero { padding-top: 336px; }
  .of-orion { top: 16px; right: 10vw; height: 300px; }
  .of-belt .of-star-core { --s: 56px; }
  .of-row { gap: 6px 16px; }
  .of-new { font-size: 1.5rem; }
  .of-inc { grid-template-columns: minmax(0, 1fr); }
  .of-inc li { padding: 18px 0 20px; }
  .of-excl-k { display: block; margin: 0 0 4px; }
  .of-launch-art { height: 240px; }
  .of-launch-copy { padding: 4px 20px 28px; }
}

/* --- «Запуск»: the fine print — what is not included, how it differs ----- */
.of-launch-foot {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin-top: clamp(32px, 3.4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--svc-line);
}
.of-excl-line,
.of-vs {
  margin: 0;
  color: var(--svc-label);
  font-size: .9375rem;
  line-height: 1.65;
}
.of-excl-k {
  margin-right: 10px;
  color: var(--svc-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.of-vs a { color: var(--svc-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; white-space: nowrap; }
.of-vs a:hover { color: #fff; }
