.home-breed-links {
  margin-block: 4px 14px;
}

.home-breed-links__track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.home-breed-links__mobile { display: none; }

.home-breed-link {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 7px;
  padding: 18px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
  color: var(--navy);
}

.home-breed-link:hover { border-color: var(--orange); background: #fbf9f0; }
.home-breed-link > span:not([aria-hidden]) { font-size: .875rem; }
.home-breed-link > span:nth-child(3) { color: #52677a; }

.home-breed-link__image {
  width: 78px;
  height: 78px;
  padding: 3px;
  border: 1px solid #dfcc8b;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

#ilan-kategorileri { scroll-margin-top: 100px; }

.home-breed-link__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 9px;
}

.home-breed-link__meta [data-breed-count] {
  padding: 3px 7px;
  border-radius: 3px;
  background: #f5eed7;
  color: #6b5218;
  font-size: .78rem;
  font-weight: 700;
}

.home-breed-link__action {
  margin-top: 3px;
  padding: 3px 8px;
  border-bottom: 2px solid var(--orange);
  font-weight: 700;
}

#galeri, #sss, #iletisim { scroll-margin-top: 100px; }

.home-gallery, .home-faq { padding-block: clamp(48px, 6vw, 84px); }
.home-gallery { background: #f6f7f9; }
.home-gallery h2, .home-faq h2, .home-contact h2 { font-size: clamp(1.9rem, 3vw, 3rem); }
.home-gallery h2 { font-size: clamp(1.35rem, 2.1vw, 2rem); }
.home-gallery { padding-block: clamp(34px, 4vw, 56px); }

.home-gallery__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 23px;
}

.home-gallery__controls { display: flex; gap: 6px; }

.home-gallery__controls button,
.gallery-viewer__heading button,
.home-welcome__close {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.home-gallery__controls button:hover,
.gallery-viewer__heading button:hover,
.home-welcome__close:hover { background: var(--cream); border-color: var(--orange); }

.home-gallery__track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  padding-block: 2px 8px;
}

.home-gallery__tile {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.home-gallery__tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-gallery__type {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(10, 31, 52, .94);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.home-gallery__tile[data-gallery-kind="video"] .home-gallery__type {
  background: var(--orange);
  color: var(--navy);
}

.home-gallery__title {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
}

.gallery-viewer {
  width: min(860px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
}

.gallery-viewer::backdrop { background: rgba(22, 22, 22, .66); }
.gallery-viewer__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gallery-viewer__media img, .gallery-viewer__media video { display: block; width: 100%; max-height: 68dvh; object-fit: contain; background: #0d2133; }
.gallery-viewer__media img { background: #fff; }
.gallery-viewer__credit { margin-top: 10px; font-size: .875rem; }
.gallery-viewer__credit summary { cursor: pointer; }

.home-faq__layout {
  display: grid;
  grid-template-columns: minmax(230px, .85fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(22px, 5vw, 76px);
}

.home-faq__intro p { margin: 12px 0 16px; color: #52677a; }
.home-faq__items { display: grid; gap: 9px; }

.home-faq__items details {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.home-faq__items summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  list-style: none;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
}

.home-faq__items summary::-webkit-details-marker { display: none; }
.home-faq__items summary::after {
  display: grid;
  flex: 0 0 28px;
  height: 28px;
  place-items: center;
  border-radius: 3px;
  background: var(--cream);
  color: var(--navy);
  content: "+";
}

.home-faq__items details[open] { border-color: var(--orange); }
.home-faq__items details[open] summary::after { background: var(--orange); content: "−"; }
.home-faq__items details p { padding: 0 17px 15px; margin: 0; color: #52677a; }

.home-contact { padding-block: 4px clamp(36px, 5vw, 64px); }

.home-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, .8fr);
  gap: clamp(20px, 5vw, 68px);
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid #e9ddba;
  border-radius: 7px;
  background: #fbf8ef;
}

.home-contact__intro { align-self: center; }
.home-contact__intro .section-kicker { color: #765e1d; }
.home-contact__intro > p:not(.section-kicker) { max-width: 44ch; margin: 13px 0 20px; color: #486074; }
.home-contact__intro .btn { gap: 8px; }

.home-contact__details {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(16px, 2vw, 25px);
  border: 1px solid #eadfbe;
  border-radius: 5px;
  background: #fff;
  font-style: normal;
}

.home-contact__details > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.home-contact__details > div + div { padding-top: 10px; border-top: 1px solid var(--line); }
.home-contact__details i { margin-top: 5px; color: #806523; }
.home-contact__details strong { display: block; color: var(--navy); }
.home-contact__details a, .home-contact__details span { color: #486074; overflow-wrap: anywhere; }

.home-footer {
  border-top: 1px solid #ddd5bf;
  background: #f4f2eb;
  color: #344b60;
}

.home-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 55px);
  padding-block: clamp(26px, 4vw, 52px) 28px;
}

.home-footer__brand img { width: min(252px, 100%); height: auto; }
.home-footer__brand p { max-width: 33ch; margin: 9px 0 12px; }
.home-footer__grid nav { display: grid; align-content: start; gap: 8px; }
.home-footer h2 { margin-bottom: 4px; color: var(--navy); font-size: 1rem; letter-spacing: 0; }
.home-footer a { overflow-wrap: anywhere; }
.home-footer a:hover { text-decoration: underline; }

.home-footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-footer__socials > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d5cba8;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
}

.home-footer__contact {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px 17px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  background: #fff;
  font-size: .875rem;
}

.home-footer__contact h2 { margin: 0; }
.home-footer__contact i { width: 18px; color: #806523; }
.home-footer__base { background: #102a43; color: #e6edf4; }

.home-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-block: 13px;
  font-size: .875rem;
}

.home-footer__bottom i { margin-left: 6px; color: var(--orange); }

.home-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.home-footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.home-footer__legal button:hover { color: var(--orange); text-decoration: underline; }
.legal-viewer { width: min(520px, calc(100% - 28px)); }
.legal-viewer h2 { font-size: 1.25rem; }

#baslangic #gallery-menu,
#baslangic #corporate-menu { padding: 0; }

#corporate-menu a { min-height: 48px; }

@media (min-width: 1021px) {
  #baslangic #puppy-menu .submenu-panel { bottom: auto; }
  #baslangic #puppy-menu .submenu-panel a { flex: 0 0 auto; min-height: 56px; }
}

.home-whatsapp, .home-welcome, .site-cookie { position: fixed; z-index: 120; }

.home-whatsapp {
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #dfc777;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  font-size: 1.65rem;
  box-shadow: 0 7px 22px rgba(16, 42, 67, .18);
}

.home-whatsapp:hover { background: var(--orange); color: var(--navy); }

.home-welcome, .site-cookie {
  padding: 16px;
  border: 1px solid #ded4b3;
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 32px rgba(16, 42, 67, .14);
}

.home-welcome {
  right: 20px;
  bottom: 86px;
  width: min(325px, calc(100vw - 24px));
  padding-right: 48px;
  border: 1px solid var(--orange);
  border-radius: 12px 12px 3px 12px;
  background: #fbf8ed;
}

.home-welcome strong { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.home-welcome strong i { color: #2b7855; font-size: 1.15rem; }
.home-welcome::after {
  position: absolute;
  right: 16px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
  background: inherit;
  transform: rotate(45deg);
  content: "";
}
.home-welcome p, .site-cookie p { margin: 6px 0 10px; color: #52677a; font-size: .875rem; }
.home-welcome a { color: var(--navy); font-weight: 750; border-bottom: 2px solid var(--orange); }
.home-welcome__close { position: absolute; top: 8px; right: 8px; min-width: 32px; min-height: 32px; }

.site-cookie {
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100vw - 105px);
  padding: 9px 10px;
}

.site-cookie[hidden] { display: none; }
.site-cookie > i { color: #806523; }
.site-cookie p { margin: 0; white-space: nowrap; }
.site-cookie__short { display: none; }
.site-cookie__actions { display: flex; gap: 5px; }
.site-cookie .btn { min-height: 34px; padding-inline: 9px; font-size: .8rem; white-space: nowrap; box-shadow: none; }

@media (max-width: 950px) {
  .home-breed-links__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-gallery__track { grid-auto-columns: calc((100% - 24px) / 3); }
  .home-footer__contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .home-faq__layout, .home-contact__panel { grid-template-columns: minmax(0, 1fr); }
  .home-gallery__track { grid-auto-columns: calc((100% - 12px) / 2); }
  .home-welcome { right: 12px; bottom: 76px; }
  .home-whatsapp { right: 12px; bottom: 12px; }
  .site-cookie { right: 12px; bottom: 12px; left: 12px; max-width: none; width: auto; justify-content: space-between; }
  .site-cookie p > span:first-child { display: none; }
  .site-cookie__short { display: inline; }
  .home-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-footer__brand { grid-column: 1 / -1; }
  .home-notices:has(.site-cookie:not([hidden])) .home-whatsapp { bottom: 77px; }
  .home-notices:has(.site-cookie:not([hidden])) .home-welcome { bottom: 142px; }
}

@media (max-width: 1020px) {
  #baslangic .nav-wrap { gap: 14px; }
  #baslangic .brand { width: clamp(168px, 54vw, 245px); max-width: calc(100% - 60px); }

  #baslangic .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--home-menu-top, 120px));
    max-height: calc(100dvh - var(--home-menu-top, 120px));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    margin: 0;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    transform: none;
    transition: none;
  }

  #baslangic .site-nav.open { visibility: visible; }
  #baslangic .site-nav > a:not(.nav-phone),
  #baslangic .site-nav .nav-link { min-height: 44px; }

  #baslangic .dropdown-menu,
  #baslangic .submenu-panel {
    display: none;
    position: static;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  #baslangic .dropdown-open > .dropdown-menu,
  #baslangic .submenu-open > .submenu-panel {
    display: block;
    max-height: none;
    visibility: visible;
  }

  #baslangic .submenu-panel a { display: flex; align-items: center; min-height: 44px; }
  #baslangic.menu-open .home-notices { visibility: hidden; }

  #baslangic .dropdown-open > #gallery-menu,
  #baslangic .dropdown-open > #corporate-menu { padding: 0; }
  #baslangic #gallery-menu, #baslangic #corporate-menu { width: 100%; }
}

@media (max-width: 450px) {
  .home-gallery__track { grid-auto-columns: 87%; }
  .home-footer__contact { grid-template-columns: minmax(0, 1fr); }
  .site-cookie { gap: 6px; padding-inline: 7px; }
  .site-cookie > i { display: none; }
  .site-cookie .btn { padding-inline: 6px; font-size: .75rem; }
}

@media (max-width: 390px) {
  .story-search { gap: 9px; padding-inline: 0; }
  .home-contact__details a { overflow-wrap: anywhere; }
}

@media (max-width: 760px) {
  .home-breed-links__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: var(--navy);
    font-weight: 750;
  }

  .home-breed-links__arrows { display: flex; gap: 5px; }

  .home-breed-links__arrows button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
  }

  .home-breed-links__arrows button:disabled { opacity: .4; }

  .home-breed-links__track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 22px) / 2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-block: 3px;
  }

  .home-breed-links__track::-webkit-scrollbar { display: none; }
  .home-breed-link { scroll-snap-align: start; padding: 14px 8px 12px; }
  .home-breed-link:focus-visible { outline: 2px solid #806822; outline-offset: -2px; }
  .home-breed-link__image { width: 65px; height: 65px; }
}

@media (min-width: 521px) and (max-width: 760px) {
  .home-breed-links__track { grid-auto-columns: calc((100% - 32px) / 3); }
}

@media (max-width: 700px) {
  .site-cookie { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .home-whatsapp { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .home-welcome { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .home-notices:has(.site-cookie:not([hidden])) .home-whatsapp { bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  .home-notices:has(.site-cookie:not([hidden])) .home-welcome { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
}
