:root {
  --primary: #1e3a5f;
  --primary-light: #2b4f7a;
  --accent: #c94f4f;
  --bg-light: #f8fafc;
  --bg-alt: #eef2f6;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --shadow-sm: 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
  --radius: 8px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.5;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 40px;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1.2rem;
}

.btn--block {
  display: block;
  width: 100%;
}

.header {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.logo img {
  border-radius: 8px;
}

.header__notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 6px 16px;
  border-radius: 30px;
}

.main {
  flex: 1;
  padding: 40px 0 60px;
}

.main__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content {
  min-width: 0;
}

.hero--split {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--primary);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.hero__perks {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__perks i {
  color: var(--primary);
  margin-right: 6px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta__author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.article-meta__name {
  font-weight: 600;
  color: var(--primary);
}

.article-meta__date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.intro-text {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  padding: 16px 0;
}

.feature-block--reverse {
  direction: rtl;
}

.feature-block--reverse .feature-block__content {
  direction: ltr;
}

.feature-block__content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-block blockquote {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text-muted);
}

.feature-block blockquote footer {
  margin-top: 8px;
  font-weight: 600;
  font-style: normal;
}

.testimonials {
  margin: 48px 0;
}

.testimonials h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.testimonials__intro {
  margin-bottom: 32px;
  color: var(--text-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 24px;
  border-radius: var(--radius);
}

.testimonial-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.testimonial-card__stars {
  color: #fbbf24;
  margin-bottom: 12px;
}

.testimonial-card__author {
  margin-top: 16px;
  font-weight: 600;
}

.verified {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--primary);
  background: white;
  padding: 2px 8px;
  border-radius: 20px;
}

.testimonials__footnote {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.how-to-use {
  margin: 48px 0;
  background: var(--bg-alt);
  padding: 32px;
  border-radius: var(--radius);
}

.how-to-use h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
}

.how-to-use__steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.step {
  text-align: center;
}

.step__number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.comparison {
  margin: 48px 0;
}

.comparison h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 24px;
}

.comparison__table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.comparison__row--header {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.cta-rich {
  text-align: center;
  margin: 48px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius);
}

.cta-rich h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.order-box {
  margin: 48px 0;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  scroll-margin-top: 80px;
}

.order-box__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.order-box__content h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.order-box__price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.order-box__price .price {
  color: var(--primary);
}

.old-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 12px;
}

.order-box__stock {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.order-form .form-group {
  margin-bottom: 16px;
}

.order-form input,
.order-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1rem;
  background: white;
}

.order-form input:focus,
.order-form select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-group--quantity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-group--quantity input {
  width: 80px;
}

.form-group--checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group--checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.order-box__guarantee {
  margin-top: 16px;
  font-weight: 500;
}

.comments {
  margin: 48px 0;
}

.comments h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.comment {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.comment img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment__body {
  flex: 1;
}

.comment__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment__header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment__actions {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.comment__actions button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  margin-right: 8px;
}

.comment--reply {
  margin-left: 40px;
  margin-top: 16px;
}

.sidebar {
  position: relative;
}

.sidebar__sticky {
  position: sticky;
  top: 100px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.product-card__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.product-card__rating {
  color: #fbbf24;
  margin-bottom: 16px;
}

.product-card img {
  margin-bottom: 16px;
}

.product-card__price {
  margin: 16px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.product-card__features {
  list-style: none;
  margin-top: 24px;
}

.product-card__features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__features i {
  color: var(--primary);
  width: 20px;
}

.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.9);
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}

.footer__logo a {
  color: white;
  font-size: 1.5rem;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__legal a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__contacts p {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.footer__disclaimer {
  font-size: 0.85rem;
  opacity: 0.8;
  grid-column: span 2;
}

.footer__copyright {
  grid-column: 1/-1;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
}

/* ----- Legal pages styling ----- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 15px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 30px 0 15px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 1.3rem;
  margin: 25px 0 10px;
  color: var(--text-dark);
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

.legal-content b,
.legal-content strong {
  color: var(--primary);
  font-weight: 700;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--primary-light);
}

.legal-content ul,
.legal-content ol {
  margin: 16px 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.legal-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-content hr {
  margin: 32px 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 1024px) {
  .main__grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1;
    margin-bottom: 32px;
  }
  .sidebar__sticky {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero--split {
    grid-template-columns: 1fr;
  }
  .feature-block,
  .feature-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .how-to-use__steps {
    grid-template-columns: 1fr;
  }
  .order-box__inner {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer__disclaimer {
    grid-column: span 1;
  }
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__title {
    font-size: 2rem;
  }
  .btn--large {
    width: 100%;
  }
}