/* BF Vysota — design pass v3
   Visual refinement after real-browser review.
   Keeps Puck structure intact while reducing the UI-kit feel. */

:root {
  --vysota-warm: #c85c36;
  --vysota-warm-deep: #9f4128;
  --vysota-warm-soft: #f5e5dc;
}

/* ---------- Brand details ---------- */
.builder-eyebrow {
  position: relative;
}

#about .builder-eyebrow,
#projects .builder-eyebrow,
#team .builder-eyebrow,
#contacts .builder-eyebrow,
#need-help .builder-eyebrow,
#join-team .builder-eyebrow {
  color: var(--vysota-warm) !important;
}

#about .builder-card-bg-dark .builder-eyebrow,
#projects .builder-card-bg-dark .builder-eyebrow,
#team .builder-bg-dark .builder-eyebrow,
#team .builder-card-bg-dark .builder-eyebrow,
#join-team .builder-card-bg-dark .builder-eyebrow {
  color: #e7a27f !important;
}

.site-header .btn-accent,
.header-contacts .btn {
  box-shadow: 0 7px 18px rgba(9, 21, 34, .10) !important;
}

/* ---------- Hero: integrated identity panel ---------- */
#hero .hero-builder-grid {
  min-height: 520px !important;
  height: min(650px, calc(100svh - 72px)) !important;
  max-height: 680px !important;
}

#hero .hero-builder-left {
  padding-top: clamp(36px, 4.6vw, 68px) !important;
  padding-bottom: clamp(36px, 4.6vw, 68px) !important;
}

#hero .builder-heading-xl {
  font-size: clamp(46px, 4.65vw, 70px) !important;
  line-height: .99 !important;
}

#hero .hero-builder-left::after {
  background: linear-gradient(90deg, var(--vysota-warm), rgba(255,255,255,.68)) !important;
  width: 92px !important;
}

#hero .hero-builder-right {
  overflow: hidden;
}

#hero .hero-builder-right::before {
  width: min(38vw, 500px) !important;
  background:
    radial-gradient(circle at 50% 46%, rgba(200,92,54,.14), rgba(255,255,255,.055) 42%, transparent 70%) !important;
  border-color: rgba(255,255,255,.10) !important;
}

#hero .hero-builder-right::after {
  content: "";
  position: absolute;
  width: min(31vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 50%;
  transform: translate(12%, -5%);
}

#hero .hero-builder-right .builder-card {
  width: min(100%, 390px) !important;
  padding: 26px !important;
  background: rgba(12, 29, 47, .64) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #fff !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(22px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%) !important;
}

#hero .hero-builder-right .builder-image-wrap {
  width: 148px !important;
  height: 148px !important;
  align-self: center;
  padding: 8px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

#hero .hero-builder-right .builder-image-wrap img {
  border-radius: 50%;
}

#hero .hero-builder-right .builder-eyebrow {
  color: #e7a27f !important;
}

#hero .hero-builder-right .builder-heading,
#hero .hero-builder-right .builder-text {
  color: #fff !important;
}

#hero .hero-builder-right .builder-text {
  color: rgba(255,255,255,.72) !important;
}

#hero .hero-builder-right .builder-notice {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(255,255,255,.11) !important;
  color: rgba(255,255,255,.78) !important;
}

/* ---------- Trust ribbon ---------- */
#trust .builder-grid > * {
  position: relative;
}

#trust .builder-grid > *::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 14px;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--vysota-warm);
  opacity: .78;
}

#trust .builder-card {
  padding-top: 34px !important;
}

/* ---------- Mission panel ---------- */
#about .builder-column:last-child .builder-card {
  position: relative;
  overflow: hidden;
}

#about .builder-column:last-child .builder-card::after {
  content: "06";
  position: absolute;
  right: -8px;
  bottom: -34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 156px;
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}

/* ---------- Projects: editorial, not catalogue ---------- */
#projects .builder-section-inner {
  gap: 24px !important;
}

#projects #projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch;
}

#projects #projects-grid > *:nth-child(1) { grid-column: span 7; }
#projects #projects-grid > *:nth-child(2) { grid-column: span 5; }
#projects #projects-grid > *:nth-child(n+3) { grid-column: span 6; }

#projects #projects-grid .builder-card {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  padding: 34px !important;
}

#projects #projects-grid > *:nth-child(-n+2) .builder-card {
  min-height: 355px;
}

#projects #projects-grid .builder-card::after {
  content: "";
  position: absolute;
  width: 148px;
  height: 148px;
  right: -58px;
  top: -58px;
  border-radius: 50%;
  background: var(--vysota-warm-soft);
  opacity: .48;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s ease;
  pointer-events: none;
}

#projects #projects-grid .builder-card-bg-dark::after {
  background: rgba(231,162,127,.18);
  opacity: 1;
}

#projects #projects-grid .builder-card:hover::after {
  transform: scale(1.22) translate(-6px, 7px);
  opacity: .78;
}

#projects #projects-grid .builder-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 26px 58px rgba(10,24,38,.13) !important;
}

#projects #projects-grid .builder-heading {
  position: relative;
  z-index: 1;
  max-width: 92%;
}

#projects #projects-grid .builder-text {
  position: relative;
  z-index: 1;
  max-width: 660px !important;
}

#projects #projects-grid .builder-button {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  min-height: 38px;
  border-width: 0 !important;
  padding: 0 0 3px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none;
}

#projects #projects-grid .builder-button::after {
  content: "  →";
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s ease;
}

#projects #projects-grid .builder-button:hover {
  transform: none !important;
  box-shadow: none !important;
}

#projects #projects-grid .builder-button:hover::after {
  transform: translateX(5px);
}

#projects #projects-grid .builder-card-bg-dark .builder-button {
  color: #fff !important;
}

#projects #projects-grid .builder-card-bg-white .builder-button {
  color: var(--vysota-ink) !important;
}

/* ---------- Donation CTA: more editorial ---------- */
#donation-cta .builder-columns {
  align-items: center !important;
}

#donation-cta .builder-heading {
  max-width: 760px;
}

#donation-cta .builder-button-light {
  box-shadow: 0 12px 30px rgba(0,0,0,.14) !important;
}

/* ---------- Team: units, not empty people cards ---------- */
#team #team-services-grid {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 14px !important;
}

#team #team-services-grid > *:first-child {
  grid-column: 1 / -1;
}

#team #team-services-grid .builder-card {
  min-height: 170px;
  box-shadow: none !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  padding: 24px !important;
}

#team #team-services-grid > *:first-child .builder-card {
  min-height: 150px;
  background: linear-gradient(110deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
}

#team #director-card {
  box-shadow: 0 24px 60px rgba(0,0,0,.20) !important;
}

#team #director-card .builder-image-wrap {
  height: 260px !important;
}

/* ---------- Forms: less admin-like ---------- */
.builder-form-widget .form-field-group {
  margin-bottom: 16px;
}

.builder-form-widget .field-label {
  margin: 0 0 7px !important;
  font-size: 11px !important;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: #5d6872;
}

.builder-form-widget .form-input,
.builder-form-widget select.form-input,
.builder-form-widget .form-textarea {
  min-height: 49px;
  border-radius: 12px !important;
  border: 1px solid rgba(19,36,58,.13) !important;
  background: #fff !important;
  padding: 12px 14px !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.builder-form-widget .form-textarea {
  min-height: 108px;
}

.builder-form-widget .form-input:focus,
.builder-form-widget .form-textarea:focus {
  outline: none;
  border-color: rgba(33,75,116,.48) !important;
  box-shadow: 0 0 0 4px rgba(33,75,116,.08) !important;
}

.builder-form-widget .consent-row {
  line-height: 1.55;
}

.builder-form-widget .btn-primary {
  border-radius: 999px !important;
  padding-inline: 22px !important;
}

/* ---------- Contacts ---------- */
#contacts .builder-map {
  box-shadow: 0 18px 46px rgba(10,24,38,.08) !important;
}

#contacts .builder-card-bg-dark {
  position: relative;
  overflow: hidden;
}

#contacts .builder-card-bg-dark::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -86px;
  bottom: -90px;
  background: rgba(200,92,54,.16);
}

/* ---------- Payment: balance + dedicated B2B ---------- */
.donation-shell {
  width: 100%;
}

.donation-primary-grid {
  align-items: stretch !important;
  gap: 24px !important;
}

.donation-primary-grid > .payment-card {
  height: 100%;
}

.donation-primary-grid .qr-card {
  display: flex;
  flex-direction: column;
}

.donation-primary-grid .qr-empty-state {
  flex: 1;
  min-height: 390px !important;
}

.donation-primary-grid .qr-box-wrapper {
  margin-inline: auto;
}

.b2b-wide {
  margin-top: 24px !important;
  padding: 30px 32px !important;
  border-radius: 22px !important;
  background: linear-gradient(120deg, #e9f0f6, #f6f8f8) !important;
  border: 1px solid rgba(33,75,116,.12) !important;
  box-shadow: 0 18px 44px rgba(10,24,38,.06);
}

.b2b-wide-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 34px;
  align-items: center;
}

.b2b-wide h3 {
  margin: 0 0 9px;
  font-size: clamp(24px,2.3vw,34px);
  color: var(--vysota-ink-deep);
}

.b2b-wide p {
  margin: 0;
  max-width: 720px;
  color: var(--vysota-muted);
  line-height: 1.65;
}

.b2b-wide .b2b-actions {
  margin-top: 18px !important;
}

.b2b-wide .b2b-requisites {
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid rgba(19,36,58,.10) !important;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

/* ---------- Inner-page refinement ---------- */
.page-hero,
.builder-bg-dark:first-child {
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.docs-grid .doc-thumb-card,
#docs .builder-card {
  transition: transform .25s ease, box-shadow .25s ease !important;
}

.docs-grid .doc-thumb-card:hover,
#docs .builder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(10,24,38,.10) !important;
}

.legal-page-card {
  border-radius: 24px !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  #hero .hero-builder-grid {
    height: auto !important;
    max-height: none !important;
  }

  #hero .hero-builder-right .builder-card {
    width: min(100%, 560px) !important;
  }

  #projects #projects-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  #projects #projects-grid > * {
    grid-column: span 1 !important;
  }

  #projects #projects-grid > *:first-child {
    grid-column: 1 / -1 !important;
  }

  .b2b-wide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #hero .hero-builder-right {
    padding-top: 10px !important;
    padding-bottom: 34px !important;
  }

  #hero .hero-builder-right::before,
  #hero .hero-builder-right::after {
    display: none;
  }

  #hero .hero-builder-right .builder-card {
    width: 100% !important;
  }

  #hero .hero-builder-right .builder-image-wrap {
    width: 112px !important;
    height: 112px !important;
  }

  #projects #projects-grid {
    grid-template-columns: 1fr !important;
  }

  #projects #projects-grid > * {
    grid-column: 1 !important;
  }

  #projects #projects-grid .builder-card,
  #projects #projects-grid > *:nth-child(-n+2) .builder-card {
    min-height: 0;
  }

  #team #team-services-grid {
    grid-template-columns: 1fr !important;
  }

  #team #team-services-grid > *:first-child {
    grid-column: auto;
  }

  .b2b-wide {
    padding: 24px 20px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #projects #projects-grid .builder-card,
  #projects #projects-grid .builder-card::after,
  #projects #projects-grid .builder-button::after {
    transition: none !important;
  }
}
