@font-face {
  font-family: "SVR Manrope";
  src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.svr-section {
  --svr-ink: #231f20;
  --svr-muted: #6c6870;
  --svr-canvas: #fffefc;
  --svr-coral: #f0733f;
  --svr-coral-dark: #d85d2d;
  --svr-dark: #241f31;
  --svr-dark-2: #322c43;
  --svr-support: #8a88c9;
  --svr-container: 1240px;
  overflow: clip;
  padding: 100px 0 112px;
  color: var(--svr-ink);
  background: var(--svr-canvas);
  font-family: "SVR Manrope", Manrope, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.svr-section button {
  font: inherit;
}

.svr-container {
  width: min(calc(100% - 40px), var(--svr-container));
  margin-inline: auto;
}

.svr-header {
  margin-bottom: 44px;
}

.svr-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.svr-shell {
  padding: 12px;
  border-radius: 32px;
  background: var(--svr-dark);
}

.svr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.svr-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  color: #fff;
  background: var(--svr-dark-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}

.svr-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  background: #dedad4;
  cursor: pointer;
}

.svr-card__media::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(22, 22, 25, .56));
  content: "";
}

.svr-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.svr-card__toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.svr-card__toggle:focus-visible {
  outline: 3px solid var(--svr-coral);
  outline-offset: -4px;
}

.svr-card__sound {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 10px;
  color: #fff;
  background: rgba(30, 30, 34, .66);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.svr-card__sound::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--svr-support);
  content: "";
}

.svr-card__sound[aria-pressed="true"]::before {
  background: var(--svr-coral);
}

.svr-card__sound:focus-visible,
.svr-carousel__button:focus-visible {
  outline: 3px solid var(--svr-coral);
  outline-offset: 3px;
}

.svr-card__text {
  min-height: 112px;
  padding: 19px 20px 20px;
}

.svr-card__title {
  display: block;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.03em;
}

.svr-card__description {
  margin: 7px 0 0;
  color: #c5c2c7;
  font-size: 14px;
  line-height: 1.42;
}

.svr-carousel {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .svr-card__media:hover .svr-card__video {
    transform: scale(1.02);
  }
}

@media (max-width: 900px) {
  .svr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svr-grid .svr-card:last-child {
    grid-column: 1 / 3;
    width: calc(50% - 7px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .svr-section {
    padding: 66px 0 74px;
  }

  .svr-container {
    width: min(calc(100% - 24px), var(--svr-container));
  }

  .svr-title {
    font-size: 43px;
  }

  .svr-carousel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: -8px 2px 14px;
  }

  .svr-carousel__button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ded9d2;
    border-radius: 50%;
    color: var(--svr-ink);
    background: var(--svr-canvas);
    box-shadow: 0 8px 20px rgba(36, 31, 49, .08);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
  }

  .svr-carousel__counter {
    min-width: 42px;
    color: #77717b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
  }

  .svr-shell {
    overflow: hidden;
    padding: 7px;
    border-radius: 24px;
    touch-action: pan-y;
  }

  .svr-grid {
    display: block;
  }

  .svr-grid .svr-card {
    display: none;
    width: 100%;
  }

  .svr-grid .svr-card[aria-current="true"] {
    display: block;
    animation: svr-card-enter .26s ease both;
  }

  .svr-grid .svr-card:last-child {
    width: 100%;
  }

  .svr-card__media {
    aspect-ratio: 9 / 12.5;
  }

  .svr-card__text {
    min-height: 112px;
  }
}

@keyframes svr-card-enter {
  from { opacity: .45; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .svr-section *,
  .svr-section *::before,
  .svr-section *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .svr-card__media:hover .svr-card__video {
    transform: none;
  }
}
