:root {
  --blue: #1a73e8;
  --violet: #b833ff;
  --bg-deep: #0f172a;
  --bg-blue: #1e3a8a;
  --muted: #f8fafc;
  --text: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

section {
  padding: 100px 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  margin-bottom: 24px;
}

h2 {
  font-size: 36px;
  margin-bottom: 40px;
  position: relative;
}

h2.section-title {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  margin-top: 16px;
}

h2.section-title.white {
  color: #fff;
}

h2.section-title.white:after {
  background: linear-gradient(90deg, #20c2ff, var(--violet));
}

p {
  font-size: 18px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--violet) 100%);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: .3s;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.hero {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-blue));
  color: #fff;
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(26, 115, 232, .2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 30px;
  font-weight: 500;
  opacity: .95;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}

.figure.full-width {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.justified-text p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

.figure {
  border-radius: 12px;
  background: var(--muted);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.figure img {
  width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.features {
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature {
  background: var(--muted);
  padding: 28px;
  border-radius: 12px;
  transition: .25s;
  border-left: 4px solid var(--blue);
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, .08);
}

.feature h3 {
  color: var(--blue);
  margin: 10px 0 10px;
  font-size: 22px;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
}

.highlight {
  background: #eef6ff;
  border: 1px dashed var(--blue);
  padding: 18px 22px;
  border-radius: 10px;
  font-weight: 600;
  color: #0a2c6d;
}

.ui-shot {
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.ui-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}



/* ========= TRUST (LIGHT THEME) ========= */
.trust {
  background: #fff;
  color: var(--text);
  padding: 90px 0;
  position: relative;
}

.trust::before,
.trust::after {
  content: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* базовая карточка */
.trust-card {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 2px solid #e6eeff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transition: transform 1s ease, box-shadow 1s ease, background .25s ease, border-color .2s ease;
  --progress: 0deg;
}

/* регистрируем переменную для плавной интерполяции угла */
@property --progress {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* при входе секции: прячем серую рамку и рисуем «заливку» по бордеру */
.trust.inview .trust-grid > .trust-card {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) padding-box,
    conic-gradient(
      from -90deg,
      var(--blue) 0deg,
      var(--violet) var(--progress),
      transparent calc(var(--progress) + 0.1deg) 360deg
    ) border-box;
  background-clip: padding-box, border-box;
}

/* после заполнения фиксируем сплошную аккуратную рамку (градиент по кругу) */
.trust-card.is-filled {
  border-color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) padding-box,
    conic-gradient(from -90deg, var(--blue), var(--violet), var(--blue)) border-box;
  background-clip: padding-box, border-box;
}

/* анимация и задержки */
@keyframes ringFill {
  from {
    --progress: 0deg
  }

  to {
    --progress: 360deg
  }
}

html:not(.no-houdini) .trust.inview .trust-grid > .trust-card {
  animation: ringFill 1s linear forwards;
}

html:not(.no-houdini) .trust.inview .trust-grid > .trust-card:nth-child(2) {
  animation-delay: .25s;
}

html:not(.no-houdini) .trust.inview .trust-grid > .trust-card:nth-child(3) {
  animation-delay: .5s;
}

/* hover */
.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

/* «вспышка» hover при старте заливки */
.trust-card.flash {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.trust-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 8px 22px rgba(26, 115, 232, .25);
  color: #fff;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-card h3 {
  margin: 2px 0 6px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
}

.trust-card p {
  margin: 0;
  color: #556070;
  font-size: 16px;
}

.cta {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-blue));
  color: #fff;
  text-align: center;
  padding: 90px 0;
}

.cta p {
  max-width: 740px;
  margin: 0 auto 26px;
}

.contact {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
}

.contact-card {
  background: var(--muted);
  padding: 24px;
  border-radius: 12px;
}

.contact-card h4 {
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

form {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 10px 0 18px;
}

.form-note {
  font-size: 13px;
  opacity: .8;
  margin-top: 10px;
}

.form-note--large {
  font-size: 16px;
  line-height: 1.7;
}

/* Удаляем градиентную линию только для заголовка в секции docs */
.cta h2.section-title.white:after {
  display: none;
}

/* Уменьшаем расстояние между секциями "Что такое" и "Преимущества" */
#about {
  padding-bottom: 25px; /* Уменьшили с 100px до 50px */
}

#features {
  padding-top: 25px; /* Уменьшили с 100px до 50px */
}

@media (max-width: 992px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .hero {
    padding: 140px 0 70px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .row {
    grid-template-columns: 1fr;
  }
}