:root {
  --paper: #faf7ef;
  --paper-deep: #f0e8d8;
  --ink: #171615;
  --muted: #6f675c;
  --line: #d9d0bd;
  --red: #c44b2f;
  --red-dark: #94351f;
  --accent: #c44b2f;
  --dark: #161616;
  --dark-soft: #24211f;
  --cream: rgba(250, 247, 239, 0.78);
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Satoshi", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

h1, h2, h3, p, a, strong, span, label, button, input, select, textarea {
  overflow-wrap: anywhere;
}

.nav {
  min-height: 76px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 4vw, 56px);
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: height 0.35s ease, box-shadow 0.35s ease;
}

.nav__inner {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.logo-constellation {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 0;
  flex-wrap: nowrap;
}

.logo-word {
  display: inline-block;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.logo-num {
  display: inline-block;
  color: var(--red);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, font-size 0.4s ease;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.nav__logo svg.logo-svg {
  width: 52px;
  height: 52px;
}

.logo-compact {
  display: flex;
  align-items: center;
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  gap: 0;
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.4s ease 0.5s;
}

.compact-circle {
  display: inline-flex;
  align-items: center;
  margin: 0 1px;
}

.compact-4 {
  color: var(--red);
  margin: 0 4px;
}

.compact-r,
.compact-und,
.compact-media {
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.nav__links a:hover { color: var(--ink); }

@keyframes scatterLeft {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  15% { transform: translate(-60px, -30px) scale(1.4); opacity: 1; }
  50% { transform: translate(-500px, -180px) scale(0.8); opacity: 0.6; }
  80% { transform: translate(-900px, -320px) scale(0.3); opacity: 0.2; }
  100% { transform: translate(-1200px, -400px) scale(0); opacity: 0; }
}

@keyframes scatterRight {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  15% { transform: translate(60px, 40px) scale(1.4); opacity: 1; }
  50% { transform: translate(500px, 300px) scale(0.8); opacity: 0.6; }
  80% { transform: translate(900px, 500px) scale(0.3); opacity: 0.2; }
  100% { transform: translate(1200px, 700px) scale(0); opacity: 0; }
}

@keyframes scatterUp {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  15% { transform: translate(80px, -80px) scale(2) rotate(20deg); opacity: 1; }
  50% { transform: translate(200px, -400px) scale(1.5) rotate(-15deg); opacity: 0.8; }
  80% { transform: translate(100px, -700px) scale(0.8) rotate(10deg); opacity: 0.3; }
  100% { transform: translate(0, -1000px) scale(0) rotate(5deg); opacity: 0; }
}

@keyframes scatterCircle {
  0% { transform: scale(1) rotate(0deg); opacity: 1; }
  15% { transform: scale(2.5) rotate(45deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(200deg); opacity: 0.6; }
  80% { transform: scale(0.2) rotate(500deg); opacity: 0.2; }
  100% { transform: scale(0) rotate(720deg); opacity: 0; }
}

@keyframes unscatterLeft {
  0% { transform: translate(-1200px, -400px) scale(0); opacity: 0; }
  30% { transform: translate(-300px, -100px) scale(0.6); opacity: 0.4; }
  65% { transform: translate(-40px, -10px) scale(1.15); opacity: 0.9; }
  85% { transform: translate(8px, 3px) scale(0.97); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes unscatterRight {
  0% { transform: translate(1200px, 700px) scale(0); opacity: 0; }
  30% { transform: translate(300px, 180px) scale(0.6); opacity: 0.4; }
  65% { transform: translate(40px, 10px) scale(1.15); opacity: 0.9; }
  85% { transform: translate(-8px, -3px) scale(0.97); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes unscatterUp {
  0% { transform: translate(0, -1000px) scale(0); opacity: 0; }
  30% { transform: translate(60px, -300px) scale(0.8); opacity: 0.4; }
  65% { transform: translate(10px, 20px) scale(1.2); opacity: 0.9; }
  85% { transform: translate(-3px, -6px) scale(0.96); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

@keyframes unscatterCircle {
  0% { transform: scale(0) rotate(720deg); opacity: 0; }
  30% { transform: scale(0.5) rotate(200deg); opacity: 0.4; }
  65% { transform: scale(1.3) rotate(20deg); opacity: 0.9; }
  85% { transform: scale(0.93) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.nav.scrolled {
  height: 56px;
  box-shadow: 0 12px 28px rgba(23, 22, 21, 0.08);
}

.nav.scrolled #logo-round {
  animation: scatterLeft 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.nav.scrolled #logo-media {
  animation: scatterRight 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.1s;
}

.nav.scrolled #logo-num {
  animation: scatterUp 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.18s;
}

.nav.scrolled #logo-mark {
  animation: scatterCircle 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.05s;
}

.nav.scrolled .logo-constellation {
  visibility: hidden;
  pointer-events: none;
}

.nav.scrolled .logo-compact {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav.unscrolling #logo-round {
  animation: unscatterLeft 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav.unscrolling #logo-media {
  animation: unscatterRight 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.1s;
}

.nav.unscrolling #logo-num {
  animation: unscatterUp 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.2s;
}

.nav.unscrolling #logo-mark {
  animation: unscatterCircle 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.nav.unscrolling .logo-compact {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

main { overflow: hidden; }

.hero {
  width: 100%;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(52px, 7vh, 84px) clamp(20px, 6vw, 76px) clamp(48px, 7vh, 88px);
  background:
    linear-gradient(135deg, rgba(22, 22, 22, 0.95), rgba(22, 22, 22, 0.76)),
    radial-gradient(circle at 24% 22%, rgba(196, 75, 47, 0.28), transparent 34%),
    var(--dark);
  color: var(--paper);
}

.hero > * {
  min-width: 0;
  max-width: 100%;
}

.hero-copy {
  max-width: 900px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 980px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.hero p {
  max-width: 760px;
  color: var(--cream);
  font-size: 19px;
}

.status-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(250, 247, 239, 0.16);
  background: rgba(250, 247, 239, 0.06);
}

.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.08;
}

.status-panel p { margin-bottom: 0; font-size: 16px; }

.client-check,
.approved-view,
.discovery-view,
.request-panel,
.admin-section {
  padding: clamp(44px, 6vw, 76px) clamp(20px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
}

.client-check {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
  background: var(--paper-deep);
}

.section-head {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-head p,
.client-check p,
.discovery-view p {
  color: var(--muted);
  font-size: 17px;
}

.check-form,
.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf1;
  color: var(--ink);
  padding: 14px 15px;
  font: inherit;
  font-size: 16px;
  min-height: 50px;
}

textarea { resize: vertical; }

.full { grid-column: 1 / -1; }

button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  border: 0;
  padding: 13px 18px;
  background: var(--red);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover, .button:hover { background: var(--red-dark); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fffaf1;
  display: flex;
  flex-direction: column;
}

.service-card > span {
  width: fit-content;
  margin-bottom: 18px;
  padding: 4px 8px;
  background: var(--dark);
  color: var(--paper);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.service-card p { color: var(--muted); font-size: 15px; }

dl {
  margin: auto 0 0;
  display: grid;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

dd { margin: 0; font-weight: 700; }

.discovery-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 24px;
  align-items: center;
  background: var(--dark-soft);
  color: var(--paper);
}

.discovery-view p { color: var(--cream); }

.time-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-option {
  min-height: 46px;
  border: 1px solid rgba(250, 247, 239, 0.28);
  background: rgba(250, 247, 239, 0.08);
  color: var(--paper);
}

.time-option:hover,
.time-option.is-selected {
  border-color: var(--red);
  background: var(--red);
}

.time-picker p,
.time-picker .button {
  grid-column: 1 / -1;
}

.time-picker p {
  margin: 4px 0 2px;
  font-size: 14px;
}

.request-result,
.empty-state,
.contact-summary {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid var(--red);
  background: #fffaf1;
}

.request-result p { margin-bottom: 0; color: var(--muted); }

.contact-summary {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-summary p {
  margin-bottom: 0;
  color: var(--muted);
}

.data-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fffaf1;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--dark);
  color: var(--paper);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

td span { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .nav {
    height: auto;
    min-height: 88px;
  }
  .nav__inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .logo-constellation {
    gap: 8px;
  }
  .nav__logo svg.logo-svg {
    width: 34px;
    height: 34px;
  }
  .logo-word {
    font-size: 0.92rem;
  }
  .logo-num {
    font-size: 1.8rem;
  }
  .hero, .client-check, .discovery-view { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .nav {
    padding: 14px 20px;
  }
  .nav__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .logo-compact {
    display: none;
  }
  .nav.scrolled .logo-constellation {
    visibility: visible;
    pointer-events: auto;
  }
  .nav.scrolled #logo-round,
  .nav.scrolled #logo-media,
  .nav.scrolled #logo-num,
  .nav.scrolled #logo-mark,
  .nav.unscrolling #logo-round,
  .nav.unscrolling #logo-media,
  .nav.unscrolling #logo-num,
  .nav.unscrolling #logo-mark {
    animation: none;
  }
  .nav__links {
    gap: 12px;
  }
  .hero {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 56px 22px 48px;
    gap: 28px;
  }
  h1 {
    font-size: 34px;
    line-height: 1.06;
    max-width: calc(100vw - 44px);
  }
  .hero p {
    max-width: 100%;
    font-size: 17px;
  }
  .status-panel { padding: 22px; }
  .check-form, .request-form, .service-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

@media (max-width: 420px) {
  .hero {
    padding-left: 22px;
    padding-right: 22px;
  }
  h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .status-panel strong { font-size: 24px; }
}
