:root {
  --grad-top: #1488cc;
  --grad-bottom: #2b32b2;
  --btn-bg: #041e3e;
  --btn-bg-hover: #0a2e5c;
  --white: #ffffff;
  --field-bg: #ffffff;
  --field-text: #000000;
  --maxw: 568px;
  font-synthesis: none;
}

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

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  background: var(--grad-bottom);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bottom) 100%) no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.page {
  padding: 32px 16px calc(40px + env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

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

.profile { text-align: center; }

.profile__avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
}
.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile__name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.profile__bio {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--white);
}

.links {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .25s ease;
}
.link-btn:hover { background: var(--btn-bg-hover); }
.link-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.link-btn__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.link-btn__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-btn__label {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 48px;
  pointer-events: none;
}

.divider {
  height: 2px;
  background: var(--white);
  border: 0;
  margin: 28px 0 0;
}

.section-title {
  text-align: center;
  color: var(--white);
}
.section-title--form {
  margin: 24px 0 16px;
  font-size: 16px;
  font-weight: 900;
}
.section-title--results {
  margin: 28px 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.lead-form { display: flex; flex-direction: column; gap: 12px; }

.field { display: flex; flex-direction: column; }
.field__label {
  margin: 0 0 6px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}
.req { color: var(--white); }

.field__input {
  width: 100%;
  height: 42px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--field-text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input::placeholder { color: #9aa6b6; }
.field__input:focus {
  outline: none;
  border-color: var(--grad-top);
  box-shadow: 0 0 0 3px rgba(20, 136, 204, .25);
}
.field--invalid .field__input {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .2);
}
.field__error {
  margin: 5px 2px 0;
  font-size: 12px;
  color: #ffd2d2;
}

.submit-btn {
  margin-top: 4px;
  height: 45px;
  border: none;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .25s ease;
}
.submit-btn:hover { background: var(--btn-bg-hover); }
.submit-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.submit-btn[disabled] { opacity: .8; cursor: progress; }

.submit-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.submit-btn.is-loading .submit-btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.form-status--ok { background: rgba(46, 204, 113, .18); border: 1px solid rgba(46, 204, 113, .55); }
.form-status--err { background: rgba(255, 107, 107, .15); border: 1px solid rgba(255, 107, 107, .55); }

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-bottom) 100%);
  color: var(--white);
  animation: overlay-in .25s ease;
}
.success-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.success-overlay__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.success-overlay__close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.success-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.success-overlay__text {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.results-swiper {
  border-radius: 8px;
}
.results-swiper .swiper-slide {
  height: auto;
}
.results-swiper .swiper-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.results-swiper {
  padding-bottom: 0;
}
.results-swiper .swiper-pagination {
  position: static;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  transform: none !important;
}
.results-swiper .swiper-pagination-bullet {
  margin: 0 !important;
}
.results-swiper .swiper-pagination-bullet {
  background: var(--white);
  opacity: .45;
  transition: opacity .2s ease, transform .2s ease;
}
.results-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}
