/* css/perdata.css */

/* ─── HERO ─── */
.pd-hero {
  background: var(--surface);
  padding: 40px 0;
}

.pd-hero__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.pd-hero__body {
  flex: 1 1 0;
  min-width: 0;
}

.pd-hero__img-wrap {
  flex: 0 0 54%;
  max-width: 580px;
}

.pd-hero__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-hero__title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.pd-hero__sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.pd-hero__list li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.pd-hero__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

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

/* ─── ВИДЫ ПЕРЕМЕННЫХ ДАННЫХ ─── */
.pd-types {
  padding: 0 0 40px;
}

.pd-types__head {
  margin-bottom: 28px;
}

.pd-types__title {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.pd-types__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pd-type-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-type-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}

.pd-type-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.pd-type-card__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.pd-type-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--red);
  background: var(--surface);
  border-radius: 6px;
  padding: 3px 8px;
  align-self: flex-start;
}

/* ─── КАК ПОДГОТОВИТЬ ДАННЫЕ ─── */
.pd-how {
  padding: 0 0 40px;
}

.pd-how__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 56px;
}

.pd-how__title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 32px;
}

.pd-how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.pd-how__block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-how__block-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pd-how__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-how__list li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.pd-how__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ─── МАКЕТ ─── */
.pd-layout {
  padding: 0 0 40px;
}

.pd-layout__card {
  background: var(--red);
  border-radius: var(--r-lg);
  padding: 40px 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.pd-layout__icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.pd-layout__title {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.pd-layout__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-layout__list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}

.pd-layout__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .pd-hero__card  { padding: 36px 32px; gap: 32px; flex-direction: column; }
  .pd-hero__img-wrap { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
  .pd-how__card   { padding: 36px 32px; }
  .pd-layout__card { padding: 32px 32px; }

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

@media (max-width: 860px) {
  .pd-how__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .pd-hero__card  { padding: 28px 24px; }
  .pd-hero__btns  { flex-direction: column; }
  .pd-hero__btns .btn { width: 100%; text-align: center; }
  .pd-how__card   { padding: 28px 24px; }
  .pd-layout__card { flex-direction: column; padding: 28px 24px; gap: 20px; }

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