/* CEFT demo: preserve the existing palette, fonts and Zero Block geometry. */
.t-records { -webkit-font-smoothing: antialiased; }
.t-records :is(h1,h2,h3,.t-title,.t-heading) { text-wrap: balance; }
.t-records :is(p,.t-descr,.t-text) { text-wrap: pretty; }
.t-records :is(a,button,input,select,textarea):focus-visible { outline: 2px solid #245fb1; outline-offset: 4px; }
.t-records :is(.t-btn,.c4-button,.booking .button) { transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.t-records :is(.t-btn,.c4-button,.booking .button):active { transform: translateY(1px); }
.t-records :is(.t-input,.t-select) { border-radius: 4px; }
#ceft-directions .c4-service { border-color: #d3dfed; border-radius: 8px; transition: border-color .2s ease,box-shadow .2s ease; }
#ceft-directions .c4-service:hover { border-color: #9eb4ce; box-shadow: 0 6px 20px rgba(18,37,64,.06); }
#ceft-directions .c4-service h3 { text-wrap: balance; }
#ceft-directions .c4-actions { flex-wrap: wrap; }
#ceft-directions .c4-wrap { width: 100%; box-sizing: border-box; }
.ceft-head a { text-underline-offset: 4px; }
@media(max-width:639px) {
 .t-records .t-title:not(.tn-atom), .t-records .t-heading:not(.tn-atom) { overflow-wrap: break-word; }
 #ceft-directions .c4-wrap { padding-inline: 20px; }
 #ceft-directions .c4-service { padding: 20px; }
 #ceft-directions .c4-actions { gap: 12px; }
 #ceft-directions .c4-actions .c4-button { min-height: 46px; }
}
@media(prefers-reduced-motion:reduce) {
 .t-records :is(.t-btn,.c4-button,.booking .button,.c4-service) { transition: none; }
}

/* Rebind the home layout after Tilda generated a new block ID. */

/* Reserve the existing banner's 1680 × 945 proportions before it loads. */
#rec5108352801 .tn-elem[data-elem-id="1706105785103"] .tn-atom {
  aspect-ratio: 16 / 9;
}
#rec5108352801 .tn-elem[data-elem-id="1706105785103"] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Keep the existing H1 below the image at every breakpoint. */
  #rec5108352801 {
    padding-top: 24px !important;
  }
  #rec5108352801 .t396__artboard {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }
  #rec5108352801 .tn-elem[data-elem-id="1706105785103"],
  #rec5108352801 .tn-elem[data-elem-id="1706110094031"] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }
  #rec5108352801 .tn-elem[data-elem-id="1706105785103"] {
    order: 0;
    width: 85% !important;
    margin: 0 auto;
  }
  #rec5108352801 .tn-elem[data-elem-id="1706110094031"] {
    order: 1;
    width: calc(100% - 40px) !important;
    max-width: 560px;
    margin: 24px auto 32px;
  }
  #rec5108352801 h1.tn-atom {
    line-height: 1.2 !important;
    text-align: center;
    overflow-wrap: break-word;
  }
@media (max-width: 959px) {
  #rec5108352801 .tn-elem[data-elem-id="1706105785103"] {
    width: 100% !important;
  }
}

/* CEFT editorial templates: existing content and form nodes remain intact. */
.ceft-editorial .t-rec:has(>.t758){padding-top:26px!important;padding-bottom:26px!important}
.ceft-editorial .t758__breadcrumb{font-family:Arial,sans-serif;font-size:13px;line-height:1.5}
.ceft-service-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:48px;max-width:1160px;margin:12px auto 64px;padding:40px;background:#edf3fa;border-radius:8px;box-sizing:border-box}
.ceft-service-hero>.t-rec{padding:0!important;min-width:0}
.ceft-service-hero .t-container,.ceft-service-hero .t-col{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;float:none!important}
.ceft-service-hero .t-container:before,.ceft-service-hero .t-container:after{display:none}
.ceft-service-hero .t107{max-width:100%;overflow:hidden;border-radius:6px}
.ceft-service-hero .t107 img{display:block;width:100%;height:420px;object-fit:cover;object-position:center}
.ceft-service-hero .t-section__title{font-size:46px!important;font-weight:600!important;line-height:1.12!important;color:#122540!important;margin:0 0 28px!important;text-align:left!important}
.ceft-service-hero .t-section__topwrapper{margin:0!important}
.ceft-service-hero .t690__title,.ceft-service-hero .t-title{font-size:46px!important;line-height:1.12!important;text-align:left!important}
.ceft-editorial .t004{max-width:880px;margin:auto}
.ceft-editorial .t004 .t-container,.ceft-editorial .t004 .t-col{width:auto!important;max-width:100%!important;margin:0!important;float:none!important}
.ceft-editorial .t004 .t-text{font-size:22px!important;line-height:1.65!important;color:#26384f}
.ceft-editorial .t004 p+ p{margin-top:20px}
.ceft-editorial .t004 li{margin-bottom:10px}
.ceft-editorial .t545>.t-container{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:64px;align-items:start;max-width:1160px;padding:0 30px;box-sizing:border-box}
.ceft-editorial .t545>.t-container:before,.ceft-editorial .t545>.t-container:after{display:none}
.ceft-editorial .t545 .t545__col{width:100%!important;max-width:100%!important;margin:0!important;float:none!important}
.ceft-editorial .t545__blockimg{border-radius:6px;min-height:480px}
.ceft-editorial .t545__textwrapper{padding:18px 0!important;height:auto!important}
.ceft-editorial .t545__content{display:block!important}
.ceft-editorial .t545__title{font-size:44px!important;line-height:1.15!important;color:#122540!important;margin-bottom:20px!important}
.ceft-editorial .t545__descr{font-family:Arial,sans-serif!important;font-size:12px!important;line-height:1.7!important;letter-spacing:.08em;text-transform:uppercase;color:#526581!important}
.ceft-editorial .t545__line{width:64px!important;margin:28px 0!important;background-color:#b8c9df!important}
.ceft-editorial .t545__text{font-size:21px!important;line-height:1.65!important;color:#26384f!important}
.ceft-editorial .t-section__title{color:#122540;line-height:1.2;letter-spacing:-.015em}
.ceft-editorial .t792__title{color:#122540!important}
.ceft-editorial .t792__row{padding:18px 0!important;border-bottom:1px solid #d3dfed}
.ceft-editorial .t792__price{font-variant-numeric:tabular-nums;white-space:nowrap}
.ceft-editorial .t-btn{border-radius:4px!important;min-height:48px;font-family:Arial,sans-serif;letter-spacing:0}
.ceft-editorial .t690 .t-form__submit .t-submit{border-radius:4px!important}
@media(max-width:1199px){.ceft-service-hero{margin-inline:30px;gap:32px;padding:30px}.ceft-editorial .t004{padding-inline:30px}.ceft-editorial .t545>.t-container{gap:36px}}
@media(max-width:767px){
 .ceft-service-hero{grid-template-columns:1fr;gap:28px;margin:0 20px 36px;padding:24px}
 .ceft-service-hero .t-section__title,.ceft-service-hero .t690__title,.ceft-service-hero .t-title{font-size:36px!important;margin-bottom:24px!important}
 .ceft-service-hero .t107 img{height:280px}
 .ceft-editorial .t545>.t-container{grid-template-columns:1fr;gap:24px;padding-inline:20px}
 .ceft-editorial .t545__blockimg{min-height:360px;max-width:500px;margin:auto}
 .ceft-editorial .t545__title{font-size:36px!important}
 .ceft-editorial .t545__text,.ceft-editorial .t004 .t-text{font-size:20px!important;line-height:1.6!important}
 .ceft-editorial .t004{padding-inline:24px}
 .ceft-editorial .t-rec:has(>.t545){padding-top:20px!important;padding-bottom:40px!important}
}

/* Show embedded image lettering without cropping. */
.ceft-service-hero .t107 img{height:auto;max-height:420px;object-fit:contain}
.ceft-editorial .t843__colwrapper{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;width:auto!important;float:none;margin:0 20px!important}
.ceft-editorial .t843 .t-item{min-width:0;background:#edf3fa;border-radius:8px;overflow:hidden}
.ceft-editorial .t843 .t843__col{float:none!important;width:100%!important;max-width:100%!important;margin:0!important}
.ceft-editorial .t843 .t843__mobileimg{display:none!important}
.ceft-editorial .t843 .t843__desktopimg{display:block!important}
.ceft-editorial .t843__blockimg{height:280px!important;border-radius:0}
.ceft-editorial .t843__textwrapper{height:auto!important;padding:30px!important;background:transparent!important}
.ceft-editorial .t843__content{display:block!important}
.ceft-editorial .t843 .t-card__title{font-size:34px!important;line-height:1.15!important;color:#122540!important}
.ceft-editorial .t843 .t-card__descr{font-size:21px!important;line-height:1.55!important;margin-top:18px}
.ceft-editorial .t843__separator{display:none}
@media(max-width:767px){.ceft-editorial .t843__colwrapper{grid-template-columns:1fr;gap:24px}.ceft-editorial .t843__textwrapper{padding:24px!important}.ceft-editorial .t843 .t-card__title{font-size:30px!important}.ceft-service-hero .t107 img{max-height:320px}}

.ceft-editorial .t843 .t-item{display:flex;flex-direction:column}
.ceft-editorial .t843 .t843__desktopimg{order:0}
.ceft-editorial .t843 .t843__col:not(.t843__desktopimg):not(.t843__mobileimg){order:1;flex:1}
.ceft-editorial .t843__imgwrapper{height:280px!important;max-width:none!important}
.ceft-editorial .t843__blockimg{padding-bottom:0!important;height:280px!important}
.ceft-editorial .t843__textwrapper{box-sizing:border-box}

@media(max-width:767px){.ceft-service-hero .t-section__title,.ceft-service-hero .t690__title,.ceft-service-hero .t-title{font-size:32px!important}}
@media(max-width:359px){.ceft-service-hero .t-section__title,.ceft-service-hero .t690__title,.ceft-service-hero .t-title{font-size:28px!important}}
