:root {
  color-scheme: light;
  --page: #f6f3ed;
  --paper: #ffffff;
  --ink: #100e0b;
  --ink-soft: #28231c;
  --muted: #71695e;
  --line: rgba(31, 25, 18, 0.14);
  --gold: #cba35d;
  --gold-light: #e8c98f;
  --shadow: 0 28px 70px rgba(38, 29, 17, 0.15);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 0%, rgba(203, 163, 93, 0.22), transparent 31rem),
    var(--page);
  color: var(--ink);
}

button,
input,
select,
a {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.page {
  width: min(100%, 1280px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 18px calc(98px + env(safe-area-inset-bottom));
}

.topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 6px 6px 0 var(--gold);
}

.brand-name {
  display: grid;
  gap: 1px;
}

.brand-name strong {
  font-size: 14px;
  letter-spacing: 0.15em;
}

.brand-name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.37em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: none;
}

.language {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.language-active {
  font-weight: 800;
}

.language-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.language-next {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-areas:
    "copy"
    "calculator"
    "visual";
  gap: 28px;
  margin-top: clamp(42px, 8vw, 88px);
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: #87652c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.5;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  margin-top: 14px;
  font-size: clamp(52px, 12.7vw, 104px);
  font-weight: 800;
  line-height: 0.91;
}

h1 > span {
  display: block;
}

.title-accent {
  position: relative;
  z-index: 0;
}

.title-accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -4px;
  bottom: 0.04em;
  left: -4px;
  height: 0.22em;
  border-radius: 999px;
  background: var(--gold);
  transform: rotate(-1deg);
}

.lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.quick-actions {
  margin-top: 27px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 9px;
}

.quick-action {
  min-width: 0;
  min-height: 72px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.quick-action:hover,
.quick-action:focus-visible,
.direction-card:hover,
.direction-card:focus-visible,
.calculate-button:hover,
.calculate-button:focus-visible,
.estimate-whatsapp:hover,
.estimate-whatsapp:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.quick-whatsapp {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 0 15px 35px rgba(17, 19, 15, 0.16);
}

.quick-call {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.quick-icon {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--gold);
  color: var(--ink);
}

.quick-call .quick-icon {
  background: #eef1e6;
}

.quick-icon svg,
.direction-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.quick-action strong {
  font-size: 14px;
  line-height: 1.25;
}

.quick-action small {
  overflow: hidden;
  color: #aeb3a6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-call small {
  color: var(--muted);
}

.quick-action b {
  color: var(--gold-light);
  font-size: 19px;
  font-weight: 500;
}

.quick-call b {
  color: var(--ink);
}

.staircase-card {
  grid-area: visual;
  position: relative;
  height: clamp(230px, 56vw, 350px);
  margin: 0;
  overflow: hidden;
  border-radius: 27px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.staircase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 8, 0.84));
  pointer-events: none;
}

.staircase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(0.83) contrast(1.04);
}

.staircase-card figcaption {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
}

.production-badge {
  min-height: 35px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(11, 13, 9, 0.54);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.production-badge i,
.online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(203, 163, 93, 0.18);
}

.online-dot {
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(203, 163, 93, 0.16);
}

.staircase-card figcaption > strong {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.calculator-card {
  grid-area: calculator;
  align-self: start;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  color: white;
  box-shadow: 0 34px 80px rgba(17, 19, 15, 0.24);
}

.calculator-heading {
  padding: 25px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calculator-badge {
  min-height: 30px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.calculator-heading h2 {
  max-width: 520px;
  margin-top: 15px;
  font-size: clamp(34px, 8.5vw, 50px);
  font-weight: 760;
  line-height: 0.98;
}

.calculator-heading p {
  margin: 13px 0 0;
  color: #b8beb3;
  font-size: 14px;
  line-height: 1.5;
}

#calculator-form {
  padding: 18px 20px 22px;
}

.steps-field {
  margin-bottom: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.field-label,
.field > span {
  color: #d9ddd4;
  font-size: 14px;
  line-height: 1.35;
}

.stepper {
  min-width: 146px;
  height: 46px;
  display: grid;
  grid-template-columns: 42px 62px 42px;
  overflow: hidden;
  border: 1px solid rgba(203, 163, 93, 0.48);
  border-radius: 13px;
  background: #090b08;
}

.stepper button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  font-size: 22px;
  cursor: pointer;
}

.stepper button:hover,
.stepper button:focus-visible {
  background: rgba(203, 163, 93, 0.14);
  outline: none;
}

.stepper input {
  width: 62px;
  padding: 0;
  border: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: white;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: #1d211a;
  color: white;
  font-size: 14px;
  outline: none;
}

.field input::placeholder {
  color: #7d8478;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203, 163, 93, 0.13);
}

.calculate-button {
  width: 100%;
  min-height: 56px;
  margin-top: 15px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 15px;
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 170ms ease, filter 170ms ease;
}

.calculate-button:hover,
.calculate-button:focus-visible {
  filter: brightness(1.04);
}

.calculate-button b {
  font-size: 21px;
}

.estimate-result {
  margin-top: 15px;
  padding: 17px;
  border-radius: 19px;
  background: var(--gold);
  color: var(--ink);
  animation: result-in 220ms ease both;
}

.estimate-result[hidden] {
  display: none;
}

.estimate-result > small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.estimate-result > strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(34px, 8.8vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.estimate-result > p {
  margin: 10px 0 0;
  color: #424a32;
  font-size: 13px;
  line-height: 1.45;
}

.estimate-whatsapp {
  min-height: 50px;
  margin-top: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 850;
  transition: transform 170ms ease;
}

.estimate-whatsapp b {
  color: var(--gold-light);
  font-size: 20px;
}

.directions {
  margin-top: clamp(70px, 10vw, 120px);
}

.section-heading h2 {
  max-width: 740px;
  margin-top: 9px;
  font-size: clamp(40px, 8.5vw, 72px);
  font-weight: 800;
  line-height: 0.98;
}

.direction-grid {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.direction-card {
  min-height: 160px;
  padding: 20px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: end;
  gap: 15px;
  border-radius: 27px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.furniture-card {
  background: var(--ink);
  color: white;
  box-shadow: 0 22px 55px rgba(17, 19, 15, 0.16);
}

.vacancy-card {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 22px 55px rgba(106, 77, 30, 0.17);
}

.direction-icon {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--gold);
  color: var(--ink);
}

.vacancy-card .direction-icon {
  background: var(--ink);
  color: var(--gold-light);
}

.direction-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.direction-copy small {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.vacancy-card .direction-copy small {
  color: #59401c;
}

.direction-copy strong {
  font-size: clamp(24px, 5.8vw, 34px);
  letter-spacing: -0.04em;
}

.direction-copy > span {
  overflow: hidden;
  color: #adb3a8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vacancy-card .direction-copy > span {
  color: #584831;
}

.direction-card > b {
  color: var(--gold-light);
  font-size: 25px;
  font-weight: 500;
}

.vacancy-card > b {
  color: var(--ink);
}

footer {
  margin-top: 36px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

footer a strong {
  color: var(--ink);
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

.mobile-dock {
  position: fixed;
  z-index: 20;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  min-height: 60px;
  padding: 6px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: rgba(17, 19, 15, 0.94);
  box-shadow: 0 18px 45px rgba(17, 19, 15, 0.27);
  backdrop-filter: blur(18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mobile-dock.is-obscured {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom)));
}

.mobile-dock a {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  color: white;
  font-size: 14px;
  font-weight: 850;
}

.mobile-dock a:first-child {
  background: var(--gold);
  color: var(--ink);
}

.mobile-dock a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (min-width: 521px) and (max-width: 819px) {
  .header-phone {
    min-height: 44px;
    padding: 5px 12px;
    display: grid;
    gap: 2px;
    text-align: right;
  }

  .header-phone small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.11em;
  }

  .header-phone strong {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .page {
    overflow: clip;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 10px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .header-phone {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
  }

  .header-phone small,
  .header-phone strong {
    display: none;
  }

  .header-phone::before {
    content: "☎";
    font-size: 18px;
    line-height: 1;
  }

  .language {
    padding-inline: 10px;
    gap: 7px;
    backdrop-filter: none;
  }

  h1 {
    font-size: clamp(40px, 12.8vw, 52px);
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  .lead {
    font-size: 16px;
  }

  .quick-actions {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .quick-action {
    min-height: 66px;
    padding: 9px 10px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
  }

  .quick-icon {
    width: 38px;
  }

  .quick-action b {
    display: none;
  }

  .quick-action strong {
    font-size: 13px;
  }

  .quick-action small {
    font-size: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .stepper input {
    font-size: 16px;
  }

  .field-wide {
    grid-column: auto;
  }

  .steps-field {
    align-items: flex-start;
    flex-direction: column;
  }

  .stepper {
    width: 100%;
    height: 48px;
    grid-template-columns: minmax(44px, 1fr) 70px minmax(44px, 1fr);
  }

  .stepper input {
    width: 70px;
  }

  .staircase-card figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-card {
    min-height: 145px;
    padding: 17px;
  }

  .calculator-card,
  .estimate-result,
  footer {
    scroll-margin-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .estimate-result > strong {
    overflow-wrap: anywhere;
    font-size: clamp(29px, 9.6vw, 42px);
  }

  .quick-call,
  .mobile-dock,
  .production-badge {
    backdrop-filter: none;
  }

  .mobile-dock {
    box-shadow: 0 10px 26px rgba(17, 19, 15, 0.22);
  }
}

@media (max-width: 359px) {
  .page {
    padding-inline: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    border-radius: 13px;
  }

  .brand-name strong {
    font-size: 12px;
    letter-spacing: 0.11em;
  }

  .brand-name small {
    font-size: 9px;
    letter-spacing: 0.24em;
  }

  .language {
    padding-inline: 8px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 62px;
  }

  .calculator-heading,
  #calculator-form {
    padding-inline: 16px;
  }

  .calculator-heading h2 {
    font-size: 32px;
  }

  .estimate-result {
    padding: 15px;
  }
}

@media (min-width: 820px) {
  .page {
    padding: 24px clamp(28px, 4vw, 56px) 38px;
  }

  .header-phone {
    display: grid;
    gap: 2px;
    text-align: right;
  }

  .header-phone small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .header-phone strong {
    font-size: 14px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    grid-template-areas:
      "copy calculator"
      "visual calculator";
    align-items: start;
    gap: clamp(32px, 5vw, 70px);
  }

  .hero-copy {
    padding-top: 14px;
  }

  h1 {
    font-size: clamp(66px, 7.2vw, 104px);
  }

  .quick-actions {
    max-width: 610px;
  }

  .staircase-card {
    max-width: 700px;
    height: clamp(260px, 29vw, 350px);
  }

  .calculator-card {
    position: sticky;
    top: 24px;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direction-card {
    min-height: 190px;
  }

  .mobile-dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
