:root {
  color-scheme: light;
  --bg: #f7f9f7;
  --ink: #101415;
  --muted: #64706c;
  --line: rgba(20, 31, 32, 0.14);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --accent: #147c78;
  --accent-dark: #0f5f5c;
  --metal: #b78955;
  --shadow: 0 24px 80px rgba(24, 35, 37, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
textarea {
  font: inherit;
}

.sale-page {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 40vh;
  content: "";
  background: linear-gradient(to top, rgba(247, 249, 247, 0.98), rgba(247, 249, 247, 0));
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 0.95) 0%, rgba(247, 249, 247, 0.72) 44%, rgba(247, 249, 247, 0.26) 100%),
    url("/assets/domain-bg.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero__content,
.offer-form {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 780px;
}

.domain {
  margin: 0 0 22px;
  color: var(--accent-dark);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 750;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 42px);
  font-size: clamp(3.8rem, 10.5vw, 9rem);
  font-weight: 780;
  line-height: 0.9;
  letter-spacing: 0;
}

.price-block {
  display: inline-grid;
  gap: 8px;
  min-width: min(100%, 330px);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--metal);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 46px rgba(24, 35, 37, 0.1);
  backdrop-filter: blur(16px);
}

.price-block span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-block strong {
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
}

.trust-line {
  margin: 16px 0 0;
  color: #2c3839;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  font-weight: 720;
  line-height: 1.35;
}

.offer-form {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.form-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.form-heading h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #2c3839;
  font-size: 0.82rem;
  font-weight: 740;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(20, 31, 32, 0.18);
  border-radius: 6px;
  outline: none;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input {
  min-height: 46px;
  padding: 0 13px;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
  padding: 12px 13px;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(20, 124, 120, 0.7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 124, 120, 0.12);
}

.submit-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 820;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.submit-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(20, 124, 120, 0.2);
  transform: translateY(-1px);
}

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

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.form-status[data-tone="error"] {
  color: #9b2f1f;
}

.form-status[data-tone="success"] {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    padding: 28px;
  }

  .hero__media {
    background:
      linear-gradient(180deg, rgba(247, 249, 247, 0.94) 0%, rgba(247, 249, 247, 0.68) 58%, rgba(247, 249, 247, 0.92) 100%),
      url("/assets/domain-bg.png") 58% center / cover no-repeat;
  }

  h1 {
    max-width: 620px;
    margin-bottom: 26px;
    font-size: clamp(3.2rem, 16vw, 6.6rem);
  }

  .offer-form {
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 22px 18px 28px;
  }

  .domain {
    margin-bottom: 16px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
    line-height: 0.94;
  }

  .price-block {
    width: 100%;
  }

  .offer-form {
    padding: 20px;
  }
}
