/* Первый экран: отступы; прокрутка и переполнение. */
body.multipage .page-hero .hero-composition {
  padding: clamp(26px, 2.4vw, 44px);
  container-type: inline-size;
  overflow: hidden;
}

.composition-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: #9cb5db;
  font: clamp(10px, 1.5cqi, 14px)/1.5 var(--mono);
  & > span:last-child {
    color: #bfd0e9;
    font: clamp(12px, 1.8cqi, 16px)/1.5 var(--font);
    text-align: right;
  }
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4cqi, 42px);
  padding-block: clamp(35px, 7cqi, 65px);
}

.profile-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(68px, 15cqi, 138px);
  aspect-ratio: 1;
  border: 1px solid #255ea8;
  border-radius: 24%;
  background: linear-gradient(135deg, #0d3472, #0b2146);
  box-shadow:
    inset 0 1px #74a5ed19,
    0 18px 36px #0003;
  & svg {
    width: 65%;
    stroke: var(--blue, #0066ff);
    stroke-width: 1;
  }
}

.profile-identity > div {
  min-width: 0;
}

.profile-identity strong {
  display: block;
  color: #f1f5fc;
  font-size: clamp(42px, 11cqi, 94px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.065em;
  & > span {
    color: var(--blue, #0066ff);
  }
}

.profile-identity > div > span {
  display: block;
  margin-top: 14px;
  color: #9db7de;
  font: clamp(9px, 1.6cqi, 14px)/1.5 var(--mono);
  letter-spacing: 0.08em;
}

.profile-position {
  padding-bottom: 32px;
  & > strong {
    color: #e4edfb;
    font-size: clamp(25px, 4.6cqi, 42px);
    font-weight: 550;
    line-height: 1.25;
    letter-spacing: -0.025em;
  }
}

body.multipage .profile-position > p {
  font-size: clamp(15px, 2.2cqi, 20px);
  line-height: 1.8;
  color: #b2c5e1;
  max-width: 48ch;
  margin-top: 22px;
}

.profile-expertise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #2c4976;
  padding-block: 24px;
  gap: 24px;
  & > div + div {
    border-left: 1px solid #2c4976;
    padding-left: 24px;
  }
  & > div > span {
    display: block;
    color: #86a7d8;
    font: clamp(9px, 1.3cqi, 12px)/1.5 var(--mono);
    margin-bottom: 12px;
  }
  & strong {
    color: #cbdcf4;
    font-size: clamp(13px, 2cqi, 18px);
    font-weight: 500;
    line-height: 1.5;
  }
}

.composition-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  font-size: clamp(13px, 2cqi, 17px);
  color: #dce7f9;
  & > span {
    color: var(--blue, #0066ff);
  }
}

.dossier-stack {
  position: relative;
  isolation: isolate;
  max-width: 650px;
  padding: 18px 20px 0;
  margin: 30px auto;
}

.dossier-sheet {
  border: 1px solid #2d507f;
  border-radius: 10px;
}

.dossier-sheet-back,
.dossier-sheet-middle {
  position: absolute;
  inset: 0 22px 26px;
  pointer-events: none;
}

.dossier-sheet-back {
  z-index: -2;
  background: #091a36;
  transform: rotate(-6deg);
  padding: 20px;
  & > span {
    font: 10px/1.5 var(--mono);
    color: #7398cd;
  }
}

.dossier-sheet-middle {
  z-index: -1;
  background: #102a55;
  transform: rotate(3deg);
}

.dossier-sheet-front {
  position: relative;
  padding: clamp(23px, 4.5cqi, 42px);
  background: linear-gradient(150deg, #10284e, #09182e 75%);
  box-shadow:
    0 24px 40px #0005,
    inset 0 1px #9bbdeb19;
}

.dossier-document-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #9db8e0;
  font: clamp(9px, 1.4cqi, 12px)/1.6 var(--mono);
  padding-right: 10px;
  & > span:last-child {
    color: var(--blue, #0066ff);
    font-size: clamp(20px, 3cqi, 28px);
  }
}

.dossier-title {
  display: block;
  margin-top: 27px;
  font-size: clamp(28px, 4.8cqi, 42px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}

body.multipage .dossier-sheet-front > p {
  color: #b5c6e1;
  font-size: clamp(14px, 2.1cqi, 18px);
  line-height: 1.65;
  margin: 18px 0 25px;
}

.dossier-scope {
  display: grid;
  gap: 0;
  border-top: 1px solid #294976;
  & > span {
    color: #d6e2f7;
    border-bottom: 1px solid #294976;
    padding: 12px 0 12px 16px;
    font-size: clamp(13px, 2cqi, 17px);
    position: relative;
  }
  & > span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    width: 4px;
    background: var(--blue, #0066ff);
  }
}

.dossier-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  & > span {
    position: relative;
    color: #b9cce9;
    font-size: clamp(11px, 1.8cqi, 16px);
    padding-top: 18px;
    border-top: 1px solid #2965b3;
  }
  & > span::before {
    content: '';
    position: absolute;
    height: 7px;
    width: 7px;
    border: 2px solid var(--blue, #0066ff);
    background: #0d2346;
    top: -5px;
    border-radius: 50%;
  }
}

.dossier-document-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  color: #91add3;
  font: clamp(9px, 1.4cqi, 12px)/1.6 var(--mono);
  & > span:last-child {
    color: #477bd3;
  }
}

.dossier-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #294976;
  & > a {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: clamp(13px, 2cqi, 17px);
    color: #d6e2f7;
  }
  & > a > span {
    color: var(--blue, #0066ff);
  }
}

.conversation-stage {
  padding-block: 32px;
}

.conversation-message {
  padding: clamp(24px, 4cqi, 40px);
  border: 1px solid #2b4f82;
  position: relative;
}

.conversation-request {
  width: 87%;
  border-radius: 18px 18px 18px 5px;
  background: #0b1d37;
}

.conversation-response {
  width: 92%;
  margin-left: auto;
  border-radius: 18px 5px 18px 18px;
  background: linear-gradient(135deg, #0d3472, #0b2347 80%);
  border-color: #2d62ae;
  box-shadow: 0 18px 35px #0003;
}

.conversation-label {
  display: block;
  color: #9db9e3;
  font: clamp(10px, 1.5cqi, 13px)/1.6 var(--mono);
}

.conversation-message > strong {
  display: block;
  font-size: clamp(23px, 4cqi, 35px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-top: 18px;
}

body.multipage .conversation-message > p {
  color: #b9cce8;
  font-size: clamp(14px, 2.2cqi, 19px);
  line-height: 1.7;
  margin-top: 18px;
}

.conversation-connector {
  display: flex;
  justify-content: flex-end;
  padding: 10px 15% 10px 0;
  align-items: center;
  gap: 14px;
  color: var(--blue, #0066ff);
  & > span {
    height: 1px;
    width: 80px;
    background: #2d62ae;
  }
  & > b {
    font-size: 22px;
    font-weight: 400;
  }
}

.conversation-agenda {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #3b5e90;
  color: #cadbf6;
  font-size: clamp(12px, 1.8cqi, 16px);
}

.conversation-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #294976;
  & > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 10px 0;
    color: #d8e5f8;
    font-size: clamp(12px, 2cqi, 17px);
  }
  & > a:first-child {
    padding-left: 0;
  }
  & > a:last-child {
    padding-right: 0;
  }
  & > a > span {
    color: var(--blue, #0066ff);
  }
}

.company-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(45px, 6vw, 110px);
  align-items: start;
}

.company-story-lead {
  border-left: 2px solid var(--blue, #0066ff);
  padding-left: clamp(24px, 3vw, 46px);
}

body.multipage .company-story h3 {
  font-size: clamp(28px, 2.1vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 28ch;
}

.company-story-lead h3 {
  margin-top: 22px;
}

body.multipage .company-story p {
  color: #b5c5dd;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.85;
  max-width: 66ch;
  margin-top: 26px;
}

.company-story-context > .text-link {
  margin-top: 30px;
}

.company-narrative {
  display: grid;
  & > article {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(40px, 6vw, 110px);
    border-top: 1px solid #2a4774;
    padding-block: 40px;
  }
  & > article:last-child {
    border-bottom: 1px solid #2a4774;
  }
}

.company-narrative-title {
  display: flex;
  align-items: baseline;
  gap: 24px;
  & > span {
    font: 12px/1.5 var(--mono);
    color: #8ba9d5;
  }
}

body.multipage {
  & .company-narrative h3 {
    font-size: clamp(26px, 2vw, 36px);
    line-height: 1.3;
  }
  & .company-narrative p {
    font-size: clamp(16px, 1.1vw, 20px);
    line-height: 1.85;
    max-width: 68ch;
    color: #b5c5dd;
    margin: 0;
  }
  & .company-narrative p + p {
    margin-top: 22px;
  }
}
/* Адаптация для (hover: hover) and (pointer: fine). */
@media (hover: hover) and (pointer: fine) {
  .hero-composition a {
    transition: color 0.2s;
    &:hover {
      color: var(--color-white, #fff);
    }
    & > span {
      transition: transform 0.2s;
    }
    &:hover > span {
      transform: translate(3px, -3px);
    }
  }
  .company-narrative > article {
    transition: border-color 0.25s;
    &:hover {
      border-top-color: var(--blue, #0066ff);
    }
  }
}
/* Адаптация для (width <= 900px). */
@media (width <= 900px) {
  .company-story {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .company-narrative > article {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
/* Адаптация для (width <= 700px). */
@media (width <= 700px) {
  .composition-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .profile-identity {
    gap: 18px;
    padding-block: 34px;
  }
  .profile-symbol {
    width: 64px;
  }
  .profile-identity strong {
    font-size: clamp(38px, 12cqi, 50px);
  }
  .profile-identity > div > span {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .profile-position > strong {
    font-size: 27px;
  }
  .profile-expertise {
    gap: 18px;
    grid-template-columns: 1fr;
    & > div {
      display: grid;
      grid-template-columns: 100px 1fr;
      gap: 14px;
      align-items: baseline;
    }
    & > div + div {
      padding-left: 0;
      border-left: 0;
    }
    & > div > span {
      margin: 0;
      font-size: 10px;
    }
    & strong {
      font-size: 14px;
    }
    & br {
      display: none;
    }
  }
  .composition-heading > span:last-child {
    text-align: left;
  }
  .dossier-stack {
    padding: 18px 10px 0;
    margin-block: 28px;
  }
  .dossier-sheet-back,
  .dossier-sheet-middle {
    inset-inline: 15px;
  }
  .dossier-sheet-front {
    padding: 22px 18px;
  }
  .dossier-title {
    font-size: 27px;
  }
  .dossier-route {
    gap: 6px;
    & > span {
      font-size: 10px;
    }
  }
  .dossier-document-bottom > span:last-child {
    display: none;
  }
  .dossier-actions {
    flex-direction: column;
    gap: 18px;
    & > a {
      justify-content: space-between;
    }
  }
  .conversation-message {
    padding: 22px;
  }
  .conversation-request,
  .conversation-response {
    width: 100%;
  }
  .conversation-message > strong {
    font-size: 23px;
  }
  .conversation-channels {
    grid-template-columns: 1fr;
    & > a {
      padding: 16px 0;
      border-bottom: 1px solid #294976;
      font-size: 14px;
    }
    & > a:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }
  }
  .company-story-lead {
    padding-left: 20px;
  }
  body.multipage {
    & .company-story h3 {
      font-size: 28px;
    }
    & :is(.company-story, .company-narrative) p {
      font-size: 16px;
      line-height: 1.8;
    }
  }
  .company-narrative-title {
    gap: 16px;
  }
}
/* Сокращение движения по настройке пользователя. */
@media (prefers-reduced-motion: reduce) {
  .hero-composition a,
  .hero-composition a > span,
  .company-narrative > article {
    transition: none;
  }
}

body[data-page='contacts'] .lead-layout {
  align-items: stretch;
}

body[data-page='contacts'] .direct-card {
  height: 100%;
}

.brief-optional-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-block: 4px 7px;
  & > div {
    display: grid;
    gap: 8px;
    min-width: 0;
  }
  & label {
    color: #d0dff3;
    font-size: 12px;
    line-height: 1.5;
  }
  & label > span {
    color: #8fa9ce;
    font-size: 10px;
    margin-left: 8px;
  }
  & select {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid #284671;
    border-radius: 8px;
    padding: 0 10px;
    background: #071326;
    color: #d3e1f5;
    font: 12px/1.5 var(--font);
    color-scheme: dark;
  }
  & select:focus-visible {
    outline: 2px solid var(--blue, #0066ff);
    outline-offset: 3px;
  }
}

.custom-task-panel {
  padding-top: 18px;
  & > label {
    display: block;
    color: #d0dff3;
    font-size: 13px;
    margin-bottom: 9px;
  }
  & input {
    width: 100%;
  }
}

body.multipage .custom-task-panel p {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 10px;
  color: #9eb6d8;
}

.brief-guidance {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid #29466f;
  & > strong {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 550;
    color: #d3e1f5;
  }
}

body.multipage .brief-guidance p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.75;
  color: #9fb6d7;
}

.brief-followup {
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid #29466f;
  & > strong {
    font-size: 17px;
    line-height: 1.5;
    font-weight: 550;
    color: #dce6f8;
  }
  & ol {
    margin: 18px 0 0;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 16px;
  }
  & li {
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  & li > span {
    color: #8aaada;
    font: 10px/1.5 var(--mono);
  }
  & b {
    color: #cadcf5;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
  }
}

body.multipage .brief-followup p {
  margin: 5px 0 0;
  color: #9eb4d5;
  font-size: 12px;
  line-height: 1.65;
}
/* Адаптация для (width >= 1800px). */
@media (width >= 1800px) {
  body[data-page='contacts'] :is(.lead-form-card, .direct-card) {
    padding: 44px;
  }
  body[data-page='contacts'] .lead-form-card .contact-brief-form {
    gap: 44px;
  }
  body[data-page='contacts']
    .lead-form-card
    input:not([type='file']):not([type='checkbox']):not([type='radio']) {
    height: 56px;
    min-height: 56px;
    font-size: 17px;
  }
  body[data-page='contacts'] .lead-form-card textarea {
    height: 130px;
    min-height: 130px;
    font-size: 17px;
  }
  body[data-page='contacts'] .wizard-options label > span {
    font-size: 17px;
    min-height: 57px;
  }
  .brief-optional-row {
    gap: 16px;
    margin-block: 7px 10px;
    & label {
      font-size: 15px;
    }
    & label > span {
      font-size: 12px;
    }
    & select {
      height: 56px;
      padding-inline: 15px;
      font-size: 16px;
    }
  }
  .custom-task-panel > label {
    font-size: 16px;
  }
  body.multipage .custom-task-panel p {
    font-size: 14px;
  }
  .brief-guidance > strong {
    font-size: 18px;
  }
  body.multipage .brief-guidance p {
    font-size: 15px;
  }
  .brief-followup > strong {
    font-size: 22px;
  }
  .brief-followup b {
    font-size: 17px;
  }
  body.multipage .brief-followup p {
    font-size: 15px;
  }
  .brief-followup li > span {
    font-size: 12px;
  }
}
/* Адаптация для (width <= 1200px). */
@media (width <= 1200px) {
  body[data-page='contacts'] .direct-card {
    height: auto;
    max-width: none;
  }
  .brief-followup {
    margin-top: 8px;
  }
}
/* Адаптация для (width <= 700px). */
@media (width <= 700px) {
  .brief-optional-row {
    grid-template-columns: 1fr;
    gap: 14px;
    & label {
      font-size: 13px;
    }
    & select {
      font-size: 14px;
      height: 46px;
    }
  }
}
