/* ============================================================
   TSU Graduation Ceremony 2026
   ============================================================ */

/* ---- Custom Fonts ---- */
@font-face {
  font-family: 'Dachi';
  src: url('Dachi the Lynx.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background-color: #EDEDEB; }
::-webkit-scrollbar-thumb { background-color: #1A3C6B; border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: #1A3C6B #EBE4D6; }

/* ---- Variables ---- */
:root {
  --cream:       #F9F9F7;
  --cream-mid:   #EDEDEB;
  --white:       #ffffff;
  --blue:        #1A3C6B;
  --blue-mid:    #2C5490;
  --blue-soft:   #5585B5;
  --blue-pale:   #D8E9F5;
  --text:        #1A3C6B;
  --text-soft:   #4A6FA5;
  --border:      rgba(26, 60, 107, 0.15);
}

/* ---- Base ---- */
body {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.fonts-ready {
  opacity: 1;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0%, transparent 100%);
}

.topbar__brand {
  display: flex;
  align-items: center;
}

.topbar__logo {
  height: 46px;
  width: auto;
}

/* ---- Language Toggle ---- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.22);
}

.lang-toggle__opt {
  padding: 4px 10px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle__opt.active {
  background-color: var(--white);
  color: var(--blue);
}

.lang-toggle__sep {
  display: none;
}

/* ---- Shared Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: var(--blue);
  color: var(--white);
  font-size: 14px;
  padding: 14px 26px;
}

.btn--primary:hover {
  background-color: var(--blue-mid);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('bg-mobile.jpg');
  background-size: cover;
  background-position: center;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Very light overlay — lets the video breathe */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.06) 18%,
    rgba(0, 0, 0, 0.04) 75%,
    transparent 100%
  );
}

/* Soft cream dissolve at the bottom edge */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(245, 240, 232, 0.65) 55%,
    var(--cream) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 62px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.hero__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 6rem;
  color: var(--white);
  text-align: center;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.80),
     1px -1px 0 rgba(0, 0, 0, 0.80),
    -1px  1px 0 rgba(0, 0, 0, 0.80),
     1px  1px 0 rgba(0, 0, 0, 0.80),
     0 4px 24px rgba(0, 0, 0, 0.28);

    -webkit-user-select: none;
      /* Safari, Chrome, and Opera */
      -moz-user-select: none;
      /* Firefox */
      -ms-user-select: none;
      /* Internet Explorer 10+ and Edge */
      user-select: none;
      /* Standard syntax (Modern browsers) */
}

/* ---- Scroll CTA (three animated chevrons) ---- */
.hero__scroll-cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.hero__chevron {
  width: 30px;
  height: 15px;
  color: var(--white);
  animation: chevron-pulse 1.8s ease-in-out infinite;
}

.hero__chevron:nth-child(1) { animation-delay: 0s; }
.hero__chevron:nth-child(2) { animation-delay: 0.22s; }
.hero__chevron:nth-child(3) { animation-delay: 0.44s; }

@keyframes chevron-pulse {
  0%   { opacity: 0.15; transform: translateY(0); }
  50%  { opacity: 0.65; transform: translateY(4px); }
  100% { opacity: 0.15; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__chevron { animation: none; opacity: 0.4; }
}

/* ============================================================
   INVITE SECTION
   ============================================================ */

.invite {
  background-color: var(--cream);
  padding: 72px 24px 80px;
  text-align: center;
}

.invite__inner {
  max-width: 680px;
  margin: 0 auto;
}

.invite__date {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue-soft);
  margin-bottom: 30px;
}

.invite__text {
  font-family: 'Playfair Display', 'Noto Serif Georgian', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
}

.invite__location {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Noto Serif Georgian', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--blue-soft);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.invite__location::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 72%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--blue-soft) 25%, var(--blue-soft) 75%, transparent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.55s;
}

.invite__location.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.invite__location.is-visible::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================
   TIMETABLE
   ============================================================ */

.timetable {
  position: relative;
  z-index: 1;
  padding: 80px 0 90px;
  background-color: var(--cream);
  overflow: hidden;
}

/* Spinning emblem watermark — scoped to timetable section */
.timetable__seal {
  position: absolute;
  top: 0;
  left: 50%;
  width: 460px;
  height: 460px;
  margin-left: -230px;
  -webkit-mask-image: url('emblem-white.png');
  mask-image: url('emblem-white.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  background-color: var(--blue-soft);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  translate: 0 var(--seal-y, 0px);
  animation: timetable-seal-spin 110s linear infinite;
}

@keyframes timetable-seal-spin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .timetable__seal { animation: none; }
}

.timetable__header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  margin-bottom: 56px;
}

.timetable__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue-soft);
  margin-bottom: 14px;
}

.timetable__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ---- Track (line, progress, marker, items) ---- */
.timetable__track {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 20px 4px 0;
}

.timetable__line,
.timetable__progress {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 42px;
  width: 2px;
  border-radius: 2px;
}

.timetable__line {
  background-color: var(--cream-mid);
}

.timetable__progress {
  bottom: auto;
  height: 0;
  background-image: linear-gradient(to bottom, var(--blue-soft), var(--blue));
  box-shadow: 0 0 10px rgba(26, 60, 107, 0.20);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Travelling marker ---- */
.timetable__marker {
  position: absolute;
  left: 42px;
  top: 8px;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timetable__marker-ring,
.timetable__marker-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.timetable__marker-ring {
  width: 30px;
  height: 30px;
  background-color: rgba(26, 60, 107, 0.11);
  animation: tt-pulse 2.4s ease-in-out infinite;
}

.timetable__marker-core {
  width: 13px;
  height: 13px;
  background-color: var(--blue);
  box-shadow: 0 0 0 4px var(--white), 0 0 14px 2px rgba(26, 60, 107, 0.26);
}

@keyframes tt-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.55; }
  50%       { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .timetable__marker-ring { animation: none; }
  .timetable__progress,
  .timetable__marker { transition: none; }
}

/* ---- Items ---- */
.timetable__item {
  position: relative;
  padding-left: 74px;
  padding-bottom: 30px;
}

.timetable__item:last-child {
  padding-bottom: 0;
}

.timetable__dot {
  position: absolute;
  top: 22px;
  left: 42px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--cream-mid);
  border: 2px solid rgba(26, 60, 107, 0.25);
  z-index: 2;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

.timetable__item.is-active .timetable__dot {
  border-color: var(--blue);
  background-color: var(--blue);
}

/* ---- Card ---- */
.timetable__card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(26, 60, 107, 0.06);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.timetable__item.is-active .timetable__card {
  transform: translateY(-2px);
  border-color: rgba(26, 60, 107, 0.32);
  box-shadow: 0 10px 28px rgba(26, 60, 107, 0.10);
}

.timetable__time {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-soft);
  margin-bottom: 7px;
}

.timetable__item-title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 6px;
}

.timetable__item-desc {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ============================================================
   FACULTIES
   ============================================================ */

.faculties {
  position: relative;
  z-index: 1;
  padding: 72px 0 80px;
  overflow: hidden;
  background-color: var(--cream);
}

.faculties__header {
  text-align: center;
  padding: 0 20px;
  margin-bottom: 36px;
}

.faculties__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue-soft);
  margin-bottom: 14px;
}

.faculties__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* ---- Carousel ---- */
.faculties__track-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.faculties__track-wrap.is-dragging {
  cursor: grabbing;
}

.faculties__track-wrap::before,
.faculties__track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
}

.faculties__track-wrap::before {
  left: 0;
  background-image: linear-gradient(to right, var(--cream) 0%, transparent 100%);
}

.faculties__track-wrap::after {
  right: 0;
  background-image: linear-gradient(to left, var(--cream) 0%, transparent 100%);
}

.faculties__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  will-change: transform;
}

.faculties__banner {
  height: 260px;
  width: auto;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 2px;
  -webkit-user-drag: none;
  cursor: pointer;
}

/* ---- Faculty Modal ---- */
.fac-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.fac-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.fac-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 20, 40, 0.45);
  cursor: pointer;
}

.fac-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background-color: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.fac-modal.is-open .fac-modal__box {
  transform: translateY(0);
}

.fac-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cream-mid);
}

.fac-modal__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.fac-modal__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--cream);
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fac-modal__close:hover {
  background-color: var(--cream-mid);
  color: var(--text);
}

.fac-modal__close svg {
  width: 18px;
  height: 18px;
}

.fac-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fac-modal__placeholder {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 15px;
  color: var(--text-soft);
  text-align: center;
  padding: 20px 0 8px;
}

/* ============================================================
   SEATING
   ============================================================ */

.seating {
  background-color: var(--cream);
  padding: 72px 20px 80px;
  text-align: center;
}

.seating__inner {
  max-width: 680px;
  margin: 0 auto;
}

.seating__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 32px;
}

.seating__placeholder {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 14px;
  color: var(--text-soft);
  background-color: var(--cream-mid);
  border-radius: 12px;
  padding: 48px 24px;
}

@media (min-width: 481px) {
  .seating__title { font-size: 34px; }
}

@media (min-width: 769px) {
  .seating__title { font-size: 40px; }
  .hero::after { height: 100px; }
}

@media (min-width: 1025px) {
  .seating__title { font-size: 46px; }
  .hero::after { height: 70px; }
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown {
  background-color: var(--blue);
  padding: 72px 20px 80px;
  text-align: center;
}

.countdown__inner {
  max-width: 680px;
  margin: 0 auto;
}

.countdown__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.countdown__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 48px;
}

.countdown__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 58px;
}

.countdown__num {
  display: block;
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: center;
}

.countdown__label {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

.countdown__colon {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

/* ---- Celebration canvas ---- */
.celebration-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  display: none;
}

@media (min-width: 481px) {
  .countdown__title  { font-size: 34px; }
  .countdown__num    { font-size: 64px; }
  .countdown__colon  { font-size: 64px; }
  .countdown__unit   { min-width: 76px; }
  .countdown__grid   { gap: 10px; }
}

@media (min-width: 769px) {
  .countdown__title  { font-size: 40px; }
  .countdown__num    { font-size: 80px; }
  .countdown__colon  { font-size: 80px; }
  .countdown__unit   { min-width: 96px; }
  .countdown__grid   { gap: 14px; }
    .countdown__label { font-size: 18px; }
}

@media (min-width: 1025px) {
  .countdown__title  { font-size: 46px; }
  .countdown__num    { font-size: 96px; }
  .countdown__colon  { font-size: 96px; }
  .countdown__unit   { min-width: 116px; }
}

/* ============================================================
   RSVP
   ============================================================ */

.rsvp {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
  padding: 72px 20px 80px;
}

.rsvp__card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 28px 36px;
  box-shadow:
    0 2px 8px rgba(26, 60, 107, 0.04),
    0 16px 48px rgba(26, 60, 107, 0.07);
}

.rsvp__accent {
  display: none;
}

.rsvp__head {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--cream-mid);
}

.rsvp__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--blue-soft);
  margin-bottom: 12px;
}

.rsvp__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rsvp__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rsvp__label {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.rsvp__input {
  width: 100%;
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 15px;
  color: var(--text);
  background-color: var(--cream);
  border: 1.5px solid var(--cream-mid);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp__input::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

.rsvp__input:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 60, 107, 0.08);
}

.rsvp__choices {
  display: flex;
  gap: 12px;
}

.rsvp__choice {
  flex: 1;
  cursor: pointer;
}

.rsvp__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rsvp__choice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  height: 100%;
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  background-color: var(--cream);
  border: 1.5px solid var(--cream-mid);
  border-radius: 12px;
  padding: 14px 12px;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp__choice-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.rsvp__choice:hover .rsvp__choice-box {
  border-color: var(--border);
}

.rsvp__choice input:checked + .rsvp__choice-box {
  background-color: var(--white);
  border-color: var(--blue);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(26, 60, 107, 0.09);
}

.rsvp__choice input:checked + .rsvp__choice-box .rsvp__choice-icon {
  color: var(--blue);
}

.rsvp__choice input:focus-visible + .rsvp__choice-box {
  border-color: var(--blue);
}

.rsvp__submit {
  width: 100%;
  padding: 15px 26px;
  margin-top: 4px;
}

.rsvp__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.rsvp__status {
  text-align: center;
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  min-height: 18px;
}

.rsvp__status.is-error {
  color: #c0392b;
}

.rsvp__success {
  text-align: center;
  padding: 14px 0 8px;
}

.rsvp__success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(26, 60, 107, 0.08);
  color: var(--blue);
  margin-bottom: 18px;
  animation: rsvp-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rsvp__success-mark svg {
  width: 28px;
  height: 28px;
}

@keyframes rsvp-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.rsvp__success-title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.rsvp__success-text {
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--blue);
  padding: 20px;
  text-align: center;
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.footer__credit:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.38;
  transition: opacity 0.2s ease;
}

.footer__credit:hover .footer__logo {
  opacity: 0.85;
}

/* ============================================================
   481px+
   ============================================================ */

@media (min-width: 481px) {
  .hero__title {
    font-size: 56px;
  }

  .invite__text {
    font-size: 21px;
  }

  .faculties__banner {
    height: 300px;
    margin-right: 26px;
  }

  .faculties__track-wrap::before,
  .faculties__track-wrap::after {
    width: 30px;
  }

  .timetable__title {
    font-size: 36px;
  }

  .rsvp__row {
    flex-direction: row;
  }

  .rsvp__row .rsvp__field {
    flex: 1;
  }

  .rsvp__title {
    font-size: 32px;
  }
}

/* ============================================================
   769px+
   ============================================================ */

@media (min-width: 769px) {
  .hero {
    background-image: url('bg-desktop.jpg');
  }

  .hero__title {
    font-size: 52px;
  }

  .invite {
    padding: 90px 24px 96px;
  }

  .invite__text {
    font-size: 23px;
  }

  .timetable {
    padding: 96px 0 110px;
  }

  .timetable__seal {
    width: 640px;
    height: 640px;
    margin-left: -320px;
    opacity: 0.05;
  }

  .timetable__title {
    font-size: 42px;
  }

  .timetable__track {
    padding-top: 8px;
  }

  .timetable__item .timetable__card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
  }

  .timetable__item-title {
    font-size: 21px;
  }

  .timetable__item-desc {
    font-size: 14px;
  }

  .faculties__title {
    font-size: 40px;
  }

  .faculties__track-wrap::before,
  .faculties__track-wrap::after {
    width: 50px;
  }

  .faculties__banner {
    height: 380px;
    margin-right: 36px;
  }

  .fac-modal__box {
    border-radius: 20px;
    margin-bottom: 40px;
  }

  .rsvp__card {
    max-width: 600px;
    padding: 44px 40px 36px;
  }

  .rsvp__title {
    font-size: 36px;
  }

    .rsvp__choice-icon {
      width: 24px;
      height: 24px;
    }

    .rsvp__choice-box{
      font-size: 18px;
    }
}

/* ============================================================
   ADD TO CALENDAR
   ============================================================ */

.cal-section {
  background-color: var(--cream);
  padding: 0 0 48px;
  display: flex;
  justify-content: center;
}

.cal-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cal-section__title {
  font-family: 'Dachi', 'Noto Serif Georgian', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}

.cal-dropdown {
  position: relative;
  display: inline-block;
}

.cal-dropdown__trigger {
  gap: 8px;
}

.cal-dropdown__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.cal-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  list-style: none;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(26, 60, 107, 0.12);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.cal-dropdown.is-open .cal-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cal-dropdown__item {
  display: block;
  padding: 12px 18px;
  font-family: 'Inter', 'Noto Serif Georgian', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.cal-dropdown__item:hover {
  background-color: var(--blue-pale);
}

/* ============================================================
   1025px+
   ============================================================ */

@media (min-width: 1025px) {
  .hero__title {
    font-size: 64px;
  }

  .invite__text {
    font-size: 24px;
  }

  .timetable__seal {
    width: 780px;
    height: 780px;
    margin-left: -390px;
  }

  .timetable__title {
    font-size: 48px;
  }

  .faculties__title {
    font-size: 48px;
  }

  .faculties__track-wrap::before,
  .faculties__track-wrap::after {
    width: 70px;
  }

  .faculties__banner {
    height: 440px;
    margin-right: 44px;
  }
}
