/* Раздел «Лофтинсайд Дизайн-студия» (кодекс 3.190): список дизайнеров, страница дизайнера,
   карточка дизайнера в статье блога. Префиксы lf-ds, lf-d — чтобы не пересекаться с темой.
   Подключается из blog/designer и blog/blog с ?v= — меняя файл, поднимайте версию. */
.lf-ds, .lf-ds-section, .lf-ds-join, .lf-designer, .lf-dcredit, .lf-dabout {
  --ink: #141414; --muted: #74716c; --line: #e7e5e1; --soft: #f5f4f1;
}

/* ---------- Кнопки ---------- */
.lf-dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border: 1.5px solid #141414;
  border-radius: 600px; background: #fff; color: #141414; font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: uppercase;
  text-decoration: none; transition: background-color .2s ease, color .2s ease; cursor: pointer; }
.lf-dbtn:hover, .lf-dbtn:focus { background: #141414; color: #fff; text-decoration: none; }
.lf-dbtn--dark { background: #141414; color: #fff; }
.lf-dbtn--dark:hover, .lf-dbtn--dark:focus { background: #3a3936; border-color: #3a3936; color: #fff; }

/* ---------- Список дизайнеров ---------- */
.lf-ds { color: var(--ink); margin-bottom: 72px; }
.lf-ds__head { max-width: 820px; margin-bottom: 44px; }
.lf-ds__title { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 44px; line-height: 1.1; text-transform: none; color: var(--ink); margin: 0 0 18px; }
.lf-ds__lead { font-size: 18px; line-height: 1.6; color: #3b3935; margin: 0; }
.lf-ds__h2 { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 32px; line-height: 1.2; text-transform: none; color: #141414; margin: 0 0 28px; }
.lf-ds__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }

.lf-dcard { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; min-width: 0; }
.lf-dcard:hover, .lf-dcard:focus { color: var(--ink); text-decoration: none; }
.lf-dcard__img { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: var(--soft); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; }
.lf-dcard__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.lf-dcard:hover .lf-dcard__img img { transform: scale(1.04); }
.lf-dcard__initials, .lf-dprofile__photo span, .lf-dcredit__img span { font-family: "Cera Pro", sans-serif; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.lf-dcard__initials { font-size: 56px; }
.lf-dcard__name { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.lf-dcard__meta { font-size: 14px; line-height: 1.45; color: var(--muted); }
.lf-dcard__count { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.lf-ds-section { margin-bottom: 72px; color: var(--ink); }

/* Призыв внизу: «Вы дизайнер?» в списке, «Обратиться к дизайнеру» на его странице */
.lf-ds-join { margin: 0 0 80px; padding: 44px 48px; border-radius: 24px; background: var(--soft); color: var(--ink); }
.lf-ds-join__title { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 30px; line-height: 1.2; text-transform: none; color: inherit; margin: 0 0 12px; }
.lf-ds-join__text { max-width: 760px; font-size: 17px; line-height: 1.6; margin: 0 0 26px; color: #3b3935; }
.lf-ds-join--dark { background: #1c1b19; color: #fff; }
.lf-ds-join--dark .lf-ds-join__title { color: #fff; }
.lf-ds-join--dark .lf-ds-join__text { color: rgba(255, 255, 255, .72); }
.lf-ds-join--dark .lf-dbtn { border-color: #fff; }
.lf-ds-join--dark .lf-dbtn:hover { background: #ecebe8; border-color: #ecebe8; color: #141414; }

/* ---------- Страница дизайнера ---------- */
.lf-designer { color: var(--ink); }
.lf-dprofile { max-width: 820px; margin: 0 0 72px; }
.lf-dprofile__top { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.lf-dprofile__photo { flex: 0 0 132px; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--soft);
  display: flex; align-items: center; justify-content: center; }
.lf-dprofile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-dprofile__photo span { font-size: 40px; }
.lf-dprofile__role { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lf-dprofile__name { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 44px; line-height: 1.1; text-transform: none; color: var(--ink); margin: 0; }
.lf-dprofile__studio { margin-top: 8px; font-size: 17px; line-height: 1.4; color: #3b3935; }
.lf-dprofile__about { font-size: 18px; line-height: 1.65; color: #242424; margin: 0 0 16px; }
.lf-dlinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.lf-dlinks__item { display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--line); border-radius: 600px;
  font-size: 14px; line-height: 1.2; color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.lf-dlinks__item:hover, .lf-dlinks__item:focus { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.lf-dprofile__cta { margin-top: 32px; }
.lf-dprofile__hint { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lf-dnote { margin: -48px 0 64px; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* «Мебель из проектов»: сетка карточек из blog-article.css, без её внешних отступов */
.lf-ds-section .lf-products { margin: 0; }

/* ---------- Карточка дизайнера в статье ---------- */
.lf-dcredit { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); text-decoration: none; text-align: left; transition: border-color .2s ease; }
.lf-dcredit:hover, .lf-dcredit:focus { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.lf-dcredit__img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--soft);
  display: flex; align-items: center; justify-content: center; }
.lf-dcredit__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-dcredit__img span { font-size: 18px; }
.lf-dcredit__body { flex: 1; min-width: 0; line-height: 1.35; }
.lf-dcredit__label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.lf-dcredit__name { display: block; font-size: 16px; font-weight: 600; }
.lf-dcredit__studio { display: block; font-size: 13px; color: var(--muted); }
.lf-dcredit__arrow { flex: 0 0 22px; width: 22px; height: 22px; transition: transform .25s ease; }
.lf-dcredit:hover .lf-dcredit__arrow { transform: translateX(4px); }

/* Блок «Дизайнер проекта» после статьи */
.lf-dabout { margin: 0 0 72px; padding: 40px 48px; border-radius: 24px; background: var(--soft); color: var(--ink); }
.lf-dabout__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.lf-dabout__top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.lf-dabout__top .lf-dcredit__img { flex-basis: 80px; width: 80px; height: 80px; background: #fff; }
.lf-dabout__top .lf-dcredit__img span { font-size: 26px; }
.lf-dabout__name { font-family: "Cera Pro", sans-serif; font-weight: 500; font-size: 28px; line-height: 1.2; margin: 0; }
.lf-dabout__meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.lf-dabout__text { max-width: 820px; font-size: 17px; line-height: 1.6; color: #3b3935; margin: 0 0 12px; }
.lf-dabout__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (max-width: 1199px) {
  .lf-ds__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .lf-ds__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf-ds__title, .lf-dprofile__name { font-size: 36px; }
}
@media (max-width: 767px) {
  .lf-ds { margin-bottom: 48px; }
  .lf-ds__head { margin-bottom: 28px; }
  .lf-ds__title, .lf-dprofile__name { font-size: 30px; }
  .lf-ds__lead, .lf-dprofile__about { font-size: 16px; }
  .lf-ds__h2 { font-size: 24px; margin-bottom: 18px; }
  .lf-ds__grid { gap: 24px 12px; }
  .lf-dcard__img { border-radius: 16px; margin-bottom: 12px; }
  .lf-dcard__initials { font-size: 40px; }
  .lf-dcard__name { font-size: 17px; }
  .lf-dcard__meta { font-size: 13px; }
  .lf-dcard__count { font-size: 12px; margin-top: 6px; }
  .lf-ds-section, .lf-dprofile { margin-bottom: 48px; }
  .lf-ds-join, .lf-dabout { padding: 28px 22px; border-radius: 18px; margin-bottom: 56px; }
  .lf-ds-join__title { font-size: 23px; }
  .lf-ds-join__text, .lf-dabout__text { font-size: 15px; }
  .lf-dbtn { width: 100%; }
  .lf-dprofile__top { gap: 16px; margin-bottom: 20px; }
  .lf-dprofile__photo { flex-basis: 88px; width: 88px; height: 88px; }
  .lf-dprofile__photo span { font-size: 28px; }
  .lf-dabout__name { font-size: 22px; }
  .lf-dabout__top .lf-dcredit__img { flex-basis: 64px; width: 64px; height: 64px; }
  .lf-dnote { margin: -40px 0 48px; }
}
