:root{
  --ct-primary: #5751E1;
  --ct-shadow: rgba(3, 0, 113, 0.85);
  --ct-text: #141431;
  --ct-muted: rgba(11, 11, 20, 0.62);
  --ct-border: rgba(87, 81, 225, 0.28);
  --ct-border-strong: rgba(87, 81, 225, 0.55);
  --ct-bg: #ffffff;
  --ct-field-bg: #ffffff;
  --ct-radius: 14px;
}

.ct-page{
  background: var(--ct-bg);
}

/* hero wrapper */
.ct-hero__container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 20px 80px;
}

.ct-title{
  margin: 0 0 13px;
  font-family: var(--font);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ct-text);
  text-align: center;
}

/* form card-ish */
.ct-form{
  max-width: 820px;
  margin: 0 auto;
  margin-top: 13px;
  padding: 26px;
  border: 1.6px solid var(--ct-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11,11,20,0.06);
}

.ct-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.ct-field--full{
  grid-column: 1 / -1;
}

.ct-label{
  display: block;
  margin-bottom: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(20,20,49,0.78);
  letter-spacing: 0.02em;
}

/* inputs */
.ct-input,
.ct-select{
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--ct-radius);
  border: 1.6px solid var(--ct-border);
  background: var(--ct-field-bg);
  color: var(--ct-text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color .14s ease, box-shadow .14s ease, transform .08s ease;
}

.ct-select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(20,20,49,0.55) 50%),
    linear-gradient(135deg, rgba(20,20,49,0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.ct-input::placeholder{
  color: rgba(20,20,49,0.45);
  font-weight: 500;
}

.ct-input:focus,
.ct-select:focus{
  border-color: var(--ct-border-strong);
  box-shadow: 0 0 0 4px rgba(87,81,225,0.12);
}

/* social row */
.ct-social-row{
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 12px;
}

.ct-select--compact{
  height: 46px;
}

/* actions */
.ct-actions{
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ct-submit{
  min-width: 180px;
}

.ct-hint{
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(20,20,49,0.55);
}

.ct-status{
  margin-top: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(20,20,49,0.78);
  min-height: 18px;
}

/* socials */
.ct-socials{
  max-width: 820px;
  margin: 11px auto 0;
  text-align: center;
}

.ct-socials__title{
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(20,20,49,0.55);
  margin-bottom: 10px;
}

.ct-socials__icons{
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ct-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.6px solid var(--ct-border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  opacity: .7;
}

.ct-icon:hover{
  transform: translateY(-1px);
  border-color: rgba(87,81,225,0.45);
  box-shadow: 0 14px 30px rgba(11,11,20,0.10);
  opacity: 1;
}

.ct-icon img{
  width: 100%;
  height: 100%;
  display: block;
}

/* mobile */
@media (max-width: 720px){
  .ct-hero__container{ padding: 24px 14px 64px; }

  /* форма ниже по высоте */
  .ct-form{ padding: 14px; }

  .ct-grid{
    grid-template-columns: 1fr;
    gap: 12px; /* было 16px 18px на desktop */
  }

  .ct-label{ margin-bottom: 6px; }

  /* поля ниже */
  .ct-input,
  .ct-select{
    height: 42px;      /* было 46px */
    padding: 0 12px;   /* было 14px */
    font-size: 13px;   /* было 14px */
  }

  .ct-social-row{ grid-template-columns: 1fr; }

  .ct-actions{
    margin-top: 14px; /* было 18px */
    flex-direction: column;
    align-items: stretch;
    gap: 12px;        /* было 16px */
  }

  .ct-submit{ width: 100%; }

  .ct-title{ font-size: 26px; } /* было 28px */

  .ct-icon{
    width: 38px;
    height: 38px;
  }
}

.ct-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.ct-modal.is-open{
  display: block;
}

.ct-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 28, 0.56);
  backdrop-filter: blur(4px);
}

.ct-modal__dialog{
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0;
  background: #fff;
  border: 1.6px solid rgba(87, 81, 225, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(11,11,20,0.20);
  padding: 24px;
  z-index: 1;
}

.ct-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(87,81,225,0.08);
  color: #141431;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ct-modal__content{
  padding-top: 10px;
}

.ct-modal__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(87,81,225,0.10);
  color: #5751E1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.ct-modal__title{
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  color: #141431;
}

.ct-modal__text{
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(20,20,49,0.78);
}

.ct-modal__action{
  margin-top: 18px;
  min-width: 180px;
}

body.ct-modal-open{
  overflow: hidden;
}

@media (max-width: 720px){
  .ct-modal__dialog{
    width: calc(100vw - 24px);
    margin-top: 12vh;
    padding: 18px;
    border-radius: 16px;
  }

  .ct-modal__title{
    font-size: 22px;
  }

  .ct-modal__text{
    font-size: 14px;

  }

  .ct-modal__action{
    width: 100%;
  }
}