/* ═══ TELEGRAM BANNER ════════════════════════════════════ */
.telegram-banner {
  position: relative;
  min-height: 368px;
  margin-top: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg,rgba(113,110,255,.12),rgba(113,110,255,0)), url("../banner.png") center/cover no-repeat, #716eff;
  border-radius: 17px;
  animation: view-enter var(--motion-slow) var(--motion-ease) both;
}
.telegram-banner__content { position: relative; z-index: 1; width: min(633px,52%); padding: 44px; }
.telegram-banner__brand { display: inline-flex; align-items: center; gap: 44px; color: #fff; }
.telegram-banner__brand img { display: block; width: 68px; height: 68px; filter: brightness(0) invert(1); }
.telegram-banner__brand span { font-family: var(--font-pixel); font-size: 44px; font-weight: 700; line-height: 1; white-space: nowrap; }
.telegram-banner h2 { position: relative; width: 633px; height: 90px; max-width: 100%; margin: 22px 0 0; color: #fff; font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 124%; white-space: nowrap; }
.telegram-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 231px; height: 70px;
  margin-top: 44px;
  color: #fff;
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 500;
  background: #000;
  border-radius: 17px;
  transition: transform 180ms ease, background-color 180ms ease;
}
.telegram-banner__button:hover { background: #151515; transform: translateY(-2px); }

/* ═══ SITE FOOTER ════════════════════════════════════════ */
.site-footer {
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(390px,470px) 136px 84px 590px;
  align-items: start;
  justify-content: space-between;
  min-height: 305px;
  margin-top: 26px;
  padding-top: 26px;
  padding-bottom: 26px;
  overflow: visible;
  border-top: 1px solid rgba(0,0,0,.1);
}

/* ─── Footer Brand ───────────────────────────────────── */
.footer-brand-block { grid-row: 1; min-width: 0; }
.footer-brand { display: inline-flex; align-items: flex-start; gap: 24px; width: max-content; max-width: 100%; min-width: 0; }
.footer-brand__logo { flex: 0 0 auto; width: 42px; height: 42px; filter: brightness(0); }
.footer-brand__text { min-width: 0; }
.footer-brand__name { display: block; color: #000; font-family: var(--font-pixel); font-size: 26px; font-weight: 700; line-height: 1; white-space: nowrap; }
.footer-brand__text p { margin: 4px 0 0; color: #000; font-family: var(--font-system); font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap; }

/* ─── Footer Socials ─────────────────────────────────── */
.footer-socials { display: flex; align-items: center; gap: 22px; width: max-content; max-width: 100%; margin-top: 48px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; transition: opacity 180ms ease, transform 180ms ease; }
.footer-socials a:hover { opacity: .72; transform: translateY(-2px); }
.footer-socials img { display: block; width: 28px; height: 28px; }
.footer-socials__line { display: none; }

/* ─── Footer Nav ─────────────────────────────────────── */
.footer-nav { display: flex; flex-direction: column; gap: 24px; grid-row: 1; min-width: 0; color: #838391; font-family: var(--font-system); font-size: 17px; font-weight: 500; line-height: 1; }
.footer-nav h3 { margin: 0; color: #000; font: inherit; }
.footer-nav a { color: #838391; white-space: nowrap; transition: color 180ms ease; }
.footer-nav a:hover { color: #000; }

/* ─── Footer Review Card ─────────────────────────────── */
.footer-review-card {
  position: relative;
  grid-row: 1 / 3;
  grid-column: 4;
  width: 590px; height: 305px;
  overflow: hidden;
  background: linear-gradient(90deg,rgba(113,110,255,.05),rgba(113,110,255,0)), url("../reviews.png") center/cover no-repeat, #716eff;
  border-radius: 20px;
}
/* Figma: 217×70, border-radius 17, font-size 17px Medium */
.footer-review-card__button {
  position: absolute;
  bottom: 25px; left: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 217px; height: 70px;
  color: #fff;
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  background: #000;
  border: 0;
  border-radius: 17px;
  transition: transform 180ms ease, background-color 180ms ease;
}
.footer-review-card__button:hover { background: #151515; }

/* ─── Footer Legal ───────────────────────────────────── */
/* Figma: SF Pro Display Medium 17px, color #838391 */
.footer-legal {
  display: flex;
  grid-row: 2;
  grid-column: 1 / 4;
  align-items: center;
  gap: 28px;
  align-self: end;
  min-width: 0;
  color: #838391;
  font-family: var(--font-system);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.footer-legal a { color: #838391; transition: color 180ms ease; }
.footer-legal a:hover { color: #000; }
.footer-legal__dot { flex: 0 0 auto; width: 6px; height: 6px; background: #d3d2d5; border-radius: 50%; }

/* ═══ WAVE FILL HOVER (dark pill buttons) — REWRITTEN ════ */
/* The fill is the button's OWN background: a radial-gradient of white painted
   ON TOP of the button's normal background colour. There is NO separate layer
   and NO clip mask — one element, one border-radius, one painted edge — so a
   1px seam/ring at the rounded corners is physically impossible.
     --btn-a    = white alpha  (0 → 1 instantly on enter, 1 → 0 fade on leave)
     --btn-fill = white radius (0 → 130% wave-grow on enter, held full)
   --btn-x / --btn-y are set by script.js to the cursor point on the button. */
@property --btn-a {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --btn-fill {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 130%;
}
.contact-button,
.reviews-show-all,
.show-all-button,
.telegram-banner__button,
.footer-review-card__button {
  background-image: radial-gradient(
    circle farthest-corner at var(--btn-x, 50%) var(--btn-y, 50%),
    rgb(var(--btn-wave-rgb, 255 255 255) / var(--btn-a)) 0 var(--btn-fill),
    rgb(var(--btn-wave-rgb, 255 255 255) / 0) var(--btn-fill)
  );
  /* LEAVE: the white alpha fades out; the fill radius stays full underneath */
  transition: --btn-a 420ms ease, color 320ms ease,
              background-color 180ms ease, transform 180ms ease;
}
.contact-button:hover,
.reviews-show-all:hover,
.show-all-button:hover,
.telegram-banner__button:hover,
.footer-review-card__button:hover {
  color: #000;
  --btn-a: 1;                       /* ENTER: white snaps solid (omitted from the transition below) */
  /* re-declare the gradient so sibling :hover { background:… } rules in other
     files can't reset background-image to none */
  background-image: radial-gradient(
    circle farthest-corner at var(--btn-x, 50%) var(--btn-y, 50%),
    rgb(var(--btn-wave-rgb, 255 255 255) / var(--btn-a)) 0 var(--btn-fill),
    rgb(var(--btn-wave-rgb, 255 255 255) / 0) var(--btn-fill)
  );
  transition: color 320ms ease, background-color 180ms ease, transform 180ms ease;
  animation: btn-wave-in 600ms cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes btn-wave-in {
  from { --btn-fill: 0%; }          /* white circle grows from the cursor point... */
  to   { --btn-fill: 130%; }        /* ...past the farthest corner = whole button filled */
}
