/* The program for specialists — a lamp-lit spread. Left page: the real PDF cover, shown as a book
   on a dark table. Right page: what is inside, by session, and the price. The file itself stays
   out of the public folder: it is sent after payment, not downloaded from the site. */

.program__figure { display: grid; gap: 18px; justify-items: center; margin: 0; }

/* The cover is the actual cover of the PDF: a thin paper edge behind it and a soft shadow. */
.program__book { position: relative; width: min(100%, 380px); }
.program__book::before {
  content: ''; position: absolute; inset: 7px -8px -9px 10px; pointer-events: none;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, rgba(238, 240, 230, .22) 0 1px, rgba(238, 240, 230, .06) 1px 5px);
  opacity: .55;
}
.program__cover {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 4px;
  box-shadow: 0 32px 70px -32px rgba(0, 0, 0, .8), 0 0 0 1px rgba(238, 240, 230, .1);
}
.program__caption {
  max-width: 24em; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(18px, .4vw + 15px, 21px); line-height: 1.35;
  color: var(--on-band-muted);
}

/* The right page: the offer reads top to bottom — what it is, what is inside, what it costs. */
.program__head { display: grid; gap: 16px; margin-bottom: clamp(22px, 2.6vw, 32px); }
.program__head .kicker { color: #e2b296; }
.program__head h1, .program__head h2 { font-size: clamp(40px, 3vw + 10px, 62px); line-height: 1.02; }

.program__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--tone-rule); }
.program__facts li { display: grid; gap: 2px; padding: 14px 16px 14px 0; }
.program__facts li + li { padding-left: 16px; border-left: 1px solid var(--tone-rule); }
.program__facts b { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, .7vw + 15px, 26px); line-height: 1.1; color: var(--on-band); white-space: nowrap; }
.program__facts span { font-size: var(--text-micro); line-height: 1.4; color: var(--on-band-muted); }

.program__weeks { margin-top: 4px; border-bottom: 1px solid var(--tone-rule); }
.program__weeks summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(21px, .5vw + 17px, 25px); color: var(--on-band);
}
.program__weeks summary::-webkit-details-marker { display: none; }
.program__weeks summary::after { content: '+'; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; color: #e2b296; transition: transform .3s var(--ease-settle); }
.program__weeks[open] summary::after { transform: rotate(45deg); }
.program__weeks ol { counter-reset: week; padding-bottom: 14px; }
.program__weeks li {
  display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--on-band) 10%, transparent);
  font-size: var(--text-small); line-height: 1.45; color: var(--on-band-muted);
}
.program__weeks li::before { counter-increment: week; content: counter(week, decimal-leading-zero); font-family: var(--serif); font-size: 19px; color: #e2b296; }
.program__extra { margin-top: 14px; max-width: 34em; font-size: var(--text-small); line-height: 1.55; color: var(--on-band-muted); }

.program__offer {
  display: grid; gap: 14px; margin-top: clamp(22px, 2.8vw, 32px); padding: clamp(22px, 2.8vw, 32px);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--on-band) 6%, transparent);
  border: 1px solid var(--tone-rule);
}
.program__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.program__sum { font-family: var(--serif); font-size: clamp(54px, 3.6vw + 22px, 76px); line-height: .95; letter-spacing: -.035em; color: var(--on-band); }
.program__per { font-family: var(--serif); font-style: italic; font-size: 20px; color: #e2b296; }
.program__terms { max-width: 34em; font-size: var(--text-small); line-height: 1.55; color: var(--on-band-muted); }
.program__cta { justify-self: start; }
.program__note { max-width: 34em; font-size: var(--text-micro); line-height: 1.6; color: var(--on-band-muted); }
.program__note .link { color: var(--on-band); text-decoration-color: color-mix(in srgb, var(--on-band) 40%, transparent); }
.program__note .link:hover { color: #fff; }

/* The quiet line under the prices: the program is the other way in, not a second hard sell. */
.stoimost__also { margin-top: 18px; max-width: 30em; font-size: var(--text-small); line-height: 1.55; color: var(--muted); }
.stoimost__also .link { display: inline; min-height: 0; font-size: inherit; }

@media (max-width: 860px) {
  .program__book { width: min(100%, 340px); }
  .program__caption { text-align: left; justify-self: start; }
}
@media (max-width: 560px) {
  .program__facts { grid-template-columns: minmax(0, 1fr); }
  .program__facts li, .program__facts li + li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
    padding: 11px 0; border-left: 0;
  }
  .program__facts li + li { border-top: 1px solid var(--tone-rule); }
  .program__facts b { font-size: 21px; }
  .program__sum { font-size: 58px; }
  .program__offer .btn { width: 100%; }
}

/* The standalone page for specialists opens directly on the dark spread: leave room for the bar. */
.page-specialistam .programma { padding-top: var(--header-h); }
