/* ==========================================================================
   CONTRACTS PAGE STYLES (Стили страницы «Договорная работа»)
   ========================================================================== */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 60px 0;
}

.section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  margin: 8px 0 32px;
  line-height: 1.3;
}

.section__lead {
  font-size: 15px;
  line-height: 1.6;
  color: rgb(43, 36, 31);
  margin: 12px 0 0;
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(156, 130, 104);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Hero-секция */
.page-hero {
  padding: 40px 0 60px;
}

.crumbs {
  font-size: 12px;
  color: rgb(138, 131, 113);
  margin-bottom: 24px;
}

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

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs span {
  margin: 0 6px;
  color: rgb(180, 170, 155);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  line-height: 1.3;
  margin: 0 0 16px;
}

.page-hero__lead {
  font-size: 16px;
  line-height: 1.6;
  color: rgb(43, 36, 31);
  max-width: 58ch;
  margin: 0;
}

.hero__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.hero__tags span {
  font-size: 12.5px;
  background: rgb(231, 223, 210);
  color: rgb(74, 70, 54);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.page-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.page-hero__note {
  font-size: 12.5px;
  color: rgb(138, 131, 113);
  margin: 0;
}

/* Карточка сравнения переквалификации (Recl) */
.recl {
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 12px;
  padding: 24px;
  margin: 0;
  box-shadow: 0 4px 20px rgba(38, 34, 32, 0.04);
}

.recl__head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(138, 131, 113);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(221, 211, 194);
  margin-bottom: 14px;
}

.recl__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgb(221, 211, 194);
  font-size: 13px;
}

.recl__row:last-of-type {
  border-bottom: none;
}

.recl__doc, .recl__fact {
  background: rgb(246, 240, 230);
  border: 1px solid rgb(221, 211, 194);
  padding: 10px 14px;
  border-radius: 8px;
  color: rgb(38, 34, 32);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recl__doc {
  font-weight: 500;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.recl__doc svg {
  color: rgb(156, 130, 104);
  flex-shrink: 0;
}

.recl__fact {
  font-weight: 600;
  color: rgb(156, 130, 104);
}

.recl__fact small {
  font-size: 11px;
  font-weight: 400;
  color: rgb(107, 101, 88);
}

.recl__arrow {
  color: rgb(156, 130, 104);
  display: flex;
  align-items: center;
}

.recl__note {
  font-size: 11.5px;
  color: rgb(107, 101, 88);
  margin-top: 16px;
  text-align: center;
  font-style: italic;
}

/* Тезис / Статьи НК */
.thesis {
  padding: 60px 0;
  background: rgb(239, 233, 221);
  border-top: 1px solid rgb(221, 211, 194);
  border-bottom: 1px solid rgb(221, 211, 194);
  margin: 40px 0;
}

.thesis__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: start;
}

.thesis h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  margin: 8px 0 0;
  line-height: 1.3;
}

.thesis__law {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.law {
  background: rgb(246, 240, 230);
  border: 1px solid rgb(221, 211, 194);
  padding: 18px 20px;
  border-radius: 10px;
}

.law b {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  color: rgb(156, 130, 104);
  display: block;
  margin-bottom: 4px;
}

.law span {
  font-size: 13.5px;
  color: rgb(43, 36, 31);
  line-height: 1.45;
}

/* Сетка проверок (Checks) */
.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.check {
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 12px;
  padding: 24px;
}

.check__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgb(221, 211, 194);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(38, 34, 32);
  margin-bottom: 16px;
}

.check h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: rgb(38, 34, 32);
}

.check p {
  font-size: 13px;
  color: rgb(107, 101, 88);
  margin: 0;
  line-height: 1.5;
}

/* Когда нужно (When-grid) */
.when-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 14px;
  padding: 40px;
}

.triggers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.triggers li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: rgb(43, 36, 31);
  line-height: 1.45;
}

.triggers li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgb(156, 130, 104);
  font-weight: bold;
}

/* Форматы работы (Modes) */
.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.mode {
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.mode--dark {
  background: rgb(38, 34, 32);
  color: rgb(242, 235, 221);
  border-color: rgb(38, 34, 32);
}

.mode__tag {
  display: inline-block;
  background: rgb(156, 130, 104);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  width: max-content;
}

.mode h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.mode__lead {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 20px;
  color: rgb(107, 101, 88);
}

.mode--dark .mode__lead {
  color: rgb(207, 198, 186);
}

.mode ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
}

.mode li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.mode li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: bold;
}

.mode__res {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgb(221, 211, 194);
  font-size: 12.5px;
}

.mode--dark .mode__res {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.mode__res p {
  margin: 0;
  line-height: 1.45;
}

/* Тандем с юристом */
.tandem {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 14px;
  padding: 35px;
  align-items: center;
}

.tandem__pair {
  display: flex;
  gap: 8px;
  background: rgb(231, 223, 210);
  padding: 12px;
  border-radius: 10px;
  color: rgb(38, 34, 32);
}

.tandem h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  margin: 0 0 10px;
}

.tandem p {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(43, 36, 31);
  margin: 0 0 20px;
}

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

.tandem__split div {
  background: rgb(246, 240, 230);
  border: 1px solid rgb(221, 211, 194);
  padding: 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgb(107, 101, 88);
  line-height: 1.4;
}

.tandem__split b {
  display: block;
  font-size: 13.5px;
  color: rgb(38, 34, 32);
  margin-bottom: 4px;
  font-family: "Playfair Display", Georgia, serif;
}

/* Шаги работы */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.step {
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.step--key {
  background: rgb(38, 34, 32);
  color: rgb(242, 235, 221);
  border-color: rgb(38, 34, 32);
}

.step__n {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  color: rgb(156, 130, 104);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.step p {
  font-size: 13px;
  color: rgb(107, 101, 88);
  margin: 0;
  line-height: 1.45;
}

.step--key p {
  color: rgb(207, 198, 186);
}

/* Финальный CTA-блок */
.cta {
  background: rgb(38, 34, 32);
  color: rgb(242, 235, 221);
  padding: 50px 0;
  margin-top: 60px;
}

.cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cta h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #fff;
}

.cta p {
  font-size: 14.5px;
  color: rgb(207, 198, 186);
  margin: 0 0 6px;
  max-width: 55ch;
}

.cta__geo {
  font-size: 12.5px;
  color: rgb(156, 130, 104);
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Адаптивность для планшетов и мобильных */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }
  .hero__grid,
  .thesis__inner,
  .checks,
  .when-grid,
  .modes,
  .tandem,
  .tandem__split,
  .steps,
  .cta__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   ТОЧНЫЕ СТИЛИ КНОПОК ДЛЯ ВСЕХ СТРАНИЦ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.85;
}

/* Тёмная кнопка (Telegram) */
.btn--dark {
  background: rgb(38, 34, 32);
  color: rgb(255, 255, 255);
  border: 1.5px solid rgb(38, 34, 32);
}

/* Кнопка с обводкой (MAX) */
.btn--outline {
  background: transparent;
  color: rgb(38, 34, 32);
  border: 1.5px solid rgb(38, 34, 32);
}

/* Светлые кнопки для темных секций (CTA внизу) */
.btn--light {
  background: rgb(246, 240, 230);
  color: rgb(38, 34, 32);
  border: 1.5px solid rgb(246, 240, 230);
}

.btn--ghost-light {
  background: transparent;
  color: rgb(242, 235, 221);
  border: 1.5px solid rgb(221, 211, 194);
}