:root {
  --font-main: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --color-bg: #f3f4f6;
  --color-bg-soft: #fcfcfd;
  --color-text: #1f2125;
  --color-muted: #7f838a;
  --color-dark-1: #2f3238;
  --color-dark-2: #1f2127;
  --color-blue: #0ea5df;
  --color-blue-dark: #028ac2;
  --color-white: #ffffff;
  --color-danger: #ef3944;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 42px rgba(17, 24, 39, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--color-text);
  background:
    radial-gradient(1200px 600px at -5% 0%, #eceff4 0%, transparent 60%),
    radial-gradient(800px 500px at 110% 30%, #edf1f6 0%, transparent 65%),
    var(--color-bg);
}

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

.container {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 18px 28px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: #1f2125;
  color: var(--color-white);
  box-shadow: 0 12px 24px rgba(25, 26, 30, 0.24);
}

.button--link {
  padding-inline: 10px;
  border-radius: 0;
  background: transparent;
  color: #3e444f;
  text-decoration: underline;
  font-weight: 600;
}

.button--link:hover {
  box-shadow: none;
  transform: translateY(-1px);
  color: #15181d;
}

.button--danger {
  width: 100%;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 31px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  padding-block: 18px;
}

.hero {
  padding-top: 28px;
}

.hero__header {
  margin-bottom: 34px;
}

.brand img {
  max-width: 234px;
}

.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px 38px;
  align-items: center;
}

.hero__left {
  grid-column: 1;
}

.hero__title {
  margin: 0 0 32px;
  font-weight: 590;
  line-height: 1;
  font-size: 90px;
}

.hero__description {
  max-width: 450px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-muted);
}

.hero__right {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 80px;
}

.hero__actions {
  grid-column: 1;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.screen {
  position: relative;
  animation: float-screen 5s ease-in-out infinite;
}

.screen picture {
  display: block;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.6);
}

.advantages__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 36px;
  margin-bottom: 26px;
}

.advantages__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 500px;
}

.advantages__text {
  margin: auto 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--color-muted);
  max-width: 600px;
}

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

.feature-card {
  position: relative;
  min-height: 275px;
  border-radius: var(--radius-md);
  padding: 22px 18px 0px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-card--dark {
  background: linear-gradient(164deg, var(--color-dark-1), var(--color-dark-2));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.feature-card__blur {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
}

.feature-card__blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card--testimonial {
  background: linear-gradient(
    180deg,
    var(--color-blue),
    var(--color-blue-dark)
  );
  color: var(--color-white);
  box-shadow: 0 16px 40px rgba(2, 138, 194, 0.32);
  transition: transform 0.25s ease;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.feature-card--testimonial.is-dragging {
  cursor: grabbing;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 1.7vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.feature-card__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 6px;
}

.feature-card__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

.feature-card__description--light {
  color: rgba(255, 255, 255, 0.92);
}

.feature-card__icon {
  animation: icon-breathe 3.6s ease-in-out infinite;
  margin: auto auto 0 auto;
}

.feature-card__quote {
  margin: -14px 0 0px;
  font-size: 160px;
  line-height: 0.68;
  font-weight: 700;
  opacity: 0.74;
  align-self: flex-end;
}

.feature-card__testimonial-body {
  transition:
    opacity 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: translate3d(var(--drag-offset, 0px), 0, 0);
  will-change: transform, opacity;
}

.feature-card--testimonial.is-switching-next .feature-card__testimonial-body {
  opacity: 0;
  transform: translate3d(-22px, 0, 0) scale(0.985);
}

.feature-card--testimonial.is-switching-prev .feature-card__testimonial-body {
  opacity: 0;
  transform: translate3d(22px, 0, 0) scale(0.985);
}

.feature-card--testimonial.is-dragging .feature-card__testimonial-body {
  transition: none;
}

.feature-card__client {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.feature-card__subject {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.feature-card__dots {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto auto 0;
  padding-bottom: 18px;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.feature-card--testimonial.is-switching-next .feature-card__dots {
  transform: translateX(-8px);
  opacity: 0.7;
}

.feature-card--testimonial.is-switching-prev .feature-card__dots {
  transform: translateX(8px);
  opacity: 0.7;
}

.feature-card__dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.feature-card__dot:hover {
  transform: scale(1.15);
}

.feature-card__dot--active {
  background: #ffffff;
}

.partners__container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px 30px;
  align-items: start;
  place-items: center;
}

.partners__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.1vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  max-width: 500px;
}

.partners__title span {
  font-weight: 500;
  color: #252525;
}

.brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.brands-top {
  display: flex;
  align-items: center;
  gap: 10px 12px;
}

.brands__item {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #38404a;
}

.brands__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 60px;
}

.lead-form {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(170deg, #2f333b, #1d1f23);
  box-shadow: var(--shadow-soft);
}

.lead-form__title {
  margin: 0 0 32px;
  color: var(--color-white);
  font-size: 26px;
  line-height: 1.25;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  max-width: 500px;
  text-align: center;
}

.lead-form__field {
  display: block;
  margin-bottom: 24px;
}

.lead-form__input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: #f2f4f7;
  color: #1f2430;
  padding: 18px 24px;
  font-size: 18px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lead-form__input:focus {
  border-color: #53bdf1;
  box-shadow: 0 0 0 3px rgba(9, 165, 223, 0.2);
}

.lead-form__select {
  position: relative;
}

.lead-form__select-trigger {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: #f2f4f7;
  color: #1f2430;
  padding: 18px 24px;
  font-size: 18px;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lead-form__select-trigger:focus,
.lead-form__select.is-open .lead-form__select-trigger {
  border-color: #53bdf1;
  box-shadow: 0 0 0 3px rgba(9, 165, 223, 0.2);
}

.lead-form__select-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-form__select-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #48566f;
  border-bottom: 2px solid #48566f;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lead-form__select.is-open .lead-form__select-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.lead-form__select-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  background: #f2f4f7;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.lead-form__select.is-open .lead-form__select-menu {
  display: grid;
  gap: 6px;
}

.lead-form__select-option {
  width: 100%;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #1f2430;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.lead-form__select-option:hover,
.lead-form__select-option:focus {
  background: #dfe6ee;
  outline: none;
}

.lead-form__select-option.is-selected {
  background: #1f2430;
  color: #ffffff;
}

.lead-form__submit {
  margin-top: 8px;
}

.lead-form__submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.lead-form__input.lead-form__input--invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 57, 68, 0.2);
}

.lead-form__select.is-invalid .lead-form__select-trigger {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239, 57, 68, 0.2);
}

.lead-form__status {
  min-height: 24px;
  margin: 14px 8px 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.lead-form__status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lead-form__status.is-error {
  color: #ffb3b8;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.success-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 17, 0.56);
  backdrop-filter: blur(3px);
}

.success-modal__panel {
  position: relative;
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 30px 28px 24px;
  background: linear-gradient(168deg, #ffffff, #f4f8fd);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.28);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s ease;
}

.success-modal.is-open .success-modal__panel {
  transform: translateY(0) scale(1);
}

.success-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e9eef6;
  color: #3d4b61;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.success-modal__close:hover {
  background: #dbe4f0;
}

.success-modal__badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: radial-gradient(circle at 35% 30%, #47de87 0%, #16b364 70%);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(22, 179, 100, 0.34);
}

.success-modal__badge::before {
  content: "";
  width: 20px;
  height: 10px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.success-modal__title {
  margin: 0;
  color: #0f1728;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
}

.success-modal__text {
  margin: 12px 0 24px;
  color: #4c5565;
  font-size: 16px;
  line-height: 1.5;
}

.success-modal__action {
  width: 100%;
  font-size: 22px;
  padding-block: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal--delay-1 {
  transition-delay: 0.12s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.28s;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-screen {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sweep {
  from {
    transform: translateX(-70%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes icon-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@media (max-width: 1180px) {
  .screen__panel {
    min-height: 282px;
  }
}

@media (min-width: 1025px) {
  .feature-card--testimonial {
    min-height: 292px;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(1180px, calc(100% - 36px));
  }

  .brand img {
    max-width: 180px;
  }

  .hero__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__title {
    font-size: 64px;
    line-height: 1.15;
  }

  .hero__right {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__actions {
    margin-top: 0;
  }

  .advantages__header {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .advantages__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners__container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding-block: 18px;
  }

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

  .brand {
    display: none;
  }

  .hero__title {
    font-size: 30px;
    line-height: 1.15;
    text-align: center;
  }

  .hero__description {
    font-size: 15px;
    text-align: center;
  }

  .hero__actions {
    gap: 10px;
    flex-direction: column;
  }

  .hero__right {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 18px;
  }

  .button {
    width: fit-content;
    font-size: 13px;
    padding: 18px 20px;
  }

  .button--link {
    padding-inline: 6px;
  }

  .screen {
    padding-bottom: 0;
    width: 100%;
  }

  .screen img {
    transform: none;
  }

  .screen__panel {
    min-height: 188px;
  }

  .screen__logo-text {
    font-size: 40px;
  }

  .screen__logo-mark {
    width: 36px;
    height: 36px;
    background-size: 13px 13px;
  }

  .screen__neck {
    width: 90px;
    left: calc(50% - 45px);
    top: calc(100% - 98px);
  }

  .screen__leg {
    height: 76px;
    top: calc(100% - 84px);
  }

  .screen__leg--left {
    left: calc(50% - 44px);
  }

  .screen__leg--right {
    left: calc(50% + 28px);
  }

  .screen__base {
    width: 168px;
    height: 16px;
    left: calc(50% - 84px);
  }

  .screen__shadow {
    width: 230px;
    bottom: -18px;
  }

  .advantages__title,
  .partners__title {
    font-size: clamp(28px, 9vw, 38px);
    text-align: center;
  }

  .advantages__text {
    text-align: center;
  }

  .advantages__cards {
    grid-template-columns: 1fr;
  }

  .brands__item {
    padding: 4px;
  }

  .brands-top {
    display: flex;
  }

  .brands {
    gap: 4px 4px;
  }

  .feature-card {
    min-height: 480px;
    margin: 0 12px;
  }

  .feature-card__icon {
    margin: auto auto 0 auto;
    width: 200px;
    height: 200px;
  }

  .feature-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lead-form {
    padding: 20px 16px;
  }

  .lead-form__title {
    font-size: 20px;
  }

  .button--danger {
    font-size: 26px;
    padding-block: 15px;
    width: 100%;
  }

  .success-modal {
    padding: 16px;
  }

  .success-modal__panel {
    border-radius: 22px;
    padding: 24px 18px 18px;
  }

  .success-modal__title {
    font-size: 28px;
  }

  .success-modal__text {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .success-modal__action {
    font-size: 20px;
    padding-block: 14px;
  }
}

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