* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: #0f172a;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  color: #dbeafe;
}

.nav a:hover {
  color: #facc15;
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e3a8a 100%);
  color: #ffffff;
  padding: 88px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 44px;
  align-items: center;
}

.tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde68a;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 55px;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -1.3px;
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  color: #e5e7eb;
  max-width: 780px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  background: #facc15;
  color: #111827;
}

.btn-primary:hover {
  background: #fde047;
}

.btn-secondary {
  background: #ffffff;
  color: #111827;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.hero-card {
  background: #ffffff;
  color: #111827;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-card h3 {
  font-size: 24px;
  margin: 0 0 18px;
}

.small-title {
  color: #1e3a8a;
  font-weight: 800;
  margin: 0 0 8px !important;
}

.hero-card p {
  color: #374151;
  font-size: 16px;
  margin-bottom: 22px;
}

.status-row {
  border-top: 1px solid #e5e7eb;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-row span {
  color: #6b7280;
}

.green {
  color: #15803d;
}

.section {
  padding: 76px 0;
}

.gray {
  background: #f4f6f8;
}

h2 {
  font-size: 39px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 0 0 16px;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.55;
  color: #4b5563;
  max-width: 790px;
  margin: 0 0 34px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.card h3,
.step h3,
.trust-item h3 {
  font-size: 21px;
  margin: 0 0 10px;
}

.card p,
.step p,
.trust-item p,
.model-box p,
.request-type p {
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.step span {
  width: 38px;
  height: 38px;
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.request-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.request-type {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 5px solid #1e3a8a;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.request-type strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
}

.trust-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.trust-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.model-section {
  background: #ffffff;
}

.model-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.model-box > div {
  background: #0f172a;
  color: #ffffff;
  border-radius: 18px;
  padding: 26px;
}

.model-box h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.model-box p {
  color: #d1d5db;
}

.request-section {
  background: #0f172a;
  color: #ffffff;
}

.request-section .section-subtitle {
  color: #d1d5db;
}

.request-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.request-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.request-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.request-step {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.request-step.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.request-step-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: #1e3a8a;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.btn-step.secondary {
  background: #64748b;
}

.btn-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-hidden {
  display: none !important;
}

.form-section-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 15px 14px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1e3a8a;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.file-field {
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.file-field input {
  padding: 12px;
  background: #f8fafc;
}

.file-field small {
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 15px 18px;
  background: #facc15;
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

button:hover {
  background: #fde047;
}

.form-note {
  color: #15803d;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

.site-footer {
  background: #020617;
  color: #ffffff;
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #1e3a8a 100%);
}

.auth-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.auth-card h1 {
  margin: 8px 0 10px;
  font-size: 30px;
  color: #111827;
}

.auth-card p {
  color: #4b5563;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 16px;
}

.auth-tab {
  background: #e5e7eb;
  color: #111827;
}

.auth-tab.active {
  background: #1e3a8a;
  color: #ffffff;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.client-page {
  padding: 38px 0 70px;
}

.client-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.client-head h1 {
  margin: 0 0 8px;
  font-size: 38px;
}

.client-head p,
.muted {
  color: #64748b;
}

.client-requests {
  display: grid;
  gap: 18px;
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.client-profile {
  margin-bottom: 18px;
}

.client-notices {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.client-notice {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 10px 12px;
  font-weight: 800;
}

.client-profile-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.client-profile-box summary {
  cursor: pointer;
  font-weight: 900;
}

.client-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.client-profile-grid textarea {
  min-height: 70px;
}

.client-summary-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.client-summary-item strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.client-summary-item span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.client-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.client-filter {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.client-filter.active,
.client-filter:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.client-request-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.client-upload-box {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.client-upload-box input {
  background: #ffffff;
  padding: 10px;
  font-size: 14px;
}

.client-upload-box button {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.client-upload-box span {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 13px;
}

.client-request-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.client-request-top h2 {
  font-size: 24px;
  margin: 0 0 6px;
}

.client-status {
  background: #dbeafe;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
  white-space: nowrap;
}

.client-status.waiting_client,
.client-status.clarify {
  background: #fef3c7;
  color: #92400e;
}

.client-status.offer_ready,
.client-status.closed {
  background: #dcfce7;
  color: #166534;
}

.client-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.client-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.timeline-step {
  display: grid;
  gap: 7px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.timeline-step span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.timeline-step.done {
  color: #166534;
}

.timeline-step.done span {
  background: #22c55e;
}

.timeline-step p {
  margin: 0;
}

.client-request-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}

.client-alert {
  border-radius: 8px;
  padding: 12px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.client-alert.success {
  background: #dcfce7;
  color: #166534;
}

.client-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.client-repeat-button,
.client-rating-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 13px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.client-documents {
  display: grid;
  gap: 10px;
}

.client-document,
.client-rating {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.client-document a,
.client-document strong {
  display: block;
  color: #1e3a8a;
  font-weight: 900;
  text-decoration: none;
}

.client-document span {
  display: block;
  color: #64748b;
  margin-top: 5px;
}

.client-rating {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

.client-offers {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.client-offers h3 {
  margin: 0;
}

.client-offer {
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  background: #f0fdf4;
}

.client-offer strong,
.client-offer span {
  display: block;
}

.client-offer span {
  margin-top: 4px;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
}

.client-offer p {
  margin: 8px 0 0;
}

.chat-box {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.chat-box h3 {
  margin: 0 0 12px;
}

.chat-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-message {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}

.chat-message.admin {
  background: #eff6ff;
}

.chat-message.client {
  background: #f0fdf4;
}

.chat-message span {
  display: block;
  margin: 3px 0 6px;
  color: #64748b;
  font-size: 12px;
}

.chat-message p {
  margin: 0;
}

.client-chat-input {
  min-height: 90px;
  margin-bottom: 10px;
}

.visible {
  display: block;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-inner,
  .request-grid,
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 43px;
  }

  .steps,
  .cards-3,
  .model-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .hero {
    padding: 58px 0;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p,
  .section-subtitle {
    font-size: 16px;
  }

  h2 {
    font-size: 30px;
  }

  .section {
    padding: 54px 0;
  }

  .steps,
  .cards-3,
  .request-types,
  .model-box,
  .form-row,
  .request-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }

  .client-head,
  .client-request-top {
    flex-direction: column;
  }

  .client-request-grid {
    grid-template-columns: 1fr;
  }

  .client-summary,
  .client-timeline,
  .client-profile-grid,
  .client-rating {
    grid-template-columns: 1fr;
  }
}
.client-requests { grid-template-columns: minmax(0, 1fr); }
.client-upload-box { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.client-upload-box input, .client-request-card, .client-profile-grid > * { min-width: 0; max-width: 100%; }
