/* ============================================
   NetToolReviewLab – Main Stylesheet
   ============================================ */

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1A2B4A;
  --blue:   #2D9CDB;
  --amber:  #F0A500;
  --light:  #F5F7FA;
  --white:  #FFFFFF;
  --text:   #2C3E50;
  --muted:  #6B7A8D;
  --border: #DDE3ED;
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography ────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text); line-height: 1.7; }

/* ── Utility ───────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: var(--light); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--navy);
}

.section-subtitle {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.grid-4 > *:last-child:nth-child(4n+1) { grid-column: 1 / -1; justify-self: center; max-width: 280px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: #1e82c0; border-color: #1e82c0; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-amber {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
  font-weight: 700;
}
.btn-amber:hover { background: #d4920a; border-color: #d4920a; }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-shadow { box-shadow: 0 4px 20px rgba(26,43,74,0.08); }

/* ── HEADER ─────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 20px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-logo-img { width: 48px; height: 48px; }
.header-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.header-brand span { color: var(--amber); }

/* ── HERO (Block 1) ─────────────────────────── */
.hero {
  background: var(--navy);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(45,156,219,0.07);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(45,156,219,0.15);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p   { color: rgba(255,255,255,0.72); font-size: 1.1rem; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── STATS (Block 2) ────────────────────────── */
.stats { background: var(--blue); padding: 52px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── ABOUT (Block 3) ────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-box {
  background: var(--border);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.about-features { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.about-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(45,156,219,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-icon svg { width: 20px; height: 20px; }

/* ── CATEGORIES (Block 4) ───────────────────── */
.cat-card {
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg { width: 26px; height: 26px; }
.cat-card h3 { color: var(--navy); font-size: 1.05rem; }
.cat-card p  { color: var(--muted); font-size: 0.9rem; margin: 0; }
.cat-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: auto;
}

/* ── FEATURED REVIEWS (Block 5) ──────────────── */
.review-card {
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.review-image {
  background: var(--border);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-body { padding: 24px; }
.review-badge {
  display: inline-block;
  background: rgba(45,156,219,0.1);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.review-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.review-card p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.review-rating  {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 16px;
}
.stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; }
.review-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}
.review-link:hover { text-decoration: underline; }

/* ── PRODUCTS (Block 6) ─────────────────────── */
.product-card {
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-image {
  background: var(--navy);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--amber);
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.product-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.product-rating  {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.product-price span { font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.product-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ── METHODOLOGY (Block 7) ──────────────────── */
.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.method-step:last-child { margin-bottom: 0; }
.method-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.method-content p  { font-size: 0.9rem; color: var(--muted); margin: 0; }
.method-image {
  background: var(--border);
  border-radius: 12px;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── TESTIMONIALS (Block 8) ─────────────────── */
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.testi-quote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-name  { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testi-role  { font-size: 0.8rem; color: var(--muted); }

/* ── FAQ (Block 9) ──────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-question.open::after { content: '−'; }
.faq-answer {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
  display: none;
  padding-top: 4px;
}
.faq-answer.open { display: block; }

/* ── CONTACTS (Block 10) ────────────────────── */
.contacts { background: var(--navy); }
.contacts .section-label { color: var(--amber); }
.contacts .section-title { color: var(--white); }
.contacts .section-subtitle { color: rgba(255,255,255,0.6); }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: rgba(45,156,219,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { color: var(--blue); }
.contact-card-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }
.contact-card-value { font-size: 0.98rem; color: var(--white); font-weight: 500; }
.contact-card-value a { color: var(--white); }
.contact-card-value a:hover { color: var(--amber); }

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #101c2e;
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img { width: 36px; height: 36px; }
.footer-brand { font-size: 1.1rem; font-weight: 800; color: var(--white); }
.footer-brand span { color: var(--amber); }
.footer-copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── RESPONSIVE ─────────────────────────────── */
/* Center-align main blocks (except hero, contacts, footer) */
.section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-subtitle {
  margin-left: auto;
  margin-right: auto;
}
.grid-3, .grid-4, .team-grid, .values-grid, .contact-cards {
  justify-items: center;
}
/* Remove center for hero and contacts */
.hero .container {
  display: unset;
  text-align: unset;
}
.contacts .container {
  display: unset;
  text-align: unset;
}
/* Restore left alignment for about-inner and method-step */
.about-inner, .method-step {
  text-align: left;
}
.about-inner .section-label,
.method-step .method-content {
  text-align: left;
}

@media (max-width: 900px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-image-box { display: none; }
  .about-inner   { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section       { padding: 56px 0; }
  .stats         { padding: 40px 0; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .footer-inner  { flex-direction: column; align-items: flex-start; }
  .header-brand  { font-size: 1.1rem; }
}
