/* ==========================================================================
   Страница «Форма»
   Figma: sPziMpKKGID82N0WMopEja / фрейм "форма" (139:1173) 1920×4376
   Дополняет css/style.css — токены, шапка, футер берутся оттуда.
   ========================================================================== */

/* Шапка на этой странице светлая: тёмные ссылки, синий бургер */
.page-form .topbar {
  position: relative;
  inset: auto;
  padding: 27px max(var(--shell), calc((100vw - 1920px) / 2 + var(--shell))) 0;
}
.page-form .lang { color: var(--ink); }
.page-form .burger { background: var(--blue); }
.page-form .burger:hover { background: var(--blue-deep); }

/* ---------- Верхний блок: заголовок слева, форма справа ---------- */
.contact { padding: 60px 0 100px; }
.contact__grid {
  display: grid;
  grid-template-columns: 42.3% 49.4%; /* 812 / 870 из 1920 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.contact__title {
  margin-top: 18px;
  font-size: clamp(34px, 2.865vw, 55px);
  line-height: 1.28;
  font-weight: 600;
  color: var(--ink);
}
.contact__title .accent { color: var(--blue); }
.contact__lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* ==========================================================================
   Форма
   ========================================================================== */
.cform {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cform__eyebrow {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.cform__title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}
.cform__lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--grey-27);
}

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__label {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-soft);
}
.cform__label .req { color: var(--red); }
.cform__hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey-53);
}

.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform select,
.cform textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .2s ease;
}
.cform input::placeholder,
.cform textarea::placeholder { color: var(--grey-53); }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.cform textarea { min-height: 110px; resize: vertical; }
.cform select { appearance: none; cursor: pointer; padding-right: 40px; }

/* стрелка у выпадающего списка */
.cform__select { position: relative; }
.cform__select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--grey-53);
  border-bottom: 1.5px solid var(--grey-53);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- Красные информационные врезки ---------- */
.cnote {
  border: 1px solid rgba(204, 39, 39, .35);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cnote__title {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.cnote p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-27);
}
.cnote ul { display: flex; flex-direction: column; gap: 6px; }
.cnote li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-27);
}
/* квадратный маркер списка */
.cnote li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--red);
}
.cnote__strong {
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Зона загрузки файла ---------- */
.dropzone {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover { border-color: var(--blue); background: var(--bg); }
.dropzone svg { width: 34px; height: 34px; color: var(--grey-53); }
.dropzone__title {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.dropzone__hint {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-53);
}
.dropzone input { display: none; }
.dropzone__files {
  margin-top: 4px;
  font-size: 14px;
  color: var(--blue);
}

/* ---------- Согласие ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; }
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--red);
}
.consent label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--grey-27);
}

.cform .btn { background: var(--red); }
.cform .btn:hover { background: #b02020; }

/* ==========================================================================
   После отправки
   ========================================================================== */
.after { padding: 0 0 100px; }
.after__head { max-width: 812px; }
.after__head .section-title { margin-top: 18px; }
.after__lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--grey-27);
}
.after__grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.step-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-card::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--blue);
}
.step-card__num {
  font-size: 16px;
  line-height: 1.4;
  color: var(--blue);
}
.step-card__title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink);
}
.step-card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* ==========================================================================
   Структура гонораров
   ========================================================================== */
.fees { padding: 0 0 100px; }
.fees__grid {
  display: grid;
  grid-template-columns: 42.3% 49.4%; /* 812 / 871 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.fees__head .section-title { margin-top: 18px; }
.fees__lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--grey-27);
}
.fees__list { display: flex; flex-direction: column; gap: 16px; }
.fee {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fee__head { display: flex; align-items: center; gap: 12px; }
.fee__num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 100px;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}
.fee__title {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.fee p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* ==========================================================================
   Продолжить изучение
   ========================================================================== */
.explore { padding: 0 0 100px; }
.explore .section-title { margin-bottom: 24px; }
.explore__chips { display: flex; flex-wrap: wrap; gap: 12px; }
.explore__chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.explore__chips a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--blue);
  flex: none;
}
.explore__chips a:hover,
.explore__chips a.is-active {
  background: var(--blue);
  color: var(--white);
}
.explore__chips a:hover::before,
.explore__chips a.is-active::before { background: var(--white); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .contact { padding: 40px 0 60px; }
  .contact__grid,
  .fees__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__title { font-size: 40px; }
  .after, .fees, .explore { padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .contact { padding: 24px 0 40px; }
  .contact__title { font-size: 26px; }
  .contact__lead { font-size: 14px; margin-top: 16px; }

  .cform { padding: 16px; gap: 16px; }
  .cform__row { grid-template-columns: 1fr; }
  .cform__title { font-size: 18px; }
  .cform__lead { font-size: 14px; }
  .cform input, .cform select, .cform textarea { font-size: 16px; padding: 12px 14px; }

  .after, .fees, .explore { padding-bottom: 40px; }
  .after__grid { grid-template-columns: 1fr; }
  .after__lead, .fees__lead { font-size: 14px; }
  .step-card { padding: 12px; }
  .step-card__title { font-size: 18px; }
  .step-card p, .fee p { font-size: 14px; }
  .fee { padding: 12px; }
  .explore__chips a { font-size: 14px; padding: 8px 12px; }
}
