/* Durik: Надежда Найдёнкина, Школа дизайна НИУ ВШЭ. https://design.hse.ru/lab/hsefonts */
/*
 * Федина дача — общий слой типографики, 2026-11-16.
 * Общие CSS-стили Tilda. Durik подключён через собственные шрифты проекта.
 * Manrope уже подключён на сайте; повторная загрузка не нужна.
 * !important ограничен свойствами шрифта: блоки T123 находятся после HEAD.
 * Тексты, суммы, ссылки, изображения и поведение форм не изменяются.
 */

:root,
#allrecords,
#fd-home,
#fd-birthday-page,
#fd-restaurant,
#fd-afisha,
#fd-afisha-insert,
#fd-afisha-holidays,
#fd-new-year,
#fd-banquets {
  --fd-display-font: "Durik", "Manrope", Arial, sans-serif;
  --fd-body-font: "Manrope", Arial, sans-serif;
  --t-headline-font: var(--fd-display-font) !important;
}

/* Настоящие заголовки новых страниц. Служебные h3 сохраняют Manrope. */
:is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
    #fd-afisha-insert, #fd-afisha-holidays, #fd-new-year, #fd-banquets)
  :is(h1, h2, h3):not(:where(.fd-offers *, .fd-bday-offer-grid *,
    .fb-feature-items *, .fd-platform-title, .fd-soul)),
#allrecords .fd-heading {
  font-family: var(--fd-display-font) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: balance;
}

/* Без общего h1/h2 для всей Tilda: у старых Zero Blocks фиксированная геометрия. */
:is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha, #fd-new-year, #fd-banquets) h1 {
  font-size: clamp(44px, 5.1vw, 68px) !important;
  line-height: 1.05 !important;
}

#fd-home .fd-hero h1 {
  font-size: clamp(48px, 5.1vw, 68px) !important;
}

:is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
    #fd-afisha-insert, #fd-afisha-holidays, #fd-new-year, #fd-banquets) h2 {
  font-size: clamp(32px, 4vw, 54px) !important;
}

:is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
    #fd-afisha-insert, #fd-afisha-holidays, #fd-new-year, #fd-banquets)
  h3:not(:where(.fd-offers *, .fd-bday-offer-grid *, .fb-feature-items *,
    .fd-platform-title, .fd-soul)) {
  font-size: clamp(25px, 2.5vw, 34px) !important;
}

/* Более компактные заголовки в узких колонках и карточках. */
#fd-home :is(.fd-faq, .fd-review-heading, .fd-banquet-teaser, .fd-holiday-copy) h2,
#fd-birthday-page :is(.fd-bonus, .fd-bday-offers) h2,
#fd-restaurant .fr-next h2,
#fd-afisha-holidays h2,
#fd-new-year h2,
#fd-banquets .fb-related h2 {
  font-size: clamp(32px, 3.5vw, 46px) !important;
}

#fd-home .fd-legacy-services h3 {
  font-size: clamp(28px, 3vw, 40px) !important;
}

#fd-new-year .fdny-menu-card h3,
#fd-banquets :is(.fb-card, .fb-rental-card) h3 {
  font-size: clamp(25px, 2.35vw, 32px) !important;
}

/* Избавляет flex/grid от минимальной ширины длинного слова в заголовке. */
#fd-home :is(.fd-hero-grid, .fd-two, .fd-birthday-top, .fd-faq-grid,
    .fd-contact-top, .fd-review-heading, .fd-news-grid, .fd-legacy-services,
    .fd-banquet-teaser-grid, .fd-holiday-grid) > *,
#fd-birthday-page :is(.fd-hero-grid, .fd-two, .fd-section-top,
    .fd-faq-grid, .fd-plan-list li) > *,
#fd-restaurant :is(.fr-hero-top, .fr-section-head, .fr-video-grid,
    .fr-next, .fr-contacts) > *,
#fd-afisha :is(.fa-intro-top, .fa-event, .fa-corporate-grid,
    .fa-contacts-inner) > *,
#fd-afisha-holidays .fdh-inner > *,
#fd-new-year :is(.fdny-hero, .fdny-program-grid, .fdny-appetizer,
    .fdny-menu-grid, .fdny-kids-inner, .fdny-corporate-inner, .fdny-final) > *,
#fd-banquets :is(.fb-hero-grid, .fb-section-head, .fb-two,
    .fb-faq-grid, .fb-card-grid, .fb-rental-cards, .fb-rental-bottom,
    .fb-plan-list li) > * {
  min-width: 0;
}

/*
 * Прежняя headline-переменная использовалась и для чисел.
 * Цифры, суммы и рекламные условия остаются читаемыми в Manrope;
 * числовые значения и условия не меняются.
 */
#fd-home :is(.fd-offers strong, .fd-rating-number strong),
#fd-birthday-page :is(.fd-offer-number, .fd-period strong,
    .fd-step-number, .fd-bday-offer-grid strong),
#fd-banquets :is(.fb-plan-list span, .fb-rental-capacity strong,
    .fb-rental-average strong) {
  --t-headline-font: var(--fd-body-font) !important;
  font-family: var(--fd-body-font) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

/* Native Tilda: размеры блоков сохраняются. Поля форм и виджеты не захватываются. */
#allrecords :is(.t-title, .t-heading):not(:where(.t-popup *, .t-form *,
    .t-store *, .t-product *, .t-input-group *, .t-feed *, .fd-soul)),
#allrecords :is(.t-title, .t-heading):not(:where(.t-popup *, .t-form *,
    .t-store *, .t-product *, .t-input-group *, .t-feed *, .fd-soul))
  :is(span, a, strong, b, em):not(.fd-soul),
#allrecords .t-popup :is(.t702__title, .t-popup__title),
#allrecords .t-popup :is(.t702__title, .t-popup__title) :is(span, strong, b, em) {
  font-family: var(--fd-display-font) !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-synthesis: none;
  letter-spacing: 0 !important;
}

/*
 * Jikharev / Zhikharev: только резерв класса. --fd-soul-font намеренно
 * не задан до получения и проверки лицензированного файла. Здесь нет
 * подмены похожим курсивом и нет @font-face на несуществующий файл.
 */
.fd-soul {
  font-family: var(--fd-soul-font);
  font-synthesis: none;
}

@media (max-width: 760px) {
  :is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
      #fd-new-year, #fd-banquets) h1,
  #fd-home .fd-hero h1 {
    font-size: clamp(40px, 10vw, 58px) !important;
  }

  :is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
      #fd-afisha-insert, #fd-afisha-holidays, #fd-new-year, #fd-banquets) h2,
  #fd-home :is(.fd-faq, .fd-review-heading, .fd-banquet-teaser, .fd-holiday-copy) h2,
  #fd-birthday-page :is(.fd-bonus, .fd-bday-offers) h2,
  #fd-restaurant .fr-next h2,
  #fd-banquets .fb-related h2 {
    font-size: clamp(32px, 8.8vw, 44px) !important;
  }

  :is(#fd-home, #fd-birthday-page, #fd-restaurant, #fd-afisha,
      #fd-afisha-insert, #fd-afisha-holidays, #fd-new-year, #fd-banquets)
    h3:not(:where(.fd-offers *, .fd-bday-offer-grid *, .fb-feature-items *,
      .fd-platform-title, .fd-soul)),
  #fd-home .fd-legacy-services h3,
  #fd-new-year .fdny-menu-card h3,
  #fd-banquets :is(.fb-card, .fb-rental-card) h3 {
    font-size: clamp(26px, 7vw, 30px) !important;
  }

  #fd-birthday-page .fd-period strong {
    font-size: clamp(22px, 6.15vw, 27px) !important;
  }

  #fd-home .fd-rating-number strong {
    font-size: clamp(52px, 15vw, 68px) !important;
  }
}

/* Заголовки старых разделов меню и бонусной программы. */
#rec2106923441 .tn-elem[data-elem-id="1775061107795"] .tn-atom,
#rec1001831196 .tn-elem[data-elem-id="1694690525029"] .tn-atom,
#rec971195301 .t-section__title,
#rec971195301 .t-section__title span,
#rec326435100 .t337__title,
#rec326435100 .t337__title span {
 font-family:var(--fd-display-font)!important;font-weight:400!important;letter-spacing:0!important;font-synthesis:none;
}

/* Федина дача — compact shared header, 2026-11-17.
   Attribute-gated: safe to append to Tilda's global CSS before rolling out markup.
   It deliberately leaves all page content, sticky bottom CTAs and forms untouched. */
#fd-site-header[data-fds-compact] {
  --fds-clay:#c9451f; --fds-cream:#fff8e7;
  position:relative; z-index:40; padding:12px 0;
  color:var(--fds-cream); background:var(--fds-clay);
  font-family:Manrope,Arial,sans-serif; font-size:14px; line-height:1.5;
  border-bottom:1px solid rgba(255,248,231,.12);
}
#fd-site-header[data-fds-compact] *,
#fd-site-header[data-fds-compact] *::before,
#fd-site-header[data-fds-compact] *::after {box-sizing:border-box}
#fd-site-header[data-fds-compact] .fds-inner {
  width:min(1320px,calc(100% - 64px)); min-height:68px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:22px;
}
#fd-site-header[data-fds-compact] .fds-logo {display:block;flex:0 0 68px}
#fd-site-header[data-fds-compact] .fds-logo img {display:block;width:68px;height:68px;object-fit:contain}
#fd-site-header[data-fds-compact] .fds-desktop-nav {
  display:flex;align-items:center;justify-content:center;gap:18px;
  min-width:0;margin:0 auto;font:500 14px/1.5 Manrope,Arial,sans-serif;white-space:nowrap;
}
#fd-site-header[data-fds-compact] .fds-desktop-nav a {
  display:block;padding:11px 0;border-bottom:1px solid transparent;color:inherit;text-decoration:none;
}
#fd-site-header[data-fds-compact] .fds-desktop-nav a:hover,
#fd-site-header[data-fds-compact] .fds-desktop-nav a[aria-current] {border-bottom-color:currentColor}
#fd-site-header[data-fds-compact] .fds-actions {display:flex;align-items:center;gap:17px;flex:0 0 auto}
#fd-site-header[data-fds-compact] .fds-phone {display:block;margin:0;font-size:13px;font-weight:650;line-height:1.5;white-space:nowrap;color:inherit}
#fd-site-header[data-fds-compact] .fds-book {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:12px 19px;border:1px solid var(--fds-cream);border-radius:26px;
  background:var(--fds-cream);color:var(--fds-clay);
  font:700 13px/1.35 Manrope,Arial,sans-serif;text-decoration:none;white-space:nowrap;
  transition:background-color .15s ease,color .15s ease;
}
#fd-site-header[data-fds-compact] .fds-book:hover {background:#fffdf6;color:#a63317}
#fd-site-header[data-fds-compact] a:focus-visible,
#fd-site-header[data-fds-compact] summary:focus-visible {outline:2px solid var(--fds-cream);outline-offset:5px}
#fd-site-header[data-fds-compact] .fds-mobile-menu {display:none}
@media(max-width:1339px) and (min-width:1200px) {
  #fd-site-header[data-fds-compact] .fds-inner {width:calc(100% - 48px);gap:16px}
  #fd-site-header[data-fds-compact] .fds-desktop-nav {gap:13px;font-size:14px}
  #fd-site-header[data-fds-compact] .fds-actions {gap:12px}
  #fd-site-header[data-fds-compact] .fds-phone {font-size:13px}
  #fd-site-header[data-fds-compact] .fds-book {padding-inline:16px;font-size:13px}
}
/* Switch before the eight-link row can squeeze or wrap. */
@media(max-width:1199px) {
  #fd-site-header[data-fds-compact] .fds-desktop-nav {display:none}
  #fd-site-header[data-fds-compact] .fds-actions {margin-left:auto}
  #fd-site-header[data-fds-compact] .fds-mobile-menu {display:block;position:relative;flex:0 0 auto}
  #fd-site-header[data-fds-compact] .fds-mobile-menu summary {
    display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
    padding:10px 2px;cursor:pointer;list-style:none;font:500 13px/1.5 Manrope,Arial,sans-serif;
    color:inherit;white-space:nowrap;
  }
  #fd-site-header[data-fds-compact] .fds-mobile-menu summary::-webkit-details-marker {display:none}
  #fd-site-header[data-fds-compact] .fds-menu-icon {font-size:17px;line-height:1}
  #fd-site-header[data-fds-compact] .fds-mobile-menu nav {
    position:absolute;right:0;top:calc(100% + 14px);z-index:1;
    width:290px;max-width:calc(100vw - 32px);max-height:min(560px,calc(100dvh - 112px));
    overflow-y:auto;overscroll-behavior:contain;padding:15px 22px;
    background:var(--fds-clay);color:var(--fds-cream);border:1px solid rgba(255,248,231,.35);
    border-radius:16px;box-shadow:0 15px 35px #40312730;
  }
  #fd-site-header[data-fds-compact] .fds-mobile-menu nav a {
    display:block;padding:11px 0;font:500 14px/1.5 Manrope,Arial,sans-serif;color:inherit;text-decoration:none;
  }
  #fd-site-header[data-fds-compact] .fds-mobile-menu nav a[aria-current] {text-decoration:underline;text-underline-offset:5px}
  #fd-site-header[data-fds-compact] .fds-mobile-menu nav .fds-mobile-phone {
    border-top:1px solid rgba(255,248,231,.3);margin-top:8px;padding-top:17px;font-weight:700;
  }
}
@media(max-width:760px) {
  #fd-site-header[data-fds-compact] {padding:10px 0}
  #fd-site-header[data-fds-compact] .fds-inner {width:calc(100% - 32px);min-height:58px;gap:12px}
  #fd-site-header[data-fds-compact] .fds-logo {flex-basis:58px}
  #fd-site-header[data-fds-compact] .fds-logo img {width:58px;height:58px}
  #fd-site-header[data-fds-compact] .fds-phone {display:none}
  #fd-site-header[data-fds-compact] .fds-actions {gap:0}
  #fd-site-header[data-fds-compact] .fds-book {min-height:43px;padding:12px 15px;font-size:12px}
  #fd-site-header[data-fds-compact] .fds-mobile-menu summary {font-size:12px;gap:6px}
  #fd-site-header[data-fds-compact] .fds-mobile-menu nav {top:calc(100% + 11px);max-height:min(560px,calc(100dvh - 102px))}
}
@media(max-width:359px) {
  #fd-site-header[data-fds-compact] .fds-inner {gap:8px;width:calc(100% - 24px)}
  #fd-site-header[data-fds-compact] .fds-logo {flex-basis:52px}
  #fd-site-header[data-fds-compact] .fds-logo img {width:52px;height:58px}
  #fd-site-header[data-fds-compact] .fds-book {font-size:11px;padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){#fd-site-header[data-fds-compact] .fds-book{transition:none}}
