/* ===== /projects/ — каталог проектов ===== */

.projects-page {
  --pp-gold: var(--secondary-color, #D4AF37);
  --pp-gold-soft: rgba(212, 175, 55, 0.14);
  --pp-card: rgba(26, 29, 41, 0.92);
  --pp-border: rgba(255, 255, 255, 0.1);
  --pp-muted: rgba(245, 243, 239, 0.68);
  background: var(--dark-color, #0F1117);
  color: #F5F3EF;
}

.projects-page .main {
  padding-top: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs-wrap {
  padding: 18px 0 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--pp-muted);
}

.breadcrumbs a {
  color: var(--pp-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--pp-gold);
}

.breadcrumbs__sep {
  opacity: 0.55;
  user-select: none;
}

.breadcrumbs__current {
  color: rgba(245, 243, 239, 0.92);
}

/* ---------- Hero ---------- */
.projects-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(420px, 68vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: 40px 0 48px;
  margin-bottom: 8px;
}

.projects-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.projects-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.projects-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.94) 0%, rgba(15, 17, 23, 0.72) 42%, rgba(15, 17, 23, 0.28) 72%, rgba(15, 17, 23, 0.45) 100%),
    linear-gradient(180deg, rgba(15, 17, 23, 0.35) 0%, rgba(15, 17, 23, 0.15) 40%, rgba(15, 17, 23, 0.82) 100%);
}

.projects-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.projects-hero__tour {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(15, 17, 23, 0.62);
}

.projects-hero__tour i {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--pp-gold);
  font-size: 1.25rem;
}

.projects-hero__tour p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #F5F3EF;
}

.projects-hero__title {
  margin: 0 0 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.projects-hero__text {
  margin: 0 0 26px;
  max-width: 34em;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.88);
}

.projects-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-primary, linear-gradient(135deg, #D4AF37 0%, #C9A961 100%));
  color: var(--dark-color, #0F1117);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projects-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.38);
}

.projects-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(15, 17, 23, 0.45);
  color: #F5F3EF;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.projects-hero__note i {
  color: var(--pp-gold);
}

.projects-hero__perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 36px;
  max-width: 920px;
}

.projects-hero__perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.projects-hero__perk-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: 50%;
  color: var(--pp-gold);
  font-size: 0.95rem;
}

.projects-hero__perk span {
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(245, 243, 239, 0.9);
}

/* ---------- Architecture ---------- */
.projects-arch {
  padding: 64px 0 28px;
}

.projects-arch__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.projects-arch__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
}

.projects-arch__link {
  color: var(--pp-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.projects-arch__link:hover {
  opacity: 0.85;
}

.projects-arch__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.arch-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--pp-border);
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.arch-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.arch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.arch-card:hover .arch-card__media img {
  transform: scale(1.06);
}

.arch-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.15) 0%, rgba(15, 17, 23, 0.35) 40%, rgba(15, 17, 23, 0.92) 100%);
}

.arch-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.arch-card__name {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.arch-card__desc {
  margin: 0;
  max-width: 16em;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(245, 243, 239, 0.82);
}

.arch-card__arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pp-gold);
  color: var(--dark-color, #0F1117);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.arch-card:hover .arch-card__arrow {
  transform: translateX(3px);
}

/* ---------- Catalog ---------- */
.projects-catalog {
  padding: 40px 0 72px;
  scroll-margin-top: 84px;
}

.projects-catalog__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.projects-catalog__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
}

.projects-catalog__found {
  margin: 0;
  color: var(--pp-muted);
  font-size: 0.95rem;
}

.projects-catalog__found strong {
  color: var(--pp-gold);
  font-weight: 700;
}

.layout-note {
  margin: 0 0 28px;
  max-width: 46em;
  color: var(--pp-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.layout-group__title {
  margin: 8px 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.layout-group__title + .projects-grid {
  margin-bottom: 36px;
}

.pcard__media--plain {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.2), transparent 46%),
    #171b24;
  color: #F5F3EF;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
}

.style-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
}

.style-switch__btn {
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(26, 29, 41, 0.88);
  color: rgba(245, 243, 239, 0.9);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.style-switch__btn:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.style-switch__btn.is-active {
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.16);
  color: var(--pp-gold);
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.projects-filters__toggle {
  display: none;
}

.projects-filters__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}

.pfilter {
  position: relative;
}

.pfilter__btn,
.pfilter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: rgba(26, 29, 41, 0.88);
  color: rgba(245, 243, 239, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pfilter__btn:hover,
.pfilter-chip:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.pfilter-chip.is-active,
#filterAllProjects.is-active {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.14);
  color: var(--pp-gold);
}

.pfilter__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  min-width: 200px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(26, 29, 41, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.pfilter.is-open .pfilter__menu {
  display: grid;
  gap: 4px;
}

.pfilter__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 243, 239, 0.88);
  font-size: 0.9rem;
  cursor: pointer;
}

.pfilter__option:hover,
.pfilter__option.is-active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--pp-gold);
}

.projects-sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pp-muted);
  font-size: 0.9rem;
}

.projects-sort select {
  min-height: 42px;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: rgba(26, 29, 41, 0.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #F5F3EF;
  font-size: 0.9rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.projects-filters__reset {
  display: none;
  min-height: 42px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--pp-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.projects-filters__reset:hover {
  color: var(--pp-gold);
}

/* ---------- Cards ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.pcard {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pcard__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #151821;
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pcard:hover .pcard__media img {
  transform: scale(1.05);
}

.pcard__plans {
  position: absolute;
  top: 26px;
  left: -46px;
  z-index: 3;
  width: 190px;
  padding: 7px 0;
  background: linear-gradient(180deg, #ff3b30 0%, #c81010 100%);
  color: #fff;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
  pointer-events: none;
}

.pcard--plans .pcard__badge {
  top: auto;
  bottom: 12px;
  left: 12px;
}

.pcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 17, 23, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--pp-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.pcard__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 17, 23, 0.55);
  color: rgba(245, 243, 239, 0.85);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pcard__fav:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.5);
}

.pcard__fav.is-active {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.45);
}

.pcard__body {
  padding: 18px 18px 20px;
}

.pcard__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.pcard__specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.pcard__specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(245, 243, 239, 0.86);
}

.pcard__specs i {
  color: var(--pp-gold);
  width: 1em;
  text-align: center;
}

.pcard__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.7);
  color: var(--pp-gold);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.pcard:hover .pcard__btn {
  background: rgba(212, 175, 55, 0.12);
}

.projects-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--pp-muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.projects-empty[hidden] {
  display: none !important;
}

/* ---------- Bottom CTA ---------- */
.projects-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0;
  margin-top: 8px;
}

.projects-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.projects-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects-cta__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 23, 0.94) 0%, rgba(15, 17, 23, 0.78) 48%, rgba(15, 17, 23, 0.55) 100%),
    linear-gradient(180deg, rgba(15, 17, 23, 0.4) 0%, rgba(15, 17, 23, 0.75) 100%);
}

.projects-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.projects-cta__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.projects-cta__text {
  margin: 0 0 26px;
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.88);
}

.projects-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-primary, linear-gradient(135deg, #D4AF37 0%, #C9A961 100%));
  color: var(--dark-color, #0F1117);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.projects-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.38);
}

.projects-cta__perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  max-width: 960px;
}

.projects-cta__perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: rgba(245, 243, 239, 0.9);
}

.projects-cta__perk i {
  color: var(--pp-gold);
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-arch__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .projects-hero__perks,
  .projects-cta__perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-sort {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .projects-sort select {
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .projects-page .main {
    padding-top: 0;
  }

  .projects-hero {
    min-height: auto;
    padding: 28px 0 36px;
  }

  .projects-hero__shade {
    background:
      linear-gradient(180deg, rgba(15, 17, 23, 0.55) 0%, rgba(15, 17, 23, 0.82) 55%, rgba(15, 17, 23, 0.95) 100%);
  }

  .projects-arch {
    padding: 48px 0 16px;
  }

  .projects-arch__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.1);
    color: var(--pp-gold);
    font-weight: 700;
    cursor: pointer;
  }

  .projects-filters__panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .projects-filters__panel.is-open {
    display: flex;
  }

  .projects-filters__reset {
    display: inline-flex;
  }

  .pfilter,
  .pfilter-chip,
  #filterAllProjects {
    width: 100%;
  }

  .pfilter__btn,
  .pfilter-chip,
  #filterAllProjects {
    width: 100%;
    justify-content: space-between;
  }

  .pfilter__menu {
    position: static;
    margin-top: 8px;
    display: none;
  }

  .pfilter.is-open .pfilter__menu {
    display: grid;
  }

  .projects-cta {
    padding: 52px 0;
  }
}

@media (max-width: 576px) {
  .projects-grid,
  .projects-arch__grid {
    grid-template-columns: 1fr;
  }

  .projects-hero__perks,
  .projects-cta__perks {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .arch-card {
    min-height: 240px;
  }

  .pcard__title {
    font-size: 1.25rem;
  }
}

/* ===== Story layout: hero, three architectures, stop ===== */
.story-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(520px, 78vh, 760px);
  padding: 72px 24px 64px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.story-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.story-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 22, 0.28) 0%, rgba(12, 16, 22, 0.18) 38%, rgba(12, 16, 22, 0.55) 100%);
}

.story-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.story-hero__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  color: #fff;
}

.story-hero__lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.story-hero__cta,
.style-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.story-hero__cta {
  background: var(--pp-gold, #D4AF37);
  color: #1a160e;
}

.story-hero__cta:hover {
  filter: brightness(1.06);
}

.story-styles {
  background: #f6f1e8;
  color: #1c1915;
}

.style-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 520px;
}

.style-band--flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.style-band--flip .style-band__media {
  order: -1;
}

.style-band__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
}

.style-band__kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d8376;
}

.style-band__title {
  margin: 0 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  color: #1c1915;
}

.style-band__title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.style-band__text {
  margin: 0 0 28px;
  max-width: 28em;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #4d473f;
}

.style-band__btn {
  align-self: flex-start;
  border: 1.5px solid #1c1915;
  color: #1c1915;
  background: transparent;
}

.style-band__btn:hover {
  background: #1c1915;
  color: #f6f1e8;
}

.style-band__media {
  min-height: 360px;
  overflow: hidden;
}

.style-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.family-board {
  padding: 88px 24px 72px;
  background: #f6f1e8;
  color: #1c1915;
}

.family-board__intro,
.fit-list,
.fit-compare {
  max-width: 1120px;
  margin: 0 auto;
}

.family-board__intro {
  text-align: center;
}

.family-board__kicker {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d8376;
}

.family-board__title {
  margin: 0 auto 16px;
  max-width: 16em;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  color: #1c1915;
}

.family-board__lead {
  margin: 0 auto 28px;
  max-width: 36em;
  color: #4d473f;
  line-height: 1.5;
}

.fit-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fit-filters__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1.5px solid #d9d0c3;
  border-radius: 999px;
  background: #fff;
  color: #1c1915;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fit-filters__btn[aria-pressed="true"] {
  background: #1c1915;
  border-color: #1c1915;
  color: #f6f1e8;
}

.fit-list {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.fit-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.3fr);
  gap: 22px;
  padding: 16px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(28, 25, 21, 0.06);
}

.fit-card__photo {
  display: block;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #efe8dc;
}

.fit-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fit-card__photo--plain {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background:
    linear-gradient(160deg, #2a241c 0%, #6d624f 100%);
  color: #f6f1e8;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
}

.fit-card__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 8px 12px 0;
}

.fit-card__name {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
}

.fit-card__meta,
.fit-card__rooms {
  margin: 0 0 6px;
  color: #4d473f;
}

.fit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 18px;
}

.fit-card__pick,
.layout-ask__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pp-gold, #D4AF37);
  color: #1a160e;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.fit-card__tour {
  color: #1c1915;
  font-weight: 700;
  text-decoration: none;
}

.fit-card__plan {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f4ee;
}

.fit-card__plan img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}

.fit-compare {
  margin-top: 56px;
}

.fit-compare__title {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
}

.fit-compare__lead {
  margin: 0 0 18px;
  color: #4d473f;
}

.fit-compare__scroll {
  overflow-x: auto;
  background: #fff;
  border-radius: 24px;
}

.fit-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.fit-table th,
.fit-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid #efe8dc;
}

.fit-table thead th {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
}

.fit-table a {
  color: #1c1915;
  text-decoration: none;
}

.fit-table tbody th {
  color: #6d645b;
  font-weight: 600;
}

.layout-ask {
  position: relative;
  isolation: isolate;
  padding: 72px 24px;
  color: #fff;
  overflow: hidden;
}

.layout-ask__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.layout-ask__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.layout-ask__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.layout-ask__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.layout-ask__copy p {
  margin: 0;
  max-width: 28em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.layout-ask__form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
}

.layout-ask__form input,
.layout-ask__form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e4dccf;
  border-radius: 14px;
  background: #fff;
  color: #1c1915;
  font: inherit;
  box-sizing: border-box;
}

.layout-ask__form textarea {
  min-height: 96px;
  resize: vertical;
}

.layout-ask__submit {
  width: 100%;
}

.layout-ask__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.layout-ask__status {
  margin: 0;
  min-height: 1.2em;
  color: #1c1915;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .style-band,
  .style-band--flip {
    grid-template-columns: 1fr;
  }

  .style-band--flip .style-band__media {
    order: 0;
  }

  .style-band__copy {
    padding: 36px 22px 40px;
  }

  .style-band__media {
    min-height: 280px;
    order: -1;
  }

  .family-board {
    padding: 64px 16px 56px;
  }

  .fit-card,
  .fit-card__body,
  .layout-ask__inner {
    grid-template-columns: 1fr;
  }

  .fit-card__photo {
    min-height: 220px;
  }

  .fit-card__body {
    padding: 4px 8px 12px;
  }

  .layout-ask {
    padding: 48px 16px;
  }
}

/* Страница «Проекты домов»: веер на весь экран, крошки поверх фото под шапкой */
.projects-page .main {
  display: block;
  min-height: 0;
  padding-top: 0;
  box-sizing: border-box;
}

.projects-page .arch-fan.arch-fan--full {
  display: block;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
}

.projects-page .arch-fan--full .content-wrapper,
.projects-page .arch-fan--full .arch-fan__stage {
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.projects-page .breadcrumbs {
  position: absolute;
  z-index: 6;
  top: calc(var(--site-header-h, 88px) + 12px);
  left: 28px;
  right: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.92rem;
  line-height: 1.3;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 3px 8px rgba(0, 0, 0, 0.85),
    0 8px 18px rgba(0, 0, 0, 0.7);
}

.projects-page .breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-page .breadcrumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-page .breadcrumbs a:hover,
.projects-page .breadcrumbs a:focus-visible {
  color: #D4AF37;
}

.projects-page .breadcrumbs__sep {
  opacity: 0.9;
}

.projects-page .breadcrumbs__current {
  color: #fff;
  font-weight: 600;
}

.projects-page .arch-fan--full .arch-fan__motto {
  top: calc(var(--site-header-h, 88px) + 52px);
}

@media (max-width: 800px) {
  .projects-page .main {
    padding-top: 0;
  }

  .projects-page .arch-fan.arch-fan--full,
  .projects-page .arch-fan--full .arch-fan__stage {
    height: 100dvh;
    min-height: 100dvh;
  }

  .projects-page .breadcrumbs {
    left: 16px;
    right: 16px;
    font-size: 0.84rem;
  }

  .projects-page .arch-fan--full .arch-fan__motto {
    top: calc(var(--site-header-h, 60px) + 44px);
  }
}
