/* Страница «Контакты». Только то, чего нет в site.css. */

/* В шапке страницы есть ссылки, поэтому обрезаем без прокрутки при фокусе */
.page-hero { overflow: clip; }

/* ---------- Шапка страницы: заголовок и прямые контакты ---------- */
.ct-hero { padding-bottom: clamp(48px, 5vw, 72px); }
/* Короткая шапка: свечение меньше и выше, чтобы не упиралось в нижний край */
.ct-hero::before { inset: -48% -8% auto auto; width: min(58vw, 760px); height: min(58vw, 760px); }
.ct-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.ct-hero-copy { display: grid; gap: 28px; }
.ct-hero-copy .lead { max-width: 42ch; }
/* Who answers: Ben's photo above the direct contacts */
.ct-side { display: grid; gap: 24px; }
.ct-who { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.ct-who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line-2); }
.ct-who figcaption { display: grid; gap: 2px; }
.ct-who strong { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--text); }
.ct-who span { font-size: 15px; line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.ct-direct { display: grid; gap: 0; }
.ct-direct > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 20px 0 22px; border-top: 1px solid var(--line-2); }
.ct-direct dt { font-size: 14px; color: var(--text-3); padding-top: 6px; }
.ct-direct dd { display: grid; gap: 4px; }
.ct-direct a { font-weight: 380; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; transition: color 0.2s ease; overflow-wrap: anywhere; }
@media (hover: hover) { .ct-direct a:hover { color: var(--accent-2); } }
.ct-direct span { font-size: 14px; color: var(--text-2); }

/* ---------- Бриф ---------- */
.ct-brief { padding-top: clamp(40px, 5vw, 72px); }
.ct-brief-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.brief { padding: clamp(24px, 3.6vw, 52px); }
.brief > .form { gap: 36px; }
.brief [data-fields][hidden] { display: none; }
.brief-head { display: grid; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.brief-head .h3 { font-weight: 450; }
.brief-head .body-2 { max-width: 52ch; }

.brief-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.brief .field { align-content: start; }
.brief-group > * + * { margin-top: 24px; }
.brief-legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0.01em; }
.brief .opt { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--text-3); }
.brief .choice legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 500; }
.brief .choice span { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .brief .choice input:not(:checked):hover + span { border-color: var(--text-2); color: var(--text); }
}

.brief-nda { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.brief-nda span { display: grid; gap: 2px; }
.brief-nda strong { font-weight: 500; font-size: 16px; color: var(--text); }
.brief-nda:has(input:checked) { border-color: rgba(242, 181, 74, 0.55); }
.brief-nda:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.brief-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.brief-submit .form-note { max-width: 32ch; }
.form-send-error { font-size: 15px; color: var(--err); }
.form-send-error:empty { display: none; }
.form-legal { font-size: 13px; color: var(--text-3); max-width: 60ch; }
.form-legal a { color: var(--text-2); }

.brief .form-success { padding: clamp(8px, 2vw, 24px) 0; gap: 12px; }
.brief .form-success:focus { outline: none; }
.brief .form-success:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.success-link { justify-self: start; margin-top: 16px; }

/* Боковая колонка */
.ct-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.next-title, .nda-title { font-weight: 450; font-size: clamp(21px, 1.8vw, 25px); letter-spacing: -0.02em; line-height: 1.25; }
.next-steps { position: relative; margin-top: 24px; display: grid; }
.next-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding-bottom: 28px; }
.next-steps li:last-child { padding-bottom: 0; }
.next-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15.5px; top: 36px; bottom: 6px; width: 1px; background: var(--line-2); }
.next-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent-2); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.next-steps h3 { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; line-height: 1.35; padding-top: 4px; }
.next-steps p { margin-top: 6px; font-size: 15px; color: var(--text-2); max-width: 40ch; }
.next { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.nda-card { display: grid; gap: 12px; padding: 26px 26px 28px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.nda-card p { font-size: 15px; color: var(--text-2); }
.nda-card .link { justify-self: start; margin-top: 6px; font-size: 15px; }

/* ---------- Офис и реквизиты ---------- */
.ct-office .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.office-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.address {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-content: start; gap: 8px; padding: clamp(28px, 4vw, 56px);
}
.address-city { font-size: 15px; color: var(--text-3); }
.address-line { font-weight: 350; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.address-meta { margin: clamp(28px, 3vw, 44px) 0 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 28px; }
.address-meta > div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.address-meta dt { font-size: 14px; color: var(--text-3); }
.address-meta dd { margin-top: 6px; font-size: 16px; line-height: 1.45; }
.address .btn { justify-self: start; }

.office-side { display: grid; gap: 40px; align-content: start; }
.req-title { font-size: 15px; font-weight: 500; color: var(--text-3); margin-bottom: 10px; }
.req-list > div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.req-list dt { color: var(--text-3); font-size: 15px; }
.req-note { margin-top: 14px; font-size: 14px; color: var(--text-3); max-width: 40ch; }
.req-links { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.req-links .link { font-size: 16px; }

/* В подвале правило .footer a из site.css перебивает цвет основной кнопки */

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .ct-brief-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .address-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ct-hero-grid, .ct-brief-grid, .office-grid { grid-template-columns: 1fr; }
  .ct-aside { position: static; }
  .address-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ct-direct > div { grid-template-columns: 1fr; gap: 6px; }
  .ct-direct dt { padding-top: 0; }
  .brief { padding: 22px 18px 26px; border-radius: var(--r-m); }
  .brief .choice span { padding: 0 15px; font-size: 14px; }
  .brief-nda { padding: 16px; }
  .brief-submit .btn { width: 100%; }
  .address-meta { grid-template-columns: 1fr; gap: 0; }
  .address-meta > div { padding: 14px 0; }
  .req-list > div { grid-template-columns: 80px 1fr; }
}
