:root {
  --ink: #151513;
  --ink-2: #24231f;
  --soft-ink: #454139;
  --paper: #f5f1e8;
  --paper-2: #ebe4d6;
  --line: rgba(255, 255, 255, 0.16);
  --dark-line: rgba(21, 21, 19, 0.14);
  --gold: #c79d5b;
  --sage: #8da38d;
  --terracotta: #b76846;
  --white: #fffaf0;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(20, 20, 17, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body.menu-open {
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), transparent 58%), var(--ink);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.35vw, 22px);
  font-size: 14px;
  color: rgba(255, 250, 240, 0.78);
}

.nav a:hover,
.header-action:hover {
  color: var(--white);
}

.header-action {
  padding: 11px 17px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  font-size: 14px;
  color: rgba(255, 250, 240, 0.86);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action.muted {
  border-color: transparent;
  background: rgba(255, 250, 240, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: clamp(68px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-light {
  background: var(--paper-2);
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 15, 12, 0.94) 0%, rgba(16, 15, 12, 0.72) 42%, rgba(16, 15, 12, 0.34) 100%),
    linear-gradient(0deg, rgba(16, 15, 12, 0.82), rgba(16, 15, 12, 0.1) 45%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: 142px clamp(18px, 4vw, 56px) 58px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 760px;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  max-width: 820px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #17130d;
}

.button-ghost {
  border-color: rgba(255, 250, 240, 0.26);
  color: var(--white);
  background: rgba(255, 250, 240, 0.06);
}

.button-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background:
    linear-gradient(currentColor, currentColor) 50% 50% / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 50% 50% / 2px 12px no-repeat;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.hero-panel {
  justify-self: end;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(21, 21, 19, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-top,
.hero-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hero-panel-top span,
.hero-stats span,
.dash-card span,
.crm-board span,
.case-card span,
.package-label,
.result-top span,
.result-metrics span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 13px;
}

.progress-ring {
  --size: 172px;
  width: var(--size);
  height: var(--size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 34px auto;
  border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(255, 250, 240, 0.13) 0);
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--ink-2);
}

.progress-ring span,
.progress-ring small {
  position: relative;
  z-index: 1;
}

.progress-ring span {
  font-size: 42px;
  font-weight: 850;
  line-height: 0.95;
}

.progress-ring small {
  margin-top: 0;
  color: rgba(255, 250, 240, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-stats {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  margin-top: 6px;
}

.mini-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
}

.mini-timeline span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: rgba(255, 250, 240, 0.54);
}

.mini-timeline .done {
  border-color: rgba(199, 157, 91, 0.46);
  color: var(--gold);
}

.mini-timeline .active {
  background: rgba(199, 157, 91, 0.16);
  color: var(--white);
}

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

.trust-band div {
  min-height: 138px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--dark-line);
}

.trust-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.trust-band span {
  color: var(--soft-ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--soft-ink);
  font-size: 21px;
  line-height: 1.58;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-heading.compact {
  max-width: 940px;
}

.section-heading.compact p:last-child {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.7);
  font-size: 18px;
  line-height: 1.58;
}

.package-grid,
.case-grid,
.crm-board,
.proof-grid,
.reviews-grid,
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package-card,
.case-card,
.crm-board article,
.proof-grid article,
.reviews-grid article,
.ba-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.proof-section {
  background: var(--paper);
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  background: var(--white);
}

.proof-grid span,
.ba-card span {
  color: var(--terracotta);
  font-weight: 850;
  font-size: 13px;
}

.proof-grid h3 {
  margin: 24px 0 14px;
}

.proof-grid p,
.ba-card p,
.reviews-grid p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.package-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--dark-line);
  background: var(--white);
}

.package-card.featured {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.package-card p {
  color: var(--soft-ink);
  line-height: 1.55;
}

.package-card.featured p {
  color: rgba(255, 250, 240, 0.72);
}

.package-card strong {
  color: var(--terracotta);
  font-size: 22px;
}

.calculator-section {
  border-top: 1px solid var(--line);
}

.calculator-app {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.calc-form,
.calc-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
}

.calc-form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-group {
  display: grid;
  gap: 9px;
}

.calc-group label,
.calc-fieldset legend {
  color: rgba(255, 250, 240, 0.72);
  font-size: 14px;
  font-weight: 780;
}

.calc-group input,
.calc-group select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 15, 13, 0.66);
  color: var(--white);
}

.calc-group input[type="range"] {
  min-height: 26px;
  padding: 0;
  accent-color: var(--gold);
}

.calc-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.calc-fieldset legend {
  margin-bottom: 10px;
}

.segmented,
.option-grid {
  display: grid;
  gap: 8px;
}

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

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

.segmented button,
.option-grid button {
  min-height: 52px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 15, 13, 0.42);
  color: rgba(255, 250, 240, 0.72);
  cursor: pointer;
}

.option-grid button {
  display: grid;
  gap: 5px;
  padding: 14px;
  text-align: left;
}

.option-grid span {
  font-size: 13px;
  color: rgba(255, 250, 240, 0.54);
}

.segmented .is-selected,
.option-grid .is-selected {
  border-color: var(--gold);
  background: rgba(199, 157, 91, 0.16);
  color: var(--white);
}

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

.check-list label {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 250, 240, 0.78);
  background: rgba(15, 15, 13, 0.42);
}

.check-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.calc-result {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.result-top strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.result-metrics div,
.estimate-item,
.crm-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 15, 13, 0.36);
}

.result-metrics div {
  padding: 14px;
}

.result-metrics strong {
  display: block;
  margin-top: 5px;
}

.estimate-list {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.estimate-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 14px;
}

.estimate-item span {
  color: rgba(255, 250, 240, 0.68);
}

.crm-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 14px;
}

.crm-preview p {
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
  line-height: 1.45;
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(141, 163, 141, 0.14);
}

.full {
  width: 100%;
}

.small-note {
  margin: 12px 0 0;
  color: rgba(255, 250, 240, 0.54);
  font-size: 13px;
  line-height: 1.45;
}

.control-section {
  background: var(--paper);
}

.before-after {
  border-top: 1px solid var(--line);
}

.before-after-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ba-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.06);
}

.ba-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ba-single {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.ba-single img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.ba-images figure {
  position: relative;
  margin: 0;
  min-height: 280px;
  overflow: hidden;
}

.ba-images img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.ba-images figcaption {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(21, 21, 19, 0.78);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ba-label {
  position: absolute;
  top: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(21, 21, 19, 0.78);
  color: var(--white) !important;
  font-size: 12px !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ba-label.before {
  left: 16px;
}

.ba-label.after {
  left: calc(50% + 16px);
}

.ba-card > div:last-child {
  padding: 22px;
}

.ba-card h3 {
  margin: 10px 0 12px;
  color: var(--white);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 540px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #211f1a;
  color: var(--white);
  box-shadow: var(--shadow);
}

.dash-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: #171613;
}

.dash-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 850;
}

.dash-nav {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255, 250, 240, 0.64);
  text-align: left;
  padding: 0 12px;
}

.dash-nav.active {
  border-color: rgba(199, 157, 91, 0.42);
  background: rgba(199, 157, 91, 0.14);
  color: var(--white);
}

.dash-main {
  padding: 24px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dash-header span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 250, 240, 0.62);
}

.dash-header strong {
  font-size: 24px;
}

.dash-badge {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(141, 163, 141, 0.48);
  border-radius: var(--radius);
  color: var(--white) !important;
  background: rgba(141, 163, 141, 0.15);
}

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

.dash-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
}

.dash-card.wide {
  grid-column: span 2;
}

.dash-card strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

.dash-card p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.66);
  line-height: 1.45;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.calendar-strip b {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 250, 240, 0.05);
}

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

.photo-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.comparison {
  overflow-x: auto;
}

.compare-table {
  min-width: 760px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  border-bottom: 1px solid var(--dark-line);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span,
.compare-row strong {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid var(--dark-line);
}

.compare-row span:last-child,
.compare-row strong:last-child {
  border-right: 0;
}

.compare-row.head {
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.compare-row strong {
  color: #315b42;
}

.case-grid {
  align-items: stretch;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--dark-line);
  background: var(--white);
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-card div {
  padding: 22px;
}

.case-card span {
  color: var(--terracotta);
}

.case-card p {
  margin-bottom: 0;
  color: var(--soft-ink);
}

.reviews-section {
  background: var(--paper-2);
}

.reviews-grid {
  align-items: stretch;
}

.reviews-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--dark-line);
  background: var(--white);
}

.review-top {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.review-top strong {
  font-size: 22px;
}

.review-top span {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 800;
}

.crm-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-board article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.06);
}

.crm-board strong {
  display: block;
  margin: 14px 0;
  font-size: 46px;
}

.crm-board p {
  margin: 0;
  color: rgba(255, 250, 240, 0.66);
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--dark-line);
  background: var(--paper);
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  margin-top: 5px;
  color: var(--soft-ink);
}

.footer a {
  font-weight: 800;
  color: var(--terracotta);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.section-actions span {
  color: var(--soft-ink);
  font-weight: 760;
}

.section-actions.dark span {
  color: rgba(255, 250, 240, 0.68);
}

.contacts-section {
  background: var(--paper);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.contacts-copy p {
  max-width: 680px;
  color: var(--soft-ink);
  font-size: 19px;
  line-height: 1.58;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 850;
}

.contact-methods a {
  color: var(--terracotta);
}

.contact-methods span {
  color: var(--soft-ink);
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 70px rgba(21, 21, 19, 0.12);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 780;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.portal-page {
  min-height: 100vh;
  background: #171613;
  color: var(--white);
}

.portal-shell {
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 520px);
  gap: clamp(24px, 6vw, 90px);
  align-items: center;
  padding: clamp(22px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.92), rgba(17, 16, 13, 0.62)),
    url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.portal-brand {
  align-self: start;
  color: var(--white);
}

.login-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 21, 19, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
}

.login-card p {
  color: rgba(255, 250, 240, 0.72);
  line-height: 1.55;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 14px;
  font-weight: 760;
}

.login-card input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.08);
  color: var(--white);
}

.login-hint,
.form-error {
  font-size: 13px;
}

.login-hint {
  color: rgba(255, 250, 240, 0.58);
}

.form-error {
  margin: 0;
  color: #ffb0a0 !important;
}

.portal-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.portal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #12110f;
}

.portal-nav {
  display: grid;
  gap: 8px;
}

.portal-nav button,
.logout-button,
.mini-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.portal-nav button {
  padding: 0 12px;
  color: rgba(255, 250, 240, 0.68);
  text-align: left;
  background: transparent;
}

.portal-nav button.active {
  border-color: rgba(199, 157, 91, 0.36);
  background: rgba(199, 157, 91, 0.14);
  color: var(--white);
}

.logout-button {
  margin-top: 16px;
  padding: 0 14px;
  color: rgba(255, 250, 240, 0.72);
  background: rgba(255, 250, 240, 0.08);
}

.portal-content {
  min-width: 0;
  padding: clamp(20px, 4vw, 42px);
  background: var(--paper);
  color: var(--ink);
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-topbar span {
  display: block;
  margin-bottom: 8px;
  color: var(--terracotta);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.portal-topbar h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 4vw, 54px);
}

.portal-content .button-ghost {
  color: var(--ink);
  border-color: var(--dark-line);
  background: var(--white);
}

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.portal-kpis article,
.portal-card {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--white);
}

.portal-kpis article {
  min-height: 150px;
  padding: 20px;
}

.portal-kpis span,
.card-title span {
  color: var(--soft-ink);
  font-size: 13px;
}

.portal-kpis strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(28px, 3vw, 42px);
}

.portal-kpis p,
.portal-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-card {
  min-height: 210px;
  padding: 20px;
}

.portal-card.large {
  grid-column: span 2;
}

.card-title {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.card-title strong {
  font-size: 22px;
}

.project-steps {
  display: grid;
  gap: 10px;
}

.project-steps div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.project-steps b {
  color: var(--terracotta);
}

.project-steps small {
  color: var(--soft-ink);
}

.project-steps .active {
  border-color: rgba(199, 157, 91, 0.72);
  background: rgba(199, 157, 91, 0.13);
}

.project-steps .done {
  background: rgba(141, 163, 141, 0.14);
}

.mini-button {
  margin-top: 18px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.clean-list,
.payment-list,
.load-list,
.project-table,
.pipeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.payment-list span,
.load-list span,
.project-table div,
.pipeline div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--paper);
}

.clean-list span,
.payment-list em,
.load-list em,
.project-table span,
.project-table em {
  color: var(--soft-ink);
  font-style: normal;
}

.portal-photos img {
  min-height: 170px;
}

.pipeline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pipeline div {
  min-height: 132px;
  display: grid;
  align-content: space-between;
}

.pipeline b {
  font-size: 38px;
}

.project-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 130px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    position: fixed;
    top: 66px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(18, 17, 15, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    justify-self: auto;
  }

  body.menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.05);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .intro-grid,
  .calculator-app,
  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: start;
  }

  .trust-band,
  .package-grid,
  .case-grid,
  .crm-board,
  .proof-grid,
  .reviews-grid,
  .before-after-grid,
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .calc-result {
    position: static;
  }

  .dash-sidebar {
    grid-template-columns: repeat(6, max-content);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dash-logo {
    margin-bottom: 0;
  }

  .login-screen,
  .portal-app {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    height: auto;
    gap: 16px;
  }

  .portal-nav {
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
  }

  .portal-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card.large {
    grid-column: auto;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 10px 14px;
  }

  .header-action {
    padding: 10px 12px;
  }

  .header-links {
    gap: 6px;
  }

  .header-action.muted {
    display: none;
  }

  .hero-inner {
    padding: 104px 18px 36px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-text,
  .intro-grid p:last-child {
    font-size: 17px;
  }

  .trust-band,
  .package-grid,
  .case-grid,
  .crm-board,
  .proof-grid,
  .reviews-grid,
  .before-after-grid,
  .calc-row,
  .segmented,
  .option-grid,
  .check-list,
  .result-metrics,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .ba-images {
    grid-template-columns: 1fr;
  }

  .proof-grid article,
  .reviews-grid article {
    min-height: auto;
  }

  .dash-card.wide {
    grid-column: auto;
  }

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

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

  .login-screen {
    padding: 18px;
  }

  .portal-brand {
    align-self: auto;
  }

  .portal-topbar {
    flex-direction: column;
  }

  .portal-kpis,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .project-steps div,
  .project-table div {
    grid-template-columns: 1fr;
  }

  .clean-list li,
  .payment-list span,
  .load-list span {
    flex-direction: column;
  }
}
