/* Elfik site: our additions on top of the Webflow stylesheet. */

/* Brand font Inter (replaces RF Dewi). Inter runs a little wider; tighter tracking on headings keeps the old line breaks. */
h1, h2, h3, h4, [class*="heading-style-h"] { letter-spacing: -0.02em; text-wrap: balance; }
body { font-optical-sizing: auto; }

/* Script-only links (no href) still look clickable. */
a[role="button"]:not([href]) { cursor: pointer; }

/* Webflow's .w-form, renamed so Webflow's form runtime does not take over our forms. */
:where(.el-form) { margin: 0 0 15px; } /* zero specificity: designer classes still win, as they did over .w-form */

/* Honeypot: invisible to people, filled by naive bots. */
.el-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* Turnstile slot: empty (0 px) unless Cloudflare asks the visitor to tick «Я не робот». */
.el-turnstile:empty { display: none; }
.el-turnstile { margin-top: 12px; }
.el-form-note { margin-top: 10px; font-size: 14px; line-height: 1.4; }
.el-busy { opacity: .7; pointer-events: none; }

/* Quiet reveal of section headings when they scroll into view (respects reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  .el-reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  .el-reveal.el-in { opacity: 1; transform: none; }
}

/* ── UI without Webflow's runtime (src/ui.js) ── */

/* Carousels: native horizontal scroll with snap instead of Swiper/Splide transforms. */
.el-car-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; position: relative; transform: none !important; }
.el-car-track::-webkit-scrollbar { display: none; }
.el-car-track > * { scroll-snap-align: start; flex-shrink: 0; }
.el-car-center .el-car-track { box-sizing: border-box; }
.el-car-center .el-car-track > * { scroll-snap-align: center; }
.el-car-track.el-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.el-car-track.el-dragging * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .el-car-track { cursor: grab; } }
@media (prefers-reduced-motion: no-preference) { .el-car-track { scroll-behavior: smooth; } .el-car-track.el-dragging { scroll-behavior: auto; } }

/* Lightbox (was Webflow's w-lightbox). */
.el-lightbox { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; background: rgba(20, 16, 28, .92); }
.el-lightbox.is-open { display: flex; }
.el-lb-fig { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 64px; box-sizing: border-box; }
.el-lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.el-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font: 28px/44px Inter, Arial, sans-serif; cursor: pointer; padding: 0; }
.el-lightbox button:focus-visible { outline: 2px solid #9aca42; outline-offset: 2px; }
.el-lb-close { top: 12px; right: 12px; }
.el-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.el-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.el-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font: 14px Inter, Arial, sans-serif; }
@media (max-width: 479px) { .el-lb-fig { padding: 56px 8px; } }

/* What Webflow Interactions did: one-time fades and a wiggle, only when motion is welcome. */
@keyframes el-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes el-jiggle { 0%, 100% { transform: rotate(0); } 12%, 37%, 62%, 87% { transform: rotate(-5deg); } 25%, 50%, 75% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: no-preference) {
  .el-ui .quotes-founder:not(.el-fade):not(.el-fade-done) { opacity: 0; }
  .quotes-founder.el-fade { animation: el-fade 1s cubic-bezier(.165, .84, .44, 1) both; }
  .el-jiggle { animation: el-jiggle .8s ease 1; }
  .wrap-img-kindergarten-hero.is-thanks_page { animation: el-fade .5s ease both; }
  .w-tab-pane.el-tab-in, .el-fade-in { animation: el-fade .3s ease both; }
}

/* 404 */
.el-404 { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #fbf7f2; font-family: Inter, Arial, sans-serif; color: #2c2c2c; }
.el-404 main { max-width: 34rem; padding: 2rem 1rem; text-align: center; }
.el-404-code { font-size: 5rem; font-weight: 800; color: #9aca42; margin: 0; }
.el-404 h1 { font-size: 2rem; margin: .5rem 0 1rem; }
.el-404-btn { display: inline-block; background: #9aca42; color: #2c2c2c; padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: .5rem; }
.el-404-link { color: #4e2f8d; margin: .5rem; }
.el-404-ru { margin-top: 2rem; color: #666; }
/* Owner 02.12: form fields and buttons in the «Запишіться» pop-up read too big — 16px instead of the designer's 18px. */
.w-form .text-field-white-bg, .w-form .button.w-button, .w-form-fail, .w-form-done, .el-form-note { font-size: 16px; }

/* SEO text under the kindergarten/school lists starts collapsed to 20rem, as Webflow IX2 did on page load;
   the «hide_block» overlay opens it (ui.js sets an inline height, which wins over this rule). */
.about-kindergarten-section.is-seo_text-section:has(> .hide_block-about-kindergarten-section) { height: 20rem; overflow: hidden; }
/* CMS lists show every item on one page (no Finsweet); the build marks the leftover pager hidden, Webflow CSS would still show it. */
.w-pagination-wrapper[hidden] { display: none !important; }
/* Owner 02.12: the bot check works in the background only — the Turnstile box is never shown (a failed check marks the lead «Перевірити»). */
.el-turnstile { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
/* 02.12: pages of a paged list (blog), «load more» rows and loop copies of a slider that fits — [hidden] must win over
   Webflow's display rules on .w-dyn-item / .swiper-slide. Arrows of a slider that fits are hidden like Swiper's lock. */
[data-el-page][hidden], .el-car-clone[hidden] { display: none !important; }
.swiper-button-lock { display: none !important; }

/* Owner 02.12: dropdown items regular (Webflow had 600). */
.nav-dropdown-link { font-weight: 400 !important; }

/* Branch head without a photo (Alina 11.26: photo comes later): the name tag stays in the flow instead of hanging off the left edge. */
.wrap-img-founder_location.el-no-photo { width: auto; height: auto; aspect-ratio: auto; }
.el-no-photo .text-block { position: static; inset: auto; transform: none; display: inline-block; margin: 0 0 24px; }
