html {
  scroll-behavior: smooth;
  font-family: Geist, Helvetica, sans-serif;
  background: white;
  color: rgba(23, 23, 23, 1);
  font-weight: 400;
}



:root {
  --text-subtitle: rgba(161, 161, 161, 1);
  --border-main: 1px solid rgba(23, 23, 23, 0.14);
}

h2 {
  text-align: center;
  font-size: 28px;
  line-height: 1.4;

}



.wrapper {
  min-height: 100dvh;
  width: 100%;

  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px 0 24px;
}

.container {
  max-width: 510px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

}

header {
  padding: 16px 40px;
}

header p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-subtitle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  max-width: 173px;
}


.logo img {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__r-lef {
  display: flex;
  align-items: center;
  gap: 8px;

}

.lang-switch {
  display: flex;
  align-items: center;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  gap: 6px;
  background: rgb(255 255 255 / 1);
  border: 1px solid rgb(235, 235, 235);
  justify-content: center;
  min-height: 35px;
  max-height: 35px;
  padding: 10px 14px;
}

.lang-switch svg {
  max-width: 16px;
  max-height: 16px;
}

.tg-link {
  display: flex;
  align-items: center;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  gap: 6px;
  background: rgb(255 255 255 / 1);
  border: 1px solid rgb(235, 235, 235);
  justify-content: center;
  min-height: 35px;
  max-height: 35px;
  padding: 10px 8px;


}

.header__r-rig p {
  white-space: nowrap;
}

.header-right a {
  transition: all .3s;
}

.header-right a:hover {
  background: rgb(222, 222, 222);
}

.header-right button {
  transition: all .3s;
}

.header-right button:hover {
  background: rgb(222, 222, 222);
}

.header__r-rig {
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-btn {
  display: flex;
  align-items: center;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  gap: 6px;
  background: rgb(255 255 255 / 1);
  border: 1px solid rgb(235, 235, 235);
  justify-content: center;
  min-height: 35px;
  max-height: 35px;
  padding: 10px 14px;
}

main p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-subtitle);
  text-align: center;
}

.btn-next {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-inverted, rgba(23, 23, 23, 1));
  gap: 6px;
  border-radius: 8px;
  width: 100%;
  max-width: 100px;
  color: white;
  font-size: 14px;
  line-height: 1.2;
  transition: all .3s;
  min-width: 100px;
}

.btn-next:hover {
  background: rgb(43, 43, 43);
}

.btn-prev {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-subtle, rgba(245, 245, 245, 1));
  gap: 6px;
  border-radius: 8px;
  width: 100%;
  max-width: 100px;
  font-size: 14px;
  transition: all .3s;
  line-height: 1.2;
  min-width: 100px;
}

.count {
  color: var(--text-subtitle);
  font-size: 14px;
  line-height: 1.2;
}

.form {
  position: relative;
  width: 100%;
  min-height: min(72dvh, 720px);
  margin: 0;
}

.form.is-animating {
  pointer-events: none;
}


.step {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 370px;
  max-height: 100%;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
}

.step fieldset {
  width: 100%;
}

.step.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.step.is-leaving {
  pointer-events: none;
  z-index: 1;
}

.step.is-entering {
  pointer-events: none;
  z-index: 2;
}

.step legend {
  margin-bottom: 40px;
  text-align: center;
}


.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;

}

.option {
  display: flex;
  border-radius: 10px;
  background: rgba(255, 255, 255, 1);
  padding: 12px 20px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(23, 23, 23, 0.14);
  min-height: 60px;
  transition: all .3s;
  cursor: pointer;
}

.option:hover {
  background: rgb(250, 250, 250);
}

.option:hover input {
  background: rgb(250, 250, 250);
}

.option-ico {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.option input {
  display: none;
}



.option:has(input:checked) {
  background: rgba(23, 23, 23, 1);
  border: 1px solid rgba(23, 23, 23, 0.14);
  color: white;
}

.option:has(input:checked) .fakebox svg path {
  stroke: white;

}


.buttons {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: 12px;
  gap: 8px;
  width: 100%;
}

.enter-input {
  display: flex !important;
  font-size: 16px;
  color: rgba(23, 23, 23, 1);
  ;
}


.count {
  text-align: center;
  margin-bottom: 8px;
}

.option-vv {
  margin-top: 12px;
  padding: 3px 20px;
  min-height: 46px;
}

.option-vv input {
  transition: all .3s;
}

.option-vv:has(input:checked) input {
  background: rgba(23, 23, 23, 1);
  color: white;
}

.step-txt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}


.form-error {
  margin-top: 12px;
  font-size: 14px;
  color: #ff4d4f;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.form-error.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

.options.shake {
  animation: shake 0.3s ease;
}


.option-doll .option-enter {
  position: relative;

}

.option-doll input {
  min-height: 46px;
  font-size: 16px;
  padding-left: 28px;

}

.option-doll .fakebox {
  display: none;
}

.option-doll {
  margin-top: 0;
}

.dollar {
  position: absolute;
  top: 51%;
  left: 3%;
  transform: translateY(-50%);
  font-size: 18px;

}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {

  -webkit-appearance: none;
  margin: 0;
  /* <-- Apparently some margin are still there even though it's hidden */
}

.step.form-team {
  max-width: 510px;
}

.form-team .step-txt p {
  text-align: center;
  max-width: 244px;
}

.step.form-solo {
  max-width: 510px;
}

.form-solo .step-txt p {
  text-align: center;
  max-width: 244px;
}

.step.form-decl {
  max-width: 510px;
}

.form-decl .step-txt p {
  text-align: center;
  max-width: 480px;
}


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

.team-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group.full {
  width: 100%;
}

.form-group label {
  font-size: 14px;
  color: rgba(161, 161, 161, 1);
  margin-bottom: 8px;
}

.form-group input {
  height: 46px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 10px;
  padding: 0 13px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: 0.2s ease;
}

.form-group input:focus {
  border-color: #000;
}

.step-form input.error {
  border-color: #e53935;
}

.step-form input.locked {
  background: #f5f5f5;
  color: rgba(23, 23, 23, 0.7);
  cursor: not-allowed;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #ff4d4f;
}

.submit-btn.is-loading .submit-btn-text {
  display: none;
}

.submit-btn-loading {
  display: none;
  animation: reg-spin 0.8s linear infinite;
}

.submit-btn.is-loading .submit-btn-loading {
  display: inline-block;
}

@keyframes reg-spin {
  to {
    transform: rotate(360deg);
  }
}

.submit-btn {
  width: 100%;
  height: 45px;
  border: none;
  border-radius: 12px;
  background: rgba(23, 23, 23, 1);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  opacity: 0.92;
}

.policy {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(161, 161, 161, 1);
  text-align: center;
  max-width: 415px;
  margin: 0 auto;
}

.policy a {
  color: rgba(161, 161, 161, 1);
  text-decoration: underline;
}


.endpoint {
  max-width: 550px;
}

.endpoint .step-txt {
  max-width: none;
}

.endpoint-tel {
  margin-top: 40px;
  width: 100%;
  max-width: 363px;
  padding: 22px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  border-top: 1px solid rgba(23, 23, 23, 0.08);
  border-left: 1px solid rgba(23, 23, 23, 0.08);
  border-right: 1px solid rgba(23, 23, 23, 0.08);
  border-top-left-radius: 64px;
  border-top-right-radius: 64px;
}

.endp__tel-tg {
  display: flex;
  align-items: center;
  max-width: 110px;
  min-height: 36px;
  border-radius: 100px;
  background: rgba(245, 245, 245, 1);
  gap: 11px;
  padding-left: 4px;
  padding-right: 20px;
  font-size: 12px;
  color: rgba(23, 23, 23, 1);
}

.endp-qr {
  width: 100%;
  max-width: 162px;

}

.endp__tel-man {
  display: flex;
  align-items: center;
  gap: 8px;

}

.endp__tel-man img {
  max-width: 32px;
}

.endp__tel-man p {
  font-size: 20px;
  color: rgba(23, 23, 23, 1);
}

.endp__tel-man span {
  color: rgba(161, 161, 161, 1);
  font-size: 14px;
}

.endpoint-tel a {
  min-height: 40px;
  background: rgba(23, 23, 23, 1);
  padding: 0 20px;
  text-align: center;
  border-radius: 10px;
  color: white;
  width: 100%;
  max-width: 162px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  transition: all .3s;
}

.endpoint-tel a:hover {
  background: rgba(23, 23, 23, 0.839);
}

footer {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 14px;
  color: rgba(161, 161, 161, 1);
}

footer a {
  transition: all .3s;
}

footer a:hover {
  background: rgb(222, 222, 222);
}

/* ——— Mobile: < 768px (desktop styles above unchanged) ——— */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .wrapper {
    overflow-x: hidden;
    max-width: 100%;
  }

  header {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .header-inner {
    gap: 12px;
    min-width: 0;
  }

  .header-left {
    gap: 0;
    min-width: 0;
    flex: 1;
  }

  .logo {
    max-width: 132px;
  }

  .header-right {
    gap: 8px;
    flex-shrink: 0;
  }

  .header__r-rig {
    gap: 0;
  }

  .header__r-rig p {
    display: none;
  }

  .log-btn {
    font-size: 13px;
    min-height: 34px;
    max-width: none;
    padding: 8px 14px;
    border-radius: 8px;
  }

  main {
    padding: 8px 0 16px;
  }

  .container {
    padding: 0 12px;
    max-width: 100%;

  }

  h2 {
    font-size: 22px;
    line-height: 1.3;
  }

  main p {
    font-size: 14px;
    line-height: 1.45;
  }

  .count {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form {
    min-height: clamp(500px, 56dvh, 720px);
    max-height: calc(100dvh - 128px);
  }

  .step,
  .step.form-team,
  .step.form-solo,
  .step.form-decl,
  .step.endpoint {
    max-width: 100%;
    width: 100%;
    max-height: calc(100dvh - 128px);
    box-sizing: border-box;

  }

  .option-ico {
    min-width: 0;
    flex: 1;
  }

  .option-ico span {
    overflow-wrap: anywhere;
  }

  .option {
    min-width: 0;
  }

  .step legend {
    margin-bottom: 24px;
  }

  .option {
    padding: 8px 12px;
    min-height: 52px;
    border-radius: 8px;
  }

  .option-ico {
    font-size: 14px;
    gap: 6px;
  }

  .option-ico svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .fakebox svg {
    width: 18px;
    height: 18px;
  }

  .options {
    gap: 6px;
  }

  .option-vv {
    margin-top: 8px;
    padding: 3px 14px;
    min-height: 42px;
  }

  .enter-input {
    font-size: 14px !important;
  }

  .option-doll input {
    min-height: 32px;
    font-size: 14px;
    padding-left: 32px;
  }

  .dollar {
    font-size: 14px;
  }

  .buttons {
    margin-top: 10px;
    gap: 6px;
  }

  .btn-next,
  .btn-prev {
    min-height: 38px;
    min-width: 0;
    max-width: none;
    flex: 1;
    font-size: 13px;
    border-radius: 8px;
  }

  .buttons:has(.btn-prev):has(.btn-next) .btn-next {
    flex: 1.15;
  }

  .form-error {
    font-size: 12px;
    margin-top: 8px;
  }

  .step-form {
    margin-top: 24px;
  }

  .team-form {
    gap: 12px;
  }

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

  .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .form-group input {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 8px;
  }

  .submit-btn {
    min-height: 44px;
    height: auto;
    padding: 11px 16px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 6px;
  }

  .policy {
    font-size: 11px;
    line-height: 1.45;
    max-width: 100%;
    padding: 0 4px;
  }

  .form-team .step-txt p,
  .form-solo .step-txt p,
  .form-decl .step-txt p {
    max-width: 100%;
  }

  .endpoint-tel {
    margin-top: 24px;
    padding: 18px 20px 24px;
    gap: 16px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .endp-qr {
    max-width: 130px;
  }

  .endp__tel-man p {
    font-size: 17px;
  }

  .endp__tel-man span {
    font-size: 12px;
  }

  .endpoint-tel a {
    max-width: 100%;
    min-height: 38px;
    font-size: 14px;
    border-radius: 8px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  footer .header__r-lef {
    order: 1;
    justify-content: center;
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    gap: 8px;
  }

  footer p {
    order: 2;
    font-size: 11px;
    line-height: 1.45;
    max-width: 280px;
    margin: 0;
  }

  footer .lang-switch {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    font-size: 13px;
    min-height: 34px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  footer .lang-switch span {
    font-size: 13px;
  }

  footer .tg-link {
    flex: 0 0 auto;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .form {
    min-height: 100dvh;
    max-height: calc(100dvh - 116px);
  }

  .step,
  .step.form-team,
  .step.form-solo,
  .step.form-decl,
  .step.endpoint {
    max-height: calc(100dvh - 116px);
  }

  main {
    padding: 4px 0 12px;
  }

  .step legend {
    margin-bottom: 16px;
  }

  h2 {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  header {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .container {
    padding: 0 10px;
  }

  .logo {
    max-width: 147px;
  }

  h2 {
    font-size: 20px;
  }

  .option {
    padding: 9px 12px;
    min-height: 48px;
  }

  footer p {
    font-size: 10px;
    max-width: 240px;
  }
}