/*
 * Landing page: /stropuva-vs-mehanikenn.html (template el_18)
 * Mobile-first. Reuses tokens from tokens.css and existing components
 * (.product-box, .faq-panel, .buy-button--cta). Everything is scoped with the
 * .vs- prefix / .compare-page so it cannot leak into other pages.
 */

.compare-page main {
  display: flow-root;
}

.vs-section {
  display: flow-root;
  width: 100%;
  padding: 36px 0;
  color: var(--color-ink, #29282e);
  font-size: var(--font-content-size, 16px);
  line-height: var(--font-content-lh, 1.65);
}

.vs-section--alt {
  background: #f7f7f7;
}

.vs-section p {
  margin: 0 0 14px;
}

.vs-section a:not(.buy-button) {
  color: var(--color-ink, #29282e);
  text-decoration: underline;
  text-decoration-color: var(--color-accent, #f3c217);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.vs-section a:not(.buy-button):hover,
.vs-section a:not(.buy-button):focus {
  color: var(--color-accent-hover, #e0b010);
}

.vs-section a:focus-visible,
.vs-table-wrap:focus-visible {
  outline: var(--focus-ring, 2px solid #f3c217);
  outline-offset: 2px;
}

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

/* Headings */
.vs-head {
  margin: 0 0 22px;
}

.vs-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #6b6b6b);
}

.vs-title {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-ink, #29282e);
}

.vs-sub {
  max-width: 760px;
  color: var(--color-muted, #6b6b6b);
}

/* Hero */
.vs-hero {
  padding-top: 28px;
}

.vs-lead {
  font-size: 18px;
  line-height: 1.55;
}

.vs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.vs-chips li {
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  background: #fff;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-left: 3px solid var(--color-accent, #f3c217);
  border-radius: var(--radius-sm, 3px);
}

.vs-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
}

.vs-actions .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  text-align: center;
  text-decoration: none;
}

.vs-actions .buy-button--installment {
  margin-left: 0;
}

/* Secondary CTA on light backgrounds: outlined, so it does not compete with the primary one */
/* (!important is required: fix.css forces .buy-button--cta colours with !important) */
.vs-hero .buy-button--secondary,
.vs-section .vs-actions .buy-button--secondary {
  background: #fff !important;
  border: 2px solid var(--color-ink, #29282e) !important;
  color: var(--color-ink, #29282e) !important;
  box-shadow: none;
}

.vs-hero .buy-button--secondary:hover,
.vs-hero .buy-button--secondary:focus {
  background: var(--color-accent, #f3c217) !important;
  border-color: var(--color-accent, #f3c217) !important;
  color: var(--color-ink, #29282e) !important;
}

.vs-table th,
.vs-table td {
  border-left: 0;
  border-right: 0;
}

.vs-quick {
  margin: 22px 0 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-top: 3px solid var(--color-accent, #f3c217);
  border-radius: var(--radius-md, 6px);
  box-shadow: 0 2px 10px rgba(41, 40, 46, 0.06);
}

.vs-quick__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

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

.vs-quick__list li {
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.5;
  border-left: 3px solid var(--color-accent, #f3c217);
}

.vs-quick__list li:last-child {
  margin-bottom: 0;
}

/* Steps */
.vs-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: vs-step;
}

.vs-steps li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 44px;
  min-height: 32px;
  counter-increment: vs-step;
}

.vs-steps li::before {
  content: counter(vs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  background: var(--color-accent, #f3c217);
  color: var(--color-ink, #29282e);
  border-radius: 50%;
}

.vs-inline-link {
  margin-top: 18px;
}

/* Legend + badges */
.vs-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--color-muted, #6b6b6b);
}

.vs-legend li {
  margin: 0;
}

.vs-badge {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
}

.vs-badge--match {
  background: #e8f5e3;
  border-color: #b9dfae;
  color: #2c5e1c;
}

.vs-badge--differs {
  background: #eef0f6;
  border-color: #c9cfe0;
  color: #333a57;
}

.vs-badge--confirm {
  background: #fff6d6;
  border-color: #ecd47a;
  color: #6b5400;
}

/* Table */
.vs-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-md, 6px);
}

.vs-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.vs-table th,
.vs-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.vs-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-ink, #29282e);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.vs-table tbody th[scope="row"] {
  width: 22%;
  min-width: 150px;
  font-weight: 700;
  background: #fafafa;
}

.vs-table td {
  width: 26%;
}

.vs-table td:last-child {
  width: 26%;
}

.vs-table__group th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink, #29282e);
  background: #f3efe0 !important;
  border-left: 4px solid var(--color-accent, #f3c217);
}

.vs-row--confirm td,
.vs-row--confirm th[scope="row"] {
  background-image: linear-gradient(rgba(243, 194, 23, 0.06), rgba(243, 194, 23, 0.06));
}

.vs-table tbody tr:last-child th,
.vs-table tbody tr:last-child td {
  border-bottom: none;
}

.vs-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-muted, #6b6b6b);
}

.vs-sources {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--color-muted, #6b6b6b);
}

/* Criteria cards */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.vs-card-info {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
  border-left: 4px solid var(--color-accent, #f3c217);
  box-shadow: 0 2px 10px rgba(41, 40, 46, 0.04);
}

.vs-card-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-ink, #29282e);
}

.vs-card-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted, #5a5a5a);
}

/* Products (reuses .product-box) */
.vs-products {
  margin-bottom: 8px;
}

.vs-product__meta {
  display: block;
  width: 100%;
  float: left;
  padding: 0 8px;
  font-size: 13px;
  color: var(--color-muted, #6b6b6b);
}

.vs-actions--center {
  align-items: stretch;
  margin-top: 22px;
}

/* FAQ — keep the shared .faq-panel look, allow full width */
.vs-faq-panel {
  max-width: 900px;
}

.vs-faq-panel .faq-list p a {
  color: var(--color-ink, #29282e);
}

/* CTA band */
.vs-cta {
  background: var(--color-ink, #29282e);
  color: #fff;
}

.vs-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vs-cta__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
}

.vs-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.vs-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vs-cta .buy-button--cta {
  width: 100%;
  margin: 0;
  background: var(--color-accent, #f3c217) !important;
  border-color: var(--color-accent, #f3c217) !important;
  color: var(--color-ink, #29282e) !important;
  box-shadow: none;
}

.vs-cta .buy-button--cta:hover,
.vs-cta .buy-button--cta:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--color-ink, #29282e) !important;
}

.vs-cta .buy-button--secondary {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
}

.vs-cta .buy-button--secondary:hover,
.vs-cta .buy-button--secondary:focus {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--color-ink, #29282e) !important;
}

.vs-section.vs-cta a.vs-cta__phone,
.vs-section.vs-cta a.vs-cta__phone:hover {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* Disclaimer */
.vs-disclaimer {
  padding: 22px 0 28px;
  background: #fff;
}

.vs-disclaimer__text {
  max-width: 980px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted, #6b6b6b);
}

/* >= 600px */
@media (min-width: 600px) {
  .vs-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .vs-actions .buy-button {
    width: auto;
  }

  .vs-actions--center {
    justify-content: center;
  }

  .vs-legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .vs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vs-cta__buttons {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .vs-cta .buy-button--cta {
    width: auto;
  }
}

/* >= 992px */
@media (min-width: 992px) {
  .vs-section {
    padding: 56px 0;
  }

  .vs-hero {
    padding-top: 40px;
  }

  .vs-title,
  .vs-cta__title {
    font-size: 30px;
  }

  .vs-lead {
    font-size: 20px;
  }

  .vs-quick {
    margin-top: 0;
  }

  .vs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .vs-table {
    font-size: 15px;
    min-width: 0;
  }

  .vs-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .vs-cta__text {
    flex: 1 1 55%;
  }

  .vs-cta__buttons {
    flex: 1 1 40%;
    justify-content: flex-end;
  }

  .vs-section.vs-cta a.vs-cta__phone {
    flex: 1 0 100%;
    text-align: right;
  }
}

/* Mobile: leave room for the sticky CTA bar (<992px) handled globally in tokens.css */
@media (max-width: 767px) {
  .vs-table thead th {
    top: 0;
  }

  .vs-table tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 var(--color-border, rgba(0, 0, 0, 0.08));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-section * {
    transition: none !important;
  }
}
