.about-frame {
  border-radius: 18px;
}

.about-frame img {
  height: 420px;
  object-fit: cover;
  object-position: center bottom;
}

.clinic-frame img {
  height: 400px;
  object-position: center top;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 36%, rgba(0, 0, 0, 0.22) 65%, rgba(0, 0, 0, 0.45) 100%), linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 28%, rgba(0, 0, 0, 0.7) 100%), url('../assets/images/hero-dog.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 100px 0 50px;
  text-align: left;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.hero-top-brand {
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-brand-name {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: center;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.9);
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0;
  z-index: 2;
  gap: 4px;
}

.hero-title {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-white);
  margin-bottom: 14px;
  text-align: left;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 520px;
  margin: 0 0 28px 0;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.clinic-highlight-lead {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.cards-two-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.emergency-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.emergency-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 120, 196, 0.2);
}

.emergency-card-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.emergency-card:hover .emergency-card-img {
  transform: scale(1.03);
}

.split-card-img {
  display: flex;
  width: 100%;
  height: 270px;
  overflow: hidden;
  gap: 2px;
  background-color: #E2E8F0;
}

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

.emergency-card-body {
  padding: 24px;
}

.tag-red {
  color: var(--color-red);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-blue {
  color: var(--color-secondary-blue);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-card-body p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.prevention-box {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: 26px;
}

.prevention-box h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 16px;
}

.prevention-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prevention-list li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
}

.prevention-camp-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: 20% bottom;
  transform: scale(1.45);
  transform-origin: 2% 88%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-cover-frame:hover .prevention-camp-img {
  transform: scale(1.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary-blue);
  box-shadow: 0 12px 28px rgba(0, 120, 196, 0.08);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--color-secondary-blue);
  border-radius: 2px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  font-size: 15px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-list li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: var(--color-secondary-blue);
}

.stories-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stories-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.story-card-tall {
  height: 300px;
}

.story-card-short {
  height: 240px;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-img-intervention {
  object-position: 25% 70%;
}

.story-img-puppy {
  object-position: center 52%;
}

.story-img-rescue {
  object-position: center center;
}

.story-img-outreach {
  object-position: center bottom;
}

.story-card:hover img {
  transform: scale(1.05);
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
}

.story-title {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.section-cta-banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)), url('../assets/images/puppy-hands.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 80px 24px;
  color: var(--color-white);
}

.cta-banner-content {
  max-width: 780px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.cta-banner-content p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 32px;
}

.contact-section-content {
  max-width: 680px;
}

.contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 0;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--color-badge-bg-default);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-circle svg {
  width: 20px;
  height: 20px;
  fill: var(--color-secondary-blue);
}

.contact-text-primary {
  color: var(--color-text-primary);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-text-primary strong {
  font-size: 17px;
  font-weight: 700;
}

.contact-text-primary:hover {
  color: var(--color-primary);
}

.contact-address-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-address-block strong {
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 700;
}

.contact-address-block span {
  color: var(--color-text-secondary);
  font-size: 14px;
}

@media (max-width: 992px) {
  .hero-container {
    padding: 0 20px;
  }

  .about-frame img,
  .clinic-frame img {
    height: 320px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cards-two-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 50px 20px 60px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.78) 100%), url('../assets/images/hero-dog.jpg');
    background-position: center center;
  }

  .hero-container {
    padding: 0;
  }

  .hero-top-brand {
    position: static;
    padding: 0;
    margin-bottom: 24px;
  }

  .hero-brand-name {
    font-size: clamp(30px, 8vw, 42px);
    margin-bottom: 0;
  }

  .hero-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .section-cta-banner {
    padding: 70px 20px;
  }

  .stories-columns {
    grid-template-columns: 1fr;
  }

  .story-card-tall,
  .story-card-short {
    height: 280px;
  }
}
