/* CMS V12: V9 premium ön yüzü korunur; yalnız dinamik sayfalara ek stiller eklenir. */
.skip-link{position:fixed;left:1rem;top:-6rem;z-index:9999;background:#fff;color:#071c30;padding:.8rem 1rem;border-radius:8px}.skip-link:focus{top:1rem}
.project-card.gallery-item{appearance:none;-webkit-appearance:none;text-align:left;border:0;padding:0;font:inherit;cursor:zoom-in;width:100%}
.project-card.gallery-item span{pointer-events:none}
.contact-form h3{margin:0 0 4px;font-size:24px}.contact-form .notice{padding:12px 14px;border-radius:10px;background:#dff7e8;color:#175c37;font-weight:700}.contact-form .consent{display:flex;grid-template-columns:none;align-items:flex-start;gap:10px}.contact-form .consent input{width:auto;margin-top:4px}.contact-form .consent span{font-size:13px;color:#c9dbe8}.contact-form .consent a{color:#58d6f6;text-decoration:underline}.hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* Dinamik liste sayfaları */
.cms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.cms-card{background:#fff;border:1px solid #dce5ed;border-radius:22px;overflow:hidden;box-shadow:0 14px 38px rgba(8,42,73,.08);transition:transform .28s ease,box-shadow .28s ease}.cms-card:hover{transform:translateY(-7px);box-shadow:0 22px 50px rgba(8,42,73,.15)}.cms-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.cms-card>div{padding:22px}.cms-card h2,.cms-card h3{margin:0 0 9px;color:#061d34}.cms-card p{color:#607184;margin:0 0 16px}.cms-card a{color:#0572bd;font-weight:800}
.prose{max-width:900px;font-size:17px;line-height:1.85;color:#40566a}.prose dl{display:grid;grid-template-columns:auto 1fr;gap:10px 20px;margin-top:30px}.prose dt{font-weight:900;color:#071c30}.prose dd{margin:0}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:35px}.gallery-item{border:0;padding:0;background:none;cursor:zoom-in}.gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px}.lightbox{border:0;background:#061b2d;padding:18px;max-width:92vw;border-radius:18px}.lightbox::backdrop{background:#000c}.lightbox img{max-width:85vw;max-height:82vh}.lightbox-close{position:absolute;right:8px;top:8px;border:0;border-radius:50%;font-size:30px;width:42px;height:42px;cursor:pointer}.prev-next{display:flex;justify-content:space-between;gap:20px;margin-top:35px}.prev-next a{font-weight:800;color:#0572bd}
.contact-grid .contact-form input,.contact-grid .contact-form select,.contact-grid .contact-form textarea{width:100%}.contact-grid .contact-form label{display:grid;gap:7px}

@media(max-width:900px){.cms-grid{grid-template-columns:repeat(2,1fr)}.gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.cms-grid{grid-template-columns:1fr}.gallery{grid-template-columns:1fr}.prev-next{display:grid}}

/* =========================================================
   CMS V13 — tüm iç sayfalarda V9 premium tasarım dili
   ========================================================= */
.projects-page-hero{background:linear-gradient(135deg,#041727,#0a4168 58%,#09263c)}
.contact-page-hero{background:linear-gradient(135deg,#041727,#0b4b73)}
.legal-page-hero{background:linear-gradient(135deg,#061a2b,#123d5b)}
.error-page{min-height:620px;display:grid;align-items:center}
.detail-hero-actions{margin-top:28px}
.detail-hero-actions .button-ghost{border-color:rgba(255,255,255,.38);color:#fff}
.detail-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.service-detail-copy .text-link,.product-detail-copy .text-link{font-size:14px}

/* Home projects: click-through detail cards */
.project-card{padding:0}
.project-card-link{position:absolute;inset:0;color:inherit;display:block}
.project-card-link>span{pointer-events:none}
.project-card-link em{display:inline-flex;align-items:center;gap:7px;margin-top:14px;color:#37c8f2;font-size:12px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.project-card-link em svg{width:16px;height:16px}

/* Premium empty states */
.premium-empty{padding:50px;border:1px solid #d9e5ed;border-radius:26px;background:linear-gradient(135deg,#fff,#f4f9fc);box-shadow:0 18px 48px rgba(7,35,58,.08);text-align:center}
.premium-empty>span{display:inline-block;color:#0877bd;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:900}
.premium-empty h2{margin:12px 0 8px;color:#061d34;font-size:clamp(27px,4vw,42px)}
.premium-empty p{max-width:650px;margin:0 auto;color:#65798a}

/* Project archive */
.project-archive{background:linear-gradient(#f6f9fb,#fff)}
.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.portfolio-card{overflow:hidden;border:1px solid #dce7ee;border-radius:24px;background:#fff;box-shadow:0 15px 42px rgba(8,42,73,.09);transition:transform .3s ease,box-shadow .3s ease}
.portfolio-card:hover{transform:translateY(-7px);box-shadow:0 25px 58px rgba(8,42,73,.16)}
.portfolio-card.featured{grid-column:1/-1;display:grid;grid-template-columns:1.25fr .75fr}
.portfolio-media{display:block;position:relative;min-height:330px;overflow:hidden;background:#071d30}
.portfolio-card.featured .portfolio-media{min-height:430px}
.portfolio-media::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,18,31,.6),transparent 60%)}
.portfolio-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .45s ease}
.portfolio-card:hover .portfolio-media img{transform:scale(1.045)}
.portfolio-index{position:absolute;z-index:2;top:20px;left:20px;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:rgba(4,28,48,.82);backdrop-filter:blur(12px);color:#fff;font-weight:900;border:1px solid rgba(255,255,255,.2)}
.portfolio-copy{padding:25px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.portfolio-card.featured .portfolio-copy{padding:42px;align-items:center}
.portfolio-meta{color:#0882c7;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.portfolio-copy h2{margin:8px 0 10px;font-size:clamp(22px,3vw,34px);line-height:1.08}
.portfolio-copy h2 a{color:#061d34}
.portfolio-copy p{margin:0;color:#66798a;line-height:1.7}
.circle-link{flex:0 0 auto;width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#071f35;color:#fff;transition:.25s}
.circle-link svg{width:20px;height:20px}.circle-link:hover{background:#087fc3;transform:translateX(3px)}
.project-process{padding:32px 0 85px;background:#fff}
.process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.process-grid article{padding:25px;border-radius:20px;border:1px solid #dce7ee;background:#fff;box-shadow:0 12px 34px rgba(7,35,58,.06)}
.process-grid article>span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf7fd;color:#087fc3;font-weight:900}
.process-grid h3{margin:16px 0 7px;color:#061d34}.process-grid p{margin:0;color:#65798b;font-size:14px;line-height:1.65}

/* Reference archive */
.reference-logo-wrap{height:176px;background:linear-gradient(135deg,#f8fbfd,#eef5f9);display:grid;place-items:center;padding:24px}
.reference-logo-wrap img{width:100%;height:100%;object-fit:contain}
.reference-card>a{display:block;color:inherit}
.reference-monogram{width:84px;height:84px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,#087fc3,#19b9e7);color:#fff;font-size:26px;font-weight:900;text-transform:uppercase;box-shadow:0 15px 34px rgba(8,127,195,.22)}

/* Detail pages */
.detail-overview{background:#fff}
.detail-overview-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:70px;align-items:start}
.detail-prose h2{font-size:clamp(36px,5vw,58px);line-height:1.03;letter-spacing:-.045em;margin:14px 0 25px;color:#061d34}
.rich-copy{font-size:17px;line-height:1.9;color:#526a7d;white-space:normal}
.rich-copy+*{margin-top:25px}
.detail-side-card,.product-info-card{position:sticky;top:120px;padding:32px;border-radius:26px;background:linear-gradient(145deg,#061d32,#0b4368);color:#fff;box-shadow:0 25px 60px rgba(4,30,51,.22)}
.detail-side-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:rgba(38,199,241,.13);border:1px solid rgba(38,199,241,.25);color:#38c9f2}
.detail-side-icon svg{width:27px;height:27px}
.detail-side-card h3,.product-info-card h3{font-size:25px;margin:20px 0}
.detail-side-card ul{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.detail-side-card li{display:flex;gap:11px;align-items:flex-start;color:#d2e1eb;font-size:14px;line-height:1.55}
.detail-side-card li svg{flex:0 0 auto;width:18px;height:18px;color:#38c9f2;margin-top:2px}
.soft-section{background:#f3f8fb}
.feature-chip-grid{display:flex;flex-wrap:wrap;gap:13px}
.feature-chip{display:flex;align-items:center;gap:9px;padding:14px 17px;border:1px solid #d7e6ee;border-radius:14px;background:#fff;color:#17364e;font-weight:800;box-shadow:0 8px 22px rgba(7,35,58,.05)}
.feature-chip svg{width:18px;height:18px;color:#087fc3}
.feature-chip-grid.compact{margin-top:18px}.subheading{margin:30px 0 5px;color:#061d34;font-size:22px}
.premium-process article{background:linear-gradient(145deg,#fff,#f5fafc)}
.project-facts{position:relative;z-index:3;margin-top:-30px}
.project-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-radius:22px;background:#fff;box-shadow:0 20px 55px rgba(6,35,59,.15);overflow:hidden}
.project-facts article{padding:24px 27px;border-right:1px solid #e0e9ef}.project-facts article:last-child{border-right:0}
.project-facts span,.project-facts strong{display:block}.project-facts span{font-size:11px;color:#7d8f9d;text-transform:uppercase;letter-spacing:.1em;font-weight:900}.project-facts strong{margin-top:7px;color:#071f34;font-size:16px}
.project-gallery-section{background:#eef5fa}
.detail-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.detail-gallery .gallery-item{position:relative;overflow:hidden;border-radius:20px;min-height:280px;background:#071e32;box-shadow:0 14px 35px rgba(7,35,58,.12)}
.detail-gallery .gallery-item.gallery-wide{grid-column:span 2}
.detail-gallery .gallery-item img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .4s ease}
.detail-gallery .gallery-item:hover img{transform:scale(1.05)}
.detail-gallery .gallery-item::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(3,20,34,.52),transparent 58%)}
.detail-gallery .gallery-item>span{position:absolute;z-index:2;right:17px;bottom:17px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#087fc3}
.detail-gallery .gallery-item>span svg{width:19px;height:19px}
.product-single{background:linear-gradient(#fff,#f7fafc)}
.product-info-card .product-kicker{color:#41cef3}
.product-info-card dl{margin:0 0 26px}.product-info-card dl>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.12)}.product-info-card dt{color:#91acbe;font-size:13px}.product-info-card dd{margin:0;text-align:right;font-weight:800}
.content-navigation{padding:35px 0;background:#fff;border-top:1px solid #e2e9ee}
.premium-prev-next{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.premium-prev-next>a:not(.all-items-link){display:flex;flex-direction:column;gap:5px;padding:17px 20px;border-radius:16px;background:#f3f8fb;color:#08253d}
.premium-prev-next>a.next{text-align:right}.premium-prev-next span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#758b9c;font-weight:900}.premium-prev-next strong{font-size:14px}.all-items-link{font-weight:900;color:#087fc3;padding:0 22px}

/* Contact */
.contact-premium{background:linear-gradient(180deg,#f3f8fb,#fff)}
.contact-premium-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:start}
.contact-premium-copy h2{font-size:clamp(38px,5vw,60px);line-height:1.02;letter-spacing:-.045em;margin:13px 0 22px;color:#061d34}.contact-premium-copy>p{color:#63798a;font-size:17px;line-height:1.8}
.premium-list{margin:28px 0}.premium-list a,.premium-list>div{padding:11px 0}.premium-list strong{color:#09263e}.premium-list small{color:#74899a}.premium-list>*>span{background:#eaf7fd;color:#087fc3;border-color:#d0eaf5}
.premium-form{background:linear-gradient(145deg,#061c31,#0a4167);border:1px solid rgba(255,255,255,.09);box-shadow:0 28px 65px rgba(4,30,51,.24)}
.form-kicker{display:block;color:#3ed0f4;font-weight:900;text-transform:uppercase;letter-spacing:.13em;font-size:11px}.premium-form>p{color:#a9c0d0;margin:0 0 22px}.premium-form h2{color:#fff}
.map-section{padding:0 0 80px;background:#fff}.map-frame{overflow:hidden;border-radius:25px;min-height:380px;box-shadow:0 22px 55px rgba(7,35,58,.12)}.map-frame iframe{display:block;width:100%;height:430px;border:0}
.contact-trust{padding:0 0 85px;background:#fff}.contact-trust .trust-grid{box-shadow:0 18px 48px rgba(7,35,58,.1);border-radius:22px}

/* Legal + 404 */
.legal-section{background:#f5f9fb}.legal-grid{display:grid;grid-template-columns:280px 1fr;gap:45px;align-items:start}
.legal-nav{position:sticky;top:120px;padding:22px;border-radius:20px;background:#071f35;color:#fff;display:grid;gap:6px}.legal-nav strong{padding:8px 11px 14px;color:#43cef3}.legal-nav a{padding:12px;border-radius:11px;color:#c5d8e5;font-size:14px}.legal-nav a:hover,.legal-nav a.active{background:rgba(46,200,241,.12);color:#fff}
.legal-copy{padding:42px;border:1px solid #dce7ed;border-radius:25px;background:#fff;box-shadow:0 15px 40px rgba(7,35,58,.07)}.legal-copy h2{font-size:clamp(32px,4vw,48px);margin:12px 0 25px;color:#061d34}.legal-rich{white-space:pre-line}.legal-contact{display:flex;align-items:center;gap:12px;margin-top:35px;padding:18px;border-radius:14px;background:#eef7fb;color:#24485f}.legal-contact svg{width:22px;height:22px;color:#087fc3}.legal-contact a{font-weight:900;color:#087fc3}
.quick-links-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.quick-link-card{display:flex;align-items:center;gap:17px;padding:24px;border:1px solid #dce7ee;border-radius:20px;background:#fff;box-shadow:0 12px 32px rgba(7,35,58,.07);transition:.25s}.quick-link-card:hover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(7,35,58,.13)}.quick-link-card>svg{width:43px;height:43px;padding:10px;border-radius:13px;background:#e9f7fd;color:#087fc3}.quick-link-card strong,.quick-link-card span{display:block}.quick-link-card strong{color:#061d34}.quick-link-card span{color:#708493;font-size:13px;margin-top:4px}

/* Responsive */
@media(max-width:1000px){
  .portfolio-card.featured{grid-template-columns:1fr}.portfolio-card.featured .portfolio-media{min-height:350px}.portfolio-card.featured .portfolio-copy{padding:25px}
  .process-grid,.project-facts-grid{grid-template-columns:repeat(2,1fr)}.project-facts article:nth-child(2){border-right:0}.project-facts article:nth-child(-n+2){border-bottom:1px solid #e0e9ef}
  .detail-overview-grid,.contact-premium-grid{grid-template-columns:1fr}.detail-side-card,.product-info-card{position:relative;top:auto}.legal-grid{grid-template-columns:1fr}.legal-nav{position:relative;top:auto;grid-template-columns:repeat(2,1fr)}
  .detail-gallery{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .portfolio-grid{grid-template-columns:1fr}.portfolio-card.featured{grid-column:auto}.portfolio-media,.portfolio-card.featured .portfolio-media{min-height:290px}.portfolio-copy{padding:21px}
  .process-grid,.project-facts-grid{grid-template-columns:1fr}.project-facts article{border-right:0;border-bottom:1px solid #e0e9ef}.project-facts article:last-child{border-bottom:0}.project-facts article:nth-child(-n+2){border-bottom:1px solid #e0e9ef}
  .detail-overview-grid{gap:35px}.detail-side-card,.product-info-card{padding:24px}.detail-gallery{grid-template-columns:1fr}.detail-gallery .gallery-item.gallery-wide{grid-column:auto}.detail-gallery .gallery-item{min-height:260px}
  .premium-prev-next{grid-template-columns:1fr;gap:10px}.premium-prev-next>a.next{text-align:left}.all-items-link{text-align:center;padding:12px}
  .legal-copy{padding:25px}.legal-nav{grid-template-columns:1fr}.quick-links-grid{grid-template-columns:1fr}.premium-empty{padding:32px 20px}
  .detail-actions{align-items:flex-start;flex-direction:column}.detail-actions .button{width:100%}
}
.site-header{transition:box-shadow .25s ease,background-color .25s ease}.site-header.is-scrolled{box-shadow:0 14px 32px rgba(2,18,31,.2)}
@media(prefers-reduced-motion:reduce){.reveal{transition-delay:0ms!important}.hero-art img{transform:none!important}}

/* =========================================================
   V14 — Dinamik içerik ve görsel koruma katmanı
   Admin panelinden farklı oranlarda içerik eklendiğinde
   kartların, galerilerin ve logoların düzenini korur.
   ========================================================= */

/* Tüm dinamik kartlarda uzun metinlerin grid'i taşırmasını önle. */
.service-card,.project-card,.portfolio-card,.reference-card,.salt-card,.product-detail,
.detail-gallery>*{min-width:0}
.service-card h3,.service-card p,.portfolio-copy h2,.portfolio-copy p,
.reference-card h2,.reference-card p,.salt-card h3,.product-detail h2{
  overflow-wrap:anywhere;
}

/* Fotoğraf kullanılan alanlar: oran ne olursa olsun kontrollü kapak görünümü. */
.service-image,.portfolio-media,.product-detail-image,.service-detail-image,
.about-image,.page-hero-inner>img,.gallery-item,.project-card-link{
  overflow:hidden;
  background:linear-gradient(135deg,#e8f0f5,#dbe7ee);
}
.service-image img,.portfolio-media img,.product-detail-image img,.service-detail-image img,
.about-image img,.page-hero-inner>img,.gallery-item img,.project-card-link>img{
  width:100%;height:100%;display:block;object-fit:cover;object-position:center;
}

/* Referans logoları fotoğraf değildir: asla kırpma, daima ortala. */
.reference-card{display:flex;flex-direction:column;isolation:isolate}
.reference-card>a{display:flex!important;flex-direction:column;min-height:100%;color:inherit}
.reference-card .reference-logo-wrap{
  box-sizing:border-box!important;
  width:100%!important;
  height:190px!important;
  min-height:190px!important;
  padding:28px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#fff,#f3f7fa)!important;
  border-bottom:1px solid #e3ebf1;
}
.reference-card .reference-logo-wrap img{
  position:static!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  border-radius:0!important;
}
.reference-card .reference-card-copy{
  padding:19px 21px 22px!important;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.reference-card .reference-card-copy h2{font-size:18px;line-height:1.25;margin:0}
.reference-card .reference-card-copy p{font-size:13px;line-height:1.55;margin:6px 0 0;color:#66798a}

/* Ana sayfadaki kayan referans şeridi de logoları kırpmaz. */
.reference-chip{
  box-sizing:border-box;
  height:150px;
  padding:22px 26px;
  display:flex!important;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.reference-chip img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}
.reference-chip:hover img{transform:none!important}

/* Proje ve ürün galerilerinde portre/yatay tüm yüklemeler güvenli görünür. */
.detail-gallery{align-items:stretch}
.gallery-item{aspect-ratio:4/3;min-height:0}
.gallery-item.gallery-wide{aspect-ratio:16/9}
.gallery-item img{transition:transform .35s ease}
.gallery-item:hover img{transform:scale(1.035)}

/* Dinamik ürün görselleri ve hizmet detaylarında sabit, tutarlı alanlar. */
.product-detail-image{aspect-ratio:4/3;height:auto!important;min-height:320px}
.service-detail-image{aspect-ratio:3/2;height:auto!important;min-height:340px}
.portfolio-media{aspect-ratio:16/10}
.portfolio-card.featured .portfolio-media{aspect-ratio:16/8.6}

/* Bozuk veya yüklenmemiş görseller çevre düzenini dağıtmasın. */
img{max-width:100%}
img[data-image-error="1"]{visibility:hidden}
.image-fallback{position:relative}
.image-fallback::after{
  content:"Görsel hazırlanıyor";
  position:absolute;inset:0;display:grid;place-items:center;
  color:#718595;font-size:12px;font-weight:800;letter-spacing:.04em;
  background:linear-gradient(135deg,#eef4f7,#dfe9ef);
}

@media(max-width:600px){
  .reference-card .reference-logo-wrap{height:160px!important;min-height:160px!important;padding:24px!important}
  .reference-chip{height:125px;padding:18px 22px}
  .product-detail-image,.service-detail-image{min-height:250px}
}

/* =========================================================
   V15 — Dinamik yerleşim dayanıklılığı
   Grid öğelerinde min-content / aspect-ratio taşmalarını engeller.
   Admin panelinden uzun başlık veya farklı oranlı görsel eklendiğinde
   proje, hizmet, ürün ve referans kartları üst üste binmez.
   ========================================================= */

/* Grid ve flex çocuklarının içerik nedeniyle sütun dışına taşmasını önle. */
.portfolio-grid,.portfolio-card,.portfolio-media,.portfolio-copy,.portfolio-copy-main,
.service-grid,.service-card,.service-image,.service-card-body,
.project-grid,.project-card,.project-card-link,
.reference-grid,.reference-card,.reference-card-copy,
.salt-products,.salt-card,.product-grid,.product-detail,
.detail-overview-grid,.detail-prose,.detail-side-card,
.page-hero-inner,.page-hero-copy{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

/* Proje arşivi — öne çıkan kartın medya alanı metin sütununa taşmasın. */
.portfolio-card.featured{
  grid-template-columns:minmax(0,1.3fr) minmax(310px,.7fr);
  align-items:stretch;
}
.portfolio-card.featured .portfolio-media{
  width:100%;
  min-width:0;
  min-height:430px;
  aspect-ratio:auto;
  position:relative;
  isolation:isolate;
}
.portfolio-card.featured .portfolio-media img{
  max-width:none;
}
.portfolio-copy{
  position:relative;
  z-index:2;
  min-width:0;
  overflow:hidden;
  background:#fff;
}
.portfolio-copy-main{
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
}
.portfolio-copy h2,
.portfolio-copy h2 a,
.portfolio-copy p,
.portfolio-meta{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}
.portfolio-copy h2 a{display:block}
.portfolio-copy p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.portfolio-card:not(.featured) .portfolio-copy{min-height:190px}
.portfolio-card:not(.featured) .portfolio-copy h2{font-size:clamp(21px,2.3vw,29px)}
.circle-link{position:relative;z-index:3}

/* Dinamik kart başlıkları ve açıklamaları kontrollü büyüsün. */
.service-card h3,.salt-card h3,.reference-card h2,.project-card strong,
.product-detail h2,.detail-prose h2{
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}
.service-card p,.salt-card p,.reference-card p,.project-card small{
  overflow-wrap:anywhere;
}

/* Bozuk oranlı görseller kart boyunu değiştirmesin. */
.portfolio-card:not(.featured) .portfolio-media{aspect-ratio:16/10;min-height:0}
.service-image{aspect-ratio:16/10;min-height:0}
.project-card-link{min-height:inherit}
.reference-logo-wrap img{max-inline-size:100%!important;max-block-size:100%!important}

/* Orta ekranlarda öne çıkan proje tek sütuna geçsin; dar metin sütunu oluşmasın. */
@media(max-width:1100px){
  .portfolio-card.featured{grid-template-columns:minmax(0,1fr)}
  .portfolio-card.featured .portfolio-media{min-height:360px;aspect-ratio:16/9}
  .portfolio-card.featured .portfolio-copy{padding:28px;min-height:210px}
}

@media(max-width:720px){
  .portfolio-card.featured .portfolio-media,
  .portfolio-card:not(.featured) .portfolio-media{min-height:0;aspect-ratio:4/3}
  .portfolio-copy,.portfolio-card.featured .portfolio-copy{padding:21px}
  .portfolio-copy{align-items:center}
  .portfolio-copy h2{font-size:clamp(22px,8vw,31px)}
  .portfolio-copy p{-webkit-line-clamp:5}
  .circle-link{width:46px;height:46px}
}


/* =========================================================
   V17 — Form kontrastı, placeholder ve görsel odak güvenliği
   ========================================================= */
.premium-form label{color:#fff!important}
.premium-form input,.premium-form select,.premium-form textarea{background:#fff!important;color:#10243a!important}
.premium-form input::placeholder,.premium-form textarea::placeholder,
.contact-form input::placeholder,.contact-form textarea::placeholder{color:#7a8998!important;opacity:1}
.premium-form .consent span{color:#d6e5ef!important}
.premium-form .consent a{color:#58d6f6!important}
.service-image img,.page-hero-inner>img,.hero-art img{object-position:center center}
@media(max-width:600px){
  .premium-form,.contact-form{padding:22px!important}
  .premium-form h2{font-size:34px;line-height:1.08}
}

/* =========================================================
   V18 — Hizmet kartı görsel alanı tam genişlik düzeltmesi
   Aspect-ratio + sabit yükseklik çakışması bazı ekranlarda
   görsel alanını daraltıp kartın sağında boş şerit bırakıyordu.
   ========================================================= */
.service-card{
  display:flex;
  flex-direction:column;
}
.service-card .service-image{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:100%!important;
  height:auto!important;
  aspect-ratio:2/1!important;
  flex:0 0 auto;
  align-self:stretch!important;
  border-radius:0!important;
  position:relative;
}
.service-card .service-image img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.service-card .service-icon{flex:0 0 auto}

@media(max-width:700px){
  .service-card .service-image{aspect-ratio:16/9!important}
}
