* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fafafa;
  color: #1d1d1f;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header,
.site-footer {
  background-color: #14213d;
  color: #ffffff;
}

.site-header {
  padding: 0 0 2.5rem;
}

.site-footer {
  padding: 2rem 0;
}

.site-header__bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.site-logo {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-logo:focus-visible {
  outline: 3px solid #fca311;
  outline-offset: 4px;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: rgba(252, 163, 17, 0.2);
  border-color: rgba(252, 163, 17, 0.4);
}

.nav-link.is-active {
  background-color: #fca311;
  color: #14213d;
}

.site-header__content {
  padding: 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.site-header p,
.site-footer p {
  margin: 0;
  line-height: 1.6;
}

main {
  padding: 2rem 0 3rem;
}

.page-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.simple-page {
  align-items: center;
  justify-content: center;
  min-height: 360px;
  text-align: center;
}

.coming-soon-card {
  background-color: #ffffff;
  color: #1d1d1f;
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.7;
}

.coming-soon-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #14213d;
}

.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.seo-overview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.7;
  margin-bottom: 0.2rem;
}

.seo-overview h2 {
  margin: 0 0 0.3rem;
}

.seo-overview p {
  margin: 0;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.generated-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.action-panel.with-feedback {
  gap: 1.3rem;
}

.btn {
  all: unset;
  border: 2px solid #fca311;
  background-color: #fca311;
  color: #14213d;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(20, 33, 61, 0.15);
}

.btn:focus-visible {
  outline: 3px solid #14213d;
  outline-offset: 2px;
}

.settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background-color: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-group {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.input-feedback {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.9rem;
  color: #4f4f4f;
}

.input-feedback.has-error {
  color: #d62828;
}

.input-feedback:empty {
  display: none;
}

.hidden {
  display: none !important;
}

label {
  font-weight: 600;
  margin: 0;
}

input[type="number"] {
  padding: 0.5rem;
  border: 1px solid rgba(20, 33, 61, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 110px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.animal-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animal-card:hover,
.animal-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.animal-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f4f4f5;
  overflow: hidden;
}

.animal-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.animal-card__name {
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
  color: #14213d;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animal-card__name button {
  border: none;
  background: none;
  color: #fca311;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease;
}

.animal-card__name button:hover,
.animal-card__name button:focus-visible {
  transform: scale(1.08);
}

.animal-card__icon {
  display: inline-block;
}

.status-message {
  min-height: 1.5rem;
  font-weight: 600;
  color: #2d6a4f;
  margin-bottom: 0.45rem;
}

.status-message.is-error {
  color: #d62828;
}

.ad-slot {
  width: 100%;
  min-height: 120px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #fca311;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  grid-auto-rows: 1fr;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.feature-icon {
  font-size: 2rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #14213d;
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
  color: #2f2f33;
  padding-bottom: 0.5rem;
}

.sidebar-ad {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.supporting-copy {
  margin-top: 3rem;
  line-height: 1.7;
}

.supporting-copy h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

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

.noscript-warning {
  margin: 1.5rem auto;
  padding: 1rem;
  width: min(600px, 90vw);
  background-color: #fff4e6;
  border-left: 4px solid #f77f00;
  color: #3c2f2f;
  font-weight: 600;
}

@media (max-width: 600px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }

  .settings {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  input[type="number"] {
    width: 100%;
  }

  .toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ad-slot {
    min-height: 90px;
  }

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

@media (min-width: 992px) {
  .page-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .sidebar-ad {
    width: min(320px, 30%);
  }

  .supporting-copy {
    margin-top: 0;
  }
}
