:root {
  --blue: #091548;
  --orange: #FA8229;
  --white: #FFFFFF;
  --gray: #828996;
  --line: #E1E1E2;
  --muted-blue: #8C94B7;

  --radius-card: 8px;
  --radius-input: 8px;
  --font: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--blue);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--blue);
  background: var(--blue);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--orange);
  text-decoration: none;
}

.app {
  width: 100%;
  min-height: 100vh;
  background: var(--blue);
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
}

.screen.is-active {
  display: flex;
  flex-direction: column;
}

.page-title {
  margin: 0;
  color: var(--white);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.screen-form {
  padding: 18px 4px 0;
}

.screen-form .page-title {
  margin: 0 0 24px 20px;
}

.card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
}

.form-card {
  padding: 16px 16px 0;
}

.notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px 16px 14px 20px;
  border: 1px solid var(--orange);
  border-radius: var(--radius-card);
  background: rgba(250, 130, 41, 0.08);
}

.notice p {
  max-width: 250px;
  margin: 0;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
}

.notice-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--orange);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2px;
  gap: 12px;
  margin: 0 0 16px;
}

.section-title::after {
  content: "";
  display: block;
  width: 2px;
  height: 49px;
  justify-self: end;
  background: var(--blue);
}

.section-title h2 {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.field {
  display: block;
  margin: 0 0 32px;
}

.field > span {
  display: block;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  color: var(--blue);
  background: var(--white);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input {
  padding: 0 12px;
}

select {
  padding: 0 34px 0 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gray) 50%),
    linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: var(--gray);
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 130, 41, 0.12);
}

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

.phone-field,
.password-field {
  display: flex;
  overflow: hidden;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.phone-field:focus-within,
.password-field:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(250, 130, 41, 0.12);
}

.phone-field input,
.password-field input {
  flex: 1;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-code {
  display: grid;
  place-items: center;
  width: 38px;
  color: var(--blue);
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
}

.eye-button {
  display: grid;
  width: 44px;
  height: 100%;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--gray);
  background: transparent;
  cursor: pointer;
}

.eye-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.check-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.28;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.box {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FAFAFA;
}

.check-row input:checked + .box {
  border-color: var(--orange);
  background: var(--orange);
}

.check-row input:checked + .box::after {
  content: "";
  width: 11px;
  height: 6px;
  border: solid var(--white);
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.submit-button {
  width: calc(100% - 8px);
  height: 51px;
  margin: 26px 4px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--orange);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease;
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.footer-note {
  width: min(320px, calc(100% - 36px));
  margin: 16px auto 30px;
  color: var(--muted-blue);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.22;
  text-align: center;
}

.footer-note.in-card {
  margin: 0 auto 0;
  padding-bottom: 8px;
}
 
.screen-status {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  padding: 42px 8px 0;
}

.screen-status .page-title {
  flex: 0 0 auto;
margin: 0 0 24px 20px;
  font-size: 32px;
}

.status-card {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.status-text {
  margin-top: 76px;
  text-align: center;
}

.status-text h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.status-text p {
  margin: 0;
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.32;
}

.spinner {
  width: 160px;
  height: 160px;
  border: 16px solid rgba(225, 225, 226, 0.65);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 950ms linear infinite;
}

.success-icon {
  width: 164px;
  height: 164px;
}

.success-icon circle {
  fill: var(--orange);
}

.success-icon path {
  fill: none;
  stroke: var(--white);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
 
@media (max-width: 374px) {
  .screen-form {
    padding-inline: 3px;
  }

  .form-card {
    padding-inline: 14px;
  }

  .notice p {
    max-width: 228px;
  }
 

 
}
 
@media (min-width: 600px) {
  .screen-form {
    max-width: 375px;
    min-height: 100vh;
    margin: 0 auto;
  }

  .screen-status {
    max-width: 750px;
    margin: 0 auto;
  }
}

@media (max-width: 599px) {
  .screen-status {
    padding: 42px 8px 0;
  }
 
  .spinner,
  .success-icon {
    width: 132px;
    height: 132px;
  }

  .spinner {
    border-width: 14px;
  }

  .status-text {
    margin-top: 54px;
  }

 
  
}
 
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0;
  background: transparent;
  transition: transform 220ms ease, opacity 220ms ease;
}

.cookie-banner.is-hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px 24px;
  background: var(--white);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -8px 28px rgba(9, 21, 72, 0.14);
}

.cookie-banner h3 {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.cookie-banner p {
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.cookie-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--orange);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.has-cookie-banner .screen-form,
.has-cookie-banner .screen-status {
  padding-bottom: 188px;
}

.has-cookie-banner .screen-status {
  min-height: 100dvh;
}

@media (min-width: 600px) {
  .cookie-banner {
    left: 50%;
    right: auto;
    width: 375px;
    transform: translateX(-50%);
  }

  .cookie-banner.is-hidden {
    transform: translate(-50%, 100%);
  }

  .cookie-banner__inner {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }
}

.field-error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #C92A2A;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

input.is-invalid,
select.is-invalid,
.phone-field.is-invalid,
.password-field.is-invalid,
.check-row.has-error .box {
  border-color: #C92A2A;
}

input.is-invalid:focus,
select.is-invalid:focus,
.phone-field.is-invalid:focus-within,
.password-field.is-invalid:focus-within {
  border-color: #C92A2A;
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.12);
}
