:root {
  --black: #171313;
  --black-2: #241f1d;
  --gold: #f4c400;
  --gold-2: #d7a700;
  --paper: #ffffff;
  --wash: #f7f7f5;
  --line: #dedbd2;
  --muted: #6f6a60;
  --ink: #1f1b18;
  --success: #167a4b;
  --shadow: 0 24px 70px rgba(23, 19, 19, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(222, 219, 210, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}

.brand img {
  width: 178px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3d3833;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: #9d7b00;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: #f1efe8;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.lang-switch button {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.active {
  color: #171313;
  background: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta {
  padding: 0 18px;
  color: #171313;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.25);
}

.header-cta svg,
.button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 auto;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.section {
  padding: 86px clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.82fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 83px);
  padding: 54px clamp(20px, 5vw, 72px) 64px;
  background:
    linear-gradient(126deg, rgba(23, 19, 19, 0.98) 0%, rgba(36, 31, 29, 0.98) 52%, rgba(255, 255, 255, 1) 52.2%, rgba(255, 255, 255, 1) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(760px, 58vw);
  height: 58%;
  background:
    linear-gradient(90deg, rgba(23, 19, 19, 0.2), rgba(23, 19, 19, 0.9)),
    url("assets/sougold-luxury-still-life.png") center / cover;
  opacity: 0.34;
  mask-image: linear-gradient(90deg, #000 0%, #000 56%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  min-width: 0;
}

.hero-copy h1,
.section-heading h2,
.guide-copy h2,
.final-cta h2 {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 740px;
  color: #fff;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1.02;
}

.hero-copy p {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.5vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 0 22px;
}

.button.primary,
.button.submit {
  color: #171313;
  background: var(--gold);
  box-shadow: 0 16px 35px rgba(244, 196, 0, 0.25);
}

.button.primary:hover,
.button.submit:hover,
.header-cta:hover {
  background: #ffd938;
}

.button.secondary {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 700px;
  margin-top: 30px;
}

.trust-row span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 196, 0, 0.32);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.appraisal-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(23, 19, 19, 0.12);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  color: var(--black);
  font-size: 24px;
  line-height: 1.25;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--black);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.appraisal-form {
  display: grid;
  gap: 15px;
  padding: 24px 28px 28px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: #36302b;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d1c8;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #a88700;
  box-shadow: 0 0 0 3px rgba(244, 196, 0, 0.18);
}

.upload-field {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  background: #fbfaf6;
  border: 1px dashed #b8aa6c;
  border-radius: 8px;
  cursor: pointer;
}

.upload-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-field strong,
.upload-field small {
  display: block;
}

.upload-field small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.upload-field svg {
  width: 26px;
  height: 26px;
  fill: #9d7b00;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.preview-grid:empty {
  display: none;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.button.submit {
  width: 100%;
  min-height: 54px;
  margin-top: 3px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.guide-copy h2,
.final-cta h2 {
  color: var(--black);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.guide-copy p,
.final-cta p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.process {
  background: var(--wash);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-list article,
.trust-grid article {
  min-height: 210px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-list span {
  color: var(--gold-2);
  font-weight: 900;
}

.step-list h3,
.trust-grid h3 {
  margin: 30px 0 10px;
  color: var(--black);
  font-size: 21px;
  line-height: 1.25;
}

.step-list p,
.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.photo-guide {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.guide-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.guide-copy li {
  position: relative;
  padding-left: 24px;
  color: #3c3731;
  font-weight: 700;
}

.guide-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--gold-2);
}

.luxury-board {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  grid-template-rows: 190px 190px;
  gap: 14px;
}

.luxury-board > img {
  grid-row: span 2;
  width: 100%;
  height: 100%;
  min-height: 394px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  background: var(--black);
  border-radius: var(--radius);
  isolation: isolate;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 34% 30%, rgba(244, 196, 0, 0.36), transparent 18%),
    linear-gradient(135deg, #171313, #342a25);
}

.product-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(244, 196, 0, 0.55);
  transform: rotate(18deg);
}

.product-card::after {
  right: 34px;
  top: 28px;
  border-radius: 50%;
}

.product-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.product-card strong {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.trust {
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-grid article {
  background: #171313;
  border-color: #171313;
}

.trust-grid h3 {
  margin-top: 0;
  color: var(--gold);
}

.trust-grid p {
  color: rgba(255, 255, 255, 0.75);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(23, 19, 19, 0.97), rgba(23, 19, 19, 0.9)),
    var(--black);
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.72);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  color: #fff;
  background: #1fa855;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(14, 94, 47, 0.34);
  font-size: 15px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: #159447;
  box-shadow: 0 22px 48px rgba(14, 94, 47, 0.42);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: 0 0 auto;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 12, 11, 0.72);
}

.success-modal[hidden] {
  display: none;
}

.success-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 34px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  background: var(--wash);
  border: 0;
  border-radius: 6px;
  font-size: 24px;
  cursor: pointer;
}

.success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}

.success-dialog h2 {
  margin: 0;
  color: var(--black);
  font-size: 26px;
}

.success-dialog p {
  margin: 12px 0 0;
  color: var(--muted);
}

.submission-id {
  margin: 18px 0 22px;
  padding: 12px;
  color: #2d271f;
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, #171313 0%, #241f1d 48%, #fff 48.2%, #fff 100%);
  }

  .hero::before {
    width: 100%;
    height: 42%;
  }

  .appraisal-panel {
    max-width: 720px;
  }

  .step-list,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 16px;
  }

  .brand img {
    width: 134px;
    height: 44px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .header-tools {
    gap: 8px;
  }

  .lang-switch button {
    min-width: 38px;
    height: 32px;
    padding: 0 8px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 34px;
    padding-bottom: 44px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .button.secondary {
    width: 100%;
  }

  .button.primary {
    width: 100%;
  }

  .panel-head,
  .appraisal-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .field-grid,
  .step-list,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .luxury-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto 180px 180px;
  }

  .luxury-board > img {
    grid-row: auto;
    min-height: 240px;
  }

  .final-cta {
    display: block;
  }

  .final-cta .button {
    width: 100%;
    margin-top: 24px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-height: 52px;
    padding: 0 14px;
    font-size: 13px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}
