/* V5.3 — sade ikonlu tedavi kartları ve hizmet detayında kompakt header */

/* Ana sayfa: referanstaki gibi sadece ikon + başlık */
.template-kids .home53-services-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch;
}
.template-kids .home53-service-card,
.template-kids .home53-service-card[data-delight-card],
.template-kids .home53-service-card:hover,
.template-kids .home53-service-card[data-delight-card]:hover{
  position:relative;
  height:154px!important;
  min-height:154px!important;
  max-height:154px!important;
  padding:17px 10px 14px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:11px!important;
  border-radius:23px!important;
  overflow:hidden!important;
  transform:perspective(850px) translateY(var(--home53-lift,0px)) 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,background-color .28s ease!important;
}
.template-kids .home53-service-card:hover{
  --home53-lift:-6px;
  border-color:color-mix(in srgb,var(--icon-color) 27%,#fff)!important;
  box-shadow:0 18px 38px rgba(31,75,118,.13)!important;
}
.template-kids .home53-service-card::before{
  content:"";
  position:absolute;
  inset:auto -22% -84% -22%;
  height:112%;
  border-radius:50%;
  background:var(--hover-color);
  opacity:.28;
  transform:translateY(0);
  transition:transform .34s ease,opacity .34s ease;
  pointer-events:none;
}
.template-kids .home53-service-card:hover::before{
  transform:translateY(-18%);
  opacity:.42;
}
.template-kids .home53-service-card::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:radial-gradient(150px circle at var(--pointer-x,50%) var(--pointer-y,50%),rgba(255,255,255,.78),transparent 64%);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.template-kids .home53-service-card:hover::after{opacity:.66}
.template-kids .home53-service-card>*{position:relative;z-index:2}
.template-kids .home53-service-icon{
  width:62px!important;
  height:62px!important;
  min-width:62px;
  margin:0!important;
  border-radius:20px!important;
  color:var(--icon-color)!important;
  background:linear-gradient(145deg,#fff,var(--icon-bg))!important;
  border:1px solid color-mix(in srgb,var(--icon-color) 13%,#fff)!important;
  box-shadow:0 10px 23px color-mix(in srgb,var(--icon-color) 13%,transparent),inset 0 1px 0 rgba(255,255,255,.94)!important;
  display:grid!important;
  place-items:center!important;
  transition:transform .3s cubic-bezier(.2,.9,.25,1),box-shadow .3s ease!important;
}
.template-kids .home53-service-icon svg{
  width:39px!important;
  height:39px!important;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 4px 5px color-mix(in srgb,var(--icon-color) 12%,transparent));
}
.template-kids .home53-service-card:hover .home53-service-icon{
  transform:translateY(-2px) rotate(-5deg) scale(1.07)!important;
  box-shadow:0 14px 28px color-mix(in srgb,var(--icon-color) 18%,transparent),inset 0 1px 0 #fff!important;
}
.template-kids .home53-service-title{
  display:-webkit-box!important;
  width:100%;
  max-width:138px;
  margin:0!important;
  color:var(--card-title)!important;
  font-family:var(--kids-heading-font)!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.18!important;
  letter-spacing:-.018em!important;
  text-align:center;
  white-space:normal!important;
  overflow:hidden;
  overflow-wrap:anywhere;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.template-kids .home53-service-card .home52-service-copy,
.template-kids .home53-service-card .home49-service-more,
.template-kids .home53-service-card small{display:none!important}

/* Gece modu kartları */
html[data-theme='night'] .template-kids .home53-service-icon{
  background:linear-gradient(145deg,#173652,#10283f)!important;
  border-color:rgba(157,203,235,.12)!important;
  box-shadow:0 12px 25px rgba(0,0,0,.19)!important;
}

/* Hizmet detay sayfası: menü taşmasını önleyen geniş/kompakt header */
.service-detail-page .site-header .header-inner{
  width:min(calc(100% - 34px),1580px)!important;
  height:82px;
  gap:14px!important;
  display:grid!important;
  grid-template-columns:minmax(170px,auto) minmax(0,1fr) auto;
  align-items:center;
}
.service-detail-page .site-header .brand{
  min-width:0!important;
  width:auto;
  gap:9px;
}
.service-detail-page .site-header .brand img{
  width:96px!important;
  height:57px!important;
  flex:0 0 auto;
}
.service-detail-page .site-header .brand span{
  max-width:92px;
  font-size:9px;
  line-height:1.2;
}
.service-detail-page .site-header .main-nav{
  min-width:0;
  width:100%;
  margin:0!important;
  display:flex;
  justify-content:center;
  gap:2px!important;
  overflow:visible;
}
.service-detail-page .site-header .main-nav a{
  flex:0 0 auto;
  padding:9px 7px!important;
  font-size:11px!important;
  line-height:1.1;
  white-space:nowrap;
  border-radius:12px;
}
.service-detail-page .site-header .header-actions{
  min-width:0;
  gap:8px!important;
  justify-self:end;
}
.service-detail-page .site-header .character-theme-switch{
  width:94px!important;
  height:42px!important;
  padding:4px 5px!important;
  border-radius:15px!important;
  grid-template-columns:31px 1fr 31px!important;
}
.service-detail-page .site-header .theme-character img{
  width:27px!important;
  height:31px!important;
}
.service-detail-page .site-header .theme-character small{display:none!important}
.service-detail-page .site-header .theme-switch-track{width:24px!important;height:14px!important}
.service-detail-page .site-header .theme-switch-track i{width:10px!important;height:10px!important}
html[data-theme='night'] .service-detail-page .site-header .theme-switch-track i{translate:10px 0!important}
.service-detail-page .site-header .phone-link{
  min-width:164px;
  max-width:184px;
  padding:6px 9px 6px 6px;
  gap:8px;
  border:1px solid var(--header-border);
  border-radius:16px;
  background:color-mix(in srgb,var(--header-bg) 92%,#fff);
  box-shadow:0 9px 24px rgba(27,69,103,.07);
}
.service-detail-page .site-header .phone-dot{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border-radius:13px;
}
.service-detail-page .site-header .phone-copy{
  min-width:0;
  display:grid;
  line-height:1.05;
}
.service-detail-page .site-header .phone-copy small{
  font-size:7px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.service-detail-page .site-header .phone-copy b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

@media(max-width:1380px){
  .service-detail-page .site-header .header-inner{width:min(calc(100% - 26px),1320px)!important;grid-template-columns:122px minmax(0,1fr) auto;gap:9px!important}
  .service-detail-page .site-header .brand span{display:none}
  .service-detail-page .site-header .brand img{width:88px!important}
  .service-detail-page .site-header .main-nav a{padding-inline:6px!important;font-size:10.5px!important}
  .service-detail-page .site-header .phone-link{min-width:0;max-width:none;padding-right:7px}
  .service-detail-page .site-header .phone-copy small{display:none}
}
@media(max-width:1190px){
  .service-detail-page .site-header .phone-link{display:none!important}
  .service-detail-page .site-header .main-nav a{font-size:10px!important;padding-inline:5px!important}
}
@media(max-width:1040px) and (min-width:921px){
  .service-detail-page .site-header .header-inner{
    width:min(calc(100% - 22px),1020px)!important;
    grid-template-columns:100px minmax(0,1fr)!important;
    gap:6px!important;
  }
  .service-detail-page .site-header .brand img{width:82px!important;height:51px!important}
  .service-detail-page .site-header .header-actions{display:none!important}
  .service-detail-page .site-header .main-nav{justify-content:flex-end!important;gap:0!important}
  .service-detail-page .site-header .main-nav a{font-size:9.6px!important;padding:9px 4.5px!important}
}
@media(max-width:920px){
  .service-detail-page .site-header .header-inner{
    height:74px;
    width:min(calc(100% - 24px),var(--container,1180px))!important;
  }
  .service-detail-page .site-header .brand img{width:90px!important;height:54px!important}
}

@media(max-width:1260px){
  .template-kids .home53-services-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:860px){
  .template-kids .home53-services-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important}
  .template-kids .home53-service-card,
  .template-kids .home53-service-card[data-delight-card],
  .template-kids .home53-service-card:hover,
  .template-kids .home53-service-card[data-delight-card]:hover{
    height:145px!important;
    min-height:145px!important;
    max-height:145px!important;
    padding:15px 8px 12px!important;
    border-radius:21px!important;
  }
  .template-kids .home53-service-icon{width:57px!important;height:57px!important;border-radius:18px!important}
  .template-kids .home53-service-icon svg{width:35px!important;height:35px!important}
  .template-kids .home53-service-title{font-size:13px!important;max-width:120px}
}
@media(max-width:620px){
  .template-kids .home53-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .template-kids .home53-service-card,
  .template-kids .home53-service-card[data-delight-card],
  .template-kids .home53-service-card:hover,
  .template-kids .home53-service-card[data-delight-card]:hover{
    height:137px!important;
    min-height:137px!important;
    max-height:137px!important;
    padding:13px 7px 11px!important;
    border-radius:19px!important;
  }
  .template-kids .home53-service-icon{width:53px!important;height:53px!important;border-radius:17px!important}
  .template-kids .home53-service-icon svg{width:33px!important;height:33px!important}
  .template-kids .home53-service-title{font-size:12.5px!important;max-width:128px}
}
@media(prefers-reduced-motion:reduce){
  .template-kids .home53-service-card,
  .template-kids .home53-service-icon{transition:none!important;transform:none!important}
}
