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

:root {
  --primary: #529ac0;
  --secondary: #076ca2;
  --text: #222;
  --white: #fff;
  --container: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: linear-gradient(to bottom, #fff, #bfccf5);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__logo img {
  max-height: 40px;
  width: 40px;
}

.header__logo span {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--primary);
  color: var(--white);
  transition: opacity 0.2s;
}

.btn-install:hover {
  opacity: 0.9;
}

.btn-install img {
  width: 16px;
  height: 16px;
}

.offer {
  position: relative;
  z-index: 10;
  padding-bottom: 0;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: inset -4px -4px 20px 0 #738dea;
  z-index: -1;
}

@media (min-width: 768px) {
  .offer::before {
    width: 40%;
  }
}

.offer__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 120px;
  align-items: center;
}

@media (min-width: 768px) {
  .offer__content {
    display: grid;
    grid-template-columns: 44% 56%;
    gap: 60px;
    align-items: center;
    padding-bottom: 200px;
  }
}

.offer__figure {
  position: relative;
  width: 100%;
  max-width: 700px;
  z-index: 50;
}

.hero-background {
  position: absolute;
  top: 26%;
  left: 4.8%;
  width: 86%;
  height: 55%;
  margin-top: 32px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0.5;
}

.hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 24, 161, 0.2);
}

.hero-card__scroll {
  overflow: hidden;
  border-radius: 12px;
  background: #f0f4f8;
  max-height: 320px;
}

.hero-card__scroll img {
  width: 100%;
  animation: hero-scroll 40s ease-in-out 1.5s infinite;
}

@keyframes hero-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-55%); }
}

.offer__block {
  display: flex;
  flex-direction: column;
  margin-top: 80px;
  text-align: center;
}

@media (min-width: 768px) {
  .offer__block {
    margin-top: 40px;
    text-align: left;
  }
}

.offer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .offer__brand {
    justify-content: flex-start;
  }
}

.offer__brand img {
  width: 32px;
}

.offer__brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

@media (min-width: 768px) {
  .offer__brand-title {
    color: var(--text);
  }

  .offer__brand-title .accent {
    color: var(--primary);
  }
}

.offer__brand-title .accent {
  color: var(--white);
}

.offer__divider {
  width: 2px;
  height: 24px;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .offer__divider {
    background: rgba(82, 154, 192, 0.7);
  }
}

.offer__ext-label {
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .offer__ext-label {
    color: rgba(82, 154, 192, 0.7);
  }
}

.offer__title {
  min-height: 9rem;
  max-width: 36rem;
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--white);
}

@media (min-width: 768px) {
  .offer__title {
    font-size: 3rem;
    color: var(--text);
  }
}

.offer__title .highlighted {
  background: linear-gradient(to right, var(--primary), #a36eff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-transform: uppercase;
}

.offer__title .cursor {
  display: inline-block;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.offer__subtitle {
  margin-top: 40px;
  color: #f3f4f6;
  max-width: 490px;
}

@media (min-width: 768px) {
  .offer__subtitle {
    color: var(--text);
  }
}

.offer__subtitle .accent {
  color: var(--primary);
}

.offer__desc {
  margin-top: 20px;
  padding: 0 12px;
  color: #f3f4f6;
  max-width: 450px;
}

@media (min-width: 768px) {
  .offer__desc {
    padding: 0;
    color: var(--text);
  }
}

.offer__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .offer__actions {
    flex-direction: row;
    align-items: center;
  }
}

.btn-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18rem;
  height: 3.5rem;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--white);
  background: var(--secondary);
  cursor: pointer;
  animation: scale-pulse 2s infinite;
}

@media (min-width: 768px) {
  .btn-cta {
    margin: 0;
    justify-content: flex-start;
    background: var(--primary);
  }
}

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-cta img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

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

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -16px;
  object-fit: cover;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar--badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  background: var(--primary);
}

.rating__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--white);
}

@media (min-width: 768px) {
  .rating__info {
    color: var(--text);
  }
}

.rating__stars {
  display: flex;
  gap: 2px;
  color: #facc15;
}

.rating__stars svg {
  width: 20px;
  height: 20px;
}

.slider {
  padding: 80px 0;
}

.slider__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 40px;
}

@media (min-width: 768px) {
  .slider__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.slider__text {
  flex: 1;
}

.slider__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .slider__title {
    font-size: 3rem;
  }
}

.slider__desc {
  margin-top: 20px;
}

.slider__thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .slider__thumbs {
    margin-top: 80px;
  }
}

.slider__thumb {
  cursor: pointer;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0;
  background: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.slider__thumb.is-active {
  opacity: 1;
}

.slider__thumb img {
  width: 7rem;
  border-radius: 6px;
}

.slider__stage {
  width: 100%;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .slider__stage {
    margin-top: -48px;
    flex: 1;
  }
}

.slider__slide {
  display: none;
}

.slider__slide.is-active {
  display: block;
}

.monitor {
  padding: 40px 16px;
}

.monitor__content {
  background: var(--primary);
  border-radius: 16px;
  padding: 12px;
  color: var(--white);
  box-shadow: inset 0 0 20px rgba(115, 141, 234, 0.25);
}

@media (min-width: 768px) {
  .monitor__content {
    padding: 64px;
  }
}

.monitor__text {
  padding: 20px;
}

.monitor__text p {
  margin-top: 20px;
}

.monitor__images {
  position: relative;
  margin-top: 64px;
}

.monitor__img-bg {
  width: 100%;
  border-radius: 12px;
  filter: blur(4px);
  opacity: 0.85;
}

.monitor__img-scroll {
  position: absolute;
  top: 64px;
  right: 16px;
  width: 50%;
  max-width: 29.3%;
  padding: 8px;
  border-radius: 12px;
  background: #e5e7eb;
  overflow: hidden;
  z-index: 10;
}

@media (max-width: 767px) {
  .monitor__img-scroll {
    right: 8%;
    width: 45%;
  }
}

.monitor__img-scroll-inner {
  overflow: hidden;
  border-radius: 8px;
  background: #f0f4f8;
  max-height: 200px;
}

.monitor__img-scroll-inner img {
  width: 100%;
  animation: monitor-scroll 40s ease-in-out 1.5s infinite;
}

@keyframes monitor-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-60%); }
}

.monitor__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 112px;
  gap: 40px;
}

@media (min-width: 768px) {
  .monitor__footer {
    flex-direction: row;
    align-items: flex-end;
  }
}

.monitor__footer-block {
  max-width: 420px;
}

.monitor__footer-block p {
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 10px 56px;
  background: var(--white);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.btn img {
  width: 24px;
  height: 24px;
}

.watch {
  color: var(--white);
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

.watch__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

@media (min-width: 768px) {
  .watch__content {
    flex-direction: row;
  }
}

.watch__text {
  position: relative;
  margin-top: 120px;
  padding: 60px 60px 60px 16px;
  background: var(--primary);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: inset -4px 0 20px rgba(115, 141, 234, 0.25);
}

.watch__text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1px;
  transform: translateX(-100%);
  width: 33vw;
  height: 180px;
  background: var(--primary);
  z-index: -1;
}

.watch__text p {
  margin-top: 20px;
}

.watch__image {
  max-width: 512px;
  margin: 0 auto;
}

.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  box-shadow: inset 0 0 20px rgba(115, 141, 234, 0.25);
}

.footer__hero {
  padding: 80px 16px 70px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.footer__content {
  max-width: 574px;
  margin: 0 auto;
}

.footer__content p {
  margin-top: 20px;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  cursor: pointer;
  font-weight: 500;
}

.footer__bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

@media (min-width: 768px) {
  .footer__bar {
    flex-direction: row;
  }
}

.footer__links {
  display: none;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer__links {
    display: flex;
  }
}

.footer__links a:hover,
.footer__bar a:hover {
  text-decoration: underline;
}

.footer__heart {
  width: 16px;
  height: 16px;
  color: #ef4444;
  margin: 0 4px;
  vertical-align: middle;
}

.backgrounded {
  position: relative;
  z-index: 1;
  margin: 0 7px;
}

@media (min-width: 768px) {
  .backgrounded {
    color: #594dec;
  }
}

.backgrounded::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  padding: 0 6px;
}

@media (min-width: 768px) {
  .backgrounded::before {
    background: var(--white);
  }
}

h2 {
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
}

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 2rem;
  padding: 12px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform: translateX(10rem);
  transition: transform 0.5s ease-in-out;
  z-index: 1000;
}

.scroll-top.is-visible {
  transform: translateX(0);
}

.scroll-top svg {
  width: 40px;
  height: 40px;
}

.legal {
  padding: 40px 16px 80px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  color: var(--text);
}

.legal__back:hover svg {
  transform: translateX(-4px);
}

.legal__back svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.legal h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.legal__body {
  margin-top: 48px;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.625;
}

.legal__body p {
  padding-bottom: 24px;
}

.legal__section {
  border-left: 4px solid #6b7280;
  padding-left: 16px;
  margin-bottom: 24px;
  font-style: italic;
}

.legal__body a {
  color: var(--primary);
}

.legal__body a:hover {
  text-decoration: underline;
}

.legal-page .header__logo span {
  color: var(--text);
}

.legal-page .offer::before {
  display: none;
}

.legal-page .header {
  padding-bottom: 16px;
}
