/* Страница "Подрядчикам" — сверстана по Figma node 30409:36951.
   Header, кнопки, футер, поля формы и тост переиспользуются из rasprodazha.css;
   здесь только секции самой страницы (префикс pd-). */

/* ---------- Хлебные крошки ---------- */

.pd-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: clamp(16px, 1.04vw, 20px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.pd-breadcrumbs a {
  color: #6b6b6b;
  transition: color 240ms var(--transition-soft);
}

.pd-breadcrumbs a:hover {
  color: var(--color-accent);
}

.pd-breadcrumbs__sep {
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent);
}

.pd-breadcrumbs__current {
  color: var(--color-accent);
}

/* ---------- Хиро ---------- */

.pd-hero {
  margin-top: 170px;
}

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

.pd-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.pd-hero__title {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.75vw, 72px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.pd-hero__chip {
  display: inline-block;
  overflow: hidden;
  width: 0.72em;
  height: 0.72em;
  /* border-radius: 999px; */
  vertical-align: -0.12em;
}

.pd-hero__chip--wide {
  width: 1.06em;
}

.pd-hero__chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pd-hero__actions .button {
  min-width: 325px;
  height: 65px;
  justify-content: space-between;
}

.pd-hero__image {
  width: 100%;
  aspect-ratio: 912 / 723;
  border-radius: 12px;
  object-fit: cover;
}

/* ---------- Общие карточки (аудитории и продукция) ---------- */

.pd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 422px;
  max-height: 422px;
  padding: 32px;
  border-radius: 12px;
  background: var(--color-panel);
  transition: background 240ms var(--transition-soft);
}

.pd-card:hover {
  background: var(--color-border);
}

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

.pd-card__number {
  align-self: stretch;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
}

.pd-card__media {
  display: block;
  max-width: 100%;
  min-height: 0;
  flex-shrink: 1;
  object-fit: contain;
}

.pd-card__caption {
  align-self: stretch;
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-align: center;
}

/* ---------- Аудитории ---------- */

.pd-audience__title {
  max-width: 1074px;
}

.pd-audience__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
}

.pd-actions .button {
  min-width: 325px;
  height: 65px;
  justify-content: space-between;
}

/* ---------- Продукция ---------- */

.pd-products__head {
  align-items: flex-start;
}

.pd-products__head .rz-section__title {
  max-width: 1074px;
}

.pd-products__head .button {
  width: 325px;
  height: 65px;
  justify-content: space-between;
}

.pd-products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pd-card--product .pd-card__media {
  max-height: 317px;
}

/* ---------- Не «по прайсу», а под задачу ---------- */

.pd-approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 597fr) minmax(0, 1219fr);
  grid-template-areas:
    ". intro"
    "card list";
  gap: 48px 24px;
}

.pd-approach__intro {
  grid-area: intro;
}

.pd-approach__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 48px;
  grid-area: card;
  min-height: 513px;
  padding: 32px;
  border-radius: 12px;
  background: var(--color-panel);
}

.pd-approach__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.pd-approach__card-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #6b6b6b;
}

.pd-approach__card-icon {
  width: 64px;
  height: 64px;
  /* По макету шеврон на серой карточке шага — белый (исходник теперь #003049). */
  filter: brightness(0) invert(1);
}

.pd-approach__card-art {
  align-self: center;
  height: 121px;
  margin-block: auto;
  object-fit: contain;
}

.pd-approach__card-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-approach__card-text h3 {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(24px, 1.67vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.pd-approach__card-text p {
  max-width: 529px;
  margin: 0;
  color: #a0a0a0; /* третичный серый описаний — по макету, не --color-muted */
  font-size: clamp(15px, 1.04vw, 20px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.pd-approach__list {
  display: flex;
  flex-direction: column;
  grid-area: list;
}

.pd-approach__row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: -1px;
  padding: 32px;
  border: 0;
  border-block: 1px solid #3d3d3d; /* тёмные разделители этого аккордеона — по макету */
  border-radius: 12px;
  background: var(--color-inverse);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background 240ms var(--transition-soft);
}

.pd-approach__row:first-child {
  margin-top: 0;
}

.pd-approach__row.is-active {
  border-block-color: var(--color-accent);
  background: var(--color-accent);
}

.pd-approach__row-number {
  flex: 0 0 96px;
  font-family: var(--font-display);
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #6b6b6b;
}

.pd-approach__row-title {
  flex: 1;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.67vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.pd-approach__row.is-active .pd-approach__row-title {
  color: var(--color-inverse);
}

.pd-approach__row-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  opacity: 0.6;
  transition: opacity 240ms var(--transition-soft);
}

.pd-approach__row.is-active .pd-approach__row-icon,
.pd-approach__row:hover .pd-approach__row-icon {
  opacity: 1;
}

/* На активной синей строке шеврон белый (сам SVG перекрашен в #003049) */
.pd-approach__row.is-active .pd-approach__row-icon {
  filter: brightness(0) invert(1);
}

/* ---------- Стабильные объёмы ---------- */

.pd-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.pd-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  border-radius: 12px;
  background: var(--color-panel);
}

.pd-stat__bars {
  position: relative;
}

.pd-stat__track {
  display: block;
  width: 100%;
  height: auto;
}

.pd-stat__mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
}

.pd-stat__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-stat__value {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pd-stat__label {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(15px, 1.04vw, 20px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

/* ---------- Опыт работы ---------- */

.pd-experience__stage {
  position: relative;
  max-width: 1646px;
  margin-inline: auto;
}

.pd-orb {
  border-radius: 999px;
  object-fit: cover;
}

.pd-orb--center {
  display: block;
  width: clamp(220px, 22vw, 366px);
  height: clamp(220px, 22vw, 366px);
  margin-inline: auto;
}

.pd-orb--left-mid,
.pd-orb--left-low,
.pd-orb--right-up,
.pd-orb--right-large {
  position: absolute;
}

.pd-orb--left-mid {
  top: 48px;
  left: 12.8%;
  width: clamp(96px, 9.8vw, 162px);
  height: clamp(96px, 9.8vw, 162px);
}

.pd-orb--left-low {
  top: 402px;
  left: 0;
  width: clamp(64px, 5.8vw, 96px);
  height: clamp(64px, 5.8vw, 96px);
}

.pd-orb--right-up {
  top: 0;
  right: 13.7%;
  width: clamp(96px, 9.8vw, 162px);
  height: clamp(96px, 9.8vw, 162px);
}

.pd-orb--right-large {
  top: 288px;
  right: 0;
  width: clamp(140px, 15.5vw, 256px);
  height: clamp(140px, 15.5vw, 256px);
}

.pd-experience__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 1082px;
  margin: 48px auto 0;
  text-align: center;
}

.pd-experience__title {
  max-width: 709px;
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.75vw, 72px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.pd-experience__subtitle {
  max-width: 878px;
  margin: 0;
  color: var(--color-accent); /* в синем макете описание акцентное, не серое */
  font-size: clamp(16px, 1.25vw, 24px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}

/* ---------- Прозрачная работа ---------- */

.pd-process__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.pd-process__note {
  max-width: 464px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.25vw, 24px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.pd-process__list {
  display: flex;
  flex-direction: column;
}

/* Превью у каждой строки (своя картинка, редактируется в Bricks).
   Показывается по :hover самой строки — без JS. */
.pd-process__preview {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 23%;
  width: 263px;
  height: 282px;
  border-radius: 12px;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.94);
  transition: opacity 280ms var(--transition-soft), transform 280ms var(--transition-soft);
}

.pd-process__row:hover .pd-process__preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.pd-process__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: -1px;
  padding: 32px;
  border-block: 1px solid var(--color-border);
  border-radius: 12px;
  transition: background 240ms var(--transition-soft);
}

.pd-process__row:first-child {
  margin-top: 0;
}

.pd-process__row:hover {
  background: var(--color-panel);
}

.pd-process__number {
  flex: 1;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: clamp(32px, 2.5vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.pd-process__content {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 24px;
}

.pd-process__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.pd-process__body h3 {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(22px, 1.67vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.pd-process__body p {
  max-width: 529px;
  margin: 0;
  color: #a0a0a0; /* третичный серый описаний — по макету, не --color-muted */
  font-size: clamp(15px, 1.04vw, 20px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.pd-process__icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  opacity: 0.1;
  transition: opacity 240ms var(--transition-soft);
}

.pd-process__row:hover .pd-process__icon {
  opacity: 1;
}

/* ---------- Форма ---------- */

.pd-request__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.pd-request__panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 32px;
  border-radius: 12px;
  background: var(--color-panel);
}

.pd-request__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pd-request__title {
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.75vw, 72px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.pd-request__text {
  max-width: 608px;
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.25vw, 24px);
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.pd-request__form {
  padding: 0;
  background: transparent;
}

.pd-request__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-request__textarea {
  height: 156px;
}

.pd-request__submit {
  width: 100%;
  justify-content: space-between;
}

.pd-request__image {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  object-fit: cover;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1440px) {
  .pd-approach__row-number {
    flex-basis: 72px;
  }
}

@media (max-width: 1360px) {
  .pd-hero {
    margin-top: 140px;
  }

  .pd-audience__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pd-approach__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "card"
      "list";
  }

  .pd-approach__card {
    max-width: 597px;
  }
}

@media (max-width: 1100px) {
  .pd-hero__grid {
    grid-template-columns: 1fr;
  }

  .pd-hero__content {
    gap: 40px;
  }

  .pd-hero__image {
    min-height: 0;
    max-height: 520px;
  }

  .pd-products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-request__grid {
    grid-template-columns: 1fr;
  }

  .pd-request__image {
    min-height: 0;
    max-height: 520px;
  }

  .pd-process__number {
    flex: 0 0 96px;
  }

  .pd-process__preview {
    display: none;
  }
}

@media (max-width: 860px) {
  .pd-audience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pd-card {
    min-height: 340px;
  }

  .pd-card__media {
    max-width: 180px;
    max-height: 180px;
  }

  .pd-card--product .pd-card__media {
    max-height: 200px;
  }

  .pd-stats__grid {
    grid-template-columns: 1fr;
  }

  .pd-orb--left-low,
  .pd-orb--right-large {
    display: none;
  }

  .pd-orb--left-mid {
    top: 0;
    left: 0;
  }

  .pd-orb--right-up {
    right: 0;
  }

  .pd-experience__text {
    margin-top: 32px;
  }

  .pd-process__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pd-process__number {
    flex: 0 0 auto;
  }

  .pd-process__content {
    width: 100%;
  }

  .pd-approach__row {
    gap: 16px;
    padding: 24px;
  }

  .pd-approach__row-number {
    flex-basis: 56px;
  }

  .pd-approach__row-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .pd-process__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (max-width: 640px) {
  .pd-audience__grid,
  .pd-products__grid {
    grid-template-columns: 1fr;
  }

  .pd-hero__actions .button,
  .pd-actions .button,
  .pd-products__head .button {
    width: 100%;
    min-width: 0;
  }

  .pd-approach__card {
    min-height: 0;
    gap: 32px;
  }

  .pd-approach__row {
    flex-wrap: wrap;
  }

  .pd-approach__row-title {
    flex-basis: 100%;
    order: 3;
  }
}
