/* Uniplaces student offer — noticeboard / стенгазета
   Fonts: Newsreader, Fraunces, DM Sans — all SIL OFL, self-hosted. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/dm-sans-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/newsreader-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/newsreader-700.woff2') format('woff2');
}

:root {
  --board: #1f1a16;
  --board-2: #2a231c;
  --paper: #f4efe2;
  --paper-2: #ebe4d0;
  --ink: #1a1914;
  --ink-soft: #4a453c;
  --rule: rgba(26, 25, 20, 0.22);
  --highlight: #f0d84a;
  --stamp: #b42318;
  --uni: #00adef;
  --fh: #2563eb;
  --success: #2f7a3e;
  --tape: rgba(255, 246, 196, 0.78);
  --font-news: 'Newsreader', 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'DM Sans', system-ui, sans-serif;
  --font-brand: 'Fraunces', Georgia, serif;
  --shadow-pin: 0 10px 28px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.offer {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-news);
  font-size: 1.125rem;
  line-height: 1.55;
  background: var(--board);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(255, 220, 160, 0.08), transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.045) 1px, transparent 0);
  background-size: auto, 11px 11px;
}

.offer a {
  color: inherit;
}

.offer a.offer-nav__brand,
.offer a.offer-nav__brand:visited {
  color: #fff;
}

.offer a:focus-visible,
.offer button:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus {
  top: 0.75rem;
}

/* —— Header —— */
.offer-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  background: rgba(31, 26, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 239, 226, 0.12);
}

.offer-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
}

.offer-nav__logo {
  width: 28px;
  height: 28px;
}

.offer-nav__name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.offer-nav__issue {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 226, 0.62);
}

.offer-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  background: var(--highlight);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
}

.offer-nav__cta:hover {
  filter: brightness(1.05);
}

@media (min-width: 720px) {
  .offer-nav__issue {
    display: block;
  }
}

/* —— Sheets —— */
.sheet-wrap {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 1.25rem auto 3.5rem;
}

.sheet {
  position: relative;
  background: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 18%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(26, 25, 20, 0.035) 28px
    );
  color: var(--ink);
  box-shadow: var(--shadow-pin);
  padding: clamp(1.35rem, 3vw, 2.4rem) clamp(1.15rem, 3.5vw, 2.75rem);
}

.sheet--mast {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.tape {
  position: absolute;
  width: 72px;
  height: 22px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tape--tl {
  top: -8px;
  left: 18%;
  transform: rotate(-8deg);
}
.tape--tr {
  top: -6px;
  right: 14%;
  transform: rotate(12deg);
}

.mast__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mast__title {
  margin: 0.55rem 0 0.35rem;
  font-family: var(--font-news);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
}

.mast__rule {
  height: 3px;
  background: var(--ink);
  margin: 0.55rem 0 0.45rem;
}

.mast__rule--thin {
  height: 1px;
  opacity: 0.45;
}

.mast__dek {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--ink-soft);
}

.mast__partners {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  margin-top: 1.35rem;
}

.mast__fh {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.mast__fh img {
  display: block;
  width: 48px;
  height: 48px;
}

.mast__uni {
  display: block;
  height: 48px;
  width: auto;
}

.mast__x {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* —— Lead —— */
.lead {
  margin-top: 1.15rem;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .lead {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.lead h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border: 2.5px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  background: rgba(180, 35, 24, 0.06);
}

.mark {
  display: inline-block;
  padding: 0 0.18em;
  background: var(--highlight);
  box-decoration-break: clone;
}

.facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  margin: 0;
  padding-top: 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  padding-bottom: 0.7rem;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--rule);
}

.facts div:last-child dd {
  border-bottom: 0;
}

/* —— Ticket —— */
.ticket {
  position: relative;
  width: 100%;
  padding: 1.15rem 1.1rem 1.05rem;
  background: #fffdf6;
  border: 2px dashed var(--ink);
  box-shadow: var(--shadow-pin);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transform: rotate(1.4deg);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ticket:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.ticket:active {
  transform: translateY(0);
}

.ticket__kicker {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ticket__code {
  display: block;
  margin: 0.55rem 0 0.45rem;
  font-family: var(--font-ui);
  font-size: clamp(1.15rem, 4.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  word-break: break-all;
}

.ticket__hint {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.ticket__copied {
  display: none;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--success);
}

.ticket.is-copied {
  background: #edf8ee;
  border-style: solid;
  border-color: var(--success);
}

.ticket.is-copied .ticket__hint {
  display: none;
}

.ticket.is-copied .ticket__copied {
  display: block;
}

.ticket__notch {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--board);
  border-radius: 50%;
  transform: translateY(-50%);
}

.ticket__notch--l {
  left: -10px;
}
.ticket__notch--r {
  right: -10px;
}

.copy-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* —— Steps —— */
.section-kicker {
  margin: 2.1rem 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 226, 0.7);
  text-align: center;
}

.steps {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.2rem, 2.5vw, 1.85rem);
}

@media (min-width: 800px) {
  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .step--flip {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .step--flip .step__copy {
    order: 2;
  }
}

.step__num {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
}

.step h2 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.12;
}

.step p {
  margin: 0 0 0.7rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.step .inline-code {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--highlight);
  padding: 0.05em 0.28em;
}

.shot {
  margin: 0;
  background: #d9d3c4;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(26, 25, 20, 0.12);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.shot figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* —— Schematic listing —— */
.clip {
  position: relative;
  background: #fffdf8;
  border: 1px solid rgba(26, 25, 20, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.85rem;
  transform: rotate(-1.6deg);
}

.clip__photo {
  height: 132px;
  background:
    linear-gradient(180deg, #c9d7e4 0%, #9eb4c8 100%);
  border: 1px solid rgba(26, 25, 20, 0.18);
  position: relative;
  overflow: hidden;
}

.clip__photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clip__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  background: #fff;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0088bc;
}

.clip__body {
  padding: 0.7rem 0.15rem 0.1rem;
}

.clip__where {
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.clip__title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
}

.clip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
}

.clip__price {
  margin-top: 0.55rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
}

.clip__price span {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.clip__note {
  position: absolute;
  right: -0.4rem;
  bottom: -0.85rem;
  background: var(--highlight);
  padding: 0.28rem 0.55rem;
  font-family: var(--font-news);
  font-style: italic;
  font-size: 0.95rem;
  transform: rotate(4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* —— Fine print + CTA —— */
.fine {
  margin-top: 1.15rem;
}

.fine h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.fine ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.fine li + li {
  margin-top: 0.4rem;
}

.cta-band {
  margin-top: 1.15rem;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-band p {
  margin: 0 0 1.1rem;
  color: rgba(244, 239, 226, 0.78);
  font-style: italic;
}

.cta-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  background: var(--highlight);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
  text-decoration: none;
}

.cta-band a:hover {
  filter: brightness(1.06);
}

.offer-foot {
  width: min(1080px, calc(100% - 1.5rem));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: rgba(244, 239, 226, 0.62);
}

.offer-foot a {
  color: rgba(244, 239, 226, 0.82);
  text-decoration: none;
}

.offer-foot a:hover {
  text-decoration: underline;
}

.mini-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border: 1.5px dashed var(--ink);
  background: #fffdf6;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--ink);
}

.mini-copy.is-copied {
  border-style: solid;
  border-color: var(--success);
  color: var(--success);
  background: #edf8ee;
}

/* —— Live Uniplaces clippings —— */
.offer-clips {
  margin-top: 1.15rem;
}

.offer-clips h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.12;
}

.offer-clips__kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
}

.offer-clips__dek {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.offer-clip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .offer-clip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .offer-clip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.offer-clip-card {
  background: #fffdf8;
  border: 1px solid rgba(26, 25, 20, 0.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  min-width: 0;
}

.offer-clip-card:nth-child(4n + 1) {
  transform: rotate(-0.8deg);
}
.offer-clip-card:nth-child(4n + 2) {
  transform: rotate(0.7deg);
}
.offer-clip-card:nth-child(4n + 3) {
  transform: rotate(-0.4deg);
}
.offer-clip-card:nth-child(4n + 4) {
  transform: rotate(1deg);
}

.offer-clip-card:hover,
.offer-clip-card:focus-within {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

.offer a.offer-clip-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
}

.offer-clip-card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 3;
  background: #c5d0db;
  overflow: hidden;
}

.offer-clip-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-clip-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(165deg, #d5e0ea, #9aafc0);
}

.offer-clip-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  background: #fff;
  padding: 0.15rem 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0088bc;
}

.offer-clip-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.7rem 0.75rem 0.8rem;
}

.offer-clip-card__where {
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.offer-clip-card__title {
  font-family: var(--font-news);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-clip-card__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.offer-clip-card__price {
  margin-top: 0.25rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 800;
}

.offer-clip-card__price span {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.offer-clip-card__fee-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  border-radius: 50%;
  border: 1.5px solid var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}

.offer-clip-card__fee-info::before {
  content: "i";
}

.offer-clip-card__fee-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: var(--paper, #2b2520);
  color: var(--ink, #f4f0eb);
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
  pointer-events: none;
}

.offer-clip-card__fee-info:hover .offer-clip-card__fee-tip,
.offer-clip-card__fee-info:focus .offer-clip-card__fee-tip {
  display: block;
}

.offer-clip-empty,
.offer-clips__note {
  font-size: 1rem;
  color: var(--ink-soft);
}

.offer-clips__note {
  margin: 1rem 0 1.1rem;
  font-size: 0.95rem;
}

.offer-clip-empty {
  margin: 0 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ticket,
  .clip,
  .stamp,
  .clip__note,
  .offer-clip-card,
  .offer-clip-card:nth-child(n),
  .offer-clip-card:hover,
  .offer-clip-card:focus-within {
    transform: none;
  }
  .ticket:hover {
    transform: none;
  }
}
