/* V5.2 — sabit tedavi kartları, Baloo 2 başlıklar, karakterli gece/gündüz ve eğlenceli Forty & Fayf alanı */
.template-kids{
  --kids-heading-font:'Baloo 2','Nunito','Plus Jakarta Sans',system-ui,sans-serif;
  --kids-night:#081728;
  --kids-night-surface:#0f243c;
  --kids-night-card:#132b46;
  --kids-night-text:#eef8ff;
  --kids-night-muted:#a6b8cc;
}
.template-kids :is(h1,h2,h3,h4,.home49-section-heading h2,.home50-about-copy h2,.home50-character-heading h2,.home50-story-character figcaption strong,.home49-hero-copy h1,.home49-service-card strong,.home49-video-copy h3,.home49-faq-question strong,.service-detail-copy h1,.service-rich-content h2,.service-rich-content h3,.detail-aside-card h2){
  font-family:var(--kids-heading-font)!important;
  font-weight:800!important;
  font-synthesis:none;
  font-kerning:normal;
  font-feature-settings:'kern' 1,'locl' 1;
  letter-spacing:-.035em;
}
.template-kids :is(.home49-section-heading h2,.home50-about-copy h2,.home50-character-heading h2,.home51-character-cards-heading h2){
  font-size:clamp(36px,4.3vw,58px);
  line-height:1.01;
}

/* Forty / Fayf tema anahtarı */
.character-theme-switch{
  position:relative;width:142px;height:49px;padding:4px 7px;border:1px solid rgba(31,92,139,.12);border-radius:18px;background:linear-gradient(135deg,#f3fbff,#fff5fa);display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:3px;cursor:pointer;box-shadow:0 10px 28px rgba(28,75,112,.09),inset 0 1px 0 #fff;transition:width .3s ease,transform .25s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease;overflow:hidden
}
.character-theme-switch:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(28,75,112,.14),inset 0 1px 0 #fff}
.theme-character{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;transition:opacity .25s ease,transform .3s cubic-bezier(.2,.9,.25,1)}
.theme-character img{width:33px;height:38px;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(17,48,82,.15));transition:transform .3s ease,filter .3s ease}
.theme-character small{position:absolute;bottom:-1px;padding:2px 5px;border-radius:7px;background:#fff;color:#28435f;font:800 7px/1 var(--body-font);box-shadow:0 4px 10px rgba(25,66,102,.08);white-space:nowrap}
.theme-switch-track{position:relative;width:31px;height:17px;border-radius:99px;background:linear-gradient(90deg,#ffd95e,#8e72ef);box-shadow:inset 0 2px 5px rgba(22,45,73,.18)}
.theme-switch-track i{position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(20,47,78,.25);transition:translate .3s cubic-bezier(.2,.9,.25,1)}
html[data-theme='day'] .theme-character.is-day img{transform:translateY(-2px) scale(1.08)}
html[data-theme='day'] .theme-character.is-night{opacity:.45;transform:scale(.88)}
html[data-theme='night'] .theme-character.is-night img{transform:translateY(-2px) scale(1.08)}
html[data-theme='night'] .theme-character.is-day{opacity:.45;transform:scale(.88)}
html[data-theme='night'] .theme-switch-track i{translate:14px 0}
.smart-header .site-header.is-scrolled .character-theme-switch{width:92px;height:42px;border-radius:15px;grid-template-columns:31px 1fr 31px;padding-inline:5px}
.smart-header .site-header.is-scrolled .theme-character img{width:27px;height:31px}
.smart-header .site-header.is-scrolled .theme-character small{display:none}
.smart-header .site-header.is-scrolled .theme-switch-track{width:24px;height:14px}
.smart-header .site-header.is-scrolled .theme-switch-track i{width:10px;height:10px}
html[data-theme='night'] .smart-header .site-header.is-scrolled .theme-switch-track i{translate:10px 0}

.mobile-theme-switch{width:100%;min-height:64px;border:1px solid rgba(34,97,146,.12);border-radius:19px;padding:7px 12px;background:linear-gradient(135deg,#eef9ff,#fff4fa);display:grid;grid-template-columns:1fr 40px 1fr;align-items:center;gap:7px;cursor:pointer;color:#203853}
.mobile-theme-switch>span{display:flex;align-items:center;gap:7px;font:800 11px/1 var(--body-font)}
.mobile-theme-switch>span:last-child{justify-content:flex-end}
.mobile-theme-switch img{width:38px;height:45px;object-fit:contain}
.mobile-theme-switch>i{position:relative;width:40px;height:22px;border-radius:99px;background:linear-gradient(90deg,#ffd95e,#8e72ef);box-shadow:inset 0 2px 5px rgba(22,45,73,.18)}
.mobile-theme-switch>i:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(20,47,78,.25);transition:translate .3s ease}
html[data-theme='night'] .mobile-theme-switch>i:before{translate:18px 0}

/* Tedaviler: yazılar dikey, kart yüksekliği sabit */
.home49-services-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px!important}
.home49-service-card,
.home49-service-card[data-delight-card]{
  height:250px!important;min-height:250px!important;max-height:250px!important;padding:20px 18px 16px!important;display:grid!important;grid-template-rows:70px minmax(0,1fr) 26px;align-items:start!important;justify-items:center;gap:10px;transform:perspective(850px) rotateX(var(--delight-rx,0deg)) rotateY(var(--delight-ry,0deg))!important;transition:transform .28s cubic-bezier(.2,.75,.25,1),box-shadow .28s ease,border-color .28s ease!important
}
.home49-service-card[data-delight-card]:hover,
.home49-service-card:hover{height:250px!important;min-height:250px!important;max-height:250px!important;transform:perspective(850px) translateY(-7px) rotateX(var(--delight-rx,0deg)) rotateY(var(--delight-ry,0deg))!important}
.home49-service-icon{margin:0!important;align-self:start}
.home52-service-copy{width:100%;min-width:0;display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;text-align:center;gap:7px;overflow:hidden}
.home52-service-copy>strong{display:-webkit-box!important;width:100%;margin:0!important;min-height:38px;color:var(--card-title);font-size:16px!important;line-height:1.18!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important;word-break:normal;overflow-wrap:anywhere}
.home52-service-copy>small{display:-webkit-box!important;width:100%;height:52px;margin:0!important;color:#748499;font:650 11px/1.52 var(--body-font)!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal!important}
.home49-service-more{align-self:end;margin:0!important;padding:0!important;min-height:24px;display:inline-flex!important;align-items:center;gap:6px;opacity:.74!important;transform:none!important;font-size:10px!important}
.home49-service-card:hover .home49-service-more{opacity:1!important;transform:none!important}
.home52-service-bubble-layer{position:absolute!important;inset:0!important;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:4!important}

/* Karakter kartları artık oyun alanı gibi */
.home52-character-playground{background:
  radial-gradient(circle at 9% 20%,rgba(52,178,238,.18),transparent 25%),
  radial-gradient(circle at 91% 24%,rgba(244,0,132,.14),transparent 26%),
  linear-gradient(180deg,#fff 0%,#fff8fc 48%,#f1faff 100%)!important
}
.home52-character-card-grid{grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr)!important;align-items:center;gap:20px!important}
.home51-character-card{min-height:430px;grid-template-columns:minmax(185px,.78fr) minmax(0,1.22fr);padding:31px 30px 28px}
.home51-character-card.is-active{transform:perspective(900px) translateY(-8px) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));box-shadow:0 38px 90px rgba(34,70,112,.18);border-color:color-mix(in srgb,var(--character-color) 25%,#fff)}
.home52-character-speech{position:absolute;z-index:12;top:20px;right:22px;max-width:210px;padding:11px 14px;border-radius:17px 17px 4px 17px;background:#fff;color:#24415e;font:800 10px/1.45 var(--body-font);box-shadow:0 15px 35px rgba(23,62,97,.12);opacity:0;translate:0 9px;scale:.92;transition:opacity .25s ease,translate .3s ease,scale .3s ease;pointer-events:none}
.home51-character-card.is-fayf .home52-character-speech{right:auto;left:22px;border-radius:17px 17px 17px 4px}
.home52-character-speech:after{content:'';position:absolute;right:12px;bottom:-7px;border:8px solid transparent;border-top-color:#fff;border-right:0;rotate:-10deg}
.home51-character-card.is-fayf .home52-character-speech:after{right:auto;left:12px;border-right:8px solid transparent;border-left:0;border-top-color:#fff;rotate:10deg}
.home51-character-card:hover .home52-character-speech,.home51-character-card:focus-visible .home52-character-speech,.home51-character-card.is-active .home52-character-speech{opacity:1;translate:0 0;scale:1}
.home52-character-action{display:inline-flex;align-items:center;gap:8px;margin-top:17px;min-height:40px;padding:0 14px;border-radius:13px;background:var(--character-color);color:#fff;font:800 10px/1 var(--body-font);box-shadow:0 10px 20px color-mix(in srgb,var(--character-color) 24%,transparent);transition:transform .2s ease,box-shadow .2s ease}
.home52-character-action:hover{transform:translateY(-2px);box-shadow:0 14px 25px color-mix(in srgb,var(--character-color) 31%,transparent)}
.home52-character-action svg{width:15px;height:15px}
.home52-friendship-bridge{position:relative;z-index:4;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:18px 8px;color:#334f6d}
.home52-bridge-heart{position:relative;width:82px;height:82px;border-radius:29px;display:grid;place-items:center;background:linear-gradient(145deg,#fff0f7,#e9f8ff);box-shadow:0 20px 45px rgba(36,83,121,.13);animation:home52BridgeFloat 3.8s ease-in-out infinite}
.home52-bridge-heart svg{width:39px;height:39px;color:var(--secondary);filter:drop-shadow(0 7px 9px rgba(244,0,132,.2));animation:home52HeartBeat 1.7s ease-in-out infinite}
.home52-bridge-heart i,.home52-bridge-heart:before,.home52-bridge-heart:after{content:'';position:absolute;width:10px;height:10px;border-radius:4px;background:var(--accent);animation:home52Spark 2.6s ease-in-out infinite}
.home52-bridge-heart i{left:-7px;top:18px;background:var(--primary)}
.home52-bridge-heart:before{right:-7px;bottom:17px;background:var(--secondary);animation-delay:-.8s}
.home52-bridge-heart:after{right:7px;top:-8px;animation-delay:-1.5s}
.home52-friendship-bridge strong{font:800 18px/1.1 var(--kids-heading-font)}
.home52-friendship-bridge small{max-width:140px;color:#7b899b;font:650 9px/1.5 var(--body-font)}
.home52-friendship-bridge.is-talking .home52-bridge-heart{animation:home52BridgePop .55s cubic-bezier(.2,.9,.25,1)}

/* Bülten butonsuz kullanım */
.newsletter-inner.has-no-button .newsletter-form{grid-template-columns:1fr}
.newsletter-inner.has-no-button .newsletter-form input{border-radius:15px}

/* Gece modu */
html[data-theme='night']{color-scheme:dark}
html[data-theme='night'] body.template-kids{
  --body-bg:var(--kids-night);
  --surface:var(--kids-night-surface);
  --text:var(--kids-night-text);
  --muted:var(--kids-night-muted);
  --soft-blue:#102f4b;
  --soft-pink:#351d3b;
  --header-bg:rgba(8,23,40,.9);
  --header-text:#eff9ff;
  --header-border:rgba(149,193,224,.13);
  --footer-bg:#081728;
  --footer-text:#a6b8cc;
  --footer-heading:#66c9ff;
  background:#081728;color:#eef8ff
}
html[data-theme='night'] .site-pattern-layer{opacity:.035;filter:hue-rotate(8deg) saturate(1.2)}
html[data-theme='night'] .site-header{background:rgba(8,23,40,.88)!important;border-color:rgba(149,193,224,.13)!important;backdrop-filter:blur(18px)}
html[data-theme='night'] .smart-header .site-header.is-scrolled .header-inner{background:rgba(10,29,49,.93)!important;border-color:rgba(149,193,224,.12)!important;box-shadow:0 20px 58px rgba(0,0,0,.28)!important}
html[data-theme='night'] .main-nav a{color:#e7f6ff}
html[data-theme='night'] .main-nav a:hover,html[data-theme='night'] .main-nav a.is-active{background:#12344f;color:#70d3ff}
html[data-theme='night'] .phone-link{color:#eef8ff}
html[data-theme='night'] .phone-dot{background:#351d3b}
html[data-theme='night'] .character-theme-switch,html[data-theme='night'] .mobile-theme-switch{background:linear-gradient(135deg,#102c48,#2b1d3d);border-color:rgba(156,198,228,.16);box-shadow:0 14px 32px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05)}
html[data-theme='night'] .theme-character small{background:#18334e;color:#eaf7ff}
html[data-theme='night'] .mobile-theme-switch{color:#eff9ff}
html[data-theme='night'] .mobile-native-panel{background:#0d2138!important;color:#eef8ff}
html[data-theme='night'] .mobile-native-links a,html[data-theme='night'] .mobile-native-call{background:#122b45!important;border-color:rgba(150,194,225,.12)!important;color:#eef8ff!important}
html[data-theme='night'] .home49-hero-slide{--slide-bg:#0d2941!important;--slide-text:#eef8ff!important;background:#0d2941!important}
html[data-theme='night'] .home49-clinic-window{background:#17334c!important;border-color:rgba(255,255,255,.1)!important}
html[data-theme='night'] .home49-shortcuts,html[data-theme='night'] .home49-services,html[data-theme='night'] .home49-videos,html[data-theme='night'] .home49-proof-faq,html[data-theme='night'] .contact-location-section,html[data-theme='night'] .home52-character-playground,html[data-theme='night'] .site-footer,html[data-theme='night'] .service-detail-content-section,html[data-theme='night'] .detail-other-services{background:#081728!important}
html[data-theme='night'] .home50-story{--story-bg:#0b1c31!important;background:#0b1c31!important}
html[data-theme='night'] .home50-story-sticky{background:#0b1c31!important}
html[data-theme='night'] .home49-shortcuts-shell,html[data-theme='night'] .home49-service-card,html[data-theme='night'] .home49-video-card,html[data-theme='night'] .home49-review-card,html[data-theme='night'] .home49-faq-item,html[data-theme='night'] .contact-card,html[data-theme='night'] .location-card,html[data-theme='night'] .home51-character-card,html[data-theme='night'] .service-rich-content,html[data-theme='night'] .detail-aside-card,html[data-theme='night'] .detail-service-list a{background:#112943!important;border-color:rgba(160,202,232,.11)!important;color:#eef8ff!important;box-shadow:0 22px 55px rgba(0,0,0,.17)!important}
html[data-theme='night'] .home49-shortcut{background:#132d48!important;border-color:rgba(160,202,232,.1)!important}
html[data-theme='night'] :is(.home49-section-heading h2,.home50-about-copy h2,.home50-character-heading h2,.home51-character-cards-heading h2,.home51-character-card-copy>strong,.home49-service-card strong,.home49-video-copy h3,.home49-faq-question b,.contact-card h2,.location-card h2,.footer-column h3,.service-detail-copy h1,.service-rich-content h2,.service-rich-content h3,.detail-aside-card h2,.detail-other-services h2){color:#eff9ff!important}
html[data-theme='night'] :is(.home49-service-card small,.home49-video-copy p,.home49-review-card p,.home49-faq-answer,.home50-about-copy p,.home51-character-cards-heading p,.home51-character-card-copy>p,.contact-card p,.location-card p,.contact-detail-copy small,.footer-brand p,.service-detail-copy>p,.service-rich-content p,.detail-aside-card p){color:#a9bbcf!important}
html[data-theme='night'] .home51-character-card.is-forty{--character-soft:#133d5c;background:linear-gradient(145deg,#123553,#10263e 72%)!important}
html[data-theme='night'] .home51-character-card.is-fayf{--character-soft:#4a2142;background:linear-gradient(145deg,#42213c,#10263e 72%)!important}
html[data-theme='night'] .home52-character-speech{background:#193852;color:#eef8ff}
html[data-theme='night'] .home52-character-speech:after{border-top-color:#193852}
html[data-theme='night'] .home52-friendship-bridge{color:#eef8ff}
html[data-theme='night'] .home52-friendship-bridge small{color:#a7b9cc}
html[data-theme='night'] .home52-bridge-heart{background:linear-gradient(145deg,#40213c,#103b57);box-shadow:0 20px 45px rgba(0,0,0,.24)}
html[data-theme='night'] .newsletter{filter:saturate(.9) brightness(.8)}
html[data-theme='night'] .service-detail-hero{--detail-bg:#0d2941!important;background:#0d2941!important}
html[data-theme='night'] .detail-phone{background:#142e48!important;border-color:rgba(155,198,229,.13)!important;color:#eef8ff!important}
html[data-theme='night'] .detail-image-frame{border-color:rgba(255,255,255,.12)!important;box-shadow:0 30px 70px rgba(0,0,0,.25)!important}
html[data-theme='night'] .about-expand-card,html[data-theme='night'] .about-modal-dialog{background:#102842;color:#eef8ff}
html[data-theme='night'] .about-rich-content{color:#b8c8d8}

@keyframes home52BridgeFloat{50%{translate:0 -8px;rotate:3deg}}
@keyframes home52HeartBeat{0%,100%{scale:1}45%{scale:1.13}65%{scale:.97}}
@keyframes home52Spark{50%{translate:0 -7px;rotate:32deg;scale:1.2}}
@keyframes home52BridgePop{40%{scale:1.16;rotate:-4deg}75%{scale:.96;rotate:2deg}}

@media(max-width:1120px){
  .home49-services-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home52-character-card-grid{grid-template-columns:1fr 110px 1fr!important}
  .home51-character-card{grid-template-columns:160px 1fr;padding-inline:23px}
  .home52-friendship-bridge strong{font-size:15px}
}
@media(max-width:900px){
  .character-theme-switch{display:none}
  .home52-character-card-grid{grid-template-columns:1fr!important;gap:15px!important}
  .home52-friendship-bridge{order:2;padding:3px 12px 9px}
  .home52-bridge-heart{width:68px;height:68px;border-radius:24px}
  .home52-bridge-heart svg{width:31px;height:31px}
  .home51-character-card:first-child{order:1}.home51-character-card:last-child{order:3}
}
@media(max-width:720px){
  .template-kids :is(.home49-section-heading h2,.home50-about-copy h2,.home50-character-heading h2,.home51-character-cards-heading h2){font-size:36px}
  .home49-services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
  .home49-service-card,.home49-service-card[data-delight-card],.home49-service-card:hover,.home49-service-card[data-delight-card]:hover{height:225px!important;min-height:225px!important;max-height:225px!important;padding:16px 11px 13px!important;grid-template-rows:61px minmax(0,1fr) 22px}
  .home49-service-icon{width:58px;height:58px;border-radius:19px}
  .home49-service-icon svg{width:35px;height:35px}
  .home52-service-copy>strong{font-size:14px!important;min-height:34px}
  .home52-service-copy>small{height:44px;font-size:9px!important;-webkit-line-clamp:3}
  .home51-character-card{min-height:350px;grid-template-columns:42% 58%;padding:19px 17px 17px}
  .home52-character-speech{top:12px;right:12px;max-width:155px;font-size:8px;padding:9px 10px}
  .home51-character-card.is-fayf .home52-character-speech{left:12px}
  .home52-character-action{font-size:8px;min-height:35px;padding-inline:10px}
}
@media(max-width:410px){
  .home49-services-grid{gap:8px!important}
  .home49-service-card,.home49-service-card[data-delight-card],.home49-service-card:hover,.home49-service-card[data-delight-card]:hover{height:215px!important;min-height:215px!important;max-height:215px!important;padding-inline:9px!important}
  .home52-service-copy>strong{font-size:13px!important}
  .home51-character-card{grid-template-columns:39% 61%;min-height:330px}
}
@media(prefers-reduced-motion:reduce){
  .character-theme-switch,.theme-character,.theme-switch-track i,.home52-bridge-heart,.home52-bridge-heart svg,.home52-bridge-heart i,.home52-bridge-heart:before,.home52-bridge-heart:after{animation:none!important;transition:none!important}
}
