:root {
  --blue: #073b92;
  --blue-dark: #062b6e;
  --magenta: #d313a6;
  --magenta-dark: #af0c8b;
  --orange: #ff8a1f;
  --ink: #172039;
  --muted: #5d6680;
  --line: #dce3f3;
  --soft: #f6f8ff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(7, 59, 146, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 8px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 243, 0.8);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 118px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--blue-dark);
  font-weight: 700;
}

.top-nav a {
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--magenta);
}

.section-band {
  padding: clamp(46px, 6vw, 78px) clamp(20px, 4vw, 64px);
  scroll-margin-top: 112px;
}

.customer-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.customer-access .section-heading {
  flex: 1 1 320px;
  min-width: 0;
}

.customer-access > .button {
  flex-shrink: 0;
}

.hero {
  min-height: min(760px, calc(100vh - 70px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(34px, 5vw, 92px);
  background:
    linear-gradient(90deg, rgba(6, 43, 110, 0.96) 0%, rgba(7, 59, 146, 0.84) 44%, rgba(211, 19, 166, 0.45) 100%),
    url("/img/hero-nowvet.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.success-card h1 {
  margin: 14px 0 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 4.8vw, 4.35rem);
}

.hero-copy {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--magenta);
  box-shadow: 0 14px 30px rgba(211, 19, 166, 0.28);
}

.button.primary:hover {
  background: var(--magenta-dark);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.price-panel {
  justify-self: end;
  width: min(100%, 520px);
  padding: clamp(34px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.price-panel span {
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
}

.price-panel strong {
  display: block;
  max-width: 420px;
  margin-top: 14px;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
  line-height: 1.05;
}

.price-panel p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.trust-strip {
  width: min(100% - 40px, 1380px);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(7, 59, 146, 0.1);
}

.trust-strip div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  color: var(--magenta);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.trust-strip span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.section-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.ecosystem {
  background: radial-gradient(ellipse at top right, #f1efff, transparent 48%), var(--white);
}

.ecosystem-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.ecosystem-intro .section-heading { margin: 0; }
.ecosystem-intro .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
.ecosystem-intro h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); line-height: 1.08; }
.ecosystem-pets { position: relative; isolation: isolate; }
.ecosystem-pets::before {
  content: "";
  position: absolute;
  inset: 15% -2% 0 0;
  z-index: -1;
  border-radius: 60% 40% 35% 65% / 65% 50% 50% 35%;
  background: linear-gradient(135deg, #f3f0ff, #e8e8fc);
}
.ecosystem-pets img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.ecosystem .ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ecosystem .ecosystem-pillar {
  --pillar-accent: var(--magenta);
  --pillar-pastel: #fcecf8;
  position: relative;
  padding: 24px 24px 28px;
  border-color: #e8eaf4;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--white) 65%, var(--pillar-pastel));
  box-shadow: 0 10px 30px rgba(7, 59, 146, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ecosystem .pillar-clinic { --pillar-accent: var(--blue); --pillar-pastel: #edf3ff; }
.ecosystem .pillar-community { --pillar-accent: #208861; --pillar-pastel: #eaf7ef; }
.ecosystem .pillar-platform { --pillar-accent: #7651c8; --pillar-pastel: #f2edfc; }
.ecosystem-pillar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--pillar-accent);
}
.ecosystem .pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.ecosystem .pillar-top span { margin: 0; font-size: 1.5rem; color: var(--orange); }
.ecosystem .pillar-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: var(--pillar-accent); background: var(--pillar-pastel); }
.ecosystem .pillar-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ecosystem .ecosystem-pillar h3 { font-size: 1.2rem; line-height: 1.3; }
.ecosystem .ecosystem-pillar p { font-size: 0.96rem; }
.ecosystem-allies { margin-top: 32px; }
.ecosystem-allies > h3 { display: flex; align-items: center; gap: 20px; margin: 0 0 20px; text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.ecosystem-allies > h3::before, .ecosystem-allies > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ecosystem .partner-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.ecosystem-partner { display: grid; place-items: center; min-width: 0; padding: 12px 20px; border: 1px solid #e8eaf4; border-radius: 12px; background: var(--white); box-shadow: 0 6px 20px rgba(7, 59, 146, 0.04); }
.ecosystem .ecosystem-partner img { width: 100%; height: 76px; object-fit: contain; padding: 0; border: 0; border-radius: 0; background: transparent; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ecosystem .ecosystem-pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(7, 59, 146, 0.11); }
}
@media (prefers-reduced-motion: reduce) { .ecosystem .ecosystem-pillar { transition: none; } }
@media (max-width: 1050px) {
  .ecosystem .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem-intro { gap: 20px; }
}
@media (max-width: 680px) {
  .ecosystem-intro { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
  .ecosystem-intro h2 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
  .ecosystem-intro .section-heading p { font-size: 1rem; }
  .ecosystem-pets { width: min(100%, 340px); justify-self: center; }
  .ecosystem-pets img { max-height: 220px; }
  .ecosystem .ecosystem-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ecosystem .ecosystem-pillar { padding: 20px 22px 24px; }
  .ecosystem .pillar-top { margin-bottom: 14px; }
  .ecosystem .pillar-icon { width: 56px; height: 56px; }
  .ecosystem .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ecosystem-partner { padding: 10px; }
  .ecosystem .ecosystem-partner img { height: 64px; }
  .ecosystem-allies > h3 { gap: 10px; font-size: 0.68rem; letter-spacing: 0.06em; }
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.partner-logos img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.ecosystem-grid,
.case-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ecosystem-grid article,
.case-grid article,
.education-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 59, 146, 0.08);
}

.ecosystem-grid article span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.ecosystem-grid h3,
.case-grid h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.22rem;
}

.ecosystem-grid p,
.case-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.benefits {
  background: var(--soft);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #dbe6fa;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 100% 0%, rgba(211, 19, 166, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255, 138, 31, 0.12), transparent 38%);
  box-shadow: 0 16px 40px rgba(23, 32, 57, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.benefit-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -28px;
  width: 112px;
  height: 112px;
  border: 18px solid rgba(7, 59, 146, 0.05);
  border-radius: 50%;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 19, 166, 0.35);
  box-shadow: 0 22px 52px rgba(23, 32, 57, 0.13);
}

.benefit-card.wide {
  grid-column: span 2;
}

.benefit-card.featured {
  min-height: 250px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 59, 146, 0.96), rgba(211, 19, 166, 0.9)),
    radial-gradient(circle at 92% 24%, rgba(255, 255, 255, 0.24), transparent 26%);
  border-color: transparent;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  color: var(--blue);
  background: #edf4ff;
}

.benefit-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card:nth-child(even) .benefit-icon {
  color: var(--magenta);
  background: #fff0fb;
}

.benefit-card:nth-child(2) .benefit-icon {
  color: var(--orange);
  background: #fff4e8;
}

.benefit-card.featured .benefit-icon {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.benefit-kicker {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.benefit-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 10px;
  color: var(--blue-dark);
  font-size: 1.22rem;
  line-height: 1.24;
}

.benefit-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.benefit-card.featured .benefit-kicker,
.benefit-card.featured h3,
.benefit-card.featured p {
  color: var(--white);
}

.benefit-card.featured p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
}

.steps {
  background: var(--white);
}

.operation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: clamp(22px, 4vw, 44px);
}

.step-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.operation-layout .step-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-list::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--magenta), var(--blue));
  opacity: 0.28;
}

.step-item {
  position: relative;
  z-index: 1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #ffe1c3;
  border-top: 4px solid var(--orange);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf5, #ffffff);
  box-shadow: 0 14px 34px rgba(7, 59, 146, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 19, 166, 0.35);
  box-shadow: 0 18px 42px rgba(7, 59, 146, 0.13);
}

.step-number {
  position: absolute;
  top: 16px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--magenta);
  font-size: 0.95rem;
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 26px 0 22px;
  border-radius: 50%;
  color: var(--blue);
  background: #edf4ff;
}

.step-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-item:nth-child(even) .step-icon {
  color: var(--magenta);
  background: #fff0fb;
}

.step-item:nth-child(3) .step-icon {
  color: var(--orange);
  background: #fff4e8;
}

.step-item h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.14rem;
  line-height: 1.25;
}

.step-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.5;
}

.video-panel {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.video-panel video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.video-panel div {
  display: grid;
  gap: 8px;
  padding: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--magenta));
}

.video-panel span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-panel strong {
  font-size: 1.25rem;
  line-height: 1.25;
}

.use-cases {
  background: var(--soft);
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plans {
  padding-top: clamp(44px, 5vw, 70px);
  padding-bottom: clamp(44px, 5vw, 70px);
  background:
    linear-gradient(105deg, rgba(7, 59, 146, 0.96) 0%, rgba(7, 59, 146, 0.78) 46%, rgba(211, 19, 166, 0.78) 100%),
    url("/img/hero-nowvet.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.plan-card h2 {
  margin: 12px 0 14px;
  font-size: clamp(2.2rem, 3.6vw, 4.3rem);
  line-height: 1.02;
}

.plan-card p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.65;
}

.plan-price {
  display: grid;
  gap: 10px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.plan-price span {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
}

.plan-price strong {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.84);
  text-transform: uppercase;
}

.faq {
  background: var(--white);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  max-width: 1320px;
  margin: 0 auto 28px;
}

.faq-note {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--magenta));
  box-shadow: var(--shadow);
}

.faq-note strong {
  font-size: 1.45rem;
  line-height: 1.2;
}

.faq-note span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.faq-note .button {
  width: fit-content;
  margin-top: 4px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1320px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  box-shadow: 0 10px 28px rgba(7, 59, 146, 0.06);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--blue-dark);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list .button--faq-compact {
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  margin: 0 20px 18px;
  font-size: 0.875rem;
}

.education {
  display: grid;
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: var(--soft);
}

.education .section-heading {
  margin-bottom: 0;
}

.education-grid {
  grid-template-columns: 1fr;
}

.education-grid article {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  line-height: 1.35;
}

.education-grid article span {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.education-grid h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 1.22rem;
}

.education-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contract-section {
  background: linear-gradient(180deg, var(--soft), var(--white));
}

.contract-section .section-heading {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.alert {
  max-width: 960px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 8px;
  line-height: 1.5;
}

.alert.error {
  color: #841b1b;
  background: #fff1f1;
  border: 1px solid #ffc9c9;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.contract-form {
  width: min(100%, 1320px);
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  margin: 0 auto;
}

.contract-form > input[type="hidden"] {
  display: none;
}

fieldset,
.summary-panel {
  margin: 0 0 22px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 59, 146, 0.08);
}

.contract-form fieldset,
.contract-form .summary-panel,
.contract-form .payment-note {
  margin: 0;
}

.contract-form fieldset:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.contract-form fieldset:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.contract-form fieldset:nth-of-type(3) {
  grid-column: 1;
  grid-row: 2;
}

.contract-form fieldset:nth-of-type(4) {
  grid-column: 1;
  grid-row: 3;
}

.contract-form fieldset:nth-of-type(4) .form-grid {
  grid-template-columns: 1fr;
}

legend {
  padding: 0 10px;
  color: var(--blue-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue-dark);
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.contract-product,
input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8ec;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.contract-product {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(211, 19, 166, 0.18);
  border-color: var(--magenta);
}

.upload-box {
  display: grid;
  gap: 16px;
}

.upload-label {
  display: block;
  padding: 22px;
  border: 2px dashed #b9c6e2;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcff;
}

.upload-label strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.preview-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 1;
  background: var(--soft);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
}

.contract-form .summary-panel {
  grid-column: 2;
  grid-row: 3;
  grid-template-columns: 1fr;
}

.summary-panel h3 {
  margin: 10px 0 8px;
  color: var(--blue-dark);
  font-size: 1.6rem;
}

.summary-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-dark);
}

.payment-note {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff8f0;
  color: var(--muted);
}

.contract-form .payment-note {
  grid-column: 2;
}

.payment-note strong {
  color: var(--blue-dark);
}

.submit-button {
  width: min(100%, 340px);
}

.contract-form .submit-button {
  grid-column: 2;
  width: min(100%, 420px);
  justify-self: end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-footer img {
  width: 118px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--white);
  border-color: var(--magenta);
  background: var(--magenta);
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}

.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(180px, calc(100vw - 32px));
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--magenta);
  box-shadow: 0 18px 40px rgba(211, 19, 166, 0.34);
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.floating-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(270px, calc(100vw - 44px));
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.floating-contact-panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 0.875rem;
  font-weight: 700;
}

.floating-contact-panel a:hover,
.floating-contact-panel a:focus-visible {
  background: var(--soft);
}

.floating-cta:focus-visible,
.floating-contact-panel a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.success-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue), var(--magenta));
}

.success-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.success-card {
  width: min(100%, 680px);
  padding: clamp(28px, 5vw, 50px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.success-card img {
  width: 150px;
  margin-bottom: 30px;
}

.success-card h1 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.success-card p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.request-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0 18px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #fff7ef;
  border-left: 4px solid var(--orange);
  font-weight: 800;
}

.request-status strong {
  color: var(--magenta);
}

.success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.success-detail-panel,
.next-step-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-label {
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.success-detail-panel h2 {
  margin: 8px 0 14px;
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1.15;
}

.success-detail-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.success-detail-panel dl div {
  display: grid;
  gap: 2px;
}

.success-detail-panel dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.success-detail-panel dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.next-step-note {
  display: grid;
  gap: 4px;
  margin: 18px 0 24px;
  background: #fbfcff;
}

.next-step-note strong {
  color: var(--blue-dark);
}

.next-step-note span {
  color: var(--muted);
  line-height: 1.55;
}

.token-panel {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.token-panel code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--blue-dark);
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.45;
}

.test-card {
  width: min(100%, 760px);
}

.webpay-test-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 26px 0;
}

.webpay-test-form .button {
  min-width: 210px;
}

.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.test-actions .button.secondary {
  color: var(--blue-dark);
  border: 1px solid var(--line);
  background: var(--white);
}

.test-actions .button.secondary:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

@media (max-width: 980px) {
  .hero,
  .operation-layout,
  .plan-card,
  .faq-layout,
  .education,
  .contract-form,
  .summary-panel {
    grid-template-columns: 1fr;
  }

  .contract-form fieldset:nth-of-type(1),
  .contract-form fieldset:nth-of-type(2),
  .contract-form fieldset:nth-of-type(3),
  .contract-form fieldset:nth-of-type(4),
  .contract-form .summary-panel,
  .contract-form .payment-note,
  .contract-form .submit-button {
    grid-column: 1;
    grid-row: auto;
  }

  .contract-form .submit-button {
    justify-self: stretch;
  }

  .trust-strip,
  .partner-logos,
  .ecosystem-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list::before {
    display: none;
  }

  .video-panel {
    position: static;
  }

  .faq-note {
    align-self: stretch;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    width: 100%;
    max-width: 100vw;
    padding: 12px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 128px;
  }

  .menu-toggle {
    position: absolute;
    top: 22px;
    right: 20px;
    display: inline-flex;
    flex: 0 0 44px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(7, 59, 146, 0.12);
    font-size: 1rem;
  }

  .top-nav.is-open {
    display: flex;
  }

  .top-nav a {
    padding: 14px 0;
    border-top: 1px solid rgba(220, 227, 243, 0.8);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 64px;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(6, 43, 110, 0.94) 0%, rgba(7, 59, 146, 0.76) 46%, rgba(211, 19, 166, 0.2) 100%),
      url("/img/hero-nowvet.png");
    background-size: auto 100%;
    background-position: 66% center;
  }

  .hero-content,
  .price-panel {
    width: min(100%, calc(100vw - 48px));
    min-width: 0;
    max-width: 100%;
  }

  .hero-actions {
    max-width: 340px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 2.45rem;
    line-height: 1.08;
    overflow-wrap: normal;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .benefit-grid,
  .trust-strip,
  .partner-logos,
  .ecosystem-grid,
  .case-grid,
  .education-grid,
  .faq-list,
  .operation-layout .step-list,
  .step-list,
  .form-grid,
  .summary-grid,
  .preview-grid,
  .success-details {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    width: min(100% - 32px, 1380px);
    margin-top: -20px;
  }

  .benefit-card.wide,
  .span-2 {
    grid-column: auto;
  }

  .price-panel {
    padding: 22px;
  }

  .price-panel strong {
    font-size: 1.9rem;
  }

  .trust-strip div {
    min-height: 118px;
  }

  .partner-logos img {
    height: 92px;
  }

  .video-panel video {
    aspect-ratio: 16 / 11;
  }

  .floating-contact {
    right: 16px;
    bottom: 16px;
  }

  .floating-cta {
    width: auto;
  }

  .webpay-test-form {
    grid-template-columns: 1fr;
  }

  .webpay-test-form .button {
    width: 100%;
  }
}

/* Actualizaci?n comercial NOWVET */
.brand img { width: 168px; height: auto; object-fit: contain; }
.site-footer img, .success-card img { height: auto; object-fit: contain; }
.hero-content, .price-panel { min-width: 0; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.1; overflow-wrap: break-word; }
.wikipet {
  padding-block: clamp(20px, 2.5vw, 32px);
  background: var(--soft);
}
.wikipet-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  max-width: 1040px;
  margin-inline: auto;
  gap: 18px 32px;
  padding: clamp(20px, 2.3vw, 32px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--magenta);
  border-radius: 8px;
  background: linear-gradient(120deg, var(--white), #eef2ff);
  box-shadow: var(--shadow);
}
.wikipet-heading { display: flex; align-items: center; gap: 12px; }
.wikipet-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--magenta);
  background: rgba(211, 19, 166, 0.08);
}
.wikipet-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wikipet h2 { margin: 0; color: var(--blue); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; }
.wikipet p { min-width: 0; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) {
  .wikipet-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 680px) {
  .brand img { width: 148px; }
  .hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.45rem); }
}
