/* Medikal Mavi teması (premium üzerine). Ferah laboratuvar görünümü: açık mavi hero, yuvarlak kartlar,
   ikonlu özellikler, koyu lacivert rakam bandı ve alt bilgi. Renkler tokens.json'dan (--color-*) gelir. */

.theme-medical {
  --m-radius: 20px;
  --m-radius-sm: 12px;
  --m-shadow: 0 1px 2px rgba(10, 31, 61, .04), 0 12px 32px rgba(10, 31, 61, .07);
  --m-shadow-hover: 0 2px 4px rgba(10, 31, 61, .05), 0 22px 48px rgba(10, 31, 61, .12);
  --m-navy: #0a1f3d;
  --m-navy-2: #12305c;
  --m-sky: #eef4fc;
  --m-ease: cubic-bezier(.22, .61, .36, 1);
  background: #fbfdff;
}

/* --- Başlık: her zaman açık cam görünüm --- */
.theme-medical .p-header, .theme-medical.has-hero .p-header:not(.is-scrolled) {
  background: rgba(255, 255, 255, .86); color: var(--m-navy); border-bottom: 1px solid rgba(10, 31, 61, .06);
  backdrop-filter: saturate(180%) blur(16px);
}
.theme-medical .p-header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 31, 61, .06); }
.theme-medical .p-topbar { background: var(--m-navy); color: rgba(255, 255, 255, .78); }
.theme-medical .p-topbar a:hover { color: #fff; }
.theme-medical .p-header .nav-link { border-bottom: 0; font-size: 14.5px; color: var(--m-navy); }
.theme-medical .p-header .nav-link:hover, .theme-medical .p-header .mega-trigger[aria-expanded="true"] { color: var(--color-brand); }
.theme-medical .p-brand-mark { color: var(--color-brand); }
.theme-medical .m-lang .lang-btn { display: inline-flex; align-items: center; gap: 4px; }
.theme-medical .m-lang .lang-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-medical .p-header-cta.m-header-cta, .theme-medical.has-hero .p-header:not(.is-scrolled) .p-header-cta.m-header-cta {
  gap: 8px; height: 42px; padding: 0 20px; border-radius: 12px; background: var(--color-brand); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-brand) 30%, transparent);
}
.theme-medical .m-header-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.theme-medical .p-header-cta.m-header-cta:hover { background: var(--color-brand-hover, var(--color-brand)); color: #fff; }

/* --- Ortak --- */
.m-section { padding-block: clamp(48px, 6vw, 80px); }
.m-section-tight { padding-block: clamp(28px, 4vw, 48px); }
.m-eyebrow { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-brand); }
.m-eyebrow-light { color: rgba(255, 255, 255, .72); }
.m-pill { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand); background: var(--color-brand-light, #eaf2fd); }
.m-h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--m-navy); }
.m-lead { margin: 18px 0 0; max-width: 52ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--color-text-muted); }
.m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.m-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--m-navy); white-space: nowrap; }
.m-link svg, .m-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--m-ease); }
.m-link:hover { color: var(--color-brand); }
.m-link:hover svg, .m-btn:hover svg { transform: translateX(3px); }
.rtl-layout .m-link svg, .rtl-layout .m-btn svg { transform: scaleX(-1); }

.m-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.m-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px;
  font-size: 15.5px; font-weight: 600; transition: transform .2s var(--m-ease), box-shadow .25s var(--m-ease), background-color .25s var(--m-ease);
}
.m-btn-primary { background: var(--color-brand); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--color-brand) 32%, transparent); }
.m-btn-primary:hover { background: var(--color-brand-hover, var(--color-brand)); color: #fff; transform: translateY(-1px); }
.m-btn-soft { background: #fff; color: var(--m-navy); box-shadow: 0 1px 2px rgba(10, 31, 61, .06), 0 8px 22px rgba(10, 31, 61, .08); }
.m-btn-soft:hover { color: var(--color-brand); transform: translateY(-1px); }
.m-btn-soft svg { width: 20px; height: 20px; }
.m-btn:active { transform: scale(.98); }

/* --- Hero --- */
.m-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--m-sky) 0%, #f7faff 70%, #fbfdff 100%); padding-top: calc(var(--p-header-h) + var(--p-topbar-h, 0px)); }
.m-hero::before { content: ''; position: absolute; inset: -20% -10% auto 35%; height: 120%; background: radial-gradient(closest-side, rgba(20, 99, 216, .10), transparent 70%); pointer-events: none; }
.m-hero-stage { position: relative; min-height: clamp(500px, 58vh, 600px); }
.m-hero .p-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .9s var(--m-ease); }
.m-hero .p-slide.is-active { opacity: 1; z-index: 1; }
.m-hero:not(.p-slider) .p-slide { opacity: 1; }
.m-hero-grid { height: 100%; display: flex; align-items: center; }  /* görsel slayta göre konumlanır: sayfa kenarına uzanır */
.m-hero-copy { position: relative; z-index: 2; max-width: 540px; padding-block: 48px; }
.m-hero-title { margin: 0; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; color: var(--m-navy); max-width: 13ch; }
.m-hero-lead { margin: 22px 0 0; max-width: 42ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--color-text-muted); }
.m-hero-media { position: absolute; inset: 0 0 0 38%; z-index: 1; }
.m-hero-media picture, .m-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-hero-media img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  transform: scale(1.03); transition: transform 7s linear;
}
.m-hero .p-slide.is-active .m-hero-media img { transform: scale(1); }
.m-hero.p-slider .p-slide:not(:first-child):not(.is-loaded) { display: none; }  /* ilk açılışta yalnız ilk slayt hesaplanır; diğerleri sırası gelmeden hemen önce açılır (site.js) */
.rtl-layout .m-hero-media { inset: 0 38% 0 0; }
.rtl-layout .m-hero-media img { -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 28%); mask-image: linear-gradient(270deg, transparent 0%, #000 28%); }

.m-hero-foot { position: relative; z-index: 3; display: flex; align-items: center; gap: 24px; padding-block: 8px 36px; }
.m-badges { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; margin: 0; padding: 22px 0 0; list-style: none; }
.m-badges li { display: flex; align-items: center; gap: 12px; }
.m-badge-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--color-brand); box-shadow: 0 4px 14px rgba(10, 31, 61, .07); }
.m-badge-icon svg, .m-feature-icon svg, .m-stat-icon svg, .m-contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-badges strong { display: block; font-size: 14px; font-weight: 600; color: var(--m-navy); }
.m-badges small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-text-subtle); }
.m-dots { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.m-dots .p-slider-tabs { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
/* dokunma alanı 24×24 (erişilebilirlik); görünen nokta içteki 10px çubuk */
.m-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .35s var(--m-ease); }
.m-dot.is-active { width: 48px; }
.m-dot .p-slider-bar { position: absolute; inset: 7px; height: auto; border-radius: 999px; background: rgba(10, 31, 61, .16); overflow: hidden; }
.m-dot.is-active .p-slider-bar { background: rgba(10, 31, 61, .16); }
.m-dot.is-active .p-slider-bar::after { content: ''; position: absolute; inset: 0; background: var(--color-brand); transform-origin: left; animation: pBar 7s linear forwards; }
.m-hero.is-paused .m-dot .p-slider-bar::after, .m-hero:hover .m-dot .p-slider-bar::after, .m-hero:focus-within .m-dot .p-slider-bar::after { animation-play-state: paused; }
.m-pause { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: #fff; color: var(--m-navy); cursor: pointer; box-shadow: 0 2px 8px rgba(10, 31, 61, .1); }
.m-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.m-hero.is-paused .m-pause svg path { d: path("M8 5l11 7-11 7z"); }

/* --- Tanıtım --- */
.m-about { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.m-about-solo { grid-template-columns: minmax(0, 1fr); }
.m-about-media { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 16 / 9.5; box-shadow: var(--m-shadow); }
.m-about-media picture, .m-about-media img, .m-about-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.m-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 74px; height: 74px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--m-navy); box-shadow: 0 12px 34px rgba(10, 31, 61, .25); transition: transform .25s var(--m-ease); }
.m-play svg { width: 26px; height: 26px; margin-inline-start: 4px; }
.m-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.m-media-card { position: absolute; inset: auto auto 20px 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; color: #fff; background: rgba(10, 31, 61, .55); backdrop-filter: blur(10px); }
.m-media-card svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.m-media-card strong { display: block; font-size: 14px; font-weight: 600; }
.m-media-card small { display: block; font-size: 12.5px; opacity: .8; }
.m-features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.m-features li { display: flex; gap: 14px; align-items: flex-start; }
.m-feature-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--color-brand-light, #eaf2fd); color: var(--color-brand); }
.m-features h3 { margin: 2px 0 4px; font-size: 15.5px; font-weight: 600; color: var(--m-navy); letter-spacing: -0.01em; }
.m-features p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-text-subtle); }

/* --- Ürün kartları --- */
.m-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }  /* 1240px kapsayıcıda satırda en fazla 4 kart: 8 kart = 4+4 */
.m-cards-more { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 640px) {  /* mobilde 2 sütun, kompakt kart (görsel + başlık): 8 kart = 4 kısa sıra */
  .m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .m-card-body { padding: 12px 12px 14px; gap: 8px; align-items: flex-start; }
  .m-card h3 { font-size: 14.5px; line-height: 1.3; }
  .m-card p, .m-card .m-round { display: none; }
  .m-cards-more { margin-top: 20px; }
}
.m-card { display: flex; flex-direction: column; border-radius: var(--m-radius); background: #fff; border: 1px solid var(--color-surface-border-subtle, #ebf1f8); box-shadow: var(--m-shadow); overflow: hidden; transition: transform .35s var(--m-ease), box-shadow .35s var(--m-ease); }
.m-card:hover { transform: translateY(-4px); box-shadow: var(--m-shadow-hover); }
.m-card-media { aspect-ratio: 4 / 3; background: linear-gradient(180deg, #f3f7fc, #e9f0f9); overflow: hidden; }
.m-card-media picture, .m-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--m-ease); }
.m-card:hover .m-card-media img { transform: scale(1.04); }
.m-card-body { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 20px 20px 22px; }
.m-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--m-navy); }
.m-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--color-text-subtle); }
.m-round { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--m-navy); border: 1px solid var(--color-surface-border, #dfe8f3); transition: background .25s var(--m-ease), color .25s var(--m-ease), border-color .25s var(--m-ease); }
.m-round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.m-card:hover .m-round { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.rtl-layout .m-round svg { transform: scaleX(-1); }

/* --- Rakam bandı --- */
.m-stats-band {
  position: relative; overflow: hidden; padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 56px); border-radius: 26px; color: #fff;
  background: radial-gradient(80% 140% at 92% 50%, rgba(80, 160, 255, .38), transparent 60%), linear-gradient(110deg, var(--m-navy-2) 0%, #1a4a8a 55%, #1b5fb4 100%);
}
.m-stats-band::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 40%; background: repeating-linear-gradient(120deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 22px); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.m-stats-band .m-h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); }
.m-stats { position: relative; z-index: 1; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 26px 0 0; }
.m-stat { display: flex; align-items: center; gap: 14px; padding: 6px 24px; border-inline-start: 1px solid rgba(255, 255, 255, .16); }
.m-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.m-stat-icon { flex: none; color: rgba(255, 255, 255, .9); }
.m-stat-icon svg { width: 28px; height: 28px; }
.m-stat-value { display: block; margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.m-stat-label { display: block; margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }

/* --- Çağrı bandı --- */
.m-cta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; overflow: hidden; border-radius: 26px; background: linear-gradient(100deg, #f6f9fe 0%, #edf3fb 100%); border: 1px solid var(--color-surface-border-subtle, #ebf1f8); }
.m-cta-solo { grid-template-columns: minmax(0, 1fr); }
.m-cta-copy { padding: clamp(32px, 5vw, 56px); }
.m-cta .m-h2 { font-size: clamp(26px, 3vw, 36px); max-width: 20ch; }
.m-cta .m-actions { margin-top: 26px; }
.m-cta-media { align-self: stretch; min-height: 260px; }
.m-cta-media picture, .m-cta-media img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }

/* --- İletişim şeridi --- */
.m-contact { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 2fr); gap: 32px; align-items: center; padding-block: 8px; }
.m-contact .m-eyebrow { margin-bottom: 8px; }
.m-contact .m-h2 { font-size: clamp(28px, 3vw, 36px); }
.m-contact-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin: 0; }
.m-contact-list > li { display: flex; gap: 14px; align-items: flex-start; }
.m-contact-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-brand-light, #eaf2fd); color: var(--color-brand); }
.m-contact-label { display: block; font-size: 13px; font-weight: 600; color: var(--m-navy); }
.m-contact-value { display: block; margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--color-text-muted); }
.m-contact-list a:hover { color: var(--color-brand); }
.m-contact-value a, .m-footer-col a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 24px; }  /* dokunma alanı en az 24px */

/* --- Alt bilgi --- */
.theme-medical .m-footer { margin-top: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, #0c2244 0%, var(--m-navy) 100%); color: rgba(255, 255, 255, .78); }
.m-footer-top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 36px; padding-block: 56px 40px; }
.m-footer .p-brand, .m-footer .p-brand-text span { color: #fff; }
.m-footer .p-brand-mark { color: #6ea8ff; }
.m-footer-brand p { margin: 18px 0 0; max-width: 32ch; font-size: 14px; line-height: 1.6; }
.m-footer-col h2 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #fff; }
.m-footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 13.5px; }
.m-footer-col a:hover { color: #fff; }
.m-newsletter p { margin: 0 0 12px; font-size: 13px; }
.m-newsletter-row { display: flex; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; }
.m-newsletter-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: none; color: #fff; font: inherit; font-size: 14px; outline: none; }
.m-newsletter-row input::placeholder { color: rgba(255, 255, 255, .55); }
.m-newsletter-row button { flex: none; width: 46px; border: 0; background: var(--color-brand); color: #fff; cursor: pointer; }
.m-newsletter-row button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.m-newsletter-row:focus-within { border-color: #6ea8ff; }
.m-newsletter-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12px; line-height: 1.45; }
.m-newsletter-consent a { text-decoration: underline; }
.m-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.m-footer-bottom p { flex: 1; margin: 0; }
.m-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; margin-inline-start: 18px; }
.m-footer-legal a:hover { color: #fff; }
.m-footer .footer-social-links { margin: 0; }
.m-footer .social-icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff; }
.m-certs { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-certs li { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; }

/* --- Duyarlı --- */
@media (max-width: 1024px) {
  .m-hero-media { inset: 0 0 0 30%; opacity: .55; }
  .m-about, .m-cta, .m-contact { grid-template-columns: minmax(0, 1fr); }
  .m-cta-media { min-height: 220px; }
  .m-cta-media img { -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
}
@media (max-width: 720px) {
  .m-hero-stage { min-height: 560px; }
  .m-hero-grid { align-items: flex-start; }
  .m-hero-copy { padding-block: 28px 0; }
  .m-hero-media { inset: auto 0 0 0; height: 46%; opacity: 1; }
  .m-hero-media img, .rtl-layout .m-hero-media img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%); mask-image: linear-gradient(180deg, transparent 0%, #000 35%); }
  .rtl-layout .m-hero-media { inset: auto 0 0 0; }
  .m-actions { gap: 10px; }
  .m-btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .m-badges { grid-template-columns: 1fr 1fr; gap: 14px; }
  .m-features { grid-template-columns: 1fr; }
  .m-head { flex-direction: column; align-items: flex-start; }
  .m-stat { border-inline-start: 0; padding: 10px 0; }
  .m-footer-top { grid-template-columns: 1fr 1fr; }
  .m-footer-brand, .m-newsletter { grid-column: 1 / -1; }
  .m-footer-legal { margin-inline-start: 0; display: flex; margin-top: 8px; }
  .theme-medical .p-header-cta.m-header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .m-hero .p-slide, .m-hero-media img, .m-card, .m-card-media img, .m-btn, .m-play { transition: none; }
  .m-dot.is-active .p-slider-bar::after { animation: none; transform: none; }
}

/* Hız: ekranın altındaki bölümler ekrana yaklaşınca çizilir (ilk yüklemede stil/düzen yükü azalır); yer tutucu yükseklik hatırlanır */
.theme-medical main > section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 640px; }
