@font-face {
  font-family: "Ruslan Display";
  src: url("fonts/RuslanDisplay.ttf");
}
:root {
  --bg-main: #fff;
  --text-dark: #111315;
  --text-gray: #7e8ca0;
  --primary: #15ffab;
  --radius-card: 14px;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  background: var(--bg-main);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.container {
  box-sizing: border-box;
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  max-width: 1240px;
}
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
    padding: 0 24px;
  }
}
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 420px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }
}

.hero {
  position: relative;
  background: #000;
  height: 300px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("images/banner.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin: 0 auto;
  opacity: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 28px 16px;
}
.hero__meta {
  font-size: clamp(10px, 1.6vw, 20px);
  line-height: 1;
  word-break: break-word;
  margin-bottom: 30px;
}
.hero__title {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 800;
  word-break: break-word;
}
.hero__sub {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

/* decor sun */
.decor-sun {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -450px);
    width: 100vw;
    height: 1024px;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(0, 255, 204, 0.15) 0deg 4deg, transparent 3deg 10deg), radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.4) 1%, rgba(0, 255, 204, 0.2) 2%, rgba(255, 255, 255, 0) 20%);
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle at 50% 0%, black 0%, black 50vh, transparent 100vh);
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, black 50vh, transparent 100vh);
}

/* partners / offers */
.partners__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.4;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.partners__label {
  display: inline-block;
  color: var(--Dark-purple, #6600ff);
  font-family: "Ruslan Display";
  font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 32px;
  text-align: center;
  text-transform: uppercase;
}
.partners__label--highlight {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  min-width: 214px;
  height: 32px;
  font-family: "Ruslan Display", cursive;
  font-weight: 400;
  font-size: clamp(32px, 2vw, 42px);
  line-height: 32px;
  text-transform: uppercase;
  color: var(--Dark-purple, #6600ff);
  background: radial-gradient(
      71.74% 59.2% at 50% 50%,
      #ecf4ff 0%,
      #15ffab 29%,
      #ffc8a4 50.5%,
      #15ffab 79.5%,
      #5e9eff 100%
    ),
    conic-gradient(
      from 180deg at 50% 50%,
      #1c0042 -20.23deg,
      #5e9eff 19.94deg,
      #1c0042 121.09deg
    );
  border: 4px solid #fff;
  box-shadow: 0 0 8px #fff inset, 0 4px 20px rgba(28, 0, 66, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offers {
  position: relative;
  z-index: 1;
  background: transparent;
}
.offers .container,
.offers .partners__title,
.offers__grid,
.card-offer {
  position: relative;
  z-index: 1;
}

.offers__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
}

.card-offer {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  isolation: isolate;
  width: 400px;
  max-width: 400px;
  height: 285px;
  background: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: visible;
  animation-duration: var(--jump-duration, 0.6s); 
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.22, 0.9, 0.32, 1);
  animation-fill-mode: both;
  animation-name: none; 
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card-offer:hover {
  animation-play-state: paused;
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
}

.card-offer__floater {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  width: 100%;
}
.card-offer__logo {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.card-offer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.card-offer__center {
  position: static;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  z-index: 2;
  pointer-events: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-grow: 1;
}
.card-offer__limit {
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  font-size: 48px;
  line-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}
.card-offer__period {
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000;
}

.card-offer__actions {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}
.card-offer__btn {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 4;
}
.card-offer__btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0.85;
  animation: shine var(--btn-shine-duration, 2.8s) ease-in-out infinite;
  animation-delay: var(--btn-shine-delay, 0s);
}
.card-offer__btn:hover::after {
  animation-duration: 1.6s;
  opacity: 1;
}
.card-offer__info-btn {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 12px;
  background: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.card-offer__info-btn img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  filter: brightness(0);
}

.site-footer {
  margin: 50px auto;
  font-size: 14px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  flex-direction: column;
  gap: 24px;
}

/* modal */
.modal-overlay {
  position: fixed;
  max-width: 100vw;
  inset: 0;
  background: rgba(8, 8, 8, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.modal-window {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.4);
  max-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.modal-body {
  flex: 1 1 auto;
  min-height: 120px;
  overflow: auto;
  background: #fff;
}
.modal-iframe {
  width: 100%;
  height: 70vh;
  border: none;
  display: block;
}
.modal-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.12);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* skeleton */
.skeleton-box {
  background-color: #e0e0e0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  width: 400px;
  max-width: 400px;
  height: 285px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}
@media (max-width: 1280px) {
  .skeleton-card {
    width: 383px;
    max-width: 383px;
  }
}
@media (max-width: 834px) {
  .skeleton-card {
    width: 343px;
    max-width: 343px;
  }
}
@media (max-width: 420px) {
  .skeleton-card {
    width: 92%;
    max-width: 340px;
  }
}

/* responsive */
@media (max-width: 1280px) {
  .card-offer {
    width: 383px;
  }
  .offers__grid {
    grid-template-columns: repeat(2, 383px);
    gap: 20px;
  }
  .decor-sun{
   transform: translate(-50%, -450px);
  }
}
@media (max-width: 834px) {
  .offers__grid {
    grid-template-columns: repeat(1, 343px);
    gap: 16px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site-footer__inner {
    gap: 24px;
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 375px) {
  .hero{
    height: 206px;
  }
  .decor-sun{
    transform: translate(-50%, -450px);
  }
}
@media (max-width: 420px) {
  .card-offer {
    width: 92%;
    max-width: 340px;
    height: 285px;
    padding-bottom: 16px;
  }
  .card-offer__btn {
    width: calc(100% - 60px);
  }
  .modal-window {
    width: calc(100% - 16px);
    max-width: none;
    height: calc(100vh - 24px);
    border-radius: 8px;
    margin: 8px;
  }
  .modal-iframe {
    height: calc(100vh - 120px);
  }
  .modal-close {
    top: 8px;
    right: 8px;
  }
}
@media (min-width: 901px) {
  .modal-window {
    max-width: 50vw;
  }
}
@media (min-width: 720px) and (max-width: 900px) {
  .modal-window {
    max-width: 70vw;
  }
}
@media (min-width: 926px) {
  .hero__bg {
    background-size: contain;
  }
}

/* small helper animations */
@keyframes jump {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes shine {
  100% {
    left: 100%;
  }
}
