/* Страница дня рождения. Общие шапка/подвал и токены — css/app.css. */
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
body { overflow-x: hidden; overflow-x: clip; overflow-wrap: break-word; }
[hidden] { display: none !important; }
.bd-container { width: min(100%,1240px); margin-inline: auto; }
.bd-kicker { margin: 0 0 16px; color: var(--brand-blue-700); font: 500 .875rem/1.4 var(--font-display); text-transform: uppercase; letter-spacing: .13em; }
.bd-hero { padding: calc(var(--header-h-desktop) + 44px) 24px 52px; background: #F7F4EE; }
.bd-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
.bd-hero h1 { margin: 0 0 24px; font: 500 clamp(2.8rem,4.3vw,4.5rem)/1.12 var(--font-display); text-transform: uppercase; letter-spacing: -.02em; }
.bd-hero h1 span { display: block; margin-top: 18px; font: 400 clamp(1.3rem,2vw,1.75rem)/1.35 var(--font-display); color: var(--brand-blue-600); letter-spacing: 0; }
.bd-lead { font-size: 1.125rem; line-height: 1.7; color: var(--neutral-600); margin: 0 0 28px; }
.bd-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.bd-actions .btn, .bd-submit { font-size: 1rem; white-space: normal; text-align: center; }
.bd-link { color: var(--brand-blue-700); text-decoration: underline; text-underline-offset: 5px; font-size: 1rem; font-weight: 500; }
button.bd-link { border: 0; padding: 0; background: none; font-family: inherit; cursor: pointer; }
.bd-hero__facts { list-style: none; padding: 0; margin: 24px 0 18px; font-size: .875rem; line-height: 1.9; color: var(--neutral-600); }
.bd-rating { text-decoration: none; color: var(--neutral-700); font-size: .875rem; }
.bd-rating span { color: #9c6500; margin-right: 5px; }
.bd-hero__media { margin: 0; min-width: 0; }
.bd-hero__media img { width: 100%; height: auto; display: block; border-radius: 4px; }
.bd-hero__media figcaption { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--neutral-600); }
.bd-gift { background: var(--brand-blue-900); color: white; padding: 42px 24px; }
.bd-gift__grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
.bd-gift .bd-kicker { color: var(--brand-blue-200); }
.bd-gift h2, .bd-section h2 { font: 500 clamp(2rem,3vw,3rem)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: -.015em; margin: 0; }
.bd-gift__terms { border-left: 1px solid var(--brand-blue-600); padding-left: 32px; }
.bd-gift__period { margin: 0 0 14px; font: 400 1.375rem/1.4 var(--font-display); }
.bd-gift__terms > p:last-child { margin: 0; color: var(--brand-blue-100); font-size: .875rem; line-height: 1.7; max-width: 380px; }
.bd-section { padding: 76px 24px; background: white; scroll-margin-top: 80px; }
.bd-section__head { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 36px; }
.bd-section__head > p { max-width: 420px; font-size: 1rem; line-height: 1.7; color: var(--neutral-600); margin: 0; }
.bd-formats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bd-format { background: var(--brand-blue-50); display: flex; flex-direction: column; min-width: 0; }
.bd-plan { display: block; width: 100%; height: auto; }
.bd-plan > rect { fill: white; stroke: var(--brand-blue-500); stroke-width: 2; }
.bd-plan > .bd-plan__room { fill: none; stroke: var(--brand-blue-200); stroke-dasharray: 5 5; }
.bd-plan__chairs { fill: var(--brand-blue-300); }
.bd-format__body { padding: 0 28px 28px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.bd-format .bd-kicker { margin-bottom: 10px; }
.bd-format h3 { font: 500 1.5rem/1.3 var(--font-display); margin: 0 0 14px; }
.bd-format__body > p:not(.bd-kicker) { margin: 0 0 22px; color: var(--neutral-600); font-size: 1rem; line-height: 1.7; }
.bd-format .bd-link { margin-top: auto; }
.bd-note { font-size: .875rem; line-height: 1.7; color: var(--neutral-600); margin: 20px 0 0; }
.bd-section--menu { background: #F7F4EE; }
.bd-dishes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bd-dish { min-width: 0; }
.bd-dish img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.bd-dish > div { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 18px 0; }
.bd-dish h3 { margin: 0; font: 500 1.25rem/1.35 var(--font-display); }
.bd-dish p { font-size: 1rem; line-height: 1.7; font-weight: 500; white-space: nowrap; margin: 0; }
.bd-menu-options { margin: 24px 0 28px; padding: 28px 0; border-block: 1px solid var(--neutral-200); display: grid; grid-template-columns: 1fr 1fr auto; gap: 36px; align-items: start; }
.bd-menu-options h3 { font: 500 1.375rem/1.4 var(--font-display); margin: 0 0 10px; }
.bd-menu-options p { font-size: 1rem; line-height: 1.7; color: var(--neutral-600); margin: 0; }
.bd-section--menu .btn { margin-top: 26px; }
.bd-faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; }
.bd-faq__grid > div > p:not(.bd-kicker) { font-size: 1rem; color: var(--neutral-600); line-height: 1.7; margin: 22px 0 0; }
.bd-faq__list details { border-top: 1px solid var(--neutral-200); padding: 20px 0; }
.bd-faq__list summary { font-size: 1.0625rem; line-height: 1.6; font-weight: 500; cursor: pointer; }
.bd-faq__list details > p { font-size: 1rem; line-height: 1.7; color: var(--neutral-600); margin: 16px 0 0; }
.bd-request { background: var(--brand-blue-50); }
.bd-request__grid { display: grid; grid-template-columns: .9fr 1.1fr; grid-template-areas: "intro panel" "help panel"; align-items: start; gap: 0 80px; }
.bd-request__intro { grid-area: intro; }
.bd-request__help { grid-area: help; }
.bd-request__grid > .bd-panel { grid-area: panel; }
.bd-request__intro .bd-lead { margin-top: 24px; }
.bd-response { margin: 28px 0; padding-left: 20px; border-left: 2px solid var(--brand-blue-400); font-size: 1rem; line-height: 1.7; }
.bd-response strong, .bd-response span { display: block; }
.bd-response span { color: var(--neutral-600); font-size: .875rem; }
.bd-direct { margin-top: 32px; }
.bd-direct > p { margin: 0 0 10px; font-size: 1rem; }
.bd-direct > a { display: inline-block; font: 500 1.75rem/1.5 var(--font-display); color: var(--brand-blue-800); text-decoration: none; }
.bd-direct > p:last-child { margin-top: 12px; }
.bd-panel { min-width: 0; padding: 32px; background: white; border: 1px solid var(--brand-blue-100); border-radius: 8px; }
.bd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.bd-field--wide { grid-column: 1/-1; }
.bd-field { min-width: 0; }
.bd-field label { display: block; margin: 0 0 9px; font-size: .875rem; font-weight: 500; line-height: 1.5; }
.bd-field input, .bd-field textarea { width: 100%; min-width: 0; border: 1px solid var(--neutral-300); border-radius: 6px; padding: 13px 14px; min-height: 50px; font: 400 1rem/1.4 var(--font-body); color: var(--neutral-900); background: white; appearance: none; -webkit-appearance: none; }
.bd-field textarea { resize: vertical; }
.bd-field input:focus, .bd-field textarea:focus { outline: 2px solid var(--brand-blue-500); outline-offset: 1px; }
.bd-field input::placeholder, .bd-field textarea::placeholder { color: var(--neutral-500); opacity: 1; }
.bd-field input[type="date"] { min-height: 50px; line-height: 1.4; text-align: left; }
.bd-date-control { position: relative; display: block; }
@supports (-webkit-touch-callout: none) {
  .bd-date-control.is-empty::before { content: "Выберите дату"; position: absolute; z-index: 1; left: 15px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--neutral-500); pointer-events: none; }
}
.bd-error { display: block; color: var(--state-danger); font-size: .875rem; line-height: 1.5; margin-top: 6px; min-height: 0; }
.bd-error:empty { display: none; }
.bd-field [aria-invalid="true"] { border-color: var(--state-danger); }
.bd-extra { margin: 26px 0; }
.bd-extra summary { font-size: .875rem; line-height: 1.6; font-weight: 500; color: var(--brand-blue-700); cursor: pointer; }
.bd-extra summary span { font-weight: 400; color: var(--neutral-600); }
.bd-extra[open] .bd-field { margin-top: 20px; }
.bd-consent { display: flex; align-items: start; gap: 10px; }
.bd-consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-blue-600); }
.bd-consent label { font-size: .875rem; line-height: 1.6; color: var(--neutral-600); }
.bd-consent a { color: var(--brand-blue-700); text-decoration: underline; }
.bd-submit { width: 100%; margin-top: 24px; min-height: 54px; }
.bd-submit:disabled { opacity: .65; cursor: wait; }
.bd-form-note { margin-top: 14px; }
.bd-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bd-format-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; margin: 0 0 24px; background: var(--brand-blue-50); font-size: .875rem; line-height: 1.5; }
.bd-format-choice button { flex: none; color: var(--brand-blue-700); text-decoration: underline; border: 0; background: none; font-size: .875rem; cursor: pointer; }
.bd-result { scroll-margin-top: 100px; }
.bd-result h3 { font: 500 2rem/1.25 var(--font-display); margin: 0 0 20px; }
.bd-result p { font-size: 1rem; line-height: 1.7; color: var(--neutral-600); }
.bd-result [data-guest-status], .bd-result .bd-note { font-size: .875rem; }
.bd-result__back { display: block; margin-top: 24px; text-align: left; }
.bd-result__call { border-top: 1px solid var(--neutral-200); padding-top: 20px; margin-top: 24px; }
.bd-result__call a { color: var(--brand-blue-700); white-space: nowrap; }
.bd-handoff-links { display: flex; flex-direction: column; align-items: start; gap: 20px; margin-top: 24px; }
.bd-preview { margin-top: 24px; }
.bd-preview summary { cursor: pointer; font-size: .875rem; }
.bd-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .875rem/1.6 var(--font-body); padding: 16px; background: var(--neutral-50); }
.bd-toast { position: fixed; z-index: 1500; inset: auto 20px 24px; max-width: 560px; margin-inline: auto; padding: 16px 20px; background: var(--brand-blue-900); color: white; box-shadow: 0 8px 24px #0003; font-size: .875rem; line-height: 1.6; }
main a:focus-visible, main button:focus-visible, main summary:focus-visible { outline: 3px solid var(--brand-blue-600); outline-offset: 5px; }
@media (max-width: 1050px) {
  .bd-hero__grid, .bd-request__grid { gap: 36px; }
  .bd-format__body { padding: 0 20px 24px; }
  .bd-section__head { gap: 32px; }
  .bd-menu-options { grid-template-columns: 1fr 1fr; }
  .bd-menu-options > a { grid-column: 1/-1; }
  .bd-panel { padding: 24px; }
}
@media (max-width: 767px) {
  .bd-hero { padding: calc(var(--header-h-mobile) + 28px) 20px 36px; }
  .bd-hero__grid, .bd-gift__grid, .bd-faq__grid, .bd-request__grid { grid-template-columns: 1fr; gap: 30px; }
  .bd-request__grid { grid-template-areas: "intro" "panel" "help"; }
  .bd-hero h1 { font-size: clamp(2.6rem,9vw,3.8rem); }
  .bd-hero h1 span { font-size: 1.3rem; margin-top: 14px; }
  .bd-lead { font-size: 1rem; }
  .bd-actions { gap: 18px; }
  .bd-actions .btn { width: 100%; padding-inline: 12px; }
  .bd-hero__facts { margin-top: 22px; }
  .bd-gift { padding: 32px 20px; }
  .bd-gift__terms { border-left: 0; padding: 22px 0 0; border-top: 1px solid var(--brand-blue-600); }
  .bd-gift__grid { gap: 24px; }
  .bd-section { padding: 48px 20px; }
  .bd-section__head { display: block; margin-bottom: 28px; }
  .bd-section__head > p { margin-top: 20px; }
  .bd-formats, .bd-dishes { grid-template-columns: 1fr; gap: 24px; }
  .bd-plan { max-height: 170px; }
  .bd-format__body { padding: 0 24px 28px; }
  .bd-menu-options { grid-template-columns: 1fr; gap: 24px; }
  .bd-section--menu .btn { width: 100%; text-align: center; padding-inline: 12px; }
  .bd-fields { grid-template-columns: 1fr; gap: 20px; }
  .bd-panel { padding: 24px 20px; }
  .bd-request__intro .bd-lead { margin-bottom: 20px; }
  .bd-extra summary span { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
