/* Shared spacing, navigation and reference treatment for the R08 revision. */
:root {
  --r08-section-space: 72px;
  --r08-border: #dfe7eb;
  --r08-navy: #123b59;
}
.bolum, .com-section { padding-block: var(--r08-section-space); }
.bolum-dar { padding-block: 48px; }
.baslik-blok { margin-bottom: 30px; }
.baslik-blok h2 { max-width: 24ch; text-wrap: balance; }
.baslik-blok p { max-width: 64ch; }
.park-r08 [id], .r08-reference-section { scroll-margin-top: 110px; }
.r08-intro { padding-block: 40px 48px; }
.r08-intro .library-home-answer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.5fr);
  gap: 28px;
  max-width: none;
  padding: 28px 32px;
  border: 1px solid var(--r08-border);
  border-radius: 18px;
  background: #f4f8fa;
}
.r08-intro .library-home-answer h2 { margin: 0; font-size: 25px; line-height: 1.3; }
.r08-intro .library-home-answer p { margin: 0; font-size: 16px; line-height: 1.75; }

/* Wide menus are positioned against the full header, keeping them inside the viewport. */
.menu-grup.r08-wide { position: static; }
.ust2 .r08-wide > .menu-panel {
  top: calc(100% + 8px);
  left: 50%;
  width: min(1060px, calc(100vw - 48px));
  max-height: calc(100dvh - 150px);
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--metin);
  text-shadow: none;
}
.menu-grup.r08-wide:not(.acik) > .menu-panel { opacity: 0; visibility: hidden; }
.ust2 .r08-model-menu > .menu-panel { width: min(740px, calc(100vw - 48px)); }
.r08-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ust2 .menu-panel .r08-model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  color: var(--metin);
  border-radius: 12px;
}
.ust2 .menu-panel .r08-model-card:hover { background: transparent; }
.r08-model-image { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; margin-bottom: 18px; background: #eef4f6; }
.r08-model-image picture { display: block; height: 100%; }
.r08-model-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.r08-model-card:hover .r08-model-image img { transform: scale(1.025); }
.r08-model-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }
.r08-model-card p { margin: 0 0 16px; color: var(--metin-2); font-size: 14px; line-height: 1.6; }
.r08-model-card > span { margin-top: auto; color: var(--blue); font-size: 14px; font-weight: 600; }
.r08-service-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.menu-panel .r08-nav-category { min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.menu-panel .r08-nav-category > summary { list-style: none; padding: 0; font-size: 13px; font-weight: 700; color: var(--blue); margin: 0 0 12px; }
.r08-nav-category > summary::-webkit-details-marker { display: none; }
.ust2 .menu-panel .r08-nav-category a { padding: 9px 10px; font-size: 14px; line-height: 1.4; border-radius: 8px; }
.ust2 .menu-panel .r08-nav-category a:hover { background: #eef5f8; }
.r08-nav-category > div { margin-inline: -10px; }
.r08-model-card:focus-visible, .r08-nav-category summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* One white card treatment and one optical logo area throughout the site. */
.r06-references { padding: 24px 0 20px; }
.r06-references p { margin-bottom: 16px; }
.r06-logo-track { gap: 24px; padding-block: 0 8px; align-items: stretch; }
.r06-logo-track a { flex: 0 0 158px; min-height: 80px; border-radius: 10px; background: #fff; }
.r06-logo-track img { width: auto; height: auto; max-width: 142px; max-height: 66px; object-fit: contain; }
.r06-logo-track .r08-light-logo { filter: brightness(0) saturate(100%); }
.r06-strip-toggle { margin-block: 2px 0; }
.logolar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.logolar .r08-reference-card { margin: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 16px; background: #fff; }
.r08-logo-plate { display: flex; align-items: center; justify-content: center; height: 168px; padding: 26px 24px 14px; background: #fff; }
.logolar .r08-logo-plate img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(180px, 100%);
  max-height: 120px;
  aspect-ratio: auto;
  padding: 0;
  object-fit: contain;
  background: transparent;
}
.logolar .r08-logo-plate img.r08-light-logo { filter: brightness(0) saturate(100%); }
.r06-logo-track img[src="/assets/references-r08/mardin.png"],
.logolar .r08-logo-plate img[src="/assets/references-r08/mardin.png"] { filter: brightness(.45); }
.logolar .r08-reference-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  flex: 1;
  padding: 14px 18px 22px;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: #12313e;
}
.logolar figure.r08-reference-card:last-child:nth-child(4n + 1) { grid-column: 2 / span 2; max-width: none; justify-self: center; width: calc(50% - 10px); }
.r08-reference-section { background: #a9162f; }
.r08-reference-section .baslik-blok { color: #fff; }

@media (min-width: 1181px) {
  .r08-nav-category > summary { pointer-events: none; }
  .r08-nav-category > summary::after { display: none; }
}
@media (max-width: 1180px) {
  .ust2 .r08-wide > .menu-panel {
    position: static;
    width: 100%;
    max-height: none;
    padding: 16px 0;
    overflow: visible;
  }
  .menu-grup.r08-wide:not(.acik) > .menu-panel { display: none; }
  .menu-grup.r08-wide.acik > .menu-panel { visibility: visible; opacity: 1; }
  .r08-service-columns { display: block; }
  .menu-panel .r08-nav-category { border-bottom: 1px solid var(--r08-border); }
  .menu-panel .r08-nav-category > summary { padding: 14px 6px; margin: 0; cursor: pointer; display: flex; justify-content: space-between; font-size: 15px; }
  .r08-nav-category > summary::after { content: '+'; font-size: 20px; font-weight: 400; }
  .r08-nav-category[open] > summary::after { content: '−'; }
  .r08-nav-category > div { margin: 0 0 8px; }
  .ust2 .menu-panel .r08-nav-category a { padding: 12px 16px; }
  .r08-model-grid { gap: 20px; }
}
@media (max-width: 760px) {
  :root { --r08-section-space: 48px; }
  .ust2 .menu { max-height: calc(100dvh - 178px); }
  .r08-intro { padding-block: 28px 36px; }
  .r08-intro .library-home-answer { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .r08-intro .library-home-answer h2 { font-size: 21px; }
  .r08-intro .library-home-answer p { font-size: 15px; }
  .logolar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .r08-logo-plate { height: 136px; padding: 20px 16px 10px; }
  .logolar .r08-logo-plate img { max-height: 100px; }
  .logolar .r08-reference-card figcaption { font-size: 14px; padding: 12px 12px 18px; min-height: 68px; }
  .logolar figure.r08-reference-card:last-child:nth-child(4n + 1) { grid-column: 1 / -1; max-width: calc(50% - 6px); width: 100%; }
  .r08-model-grid { gap: 16px; }
  .r08-model-card h3 { font-size: 17px; }
  .r08-model-card p { font-size: 13px; }
  .r08-model-image { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .r08-model-grid { grid-template-columns: 1fr; }
  .r08-model-image { aspect-ratio: 2 / 1; }
  .ust2 .r08-model-menu > .menu-panel { max-height: 68dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .r08-model-image img { transition: none; }
  .r08-model-card:hover .r08-model-image img { transform: none; }
}
