:root {
  --ink: #151515;
  --muted: #66645f;
  --line: #dedbd2;
  --paper: #fffaf0;
  --white: #ffffff;
  --but-red: #e30613;
  --but-yellow: #ffdd00;
  --green: #1f7a5a;
  --blue: #175f9e;
  --shadow: 0 20px 60px rgba(20, 20, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  animation: pageFade 520ms ease both;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.but-mark,
.logo-pair {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.but-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.brand:hover img,
.but-mark:hover img {
  transform: rotate(-4deg) scale(1.06);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: #3a3935;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 221, 0, 0.34);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 72px) 38px;
  overflow: hidden;
}

.hero-media {
  display: flex;
  align-items: end;
  min-height: 540px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 250, 240, 0.1)),
    linear-gradient(120deg, #e8dfcf 0%, #fff6df 50%, #dfe8e4 100%);
  box-shadow: var(--shadow);
  animation: riseIn 680ms 120ms ease both;
}

.sofa-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  overflow: hidden;
}

.sofa-scene::before {
  position: absolute;
  right: -7%;
  bottom: -18%;
  width: 62%;
  height: 42%;
  content: "";
  background: rgba(255, 221, 0, 0.5);
  border-radius: 999px;
  transform: rotate(-10deg);
}

.wall-art {
  position: absolute;
  top: 54px;
  left: 10%;
  width: 168px;
  height: 118px;
  border: 10px solid #151515;
  background: linear-gradient(135deg, var(--but-yellow) 0 48%, var(--but-red) 48% 70%, var(--blue) 70%);
  animation: slideDown 760ms 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lamp {
  position: absolute;
  right: 13%;
  bottom: 160px;
  width: 14px;
  height: 260px;
  background: #242424;
}

.lamp::before {
  position: absolute;
  top: -68px;
  left: -62px;
  width: 138px;
  height: 74px;
  content: "";
  background: #f4c21f;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  animation: lampGlow 2.8s ease-in-out infinite;
}

.plant {
  position: absolute;
  left: 9%;
  bottom: 112px;
  width: 82px;
  height: 122px;
  background: #1f7a5a;
  clip-path: polygon(47% 0, 60% 38%, 100% 8%, 70% 52%, 100% 58%, 62% 66%, 54% 100%, 42% 68%, 0 88%, 30% 54%, 4% 22%, 40% 40%);
}

.plant::after {
  position: absolute;
  left: 24px;
  bottom: -42px;
  width: 48px;
  height: 48px;
  content: "";
  background: #a74031;
}

.sofa {
  position: absolute;
  left: 14%;
  right: 13%;
  bottom: 74px;
  height: 188px;
  background: #2f6f67;
  border-radius: 8px 8px 18px 18px;
  box-shadow: 0 28px 0 #1d4641;
  animation: sofaSettle 900ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sofa::before {
  position: absolute;
  left: 5%;
  right: 5%;
  top: -90px;
  height: 118px;
  content: "";
  background: #348076;
  border-radius: 18px 18px 8px 8px;
}

.sofa::after {
  position: absolute;
  left: -42px;
  right: -42px;
  top: 34px;
  height: 86px;
  content: "";
  background: #287268;
  border-radius: 8px;
}

.sofa span {
  position: absolute;
  z-index: 2;
  top: 28px;
  width: 29%;
  height: 76px;
  background: #3d9185;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
}

.sofa span:nth-child(1) {
  left: 5%;
  animation: cushionPulse 4.2s ease-in-out infinite;
}

.sofa span:nth-child(2) {
  left: 35.5%;
  animation: cushionPulse 4.2s 280ms ease-in-out infinite;
}

.sofa span:nth-child(3) {
  right: 5%;
  animation: cushionPulse 4.2s 560ms ease-in-out infinite;
}

.voucher {
  position: absolute;
  right: 7%;
  bottom: 42px;
  z-index: 3;
  display: grid;
  gap: 6px;
  width: 190px;
  min-height: 120px;
  padding: 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--but-yellow);
  transform: rotate(-4deg);
  animation: voucherFloat 3.4s ease-in-out infinite;
}

.voucher img {
  width: 44px;
  height: 44px;
}

.voucher strong {
  font-size: 1.1rem;
}

.voucher span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-content {
  align-self: center;
  max-width: 660px;
  animation: riseIn 680ms 220ms ease both;
}

.logo-pair {
  gap: 12px;
  margin-bottom: 22px;
}

.logo-pair img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo-pair span {
  color: var(--muted);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--but-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.hero-copy,
.section p {
  color: #45423d;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions,
.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  color: var(--ink);
  background: var(--but-yellow);
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

.primary-action::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.55) 44%, transparent 56% 100%);
  transform: translateX(-120%);
  transition: transform 560ms ease;
}

.secondary-action {
  color: var(--ink);
  background: var(--white);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover::after {
  transform: translateX(120%);
}

.primary-action:active,
.secondary-action:active {
  transform: translateY(0);
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-band div {
  display: grid;
  gap: 4px;
  padding: 24px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
  animation: riseIn 620ms ease both;
}

.trust-band div:nth-child(2) {
  animation-delay: 80ms;
}

.trust-band div:nth-child(3) {
  animation-delay: 160ms;
}

.trust-band div:nth-child(4) {
  animation-delay: 240ms;
}

.trust-band strong {
  font-size: 1.85rem;
}

.trust-band span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.timeline article:hover {
  transform: translateX(6px);
  border-color: rgba(21, 21, 21, 0.24);
  box-shadow: 0 14px 34px rgba(21, 21, 21, 0.08);
}

.timeline span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
}

.timeline h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(64px, 8vw, 108px);
}

.progress-panel,
.flow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: riseIn 620ms ease both;
}

.progress-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
}

.progress-panel h2 {
  font-size: 2rem;
}

.stepper {
  display: grid;
  gap: 8px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.stepper span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--ink);
  background: #ece7dc;
  border-radius: 999px;
  font-size: 0.82rem;
}

.stepper li.active {
  color: var(--ink);
  background: #fff8d2;
  border-color: #ead35d;
  transform: translateX(4px);
}

.stepper li.active span {
  background: var(--but-yellow);
}

.security-note {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #eff7f4;
  border: 1px solid #cde4db;
  border-radius: 8px;
}

.security-note span {
  color: #49645c;
  font-size: 0.9rem;
  line-height: 1.45;
}

.flow {
  min-height: 680px;
  padding: clamp(20px, 4vw, 38px);
}

.flow-step {
  display: none;
}

.flow-step.active {
  display: block;
  animation: stepIn 280ms ease both;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.choice {
  display: grid;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  background: #f9f7f0;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.choice.selected {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--but-yellow);
}

.choice:hover {
  transform: translateY(-2px);
}

.choice input {
  width: 18px;
  height: 18px;
}

.choice span {
  font-size: 1.08rem;
  font-weight: 800;
}

.choice small {
  color: var(--muted);
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  color: #2f2d28;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfc9bc;
  border-radius: 8px;
}

input[type="file"] {
  padding: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.hidden {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.photo-tile {
  position: relative;
  display: grid;
  min-height: 96px;
  padding: 14px;
  color: #36332e;
  background: #f8f5ee;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.photo-tile:hover {
  transform: translateY(-2px);
}

.photo-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-tile span {
  align-self: end;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.photo-tile::before {
  width: 24px;
  height: 24px;
  content: "";
  border: 2px solid #b8b1a3;
  border-radius: 6px;
}

.photo-tile.checked {
  color: var(--ink);
  background: #fff8d2;
  border-color: #d7be3d;
  animation: tickPop 220ms ease both;
}

.photo-tile.checked::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 6px #fff;
}

.upload-zone {
  place-items: center;
  min-height: 130px;
  margin-bottom: 18px;
  padding: 18px;
  text-align: center;
  background: #f2f6f8;
  border: 2px dashed #9db4c4;
  border-radius: 8px;
}

.upload-zone input {
  max-width: 330px;
}

.upload-zone span {
  font-size: 1.05rem;
}

.upload-zone small {
  color: var(--muted);
  font-weight: 600;
}

.photo-status,
.final-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 28px;
  padding: 16px;
  background: #f7f5ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-status strong {
  font-size: 1.35rem;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  padding: clamp(20px, 4vw, 34px);
  background: var(--but-yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
  animation: offerPop 440ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.offer-card::before {
  position: absolute;
  top: -80%;
  left: -35%;
  width: 48%;
  height: 260%;
  content: "";
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(24deg);
  animation: offerSweep 3.8s ease-in-out infinite;
}

.offer-card > * {
  position: relative;
  z-index: 1;
}

.offer-card div {
  display: grid;
  gap: 6px;
}

.offer-card span {
  font-weight: 800;
}

.offer-card strong {
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.offer-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  animation: logoBounce 3.2s ease-in-out infinite;
}

.estimate-lines {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.estimate-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.estimate-lines dt {
  color: var(--muted);
}

.estimate-lines dd {
  margin: 0;
  font-weight: 800;
}

.final-summary {
  display: grid;
  align-items: start;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 360px;
  padding: 16px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes sofaSettle {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes voucherFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes cushionPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes lampGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(244, 194, 31, 0));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(244, 194, 31, 0.55));
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tickPop {
  0% {
    transform: scale(0.98);
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes offerPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes offerSweep {
  0%,
  38% {
    transform: translateX(-30%) rotate(24deg);
  }
  70%,
  100% {
    transform: translateX(330%) rotate(24deg);
  }
}

@keyframes logoBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-5px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .sofa-scene {
    min-height: 420px;
  }

  .progress-panel {
    position: static;
  }

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

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    min-height: auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-media {
    min-height: 330px;
  }

  .sofa-scene {
    min-height: 330px;
  }

  .wall-art,
  .lamp,
  .plant {
    transform: scale(0.72);
    transform-origin: bottom left;
  }

  .sofa {
    left: 16%;
    right: 16%;
    bottom: 58px;
    height: 130px;
  }

  .sofa::before {
    top: -60px;
    height: 84px;
  }

  .sofa::after {
    left: -24px;
    right: -24px;
    height: 60px;
  }

  .voucher {
    right: 6%;
    bottom: 28px;
    width: 150px;
    min-height: 102px;
    padding: 13px;
  }

  .choice-grid,
  .form-grid,
  .photo-grid,
  .trust-band {
    grid-template-columns: 1fr;
  }

  .flow {
    min-height: auto;
  }

  .offer-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
