/**
 * Teknik Servis sayfası — svc kalıbı üzerine .ts-* ekleri.
 * Marka token’ları (--paper, --mist, --line, --bg) site CSS’inden gelir.
 */
.ts {
  --svc-accent: #8eb4ff;
  --svc-accent-soft: #8eb4ff29;
  --ts-panel: color-mix(in srgb, var(--bg, #0b0b0c) 88%, #fff 12%);
  position: relative;
}

/* Breadcrumb */
.ts-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--mist);
}

.ts-crumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ts-crumb a:hover {
  color: var(--paper);
}

.ts-crumb [aria-current="page"] {
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

.ts-crumb__sep {
  opacity: 0.45;
  user-select: none;
}

/* Hero: metin + gerçek foto */
.ts .svc-hero {
  align-items: center;
}

.ts-hero-media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ts-panel);
  min-height: 14rem;
  aspect-ratio: 4 / 3;
}

.ts-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  background: linear-gradient(transparent, color-mix(in srgb, #000 72%, transparent));
}

@media (min-width: 1024px) {
  .ts-hero-media {
    min-height: 22rem;
    aspect-ratio: 5 / 4;
  }
}

/* Kart gövdesinde küçük görsel */
.ts-card-media {
  margin: 0 0 0.85rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  max-height: 9.5rem;
}

.ts-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Yatay süreç timeline */
.ts-timeline {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11.5rem, 1fr);
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: color-mix(in srgb, #fff 1.5%, transparent);
}

.ts-timeline li {
  position: relative;
  padding: 1.35rem 1.2rem 1.45rem;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
  min-height: 100%;
}

.ts-timeline li:last-child {
  border-right: 0;
}

.ts-timeline__num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--mist);
  letter-spacing: 0.06em;
}

.ts-timeline h3 {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ts-timeline p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--mist);
}

@media (min-width: 1100px) {
  .ts-timeline {
    grid-auto-flow: unset;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* Çevre birimi vitrin */
.ts-product-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .ts-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ts-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ts-product {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: color-mix(in srgb, #fff 2.2%, transparent);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ts-product:hover {
  border-color: color-mix(in srgb, var(--svc-accent) 35%, var(--line));
  background: color-mix(in srgb, #fff 3.5%, transparent);
}

.ts-product__media {
  aspect-ratio: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, #fff 3%, transparent);
}

.ts-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ts-product__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.ts-product__cat {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}

.ts-product__name {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.ts-product__feat {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--mist);
  flex: 1;
}

.ts-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ts-product__actions a {
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mist);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.ts-product__actions a:hover {
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
  background: color-mix(in srgb, #fff 4%, transparent);
}

.ts-product__actions a.is-wa {
  border-color: color-mix(in srgb, #5fd38a 45%, var(--line));
  color: #b8f0cb;
}

/* Rehber listesi */
.ts-guide {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  max-width: 48rem;
  counter-reset: ts-guide;
}

.ts-guide li {
  counter-increment: ts-guide;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: color-mix(in srgb, #fff 2%, transparent);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.ts-guide li::before {
  content: counter(ts-guide, decimal-leading-zero);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--mist);
  padding-top: 0.2rem;
}

.ts-guide h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.ts-guide p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--mist);
}

.ts-guide a {
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, #fff 20%, transparent);
  text-underline-offset: 3px;
}

.ts-guide a:hover {
  color: var(--paper);
}

/* Form — iletişim sayfası border-b stili */
.ts-form {
  margin-top: 1.75rem;
  max-width: 36rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: color-mix(in srgb, #fff 2.5%, transparent);
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .ts-form {
    padding: 1.75rem 1.75rem 1.85rem;
  }
}

.ts-form .ts-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.05rem;
  font-size: 0.9rem;
}

.ts-form .ts-field:first-of-type {
  margin-top: 0;
}

.ts-form .ts-field > span {
  color: var(--mist);
  font-size: 0.86rem;
}

.ts-form input[type="text"],
.ts-form input[type="tel"],
.ts-form input[type="email"],
.ts-form input[type="file"],
.ts-form select,
.ts-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, #fff 15%, transparent);
  background: transparent;
  color: var(--paper);
  padding: 0.75rem 0;
  outline: none;
  font: inherit;
  border-radius: 0;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ts-form select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%),
    linear-gradient(135deg, var(--mist) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 2px), calc(100% - 6px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

.ts-form select option {
  background: #121214;
  color: var(--paper);
}

.ts-form textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.ts-form input:focus,
.ts-form select:focus,
.ts-form textarea:focus {
  border-bottom-color: var(--paper);
}

.ts-form .ts-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ts-form__note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--mist) 90%, transparent);
}

.ts-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  align-items: center;
}

/* Yedek parça — sade satır listesi (kutulu kart yerine site ritmi) */
.ts-lines {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  max-width: 48rem;
}

.ts-lines li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.85rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.ts-lines li:last-child {
  border-bottom: 1px solid var(--line);
}

.ts-lines__num {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  padding-top: 0.2rem;
}

.ts-lines h3 {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ts-lines p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--mist);
  max-width: 38rem;
}

/* Eski kutu grid — kullanılmıyorsa zararsız bırak */
.ts-cat-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.ts-cat {
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.15rem 1.2rem;
  background: color-mix(in srgb, #fff 2%, transparent);
}

/* Ek hizmetler pill grid */
.ts-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.ts-extra a,
.ts-extra span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: var(--mist);
  background: color-mix(in srgb, #fff 2.5%, transparent);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ts-extra a:hover {
  color: var(--paper);
  border-color: color-mix(in srgb, var(--svc-accent) 40%, var(--line));
}

/* Blog iç link şeridi */
.ts-blog-links {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.55rem;
  max-width: 42rem;
}

.ts-blog-links a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 86%, transparent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, #fff 18%, transparent);
  text-underline-offset: 3px;
}

.ts-blog-links a:hover {
  color: var(--paper);
}

/* Hafif sayfa ambient (SVG) — opacity düşük */
.ts-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

.ts-ambient svg {
  position: absolute;
  width: 42%;
  max-width: 28rem;
  height: auto;
  opacity: 0.14;
}

.ts-ambient svg.ts-amb-a {
  top: 8%;
  right: -4%;
}

.ts-ambient svg.ts-amb-b {
  bottom: 18%;
  left: -6%;
  opacity: 0.1;
}

.ts > *:not(.ts-ambient) {
  position: relative;
  z-index: 1;
}

@media (max-width: 639px) {
  .ts .display {
    font-size: clamp(1.85rem, 8.2vw, 2.55rem) !important;
    line-height: 1.08;
  }

  .ts .svc-section {
    margin-top: 3.25rem;
  }

  .ts .svc-section__head h2 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .ts-hero-media {
    min-height: 12rem;
  }

  .ts-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ts-form__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-product,
  .ts-form input,
  .ts-form select,
  .ts-form textarea,
  .ts-product__actions a,
  .ts-extra a {
    transition: none;
  }

  .ts-ambient {
    display: none;
  }
}
