:root {
  --layout-max: 1240px;
  --ink: #132745;
  --muted: #5d6d87;
  --line: #dfe7f5;
  --blue: #1f3c70;
  --white: #ffffff;
  --shadow: 0 14px 30px rgba(18, 36, 68, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 240;
  border-bottom: 1px solid #d9e4f7;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.site-header-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 0.72rem 1rem;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #17345f;
}

.site-logo-image {
  display: block;
  width: auto;
  height: 24px;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.header-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cfdaef;
  background: #f4f8ff;
  color: #1f3c70;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(18, 43, 84, 0.1);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-menu-toggle:hover {
  transform: translateY(-1px);
  background: #ecf3ff;
  box-shadow: 0 8px 18px rgba(18, 43, 84, 0.16);
}

.lang-switch {
  width: 112px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #cfdaef;
  background: #f4f8ff;
  box-shadow: 0 5px 14px rgba(18, 43, 84, 0.1);
}

.lang-switch a {
  display: block;
  text-decoration: none;
  color: #244271;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.34rem 0;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 220ms ease;
}

.lang-switch a.active {
  background: #ffffff;
  color: #1f3c70;
  border-color: #dbe5fa;
}

.menu-backdrop {
  position: fixed;
  inset: 56px 0 0 0;
  z-index: 210;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.menu-backdrop.menu-backdrop-open {
  opacity: 1;
  pointer-events: auto;
}

.quick-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 220;
  padding: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 280ms ease, transform 280ms ease;
}

.quick-nav.quick-nav-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.quick-nav-links {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.85rem, 1.6vh, 1.35rem);
  padding: clamp(1.15rem, 2.8vh, 2.5rem) 1.5rem calc(1.6rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid rgba(184, 205, 236, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 252, 255, 0.97) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.quick-top-links {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  order: 1;
}

.quick-top-links .quick-main-link:not(:first-child) {
  display: none;
}

.quick-top-links .quick-main-link:first-child {
  display: inline-flex;
  margin-bottom: 0.28rem;
}

.quick-cta-links {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.58rem;
  order: 3;
}

.quick-main-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  text-decoration: none;
  color: #173d70;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.14rem 0.04rem;
  transition: color 180ms ease, transform 220ms ease, opacity 220ms ease;
  text-align: center;
  position: relative;
}

.quick-main-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.22rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  opacity: 0.55;
}

.quick-main-link::after {
  content: "→";
  margin-left: 0.36rem;
  font-size: 0.78em;
  line-height: 1;
  opacity: 0.72;
  transform: translateX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.quick-main-link:hover {
  color: #0f3d77;
  transform: translateY(-1px);
}

.quick-main-link:hover::before {
  transform: scaleX(1);
}

.quick-main-link:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.quick-main-link-pill {
  padding: 0.48rem 1.1rem;
  border: 1px solid #b6caea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(18, 43, 84, 0.1);
}

.quick-main-link-pill::before {
  display: none;
}

.quick-main-link-pill:hover {
  border-color: #89a8d8;
}

.quick-top-links .quick-main-link {
  opacity: 0;
  transform: translateY(10px);
}

.quick-cta-links .quick-main-link {
  opacity: 0;
  transform: translateY(10px);
}

.quick-nav.quick-nav-open .quick-top-links .quick-main-link:first-child,
.quick-nav.quick-nav-open .quick-cta-links .quick-main-link {
  opacity: 1;
  transform: translateY(0);
}

.quick-nav.quick-nav-open .quick-top-links .quick-main-link:first-child { transition-delay: 20ms; }
.quick-nav.quick-nav-open .quick-cta-links .quick-main-link:nth-child(1) { transition-delay: 170ms; }
.quick-nav.quick-nav-open .quick-cta-links .quick-main-link:nth-child(2) { transition-delay: 195ms; }

.quick-solutions-title {
  width: min(1240px, 100%);
  margin: 0.18rem auto 0;
  padding-top: 0.82rem;
  border-top: 1px solid #d9e4f6;
  color: #22487f;
  text-align: center;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 1;
}

.quick-solutions-title,
.mega-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.quick-nav.quick-nav-open .quick-solutions-title,
.quick-nav.quick-nav-open .mega-panel {
  opacity: 1;
  transform: translateY(0);
}

.mega-panel {
  position: static;
  transform: none;
  width: min(1240px, 100%);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
  z-index: 30;
  order: 2;
}

.mega-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.32rem;
}

.mega-col {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr);
  align-items: start;
  gap: 0.8rem 1.4rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(203, 217, 240, 0.55);
}

.mega-col:last-child {
  border-bottom: 0;
}

.mega-col-title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  color: #173d70;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.35;
  text-align: left;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.mega-col-title::before {
  display: none;
}

.mega-col-title::after {
  content: "→";
  font-size: 0.78em;
  line-height: 1;
  opacity: 0.7;
}

.mega-col-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 160ms ease, transform 160ms ease;
}

.mega-col-title-link:hover {
  color: #123f7a;
  transform: translateX(1px);
}

.mega-col-title-static::after {
  display: none;
}

.mega-col-links {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.9rem;
  justify-content: flex-start;
}

.mega-col-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #2a4a72;
  font-size: clamp(0.92rem, 1.02vw, 1.02rem);
  font-weight: 500;
  line-height: 1.34;
  padding: 0.08rem 0;
  text-align: left;
  transition: color 160ms ease, transform 160ms ease;
}

.mega-col-links a::before {
  display: none;
}

.mega-col-links a::after {
  content: "→";
  margin-left: 0.34rem;
  font-size: 0.78em;
  line-height: 1;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mega-col-links a:hover {
  color: #123f7a;
  transform: translateY(-1px);
}

.mega-col-links a:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.product-page {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.05rem;
}

.hero-media-wrap,
.hero-copy,
.panel {
  background: var(--white);
}

.hero-media-wrap {
  min-height: 460px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.media-glow {
  display: none;
}

.hero-media {
  width: 88%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding: 0.1rem 0.2rem 0.2rem;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  background: transparent;
}

.hero-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.35rem;
  text-decoration: none;
  color: #3b5886;
  font-size: 0.78rem;
  font-weight: 600;
  border-bottom: 1px solid #d5dff1;
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-back-link:hover {
  color: #183f78;
  border-color: #9eb5de;
}

h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  color: #122f5a;
}

.lead {
  margin: 0.62rem 0 0;
  color: #324766;
  font-size: 1rem;
}

.badge {
  margin-top: 0.95rem;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.74rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product-accent) 12%, #ffffff);
  color: color-mix(in srgb, var(--product-accent) 82%, #152f58);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.duration {
  margin-top: 0.62rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.34rem 0.76rem;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #d7e4fb;
  color: #2a487a;
  font-size: 0.84rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1rem;
}

.panel {
  padding: 0.95rem 0 0.95rem;
  border: 0;
  border-top: 1px solid #dde7f5;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.panel-use,
.panel-composition {
  align-self: start;
}

.panel-composition {
  grid-column: 1;
}

.panel-benefits {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.medical-advice {
  margin-top: 1.1rem;
  border: 1px solid #d6e2f7;
  border-left: 4px solid #1f3c70;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.95rem 1rem;
}

.medical-advice p {
  margin: 0;
  color: #20395f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.medical-advice strong {
  color: #163867;
}

.medical-advice .vet-emoji {
  font-size: 1rem;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

.panel h2 {
  margin: 0 0 0.62rem;
  font-size: 1.05rem;
  color: #1f3c70;
}

.use-box {
  border: 1px solid color-mix(in srgb, var(--product-accent) 44%, #c8d6ef 56%);
  border-left: 4px solid var(--product-accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--product-accent) 14%, #ffffff);
  padding: 0.88rem;
}

.use-box strong {
  color: #173662;
  display: block;
  margin-bottom: 0.2rem;
}

.use-box p {
  margin: 0;
  color: #2d4466;
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding: 0.52rem 0 0.52rem 1.7rem;
  color: #2c3e50;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--product-accent);
  font-weight: 700;
  font-size: 1.02rem;
}

.tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.composition-tag {
  display: inline-block;
  padding: 0.35rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--product-accent) 42%, #cedaf1 58%);
  background: color-mix(in srgb, var(--product-accent) 18%, #ffffff);
  color: #153665;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 360ms ease, transform 360ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-logo {
  width: 190px;
  height: auto;
  display: block;
}

.footer-logo-vetalis {
  width: auto;
  height: 42px;
  padding-left: 0.9rem;
  border-left: 1px solid #d6e0f0;
  opacity: 0.92;
  object-fit: contain;
}

.footer-links a {
  color: #1d2c4f;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

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

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-logo-image { height: 21px; }

  .header-menu-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .lang-switch {
    width: 104px;
  }

  .menu-backdrop {
    inset: 54px 0 0 0;
  }

  .quick-nav {
    top: 54px;
  }

  .quick-nav-links {
    justify-content: flex-start;
    align-items: stretch;
    gap: 0.72rem;
    padding: 0.9rem max(0.82rem, env(safe-area-inset-left)) calc(1.05rem + env(safe-area-inset-bottom)) max(0.82rem, env(safe-area-inset-right));
  }

  .quick-top-links {
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.52rem;
  }

  .quick-main-link {
    width: 100%;
    min-height: 50px;
    padding: 0.72rem 0.6rem;
    font-size: 0.92rem;
    border: 1px solid #c8d8ef;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 14px rgba(18, 43, 84, 0.08);
  }

  .quick-top-links .quick-main-link {
    grid-area: auto !important;
  }

  .quick-top-links .quick-main-link:first-child,
  .quick-cta-links .quick-main-link {
    width: 100%;
    justify-content: center;
    align-self: stretch;
  }

  .quick-main-link::before {
    display: none;
  }

  .quick-main-link::after {
    display: inline-block;
  }

  .quick-top-links .quick-main-link {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }

  .quick-cta-links .quick-main-link {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }

  .quick-nav.quick-nav-open .quick-top-links .quick-main-link:first-child,
  .quick-nav.quick-nav-open .quick-cta-links .quick-main-link {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .quick-nav.quick-nav-open .quick-top-links .quick-main-link:first-child { transition-delay: 20ms; }
  .quick-nav.quick-nav-open .quick-cta-links .quick-main-link:nth-child(1) { transition-delay: 170ms; }
  .quick-nav.quick-nav-open .quick-cta-links .quick-main-link:nth-child(2) { transition-delay: 195ms; }

  .quick-solutions-title {
    width: 100%;
    max-width: 560px;
    margin: 0.1rem auto 0;
    padding-top: 0.72rem;
    font-size: 0.71rem;
    letter-spacing: 0.12em;
    opacity: 0.86;
  }

  .quick-solutions-title,
  .mega-panel {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .quick-nav.quick-nav-open .quick-solutions-title,
  .quick-nav.quick-nav-open .mega-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .mega-panel {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0.04rem 0 0.12rem;
  }

  .quick-cta-links {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    gap: 0.72rem;
    padding-top: 0.14rem;
  }

  .mega-panel-grid {
    grid-template-columns: 1fr;
    gap: 0.66rem;
  }

  .mega-col {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(200, 216, 239, 0.7);
  }

  .mega-col-title {
    display: inline-flex;
    justify-self: stretch;
    justify-content: center;
    text-align: center;
    font-size: 0.94rem;
  }

  .mega-col-links a {
    font-size: 0.83rem;
    padding: 0.18rem 0.1rem;
  }

  .mega-col-links {
    justify-content: center;
    gap: 0.22rem 0.85rem;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .hero-media-wrap {
    min-height: 360px;
  }

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

  .panel-benefits,
  .panel-composition {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .product-page {
    padding: 1rem 0.75rem 2rem;
  }

  .hero-copy {
    padding: 0.95rem 0.1rem 0;
  }

  .hero-media-wrap {
    min-height: 280px;
  }

  .panel {
    padding: 1rem;
  }

  .footer-inner {
    align-items: center;
  }

  .footer-logo {
    width: 160px;
  }

  .footer-branding {
    width: 100%;
    justify-content: center;
  }

  .footer-logo-vetalis {
    height: 34px;
  }

  .footer-links {
    width: 100%;
    text-align: center;
  }
}
