/* Finale follows the services section, with the figure, stage light and measured rails. */
.fin {
  position: relative;
  z-index: 2;
  height: 170svh;
  color: #f5ede8;
  background: #050304;
}
.fin__pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(93, 12, 9, .62), transparent 56%),
    linear-gradient(180deg, #050405 0%, #120405 49%, #080304 100%);
}
.fin__pin::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.54), transparent 22%, transparent 67%, rgba(0,0,0,.55));
}
.fin__grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: screen;
  background: url('../../public/tex/grain.png') repeat;
  background-size: 360px;
}
.fin__glow {
  position: absolute;
  z-index: 0;
  width: 68vw;
  height: 75svh;
  left: 50%;
  bottom: -13svh;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(234, 36, 24, .67) 0%, rgba(95, 10, 7, .29) 37%, transparent 69%);
  filter: blur(20px);
  animation: finGlow 7s ease-in-out infinite alternate;
}
.fin__ring,
.fin__ring::before,
.fin__ring::after {
  position: absolute;
  border: 1px solid rgba(232, 91, 61, .35);
  border-radius: 50%;
  pointer-events: none;
}
.fin__ring {
  z-index: 1;
  left: 50%;
  bottom: -22vw;
  width: 74vw;
  height: 38vw;
  transform: translateX(-50%) rotateX(62deg);
  box-shadow: 0 0 30px rgba(221, 40, 29, .22), inset 0 0 30px rgba(221, 40, 29, .16);
}
.fin__ring::before { content: ''; inset: 14%; }
.fin__ring::after { content: ''; inset: 30%; border-color: rgba(250, 182, 132, .46); }
.fin__word {
  position: absolute;
  z-index: 1;
  top: 58px;
  left: 0;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font: 400 clamp(54px, 6vw, 94px)/1.05 var(--disp);
  letter-spacing: .015em;
  color: #f5e6db;
  background: linear-gradient(180deg, #fff2e8 10%, #d9a99b 45%, #a9231d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 14px rgba(153, 12, 9, .3));
  user-select: none;
  pointer-events: none;
}
.fin__figure {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 45px;
  height: min(75svh, 800px);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: brightness(.83) contrast(1.1) drop-shadow(-7px 0 10px rgba(255, 79, 39, .4));
  pointer-events: none;
}
.fin__scene-label,
.fin__scene-aside,
.fin__column-index,
.fin__column-intro,
.fin__note,
.fin__bar {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: .23em;
}
.fin__scene-label {
  position: absolute;
  z-index: 4;
  top: 24px;
  left: 4.6vw;
  margin: 0;
  color: #edab88;
  font-size: 10px;
}
.fin__scene-aside {
  position: absolute;
  z-index: 4;
  right: 4.6vw;
  top: 24px;
  margin: 0;
  color: #ad9088;
  text-align: right;
  font-size: 9px;
  line-height: 1.8;
}
.fin__stage {
  position: absolute;
  z-index: 4;
  top: min(37svh, 360px);
  right: 4.6vw;
  left: 4.6vw;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  pointer-events: none;
}
.fin__price-column {
  width: min(27vw, 390px);
  min-width: 0;
  pointer-events: auto;
}
.fin__column-index {
  margin: 0 0 13px;
  color: #f66b4c;
  font-size: 10px;
  font-weight: 600;
}
.fin__price-column h2,
.fin__price-column h3 {
  margin: 0;
  font: 400 clamp(31px, 3.2vw, 49px)/1 var(--disp);
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-shadow: 0 3px 19px #000;
}
.fin__column-intro {
  margin: 12px 0 13px;
  color: #d5b7a8;
  font-size: 10px;
}
.fin__price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(244, 180, 147, .28);
  font-family: var(--ui);
  text-shadow: 0 2px 12px #000;
}
.fin__price-row:last-of-type { border-bottom: 1px solid rgba(244, 180, 147, .28); }
.fin__price-row span { color: #f1d2c6; font-size: clamp(15px, 1.2vw, 19px); }
.fin__price-row strong { color: #fff1df; font-size: clamp(17px, 1.55vw, 24px); white-space: nowrap; }
.fin__price-row small { color: #cfaaa0; font-size: 11px; font-weight: 400; }
.fin__price-button {
  width: 100%;
  appearance: none;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, padding .25s ease;
}
.fin__price-button strong { margin-left: auto; }
.fin__price-button i {
  flex: none;
  align-self: center;
  width: 13px;
  color: #f66b4c;
  font: 400 17px/1 var(--ui);
  font-style: normal;
  text-align: right;
  transition: transform .25s ease;
}
.fin__price-button:hover,
.fin__price-button:focus-visible,
.fin__price-button[aria-expanded="true"] {
  background: rgba(233, 83, 55, .12);
  padding-inline: 8px;
  outline: none;
}
.fin__price-button:focus-visible { box-shadow: inset 0 0 0 1px #f66b4c; }
.fin__price-button[aria-expanded="true"] i { transform: rotate(45deg); }
.fin__price-detail {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 11px 0 0;
  padding: 10px 11px;
  border-left: 2px solid #f66b4c;
  background: rgba(36, 8, 7, .7);
  color: #f5d9ce;
  font: 400 13px/1.35 var(--ui);
  letter-spacing: .025em;
  text-transform: none;
  text-shadow: 0 2px 12px #000;
}
.fin__price-detail[hidden] { display: none; }
.fin__price-detail b { color: #ff8669; font-weight: 600; }
.fin__concept-note {
  max-width: 360px;
  margin: 15px 0 0;
  color: #d9a595;
  font: 400 13px/1.5 var(--ui);
  letter-spacing: .015em;
  text-shadow: 0 2px 12px #000;
}
.fin__note {
  margin: 17px 0 16px;
  color: #d9a595;
  font-size: 9px;
  line-height: 1.6;
}
.fin__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 11px 0;
  border-top: 1px solid #f66b4c;
  border-bottom: 1px solid #f66b4c;
  color: #fff0e4;
  font: 600 14px var(--ui);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, gap .25s ease;
}
.fin__cta:hover,
.fin__cta:focus-visible { color: #ff7659; gap: 42px; outline: none; }
.fin__cta span { color: #ff7659; font-size: 22px; line-height: .7; }
.fin__bar {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  min-height: 76px;
  box-sizing: border-box;
  padding: 12px 4.6vw;
  border-top: 1px solid rgba(240, 159, 132, .23);
  background: rgba(5, 2, 3, .72);
  color: #d2a99b;
  font-size: 10px;
}
.fin__bar-dot { color: #ef5a43; padding: 0 .45em; }
.fin__bar a { color: #f5d5c9; text-decoration: none; text-transform: none; letter-spacing: .09em; }
.fin__bar a:hover,
.fin__bar a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fin__bar small { font-size: inherit; }
.fin__contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(13px, 1.7vw, 27px);
  min-width: 0;
}
.fin__bar .fin__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: #f5d5c9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .025em;
  white-space: nowrap;
  transition: color .25s ease, transform .25s ease, text-shadow .25s ease;
}
.fin__bar .fin__contact:hover,
.fin__bar .fin__contact:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(244, 83, 53, .7);
  outline: 1px solid #f66b4c;
  outline-offset: 4px;
}
.fin__contact svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: #f0ae9c;
  filter: drop-shadow(0 0 6px rgba(248, 69, 52, .25));
}
.fin__contact:nth-child(2) svg { color: #8dc8eb; }
.fin__contact:nth-child(3) svg { color: #8bd4a9; }
.fin__contact small {
  display: block;
  margin-top: 2px;
  color: #c4a8a0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .02em;
}
@keyframes finGlow {
  from { opacity: .65; transform: translateX(-50%) scale(.95); }
  to { opacity: 1; transform: translateX(-50%) scale(1.08); }
}
@media (max-width: 1180px) {
  .fin__bar { grid-template-columns: 1fr auto; gap: 5px 18px; padding-block: 8px; }
  .fin__contacts { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .fin__bar > span { grid-column: 1; grid-row: 2; }
  .fin__bar > small { grid-column: 2; grid-row: 2; }
}
@media (max-width: 900px) {
  .fin__word { top: 58px; font-size: 6vw; }
  .fin__figure { height: 66svh; }
  .fin__stage { top: 36svh; }
  .fin__price-column { width: 31vw; }
  .fin__price-column h2,
  .fin__price-column h3 { font-size: clamp(27px, 3.7vw, 36px); }
  .fin__price-row { flex-wrap: wrap; padding: 8px 0; }
}
@media (max-width: 700px) {
  .fin { height: auto; }
  .fin__pin { position: relative; min-height: 0; }
  .fin__word {
    top: 82px;
    font-size: clamp(28px, 9vw, 50px);
    letter-spacing: .015em;
  }
  .fin__scene-label { top: 23px; left: 22px; }
  .fin__scene-aside { display: none; }
  .fin__figure {
    top: 145px;
    bottom: auto;
    height: min(45svh, 410px);
    filter: brightness(.79) contrast(1.1) drop-shadow(-5px 0 8px rgba(255, 79, 39, .4));
  }
  .fin__glow { top: 180px; bottom: auto; width: 120vw; height: 55svh; }
  .fin__ring { top: 390px; bottom: auto; width: 118vw; height: 52vw; }
  .fin__stage {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: grid;
    gap: 38px;
    padding: calc(190px + min(45svh, 410px)) 22px 40px;
  }
  .fin__price-column { width: 100%; }
  .fin__price-column h2,
  .fin__price-column h3 { font-size: clamp(37px, 10vw, 56px); }
  .fin__price-row { flex-wrap: nowrap; padding: 12px 0; }
  .fin__price-row span { font-size: 17px; }
  .fin__price-row strong { font-size: 20px; }
  .fin__bar {
    position: relative;
    gap: 13px 18px;
    padding: 14px 22px 18px;
    font-size: 9px;
  }
  .fin__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .fin__bar .fin__contact { min-width: 0; white-space: normal; }
  .fin__contact small { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .fin__glow { animation: none; }
  .fin__cta { transition: none; }
}
