/* Knee Comfort At Home — static landing, Taboola-oriented tone */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5a6b7d;
  --accent: #0d6b5c;
  --accent-hover: #095548;
  --accent-light: #e8f5f2;
  --border: #e2e8f0;
  --star: #f5a623;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.disclosure-bar {
  background: var(--text);
  color: #e8ecf1;
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.5rem 1rem;
}

.disclosure-bar a {
  color: #9fd4c9;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.875rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-main a:hover {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.stars {
  color: var(--star);
  letter-spacing: 0.05em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.hero-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

/* Benefits */
.benefits {
  background: var(--surface);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.benefit-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.benefit-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Features */
.feature-block {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-block:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
  }

  .feature-block.reverse .feature-text {
    order: 2;
  }

  .feature-block.reverse .feature-visual {
    order: 1;
  }
}

.feature-text h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.feature-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.feature-text ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.feature-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Reviews */
.reviews {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.reviews-disclaimer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 720px;
  margin: -1rem auto 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.review-card .stars {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.review-card blockquote {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--text);
  font-size: 0.9375rem;
}

.review-card cite {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item button::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #0d6b5c 0%, #0a5247 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--accent-light);
  color: var(--accent-hover);
}

.cta-band .guarantee {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #a8b4c4;
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #c5d0de;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.footer-science {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0 1.25rem;
  margin-top: 0.5rem;
}

.footer-science-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-science-note {
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.85rem;
  max-width: 52rem;
}

.footer-science-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-science-links a {
  font-size: 0.8125rem;
  color: #9fd4c9;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.footer-science-links a:hover {
  color: #b8e8de;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.footer-legal p {
  margin: 0 0 1rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 640px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
}

@media (max-width: 768px) {
  .nav-main {
    width: 100%;
    justify-content: center;
  }
}

/* Мобилки: ниже первого экрана */
@media (max-width: 576px) {
  .page-alevez section:not(.hero-alevez) {
    padding: 2.25rem 0;
  }

  .page-alevez .container {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .page-alevez .section-title {
    margin-bottom: 1.5rem;
  }

  .page-alevez .section-title h2 {
    font-size: 1.35rem;
  }

  .page-alevez .benefits-grid,
  .page-alevez .reviews-grid {
    grid-template-columns: 1fr;
  }

  .page-alevez .feature-block {
    margin-bottom: 2.5rem;
  }

  .page-alevez .cta-band {
    padding: 2rem 1rem;
  }

  .page-alevez .site-footer {
    padding: 1.75rem 0 1.5rem;
  }
}
