:root {
  --bg: #040427;
  --surface: #040427;
  --surface-alt: #02053e;
  --line: #9ab4ff3d;
  --line-strong: #79c8ff66;
  --text: #78c6e2;
  --muted: #607cb0;
  --accent: #78c6e2;
  --button-bg: #9a9cc8;
  --button-text: #060f3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 0.05px;
}

main,
header,
footer,
section,
article,
aside,
nav
 {
  background-color: var(--bg);
}

p,
li,
span,
label,
input,
textarea,
select,
button {
  font-size: 18px;
}

p,
li {
  line-height: 1.45;
}

/* Content text links: always underlined, same color when visited */
main a:not(.cta-pill):not(.btn):not(.news-card):not(.brand):not(.contact-icon):not(.simple-animal-card):not(.press-media-card--link),
main a:not(.cta-pill):not(.btn):not(.news-card):not(.brand):not(.contact-icon):not(.simple-animal-card):not(.press-media-card--link):visited,
main a:not(.cta-pill):not(.btn):not(.news-card):not(.brand):not(.contact-icon):not(.simple-animal-card):not(.press-media-card--link):hover,
.line-link,
.line-link:visited,
.line-link:hover,
.subpage-links a:not(.cta-pill),
.subpage-links a:not(.cta-pill):visited,
.subpage-links a:not(.cta-pill):hover,
.contact-side a:not(.cta-pill):not(.contact-icon),
.contact-side a:not(.cta-pill):not(.contact-icon):visited,
.contact-side a:not(.cta-pill):not(.contact-icon):hover {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: underline;
}

.brand,
.brand:visited,
.brand:hover,
.home-slide a,
.home-slide a:visited,
.home-slide a:hover,
.news-card,
.news-card:visited,
.news-card:hover {
  text-decoration: none;
}

img,
svg,
video,
iframe,
canvas {
  max-width: 100%;
}

.container {
  width: min(1020px, 94%);
  margin: 0 auto;
}

.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 0;
  box-shadow: none;
}

.site-header .container,
.home-page .content,
.home-page .site-footer .container {
  width: min(946px, 93%);
  margin: 0 auto;
}

.nav-wrap {
  min-height: 56px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
  align-self: flex-start;
}

.brand-logo {
  width: 132px;
  height: auto;
  aspect-ratio: 1189 / 1684;
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-family: inherit;
}

.nav-links {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.site-header .nav-links a,
.site-header .dropdown-menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  padding: 0.1rem 0.18rem;
  border-radius: 6px;
  background: transparent;
  text-decoration: none;
}

.site-header .nav-links a:visited,
.site-header .nav-links a:hover,
.site-header .nav-links a.active,
.site-header .dropdown-menu a:visited,
.site-header .dropdown-menu a:hover {
  color: var(--text);
}

.nav-links a.active {
  background: var(--muted);
  text-decoration: none;
}

.nav-links a[href="index.html"].active {
  text-decoration: none;
}

.nav-item {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.dropdown-toggle-icon {
  display: none;
  font-size: 0.55rem;
  color: var(--text);
  background: transparent;
  border: 0;
  padding: 0.06rem 0.08rem;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 0.4rem;
  margin-top: 0;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dropdown-menu a {
  display: block;
  padding: 0.35rem 0.45rem;
}

.dropdown-menu.long a {
  font-size: 18px;
  line-height: 1.2;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu,
.nav-item.open .dropdown-menu {
  display: block;
}

.lang-select {
  margin-left: auto;
  margin-right: -34px;
  margin-top: 64px;
  border: 1px solid #57beff;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-family: "Avenir Light", Avenir, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 0.18rem 0.3rem;
}

.lang-select option {
  font-family: "Avenir Light", Avenir, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.content {
  padding: 0.55rem 0 2rem;
  width: min(946px, 93%);
  margin: 0 auto;
}

main.content {
  padding-top: 2.2rem;
}

.home-page .content {
  padding-top: 0.35rem;
}

h1,
.section-heading,
.animals-main-title,
.contact-title,
.page-block h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}

h2, .subtitle {
  font-size: 25px;
  font-weight: 700;
  color: var(--accent);
}

.section-heading {
  margin: 0;
  line-height: 1.05;
  font-family: Arial, Helvetica, sans-serif;
}

.home-page .section-heading {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.stars,
.home-page .stars {
  margin-left: 0.45rem;
  color: #79c8ff;
  font-size: 0.67em;
  letter-spacing: 0.08em;
  vertical-align: baseline;
}

.section-intro {
  color: var(--text);
  margin: 0.5rem 0 0.6rem;
  line-height: 1.25;
}

.home-page .section-intro {
  font-size: 18px;
  line-height: 1.35;
  margin: 0.4rem 0 0.55rem;
}

.home-page .line-link {
  font-size: 18px;
  color: var(--muted);
}

.line-break {
  border: 0;
  border-top: 1px solid #9ab4ff45;
  margin: 0.9rem 0;
}

.home-page .line-break {
  margin: 0.75rem 0 0.85rem;
}

.home-page .hero-image {
  width: 100%;
  margin-left: 0;
  min-height: clamp(280px, 42vw, 520px);
  position: relative;
  overflow: hidden;
  background-image:
          linear-gradient(
                  to bottom,
                  transparent 0 6px,
                  #000000 6px 9px,
                  transparent 9px calc(100% - 9px),
                  #000000 calc(100% - 9px) calc(100% - 6px),
                  transparent calc(100% - 6px) 100%
          ),
          linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
          url("../images/home-banner.png");
  background-size: 100% 100%, cover, cover;
  background-position: center center, center center, center 35%;
  background-repeat: no-repeat, no-repeat, repeat-x;
}

/* WebP when supported (smaller than PNG); falls back to rule above if `image-set` is ignored */
.home-page .hero-image {
  background-image:
          linear-gradient(
                  to bottom,
                  transparent 0 6px,
                  #000000 6px 9px,
                  transparent 9px calc(100% - 9px),
                  #000000 calc(100% - 9px) calc(100% - 6px),
                  transparent calc(100% - 6px) 100%
          ),
          linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
          image-set(
                  url("../images/home-banner.webp") type("image/webp"),
                  url("../images/home-banner.png") type("image/png")
          );
}

.home-page .hero-image .btn {
  position: absolute;
  left: calc((100vw - min(946px, 93%)) / 2 + 8rem);
  top: 50%;
  transform: translateY(-50%);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 212px;
  min-height: 120px;
  border-radius: 24px;
  padding: 0.9rem 0.7rem;
  font-family: "Anton", Arial, Helvetica, sans-serif;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 700;
  background: #ffffff;
  color: #0a1555;
  border: 2px solid #e6ebff;
  box-shadow:
          0 20px 36px rgba(0, 0, 0, 0.5),
          0 5px 0 rgba(0, 0, 0, 0.35),
          0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  text-decoration: none;
  z-index: 1;
  margin: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.home-page .news-grid {
  grid-template-columns: 1.3fr 0.92fr;
  gap: 0.75rem;
  margin-top: 0.65rem;
  align-items: center;
}

.news-card {
  border: 1px solid #6cc4ff8f;
  min-height: 124px;
  background: linear-gradient(135deg, #3db0ff, #5486ff);
  color: #00124f;
  font-size: 0.68rem;
  padding: 0.62rem;
}

.home-page .news-card {
  min-height: 118px;
  padding: 0.58rem;
  font-size: 0.67rem;
  line-height: 1.28;
}

.news-card.outline {
  background: var(--surface-alt);
  color: var(--text);
  border: 2px solid #59c6ff;
  border-radius: 22px;
  width: 232px;
  min-height: 72px;
  margin: auto 0 auto auto;
  box-shadow: 4px 4px 0 #59c6ff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.news-card.outline:hover,
.news-card.outline:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  color: #f4f7ff;
  box-shadow: 4px 4px 0 #4a5f8f;
}

.home-page .news-card.outline {
  width: 236px;
  min-height: 78px;
  border-radius: 20px;
  font-size: 18px;
  margin-top: 0.1rem;
}

.donation-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.6rem;
}

.page-block .payment-paypal-btn.news-card.outline {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.payment-paypal-btn-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.payment-paypal-btn img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.payment-paypal-btn .payment-card-icon {
  flex-shrink: 0;
  width: 2.15rem;
  height: auto;
  color: currentColor;
}

.payment-method-link,
.payment-method-link:visited,
.payment-method-link:hover {
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 72px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.payment-method-link:hover,
.payment-method-link:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  transform: translateY(-2px);
  outline: none;
}

.payment-method-link img {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
  pointer-events: none;
}

.donation-bank-details {
  margin-top: 1.4rem;
}

.donation-bank-details p {
  margin: 0 0 0.5rem;
  color: var(--text);
}

.volunteer-layout {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 415px);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.volunteer-layout-text {
  min-width: 0;
}

.volunteer-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 0.5rem 0 0.85rem;
}

.volunteer-platform-link,
.volunteer-platform-link:visited,
.volunteer-platform-link:hover {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.volunteer-platform-link:hover,
.volunteer-platform-link:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  transform: translateY(-2px);
  outline: none;
}

.volunteer-platform-link img {
  display: block;
  width: auto;
  max-width: min(280px, 100%);
  max-height: 56px;
  object-fit: contain;
  pointer-events: none;
}

.volunteer-feature-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.shop-feature-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.5rem auto 0.85rem;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

@media (min-width: 761px) {
  .shop-feature-image {
    max-width: min(480px, 50%);
  }
}

.home-page .news-main-cartel-image {
  width: 100%;
  min-height: 118px;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-page .news-aside {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
  align-self: center;
}

.home-page .button {
  margin-top: 0;
}

.home-more-link,
.home-page .home-more-link {
  display: inline-block;
  margin-top: 0.3rem;
}

.home-feature-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  margin-top: 0.35rem;
}

.home-slider {
  position: relative;
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #6fc8ff7d;
  overflow: hidden;
}

.home-slides {
  display: flex;
  transition: transform 0.35s ease;
}

.home-slide {
  min-width: 100%;
  background: #030a37;
}

.home-slide img,
.home-page .home-slide img {
  width: 100%;
  height: 296px;
  object-fit: contain;
  display: block;
}

.home-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(1, 0, 51, 0.74);
  color: #9fd8ff;
  border: 1px solid #57beff;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.home-slider-btn.prev {
  left: 8px;
}

.home-slider-btn.next {
  right: 8px;
}

.home-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.home-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #7f90bd;
  cursor: pointer;
}

.home-slider-dots button.active {
  background: #59c6ff;
}

.dogs-page {
  width: min(1020px, 96%);
}

.animals-main-title {
  margin: 0.3rem 0 2.35rem;
  font-family: Arial, Helvetica, sans-serif;
}

.dogs-page-intro {
  margin: 0;
}

.dogs-section {
  margin-top: 0.8rem;
}

.subtitle {
  margin: 0.2rem 0 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.dogs-grid,
.dogs-grid-large,
.simple-animal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.dog-card,
.simple-animal-card {
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
  text-align: center;
}

a.simple-animal-card,
a.simple-animal-card:visited,
a.simple-animal-card:hover {
  display: block;
  text-decoration: none;
  color: inherit;
}

.dog-card:hover,
.simple-animal-card:hover {
  transform: translateY(-1px);
}

.dog-card img,
.simple-animal-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.dog-card h3,
.simple-animal-card h3 {
  margin: 0;
  padding: 0.5rem 0.1rem;
  color: var(--accent);
  font-size: 1.06rem;
  text-align: center;
  font-weight: 700;
}

.dogs-actions {
  margin: 0.9rem 0 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.dogs-actions.single {
  margin-top: 0.7rem;
}

.simple-animal-card .dogs-actions {
  display: none;
}

.subpage-links {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.35rem;
}

.events-market-grid,
.events-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.85rem;
  align-items: stretch;
}

.events-market-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.events-market-card .events-media-slot {
  margin-top: auto;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: min(100%, 400px);
  margin-inline: auto;
  aspect-ratio: unset;
  min-height: 0;
  height: auto;
}

.events-market-card .events-media-slot img {
  width: min(100%, 380px);
  height: auto;
  max-height: clamp(240px, 38vw, 300px);
  object-fit: contain;
  object-position: bottom center;
}

.events-market-card h3 {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.events-market-text,
.events-past-text {
  margin: 0 0 0.65rem;
  font-size: 16px;
  line-height: 1.45;
}

.page-block .events-past-text + .events-video-grid {
  margin-top: 0.5rem;
}

.page-block h3 {
  margin: 0.2rem 0 0.55rem;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.events-past-subheading {
  margin: 1rem 0 0.45rem;
  font-size: 1.1rem;
}

.events-reviews {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.events-review {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.events-review p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.events-media-slot,
.events-video-slot {
  width: 100%;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.events-media-slot {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.events-video-slot {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.events-video-slot iframe,
.events-video-slot video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: cover;
}

.events-media-slot:not(:has(img)),
.events-video-slot:not(:has(iframe)):not(:has(video)) {
  display: grid;
  place-items: center;
}

.events-media-slot:has(img),
.events-video-slot:has(iframe),
.events-video-slot:has(video) {
  display: block;
}

.events-media-slot:has(img) .events-media-pending,
.events-video-slot:has(iframe) .events-media-pending,
.events-video-slot:has(video) .events-media-pending {
  display: none;
}

.events-media-pending {
  margin: 0;
  padding: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.press-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.press-media-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  height: 100%;
}

.press-media-card--link,
.press-media-card--link:visited,
.press-media-card--link:hover {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.press-media-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
}

.press-media-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.press-media-card--expand:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.press-media-preview {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
}

.press-media-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 520px);
  object-fit: contain;
  margin: 0 auto;
}

.press-media-preview video {
  display: block;
  width: 100%;
  max-height: min(52vh, 520px);
  background: #000;
}

.press-media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 520px);
  margin: 0 auto;
  background: #000;
}

.press-media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.press-media-meta {
  padding: 0.75rem 0.85rem 0.35rem;
}

.press-media-title {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.press-media-date {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text);
}

.press-media-hint {
  margin: 0;
  padding: 0 0.85rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.press-media-external {
  display: inline-block;
  margin: 0 0.85rem 0.95rem;
  font-size: 18px;
}

.press-modal {
  position: relative;
  width: min(96vw, 920px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1rem 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.press-modal--zoom {
  width: min(98vw, 1120px);
}

.press-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: rgba(10, 17, 86, 0.92);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.press-modal-close-icon {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.press-modal-close-icon::before,
.press-modal-close-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.press-modal-close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.press-modal-close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.press-modal-close:hover,
.press-modal-close:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  outline: none;
}

.press-modal-title {
  margin: 0 2rem 0.55rem 0;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.press-modal-meta {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.press-modal-media {
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
}

.press-modal--zoom .press-modal-media {
  display: block;
  overflow: auto;
  max-height: calc(100vh - 9rem);
  margin-bottom: 0.5rem;
}

.press-modal-zoom-hint {
  margin: -0.2rem 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.press-modal-media img,
.press-modal-media video,
.press-modal-media .press-media-embed {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  height: auto;
  margin: 0 auto;
}

.press-modal-media .press-media-embed {
  width: min(100%, 560px);
}

.press-modal--zoom .press-modal-media img.press-modal-zoom-image {
  width: min(100%, 1040px);
  max-width: none;
  max-height: none;
  cursor: zoom-in;
}

.press-modal--zoom .press-modal-media img.press-modal-zoom-image.is-zoomed {
  width: 175%;
  max-width: 1820px;
  cursor: zoom-out;
}

.press-modal-media video {
  width: 100%;
  background: #000;
}

.support-options {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 0.6rem;
}

.support-options-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.support-options-links {
  margin-top: 0;
}

.supporters-logo-grid + p {
  margin-top: 0.2rem;
}

.supporters-subtitle {
  font-size: 25px;
  font-weight: 700;
}

.supporters-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-top: 0.1rem;
}

.supporters-logo-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  min-height: 92px;
  padding: 0.55rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.supporters-logo-card:hover,
.supporters-logo-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9edaf0;
  outline: none;
}

.supporters-logo-card img {
  width: 100%;
  height: 66px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.sponsor-detail .sponsor-detail-image-wrap {
  background: #f4f5fb;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.sponsor-detail .sponsor-detail-image-wrap img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(420px, 55vh);
  object-fit: contain;
}

.sponsor-detail .dog-detail-content p {
  white-space: pre-line;
}

.cta-pill,
.cta-pill:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #7ec7e5;
  color: #07043a;
  border-radius: 999px;
  width: fit-content;
  min-width: 0;
  padding: 0.62rem;
  border: 1px solid #9edaf0;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 #4a9ec2, 0 8px 18px rgba(0, 0, 0, 0.22);
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cta-pill:hover,
.cta-pill:focus-visible {
  background: var(--muted);
  border-color: var(--muted);
  color: #f4f7ff;
  box-shadow: 0 3px 0 #4a5f8f, 0 8px 18px rgba(0, 0, 0, 0.28);
}

.cta-pill span {
  background: #010033;
  color: #7ec7e5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.cta-pill:hover span,
.cta-pill:focus-visible span {
  background: #f4f7ff;
  color: var(--muted);
}

.cta-pill-wide {
  min-width: 0;
}

.cta-pill-inline {
  margin-top: 1rem;
  min-width: 168px;
}

.help-text {
  font-size: 0.72rem;
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.dog-detail {
  width: min(980px, 96%);
  min-height: 560px;
  max-height: calc(100vh - 2rem);
  background: #9a9cc8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: auto;
}

.dog-detail-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

.dog-detail-content {
  padding: 2.5rem 2.5rem 1.8rem;
  color: #0d1040;
  position: relative;
}

.dog-detail-content h3 {
  margin: 0;
  font-size: 2.25rem;
  color: #030933;
}

.dog-detail-sponsor {
  margin: 0.75rem 0 0.8rem;
  font-size: 0.95rem;
  color: #11184f;
}

.dog-detail-content p {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #11184f;
}

.modal-close-btn {
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  border: 0;
  background: transparent;
  color: #1b2867;
  font-size: 1.6rem;
  cursor: pointer;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.25rem;
}

.contact-title {
  margin: 0 0 0.9rem;
}

.contact-text,
.contact-note {
  margin: 0 0 0.8rem;
  color: var(--text);
  line-height: 1.3;
  font-size: 0.95rem;
}

.contact-note {
  margin-top: 1rem;
  line-height: 1.28;
}

.contact-messenger {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0.95rem 0;
}

.contact-icon,
.social-icon-link {
  --icon-size: 44px;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  flex-shrink: 0;
}

.contact-icon img,
.social-icon-link img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form-wrap {
  background: transparent;
  border: 0;
  padding: 0;
}

.contact-form {
  display: grid;
  gap: 5px;
  padding: 20px 24px;
}

.contact-form fieldset {
  margin: 0.4rem 0 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  color: var(--text);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-options {
  display: grid;
  gap: 0.18rem;
}

.contact-options label {
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-options input[type="radio"] {
  width: 13px;
  height: 13px;
}

.contact-submit {
  margin-top: 0.4rem;
  cursor: pointer;
}

.contact-chat-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0.1rem 0 0.35rem;
}

.contact-chat-links .contact-icon,
.contact-chat-links .contact-icon:visited,
.contact-chat-links .contact-icon:hover {
  text-decoration: none;
}

.form-panel {
  width: 100%;
}

.form-feedback {
  margin-top: 0.5rem;
}

.form-status {
  margin: 0;
  padding: 0.65rem 0 0 1.1rem;
  color: #ffb4b4;
  font-size: 0.95rem;
  line-height: 1.45;
  list-style: disc;
}

.form-status-intro {
  list-style: none;
  margin-left: -1.1rem;
  font-weight: 700;
}

.form-thank-you {
  margin: 0.65rem 0 0;
  padding: 0;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 700;
}

.contact-form .input-invalid,
.contact-form fieldset.input-invalid {
  outline: 2px solid #e07070;
  outline-offset: 1px;
}

.contact-form fieldset.input-invalid {
  border-radius: 8px;
  padding: 0.35rem;
}

.contact-footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.social-links a,
.social-links a:visited,
.social-links a:hover {
  text-decoration: none;
}

.creator {
  color: var(--text);
  font-size: 0.73rem;
  text-align: right;
}

.page-block {
  padding: 2.2rem 0;
  width: min(946px, 93%);
  margin: 0 auto;
}

.page-block h1 {
  margin: 0 0 0.6rem;
}

.page-block .animals-main-title {
  margin: 0.3rem 0 2.35rem;
}

.page-block p,
.page-block li {
  color: var(--text);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  background: var(--bg);
}

.site-footer .container {
  font-size: 0.76rem;
  color: var(--text);
  padding: 0.85rem 0;
  width: min(946px, 93%);
  margin: 0 auto;
}

.home-page .site-footer .container {
  padding: 0.7rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.home-page .social-links .social-icon-link {
  --icon-size: 40px;
}

.home-page .creator {
  font-size: 0.68rem;
}

form {
  --form-surface: #9a9cc8;
  --form-text: #060f3f;
  --form-accent: #66c5ef;
}

form :is(input:not([type="radio"]):not([type="checkbox"]), textarea, select):not(.lang-select) {
  width: 100%;
  background: var(--form-surface);
  color: var(--form-text);
  border: 2px solid #03124a;
  border-radius: 0;
  box-shadow: none;
  padding: 0.62rem 0.82rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
}

form :is(input:not([type="radio"]):not([type="checkbox"]), textarea, select):not(.lang-select)::placeholder {
  color: var(--form-text);
  opacity: 1;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form :is(label, legend) {
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

form input[type="radio"],
form input[type="checkbox"] {
  accent-color: var(--form-accent);
}

form button:not(.menu-toggle):not(.home-slider-btn):not(.dropdown-toggle-icon),
form input[type="submit"] {
  background: var(--form-surface);
  color: var(--form-text);
  border: 2px solid #66c5ef;
  border-radius: 0;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 0.62rem 0.8rem;
}

@media (max-width: 760px) {
  .home-page .nav-wrap,
  .nav-wrap {
    min-height: auto;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .brand {
    flex-grow: 0;
  }

  .brand-logo {
    width: 70px;
    height: auto;
    aspect-ratio: 1189 / 1684;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    font-size: 26px;
    padding: 0.5rem 0.75rem;
  }

  .lang-select {
    margin-left: auto;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    width: auto;
    font-size: 15px;
    padding: 0.35rem 0.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 0.5rem 1rem;
    align-items: flex-start;
    margin-top: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    margin-top: 0.35rem;
    width: 100%;
  }

  .home-page .hero-image {
    min-height: 300px;
    background-size: 100% 100%, cover, cover;
    background-position: center center, center center, center 45%;
  }

  .home-page .section-heading,
  .section-heading {
    font-size: 30px;
  }

  .home-page .section-intro,
  .section-intro {
    font-size: 18px;
  }

  .home-page .news-grid,
  .news-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home-page .news-aside {
    justify-items: start;
  }

  .home-page .news-card.outline,
  .news-card.outline {
    width: min(236px, 100%);
    max-width: 240px;
    margin: 0;
  }

  .dogs-grid,
  .dogs-grid-large,
  .simple-animal-grid {
    grid-template-columns: 1fr;
  }

  .dog-card img {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cta-pill-wide {
    min-width: 0;
  }

  .dog-detail {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: calc(100vh - 2rem);
  }

  .dog-detail-image-wrap img {
    min-height: 240px;
  }

  .dog-detail-content {
    padding: 1rem 1rem 1.1rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .support-options {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    min-height: min(52vh, 420px);
    max-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .volunteer-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .volunteer-feature-image {
    max-width: min(415px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .volunteer-platforms {
    justify-content: center;
  }

  .events-market-grid,
  .events-video-grid {
    grid-template-columns: 1fr;
  }

  .press-media-grid {
    grid-template-columns: 1fr;
  }

  .support-options-links {
    justify-items: center;
    width: 100%;
  }

  .contact-footer,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-feature-image {
    max-height: 260px;
  }

  .home-slide img,
  .home-page .home-slide img {
    height: 248px;
  }

  .animals-main-title {
    margin: 0.3rem 0 2.2rem;
  }
}

@media (max-width: 620px) {
  .home-page .hero-image {
    min-height: 280px;
    background-repeat: no-repeat, no-repeat, repeat-x;
    background-position: center center, center center, center 45%;
    background-size: 100% 100%, cover, cover;
  }

  .brand-logo {
    width: 60px;
    height: auto;
    aspect-ratio: 1189 / 1684;
  }

  .menu-toggle {
    padding: 0.5rem 0.75rem;
    font-size: 28px;
    border-radius: 8px;
  }

  .lang-select {
    padding: 0.35rem 0.5rem;
    font-size: 16px;
  }

  .home-page .hero-image .btn {
    width: 160px;
    min-height: 100px;
    padding: 0.75rem 0.6rem;
    font-size: 20px;
    line-height: 1.1;
    border-radius: 20px;
    left: clamp(1rem, 8vw, 2.5rem);
    top: 54%;
  }
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;

  margin-left: 6px;

  font-size: 15px;
  font-weight: 700;

  color: #040427;           /* Textfarbe (dunkel) */
  background: #78c6e2;      /* Accent-Farbe */

  border-radius: 50%;
  line-height: 1;
}
