/* BALANCE V2.1 — композиция, фотографии и клиентский полишинг.
   Слой загружается после balance.css и использует те же токены.
   Операторская панель этот файл не загружает. */

/* ---------- Photo slots ---------- */
.photo-slot {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--b-line-strong);
  border-radius: 18px;
  background: var(--b-tint);
  box-shadow: var(--b-shadow);
  isolation: isolate;
}
.photo-slot:not(.has-photo)::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.photo-slot picture,
.photo-slot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.photo-slot img {
  object-fit: cover;
  object-position: center;
  z-index: 2;
}
.photo-slot-hero img {
  object-position: 50% 28%;
}
.photo-slot-lifestyle img {
  object-position: 50% 22%;
}
.photo-fallback[hidden] {
  display: none;
}
.photo-slot figcaption {
  display: none;
}
.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--b-tint);
  color: var(--b-green);
}
.photo-slot.has-photo .photo-fallback {
  display: none;
}
.photo-fallback-kicker {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
}
.photo-fallback-line {
  align-self: flex-start;
  max-width: 8ch;
  font-family: var(--b-serif);
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.photo-fallback-note {
  max-width: 28ch;
  font-size: 0.68rem;
  line-height: 1.45;
  opacity: 0.64;
}
.photo-slot-hero {
  aspect-ratio: 4 / 5;
  border-radius: 230px 230px 20px 20px;
}
.photo-slot-hero .photo-fallback {
  background: var(--b-green);
  color: var(--b-cream);
  border-radius: inherit;
  padding: 78px 42px 34px;
}
.photo-slot-hero .photo-fallback-line {
  align-self: center;
  max-width: 7ch;
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
}
.photo-slot-hero .photo-fallback-kicker,
.photo-slot-hero .photo-fallback-note {
  color: rgba(247, 244, 237, 0.66);
  opacity: 1;
}
.photo-slot-hero .photo-fallback-kicker {
  align-self: center;
  text-align: center;
  max-width: 85%;
}
.photo-slot-hero .photo-fallback-note {
  align-self: center;
  text-align: center;
}
.photo-slot-hero .photo-fallback-note {
  color: rgba(247, 244, 237, 0.55);
}
.photo-slot-food {
  aspect-ratio: 4 / 3;
  border-color: rgba(247, 244, 237, 0.22);
}
.photo-slot-food .photo-fallback {
  background: #f3eee4;
  color: var(--b-green);
}
.photo-slot-lifestyle {
  aspect-ratio: 4 / 5;
}
.photo-slot-lifestyle .photo-fallback {
  background: #dde5d8;
}
.photo-slot-consultation {
  aspect-ratio: 4 / 5;
}
.photo-slot-consultation .photo-fallback {
  background: #e7ece2;
}

/* ---------- Hero V2.1 ---------- */
.b-hero-v21 {
  padding: 52px 0 76px;
  overflow: hidden;
}
.b-hero-v21-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(40px, 5.5vw, 76px);
  align-items: center;
}
.b-hero-v21 h1 {
  max-width: 12ch;
  margin-top: 18px;
  font-family: var(--b-serif);
  font-size: clamp(3.1rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--b-ink);
  text-wrap: balance;
}
.b-hero-v21 .b-hero-lead {
  max-width: 45ch;
  margin-top: 22px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.62;
}
.b-hero-promise {
  max-width: 44ch;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--b-line-strong);
  color: var(--b-green);
  font-family: var(--b-serif);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.4;
}
.b-hero-v21 .b-hero-principles {
  margin-top: 20px;
}
.b-hero-v21 .b-hero-actions {
  margin-top: 26px;
}
.b-hero-v21 .b-hero-note {
  margin-top: 18px;
  max-width: 48ch;
}
.b-hero-v21 .photo-slot {
  width: 100%;
}
.b-hero-v21 .photo-slot-hero {
  margin-left: auto;
  max-width: 520px;
}

/* ---------- Situations V2.1 ---------- */
.b-situations-v21 {
  padding: 86px 0;
}
.b-situations-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}
.b-situations-copy h2 {
  max-width: 12ch;
}
.b-situations-copy .b-situation-list {
  margin-top: 30px;
}
.b-transition {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--b-line-strong);
  max-width: 50ch;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--b-ink-soft);
}
.b-inline-link {
  display: inline;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--b-green);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--b-line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}
.b-inline-link:hover {
  text-decoration-color: var(--b-green);
}

/* ---------- Consultation V2.1 ---------- */
.b-consult-v21 {
  padding: 86px 0;
}
.b-consult-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: start;
}
.b-consult-copy h2 {
  max-width: 13ch;
}
.b-process-v21 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--b-line-strong);
}
.b-process-v21 li,
.b-process-v21 li + li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 1px solid var(--b-line);
}
.b-process-v21 .b-process-num {
  grid-row: 1 / span 2;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--b-accent-ink);
}
.b-process-v21 h3 {
  margin: 0;
  font-size: 1.1rem;
}
.b-process-v21 p {
  margin-top: 4px;
  max-width: 52ch;
  font-size: 0.84rem;
}
.b-consult-note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 2px solid var(--b-accent);
  background: var(--b-surface);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--b-ink-soft);
}
.b-consult-v21 .b-disclaimer {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

/* ---------- Philosophy dark V2.1 ---------- */
.b-philosophy-dark {
  padding: 92px 0;
  background: var(--b-green-deep);
  color: var(--b-cream);
  border-top: 1px solid rgba(247, 244, 237, 0.14);
  border-bottom: 1px solid rgba(247, 244, 237, 0.14);
}
.b-philosophy-dark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}
.b-philosophy-dark .b-kicker {
  color: #b8cbb9;
}
.b-philosophy-dark h2 {
  max-width: 14ch;
  margin-top: 16px;
  font-family: var(--b-serif);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--b-cream);
}
.b-philosophy-dark-lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(247, 244, 237, 0.72);
}
.b-principles-dark {
  margin-top: 28px;
  border-top-color: rgba(247, 244, 237, 0.22);
}
.b-principles-dark li {
  border-bottom-color: rgba(247, 244, 237, 0.18);
}
.b-principles-dark li > span {
  color: #b8cbb9;
}
.b-principles-dark p {
  color: rgba(247, 244, 237, 0.7);
}
.b-medical-note-dark {
  color: rgba(247, 244, 237, 0.5);
}
.b-philosophy-dark .photo-slot {
  max-width: 560px;
  margin-inline: auto;
}

/* ---------- Start V2.1 ---------- */
.b-start-v21 {
  padding: 20px 0 86px;
  border-top: 0;
}
.b-start-v21-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 4.4vw, 58px);
  border: 1px solid var(--b-line-strong);
  border-radius: var(--b-radius-lg);
  background: var(--b-tint);
  box-shadow: var(--b-shadow);
}
.b-start-v21 .b-kicker {
  color: var(--b-accent-ink);
}
.b-start-v21 h2 {
  max-width: 13ch;
  color: var(--b-ink);
}
.b-start-v21 .b-lede {
  max-width: 45ch;
  color: var(--b-ink-soft);
}
.b-start-actions {
  margin-top: 24px;
}
.b-start-v21 .b-form-note {
  color: var(--b-ink-muted);
}
.b-question-preview-v21 {
  border-top-color: var(--b-line-strong);
}
.b-question-preview-v21 li {
  border-bottom-color: var(--b-line);
}
.b-question-preview-v21 span {
  color: var(--b-accent-ink);
}
.b-question-preview-v21 p {
  color: var(--b-ink);
}

/* ---------- FAQ compact ---------- */
.b-faq-v21 {
  padding: 78px 0;
}
.b-faq-v21 .b-faq-grid {
  gap: clamp(36px, 6vw, 76px);
}
.b-faq-v21 .b-faq-item summary {
  padding: 16px 0;
  font-size: 1.04rem;
}
.b-faq-v21 .b-faq-item p {
  padding-bottom: 18px;
  font-size: 0.85rem;
}

/* ---------- Final ---------- */
.b-final {
  padding: 16px 0 76px;
}
.b-final-inner {
  padding: clamp(30px, 4.4vw, 56px);
}
.b-final h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .b-hero-v21-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 36px;
  }
  .b-hero-v21 h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
  }
  .b-consult-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 36px;
  }
  .b-situations-layout {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .b-hero-v21 {
    padding: 36px 0 52px;
  }
  .b-hero-v21-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .b-hero-v21 h1 {
    max-width: 14ch;
    font-size: clamp(2.6rem, 8.4vw, 4.1rem);
  }
  .b-hero-v21 .photo-slot-hero {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
    border-radius: 180px 180px 18px 18px;
  }
  .b-situations-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .b-situations-copy {
    order: 1;
  }
  .b-situations-layout .photo-slot {
    order: 2;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 3;
  }
  .b-consult-layout,
  .b-philosophy-dark-grid,
  .b-start-v21-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .b-consult-v21 .photo-slot,
  .b-philosophy-dark .photo-slot {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 4 / 3;
  }
  .b-situations-v21,
  .b-consult-v21 {
    padding: 64px 0;
  }
  .b-philosophy-dark {
    padding: 68px 0;
  }
  .b-start-v21 {
    padding: 14px 0 64px;
  }
  .b-faq-v21 {
    padding: 60px 0;
  }
}

@media (max-width: 640px) {
  .b-hero-v21 {
    padding: 26px 0 40px;
  }
  .b-hero-v21 h1 {
    margin-top: 14px;
    max-width: none;
    font-size: clamp(2.25rem, 10.6vw, 2.9rem);
    line-height: 1;
  }
  .b-hero-v21 .b-hero-lead {
    margin-top: 16px;
    font-size: 0.94rem;
    line-height: 1.55;
  }
  .b-hero-promise {
    margin-top: 15px;
    padding-top: 11px;
    font-size: 0.96rem;
    line-height: 1.35;
  }
  .b-hero-v21 .b-hero-principles {
    margin-top: 16px;
    gap: 4px;
    font-size: 0.72rem;
  }
  .b-hero-v21 .b-hero-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }
  .b-hero-v21 .b-hero-actions .btn-v2,
  .b-hero-v21 .b-hero-actions .b-secondary-action {
    width: 100%;
    justify-content: center;
  }
  .b-hero-v21 .b-hero-note {
    margin-top: 14px;
    font-size: 0.66rem;
    line-height: 1.45;
  }
  .b-hero-v21 .photo-slot-hero {
    margin-top: 6px;
    aspect-ratio: 4 / 3;
    border-radius: 150px 150px 16px 16px;
  }
  .photo-slot:not(.has-photo)::after {
    inset: 7px;
  }
  .photo-fallback {
    padding: 18px;
  }
  .photo-fallback-kicker {
    font-size: 0.56rem;
  }
  .photo-fallback-line {
    font-size: 1.9rem;
  }
  .photo-slot-hero .photo-fallback {
    padding: 58px 22px 18px;
  }
  .photo-slot-hero .photo-fallback-line {
    font-size: 2.35rem;
  }
  .photo-fallback-note {
    max-width: 24ch;
    font-size: 0.61rem;
  }
  .b-situations-v21,
  .b-consult-v21 {
    padding: 48px 0;
  }
  .b-situations-copy .b-situation-list {
    margin-top: 22px;
  }
  .b-situation-list li {
    padding: 16px 0;
  }
  .b-situation-list h3 {
    font-size: 1.1rem;
  }
  .b-transition {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 0.8rem;
  }
  .b-consult-note {
    margin-top: 18px;
    padding: 11px 13px;
    font-size: 0.73rem;
  }
  .b-process-v21 li,
  .b-process-v21 li + li {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 12px 0;
  }
  .b-process-v21 .b-process-num {
    font-size: 1rem;
  }
  .b-process-v21 h3 {
    font-size: 1rem;
  }
  .b-process-v21 p {
    font-size: 0.78rem;
  }
  .b-philosophy-dark {
    padding: 50px 0;
  }
  .b-philosophy-dark h2 {
    font-size: clamp(2rem, 8.3vw, 2.65rem);
  }
  .b-philosophy-dark-lede {
    margin-top: 14px;
    font-size: 0.88rem;
  }
  .b-principles-dark {
    margin-top: 20px;
  }
  .b-principles-dark li {
    grid-template-columns: 90px 1fr;
    padding: 12px 0;
  }
  .b-start-v21 {
    padding: 8px 0 48px;
  }
  .b-start-v21-panel {
    padding: 26px 18px;
    border-radius: 18px;
  }
  .b-start-v21 h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }
  .b-start-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  .b-start-actions .btn-v2,
  .b-start-actions .b-secondary-action {
    width: 100%;
    justify-content: center;
  }
  .b-question-preview li {
    padding: 12px 0;
  }
  .b-faq-v21 {
    padding: 46px 0;
  }
  .b-faq-v21 .b-faq-grid {
    gap: 28px;
  }
  .b-faq-v21 .b-faq-item summary {
    padding: 14px 0;
    font-size: 0.98rem;
  }
  .b-faq-v21 .b-faq-item p {
    font-size: 0.82rem;
    padding-bottom: 16px;
  }
  .b-final {
    padding: 8px 0 54px;
  }
  .b-final-inner {
    padding: 26px 18px;
  }
  .b-final h2 {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
}

@media (max-width: 380px) {
  .b-hero-v21 h1 {
    font-size: 2.15rem;
  }
  .b-hero-promise {
    font-size: 0.9rem;
  }
  .b-hero-v21 .b-hero-note {
    display: none;
  }
  .photo-slot-hero .photo-fallback-line {
    font-size: 2.1rem;
  }
  .b-start-v21-panel {
    padding: 22px 14px;
  }
}

/* ---------- Ошибки контактной формы (V2.1.1) ---------- */
body.balance .flow-foot-error {
  flex: 1 1 auto;
  margin: 0;
  color: var(--b-error);
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 650;
  text-align: right;
}
body.balance .flow-foot-error[hidden] {
  display: none;
}
body.balance .flow-foot .demo-fill {
  white-space: nowrap;
}

/* ---------- V2.2: отказ отделён от отправки ---------- */
body.balance .quick-decline {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--b-line);
}
body.balance .quick-decline > .link-quiet {
  color: var(--b-ink-muted);
  font-size: 0.78rem;
}
body.balance .quick-decline > .link-quiet:hover {
  color: var(--b-ink);
}
body.balance .decline-confirm {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--b-line-strong);
  border-radius: 12px;
  background: var(--b-surface);
}
body.balance .decline-confirm[hidden] {
  display: none;
}
body.balance .decline-confirm p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--b-ink);
}
body.balance .decline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.balance .decline-actions .btn {
  height: 38px;
  min-width: 0;
  padding-inline: 14px;
  font-size: 0.82rem;
}
body.balance .decline-actions .link-quiet {
  font-size: 0.78rem;
  color: var(--b-ink-muted);
}
body.balance .demo-status {
  margin-top: 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--b-ink-soft);
}
body.balance .demo-status.is-error {
  color: var(--b-error);
}
body.balance .demo-status[hidden] {
  display: none;
}
body.balance .flow-form .field-invalid > label,
body.balance .flow-form .field-invalid .field-label {
  color: var(--b-error);
}
body.balance .flow-form .field-invalid .input,
body.balance .flow-form .field-invalid .select,
body.balance .flow-form .field-invalid .textarea {
  border-color: var(--b-error);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-error) 16%, transparent);
}
body.balance .flow-form .field-invalid .error-text:not(:empty) {
  font-weight: 650;
}
body.balance .flow-form .check.field-invalid span {
  color: var(--b-error);
  font-weight: 650;
}
body.balance .flow-form .check.field-invalid .box,
body.balance .flow-form .check.field-invalid input {
  border-color: var(--b-error);
}
@media (max-width: 620px) {
  body.balance .flow-foot-error {
    text-align: left;
  }
}
