:root {
  --ewcp-bg: #f5f7f4;
  --ewcp-panel: #ffffff;
  --ewcp-panel-soft: #eef4f0;
  --ewcp-text: #17211b;
  --ewcp-muted: #647169;
  --ewcp-border: #d7e1da;
  --ewcp-green: #235f38;
  --ewcp-green-2: #2f8a4a;
  --ewcp-blue: #1f5f8f;
  --ewcp-amber: #a86611;
  --ewcp-shadow: 0 18px 44px rgba(23, 33, 27, 0.09);
  --ewcp-shadow-soft: 0 10px 28px rgba(23, 33, 27, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--ewcp-bg);
  color: var(--ewcp-text);
}

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

.ewcp-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.ewcp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(215, 225, 218, 0.86);
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(14px);
}

.ewcp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ewcp-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ewcp-green), var(--ewcp-green-2));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ewcp-brand strong,
.ewcp-brand small {
  display: block;
}

.ewcp-brand strong {
  font-size: 18px;
  line-height: 1.15;
}

.ewcp-brand small {
  margin-top: 2px;
  color: var(--ewcp-muted);
  font-size: 12px;
  font-weight: 600;
}

.ewcp-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ewcp-nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ewcp-muted);
  font-size: 13px;
  font-weight: 700;
}

.ewcp-nav a:hover {
  background: #fff;
  color: var(--ewcp-text);
}

.ewcp-hero {
  padding: 56px 0 46px;
  background:
    linear-gradient(120deg, rgba(35, 95, 56, 0.09) 0%, rgba(35, 95, 56, 0) 36%),
    linear-gradient(180deg, #fbfcfb 0%, var(--ewcp-bg) 100%);
}

.ewcp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 34px;
  align-items: center;
}

.ewcp-hero-copy {
  min-width: 0;
}

.ewcp-kicker,
.ewcp-section-label,
.ewcp-price-label {
  margin: 0;
  color: var(--ewcp-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ewcp-hero h1 {
  margin: 14px 0 8px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
}

.ewcp-subtitle {
  margin: 0 0 22px;
  color: var(--ewcp-green);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.ewcp-lead {
  max-width: 680px;
  margin: 0;
  color: #334139;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 500;
}

.ewcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ewcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.ewcp-btn-primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--ewcp-green), var(--ewcp-green-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(35, 95, 56, 0.2);
}

.ewcp-btn-secondary {
  border: 1px solid var(--ewcp-border);
  background: #fff;
  color: var(--ewcp-text);
}

.ewcp-hero-visual {
  min-width: 0;
}

.ewcp-analysis-card,
.ewcp-price-card,
.ewcp-help-grid article,
.ewcp-steps li {
  border: 1px solid var(--ewcp-border);
  background: var(--ewcp-panel);
  box-shadow: var(--ewcp-shadow-soft);
}

.ewcp-analysis-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--ewcp-shadow);
}

.ewcp-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ewcp-analysis-head span,
.ewcp-upload-row small,
.ewcp-price-card span,
.ewcp-section-head p,
.ewcp-contact p {
  color: var(--ewcp-muted);
}

.ewcp-analysis-head span,
.ewcp-upload-row small {
  font-size: 13px;
  font-weight: 700;
}

.ewcp-analysis-head strong {
  color: var(--ewcp-green);
  font-size: 13px;
  font-weight: 800;
}

.ewcp-upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--ewcp-border);
  border-radius: 12px;
  background: var(--ewcp-panel-soft);
}

.ewcp-file-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: var(--ewcp-blue);
  font-size: 11px;
  font-weight: 900;
}

.ewcp-upload-row strong,
.ewcp-upload-row small {
  display: block;
}

.ewcp-upload-row strong {
  margin-bottom: 3px;
  font-size: 14px;
}

.ewcp-status {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.ewcp-status.is-progress {
  background: #fff5df;
  color: var(--ewcp-amber);
}

.ewcp-checklist {
  display: grid;
  gap: 10px;
}

.ewcp-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ee;
}

.ewcp-check-item:last-child {
  border-bottom: 0;
}

.ewcp-check-item span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.ewcp-check-item.is-ok span {
  background: var(--ewcp-green-2);
}

.ewcp-check-item.is-warning span {
  background: var(--ewcp-amber);
}

.ewcp-check-item p {
  margin: 0;
  color: #34423a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.ewcp-section {
  padding: 54px 0;
}

.ewcp-section-soft {
  background: #eef4f0;
}

.ewcp-section-head {
  max-width: 760px;
  margin-bottom: 22px;
}

.ewcp-section-head h2,
.ewcp-contact h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

.ewcp-section-head p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.65;
}

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

.ewcp-help-grid article {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 12px;
}

.ewcp-help-grid span {
  width: max-content;
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: #e7f2e9;
  color: var(--ewcp-green);
  font-size: 12px;
  font-weight: 900;
}

.ewcp-help-grid h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ewcp-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ewcp-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 12px;
}

.ewcp-steps li > span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ewcp-green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.ewcp-steps h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.ewcp-steps p {
  margin: 0;
  color: var(--ewcp-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ewcp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.ewcp-price-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 14px;
}

.ewcp-price-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.ewcp-price-card span {
  font-size: 14px;
  line-height: 1.55;
}

.ewcp-contact {
  padding: 46px 0;
  background: #15251b;
  color: #fff;
}

.ewcp-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ewcp-contact .ewcp-section-label {
  color: #9ad5a7;
}

.ewcp-contact h2 {
  color: #fff;
}

.ewcp-contact p {
  margin: 10px 0 0;
  max-width: 640px;
  line-height: 1.65;
}

@media (max-width: 940px) {
  .ewcp-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .ewcp-nav {
    justify-content: flex-start;
  }

  .ewcp-hero-grid,
  .ewcp-split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .ewcp-container {
    width: min(100% - 28px, 1160px);
  }

  .ewcp-header {
    position: static;
    padding: 14px;
  }

  .ewcp-nav {
    display: none;
  }

  .ewcp-hero {
    padding: 38px 0 34px;
  }

  .ewcp-hero h1 {
    font-size: 38px;
  }

  .ewcp-subtitle {
    font-size: 17px;
  }

  .ewcp-lead {
    font-size: 18px;
  }

  .ewcp-actions,
  .ewcp-contact-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .ewcp-btn {
    width: 100%;
  }

  .ewcp-upload-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ewcp-status {
    grid-column: 1 / -1;
    width: max-content;
  }

  .ewcp-help-grid {
    grid-template-columns: 1fr;
  }

  .ewcp-section {
    padding: 42px 0;
  }

  .ewcp-section-head h2,
  .ewcp-contact h2 {
    font-size: 25px;
  }
}

.ewcp-project-hero .ewcp-analysis-card {
  align-self: stretch;
}

.ewcp-muted-text {
  margin: 0;
  color: var(--ewcp-muted);
  font-size: 15px;
  line-height: 1.65;
}

.ewcp-project-form {
  margin: 0;
}

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

.ewcp-form-grid label,
.ewcp-document-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ewcp-border);
  border-radius: 12px;
  background: var(--ewcp-panel);
  box-shadow: var(--ewcp-shadow-soft);
}

.ewcp-form-grid label span,
.ewcp-document-section legend,
.ewcp-result-card span {
  color: var(--ewcp-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ewcp-form-grid select,
.ewcp-form-grid input {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--ewcp-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ewcp-text);
  font: inherit;
}

.ewcp-form-grid select:focus,
.ewcp-form-grid input:focus,
.ewcp-check-row input:focus-visible,
.ewcp-btn:focus-visible {
  outline: 3px solid rgba(31, 95, 143, 0.28);
  outline-offset: 2px;
}

.ewcp-document-grid,
.ewcp-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ewcp-document-section {
  align-content: start;
  margin: 0;
}

.ewcp-document-section legend {
  padding: 0 6px;
}

.ewcp-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334139;
  font-size: 14px;
  line-height: 1.45;
}

.ewcp-check-row input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.ewcp-results-section {
  padding-top: 20px;
}

.ewcp-result-card,
.ewcp-pdf-document {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--ewcp-border);
  border-radius: 12px;
  background: var(--ewcp-panel);
  box-shadow: var(--ewcp-shadow-soft);
}

.ewcp-result-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.ewcp-result-card p,
.ewcp-result-card ul {
  margin: 0;
  color: var(--ewcp-muted);
  line-height: 1.55;
}

.ewcp-result-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.ewcp-recommendation {
  border-color: rgba(35, 95, 56, 0.38);
  background: #f8fbf8;
}

.ewcp-package-preview {
  margin-bottom: 18px;
}

.ewcp-pdf-document {
  display: grid;
  gap: 16px;
  background: #fff;
}

.ewcp-pdf-document h2,
.ewcp-pdf-document h3 {
  margin: 0;
}

.ewcp-pdf-document ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #334139;
}

button.ewcp-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 760px) {
  .ewcp-form-grid,
  .ewcp-document-grid,
  .ewcp-result-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .ewcp-header,
  .ewcp-hero,
  .ewcp-project-form,
  .ewcp-results-section,
  #package .ewcp-section-head,
  #printPackageBtn {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .ewcp-section,
  .ewcp-container {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ewcp-pdf-document {
    border: 0;
    box-shadow: none;
  }
}
