:root {
  --bg-page: #e8e8e8;
  --text-main: #000000;
  --text-muted: #464748;
  --line-color: #5a5b5c;
  --brand-primary: #419468;
  --title-color: #0e3a2f;
}

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "SKODA Next", "Arial", sans-serif;
}

.top-bar {
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 1.56vw, 30px);
}

.brand-logo {
  width: 118px;
  height: 16.5px;
  display: block;
}

.hero-image {
  display: block;
  width: 100%;
  height: clamp(220px, 36.5vw, 701px);
  object-fit: cover;
  object-position: center;
}

.hero picture {
  display: block;
}

.content {
  max-width: 980px;
  margin: 56px auto 80px;
  padding: 0 24px;
}

h1 {
  margin: 0;
  text-align: center;
  color: var(--title-color);
  font-size: clamp(34px, 4.4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  max-width: 941px;
  margin-inline: auto;
}

.survey-form {
  margin: 58px auto 0;
  max-width: 838px;
}

.form-block {
  margin: 0;
  padding: 0;
  border: none;
}

.form-block + .form-block {
  margin-top: 18px;
}

.q-products + .q-yesno {
  margin-top: 40px;
}

legend {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
}

.option {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 3px;
  font-size: 21px;
  line-height: 36px;
  color: var(--text-main);
  font-weight: 300;
  width: fit-content;
}

.form-block > .option:first-of-type {
  margin-top: 22px;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-color);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 80ms ease-out;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  transform: rotate(-45deg) scale(1);
}

.line-field {
  margin-top: 6px;
  display: block;
}

.line-field input {
  width: 100%;
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid var(--line-color);
  background: transparent;
  font-size: 21px;
  line-height: 36px;
  color: var(--text-main);
  font-weight: 300;
  padding: 0 0 1px;
}

.line-field input:focus {
  outline: none;
  border-bottom-color: var(--brand-primary);
}

.line-field input::placeholder {
  color: var(--text-main);
  opacity: 1;
}

.q-products .line-field {
  margin-top: 8px;
}

.rate-row {
  margin-top: 3px;
}

.rate-row:first-of-type {
  margin-top: 22px;
}

.rate-name {
  display: block;
  font-size: 21px;
  line-height: 36px;
  color: var(--text-main);
  font-weight: 300;
}

.rate-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-color);
}

.rate-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 21px;
  line-height: 36px;
  color: var(--text-main);
  font-weight: 300;
  padding: 0 0 1px;
}

.rate-input:focus {
  outline: none;
}

.rate-input-wrap:focus-within {
  border-bottom-color: var(--brand-primary);
}

.rate-currency {
  font-size: 21px;
  line-height: 36px;
  color: var(--text-main);
  font-weight: 300;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 80ms ease-out;
}

.rate-input-wrap.has-value .rate-currency {
  opacity: 1;
}

.rates .rate-row {
  margin-top: 3px;
}

.rates .rate-row:first-of-type {
  margin-top: 22px;
}

.submit-button {
  display: block;
  margin: 92px auto 0;
  min-width: 164px;
  height: 42px;
  border: 1px solid var(--line-color);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 40px;
}

.submit-button:hover {
  border-color: var(--brand-primary);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  min-height: 22px;
  margin: 16px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thank-you-content {
  margin-top: 64px;
}

.thank-you-card {
  max-width: 838px;
  margin: 0 auto;
  text-align: center;
}

.thank-you-title {
  max-width: 838px;
}

.thank-you-message {
  margin: 28px 0 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 300;
  color: var(--text-main);
}

.thank-you-button {
  display: inline-block;
  margin-top: 56px;
  padding: 0 24px;
}

@media (max-width: 1024px) {
  .content {
    margin-top: 38px;
  }

  h1 {
    font-size: clamp(28px, 4vw, 38px);
  }

  .survey-form {
    margin-top: 34px;
  }

  legend,
  .option,
  .line-field input {
    font-size: 20px;
  }

  .option,
  .line-field input {
    line-height: 32px;
  }

  .rate-name,
  .rate-input,
  .rate-currency {
    font-size: 20px;
    line-height: 32px;
  }

  .form-block > .option:first-of-type {
    margin-top: 18px;
  }

  .q-products + .q-yesno {
    margin-top: 32px;
  }

  .rates .rate-row:first-of-type {
    margin-top: 18px;
  }

  .submit-button {
    margin-top: 72px;
  }

  .thank-you-message {
    font-size: 20px;
  }
}

@media (max-width: 680px) {
  .top-bar {
    height: 64px;
    padding: 0 16px;
  }

  .brand-logo {
    width: 104px;
  }

  .content {
    margin-top: 28px;
    margin-bottom: 56px;
    padding: 0 16px;
  }

  h1 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.15;
  }

  .form-block + .form-block {
    margin-top: 24px;
  }

  legend {
    font-size: 19px;
  }

  .option,
  .line-field input {
    font-size: 18px;
    line-height: 28px;
  }

  .rate-name,
  .rate-input,
  .rate-currency {
    font-size: 18px;
    line-height: 28px;
  }

  .option {
    gap: 12px;
    margin-top: 4px;
  }

  .form-block > .option:first-of-type {
    margin-top: 12px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .line-field {
    margin-top: 8px;
  }

  .q-products + .q-yesno {
    margin-top: 26px;
  }

  .rates .rate-row:first-of-type {
    margin-top: 12px;
  }

  .submit-button {
    margin-top: 44px;
    min-width: 132px;
  }

  .thank-you-content {
    margin-top: 38px;
  }

  .thank-you-message {
    margin-top: 20px;
    font-size: 18px;
  }

  .thank-you-button {
    margin-top: 42px;
  }
}
