* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0F172A;
  --navy-light: #1E293B;
  --red: #DC2626;
  --red-light: #FEE2E2;
  --slate: #64748B;
  --slate-light: #CBD5E1;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --success: #16A34A;
  --border: #E2E8F0;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--navy);
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.8; }
.logo span { color: var(--red); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--red); }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-login {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.2s;
}
.btn-nav-login:hover {
  border-color: var(--border);
  background: var(--bg);
}

.cta-button {
  background: var(--red);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-block;
  border: 2px solid var(--red);
}
.cta-button:hover {
  background: transparent;
  color: var(--red);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-right: 0.35rem;
}
.lang-switch a {
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
}
.lang-switch a.active {
  color: var(--red);
  font-weight: 700;
}
.lang-switch span { color: var(--slate-light); }

.quote-sample {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.25rem 0 1.75rem;
  background: var(--white);
}
.quote-sample table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.quote-sample th,
.quote-sample td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.quote-sample th { background: var(--navy); color: #fff; font-weight: 600; }
.quote-sample tr:last-child td { border-bottom: none; font-weight: 700; }
.quote-sample caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 0.95rem 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid var(--red);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  border: 2px solid var(--navy);
  display: inline-block;
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Page hero */
.page-hero {
  background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 45%, #FEF2F2 100%);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--red); }
.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--navy);
}
.page-hero .lead {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 700px;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Content */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.content-wrap h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--navy);
}
.content-wrap h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--navy);
}
.content-wrap p {
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}
.content-wrap ul, .content-wrap ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--slate);
  line-height: 1.8;
}
.content-wrap li { margin-bottom: 0.4rem; }
.content-wrap a { color: var(--red); font-weight: 500; }
.content-wrap strong { color: var(--navy); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.main-col h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--navy);
}
.main-col h2:first-child { margin-top: 0; }
.main-col h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.main-col p {
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}
.main-col ul, .main-col ol {
  margin: 0 0 1.5rem 1.25rem;
  color: var(--slate);
  line-height: 1.8;
}
.main-col li { margin-bottom: 0.4rem; }
.main-col a { color: var(--red); font-weight: 500; }
.main-col strong { color: var(--navy); }

.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.sidebar-card ul {
  list-style: none;
  margin: 0;
}
.sidebar-card li { margin-bottom: 0.5rem; }
.sidebar-card a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
}
.sidebar-card a:hover { color: var(--red); }

.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--white) !important;
}
.cta-box .btn-primary {
  width: 100%;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.feature-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--white);
}
.feature-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem !important;
}
.feature-item p {
  font-size: 0.95rem !important;
  margin: 0 !important;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0 2rem !important;
  padding: 0 !important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.faq-item summary {
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}
.faq-item p {
  margin-top: 0.75rem;
  margin-bottom: 0 !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.25s;
  display: block;
  background: var(--white);
}
.related-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.related-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.5rem !important;
}
.related-card p {
  font-size: 0.9rem !important;
  margin: 0 !important;
  color: var(--slate);
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 2rem;
}
.blog-list {
  display: grid;
  gap: 1.5rem;
}
.blog-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s;
}
.blog-card:hover {
  border-color: var(--red);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.blog-card .tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.blog-card h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.blog-card p {
  color: var(--slate);
  margin: 0;
  font-size: 0.95rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.cta-section p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-button-white {
  background: var(--white);
  color: var(--red);
  padding: 1rem 2.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: 2px solid var(--white);
  transition: all 0.3s;
}
.cta-button-white:hover {
  background: transparent;
  color: var(--white);
}

footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.footer-grid h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}
.footer-grid a {
  display: block;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: opacity 0.2s;
}
.footer-grid a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.active {
    max-height: 520px;
    overflow-y: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
  }
  .btn-nav-login { display: none; }
  .page-hero h1 { font-size: 1.85rem; }
  .page-hero .lead { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { text-align: center; }
}
