.page-tools-contract {
  background: #f7f9fc;
}

.tc-hero {
  background: linear-gradient(180deg, #f4f8fd 0%, #eaf2fb 100%);
  border-bottom: 1px solid #e5ebf3;
  padding: var(--hero-pad-top) 0 var(--hero-pad-bottom-b);
}

.tc-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: var(--hero-gap);
  align-items: start;
}

.tc-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 var(--hero-h1-mb);
}

.tc-hero h1 {
  margin: 0;
  font-size: var(--hero-h1-size);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--navy-deep);
  line-height: 1.2;
}

.tc-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.tc-save {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tc-save:hover {
  border-color: #9cbcff;
  color: var(--blue);
}

.tc-hero__copy > p {
  margin: 0;
  color: var(--hero-lead-color);
  font-size: var(--hero-lead-size);
  line-height: 1.65;
}

.tc-hero__visual {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.tc-paper {
  width: 72px;
  height: 92px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe3ee;
  box-shadow: 0 10px 22px rgba(28, 55, 90, 0.1);
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 12px;
}

.tc-paper span {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #d7e2f0;
}

.tc-paper span:first-child {
  width: 58%;
  background: #9cbcff;
}

.tc-hero__quote {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #3b4a63;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.tc-main {
  padding: var(--main-pad-top) 0 var(--main-pad-bottom);
}

.tc-main__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

.tc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--main-gap);
  align-items: start;
}

.tc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
}

.tc-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-deep);
}

.tc-card__lead {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7480;
}

.tc-fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.tc-fieldset legend {
  padding: 0 0 10px;
  font-size: 13.5px;
  font-weight: 800;
  color: #334155;
}

.tc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tc-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

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

.tc-field span {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.tc-field em {
  color: #e03131;
  font-style: normal;
}

.tc-field input,
.tc-field select {
  width: 100%;
  height: 42px;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: #243044;
  background: #fff;
  outline: none;
}

.tc-field input:focus,
.tc-field select:focus {
  border-color: #9cbcff;
}

.tc-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tc-print {
  height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.tc-print:hover {
  border-color: #9cbcff;
  color: var(--blue);
}

.tc-preview__paper {
  min-height: 420px;
  padding: 22px 20px;
  border: 1px solid #eef1f5;
  border-radius: 12px;
  background: #fafbfd;
  font-size: 13.5px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
}

.tc-preview__paper h3 {
  margin: 0 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-deep);
}

@media (max-width: 1199px) {
  .tc-hero__inner,
  .tc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tc-hero__visual {
    display: none;
  }

  .tc-save {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .tc-grid {
    grid-template-columns: 1fr;
  }

  .tc-card {
    padding: 18px 16px;
  }
}

@media print {
  .header,
  .footer,
  .tc-hero,
  .tc-card:not(.tc-preview),
  .tc-print,
  .promo-banner {
    display: none !important;
  }

  .tc-layout,
  .tc-preview,
  .tc-preview__paper {
    display: block;
    border: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
  }
}
