/* ===================================================
   Calculator King — style.css
   Color palette:
     Primary Blue   #1E73BE
     Dark Blue      #145a94
     Light Blue     #e8f4fd
     White          #ffffff
     Text Dark      #1a1a2e
     Text Mid       #444455
     Text Light     #6b7280
     Border         #dde3ea
     Success        #16a34a
     Warning        #d97706
     Background     #f7f9fc
   =================================================== */

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

:root {
  --blue:        #1E73BE;
  --blue-dark:   #145a94;
  --blue-light:  #e8f4fd;
  --blue-mid:    #4a9fd4;
  --white:       #ffffff;
  --bg:          #f7f9fc;
  --text:        #1a1a2e;
  --text-mid:    #444455;
  --text-light:  #6b7280;
  --border:      #dde3ea;
  --success:     #16a34a;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 2px 10px rgba(30,115,190,.10);
  --shadow-lg:   0 6px 30px rgba(30,115,190,.15);
  --transition:  .22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ── UTILITIES ────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: .875rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.tag-blue { background: var(--blue-light); color: var(--blue-dark); }
.tag-green { background: #dcfce7; color: #166534; }

.section-header { text-align: center; margin-bottom: 42px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── HEADER / NAV ─────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo span.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}
.nav-logo:hover { color: var(--blue-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 7px 13px;
  border-radius: 6px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  display: block;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: .7em; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 600px;
  padding: 16px;
  z-index: 300;
  display: none;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.dropdown-grid a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .875rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.dropdown-grid a:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-grid a .di { font-size: 1em; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  color: var(--text);
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: all var(--transition); }

/* Mobile nav */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 20px;
    overflow-y: auto;
    gap: 4px;
    z-index: 199;
  }
  .nav-links.open a { font-size: 1rem; padding: 12px 16px; border-radius: 8px; }
  .dropdown-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: none; padding: 4px 0 4px 16px; display: none; }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-grid { grid-template-columns: 1fr 1fr; }
}

/* ── HERO ─────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
#hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 16px; }
#hero p { font-size: 1.1rem; opacity: .88; max-width: 560px; margin: 0 auto 28px; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  font-weight: 700;
}
.hero-actions .btn-white:hover { background: var(--blue-light); color: var(--blue-dark); }
.hero-actions .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.hero-stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat .lbl { font-size: .8rem; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }

/* ── QUICK SEARCH ─────────────────────────────────── */
#quick-search {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 8px 8px 20px;
  transition: border-color var(--transition);
}
.search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,115,190,.12); }
.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: .975rem;
  outline: none;
  color: var(--text);
}
.search-wrap button {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-wrap button:hover { background: var(--blue-dark); }

#search-results {
  max-width: 600px;
  margin: 8px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
#search-results.show { display: block; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--blue-light); }
.search-result-item .sri-icon { font-size: 1.2rem; }
.search-result-item .sri-text { font-size: .9rem; color: var(--text); }
.search-result-item .sri-cat { font-size: .75rem; color: var(--text-light); }

/* ── CATEGORY GRID ────────────────────────────────── */
#categories { padding: 56px 0; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition);
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: var(--blue);
}
.cat-card .cat-icon { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.cat-card .cat-name { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.cat-card .cat-count { font-size: .78rem; color: var(--text-light); }

/* ── CALCULATOR CARDS ─────────────────────────────── */
#featured-calcs, .calc-section { padding: 56px 0; }
.calc-section:nth-child(even) { background: var(--white); }

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.calc-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.calc-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.calc-card-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.calc-card-icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.calc-card h3 { font-size: 1rem; margin-bottom: 4px; }
.calc-card h3 a { color: var(--text); }
.calc-card h3 a:hover { color: var(--blue); }
.calc-card p { font-size: .875rem; color: var(--text-light); line-height: 1.55; flex: 1; }
.calc-card-footer { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.calc-card-footer a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.calc-card-footer a:hover { color: var(--blue-dark); }

/* ── BLOG SECTION ─────────────────────────────────── */
#blog-preview { padding: 56px 0; background: var(--white); }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: all var(--transition);
}
.blog-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue));
  display: grid;
  place-items: center;
  font-size: 2.8rem;
}
.blog-card-body { padding: 20px; }
.blog-card-body .tag { margin-bottom: 10px; }
.blog-card-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body h3 a { color: var(--text); }
.blog-card-body h3 a:hover { color: var(--blue); }
.blog-card-body p { font-size: .875rem; color: var(--text-light); line-height: 1.55; margin-bottom: 14px; }
.blog-meta { font-size: .78rem; color: var(--text-light); }

/* ── FAQ ──────────────────────────────────────────── */
#faq { padding: 56px 0; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .faq-arrow { transition: transform var(--transition); flex-shrink: 0; color: var(--blue); }
.faq-item[open] .faq-arrow { transform: rotate(180deg); }
.faq-item[open] { border-color: var(--blue); }
.faq-a { padding: 0 20px 18px; font-size: .9rem; color: var(--text-mid); line-height: 1.65; }

/* ── TRUST BANNER ─────────────────────────────────── */
#trust { padding: 40px 0; background: var(--blue); color: var(--white); }
.trust-row { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-item .trust-icon { font-size: 1.8rem; }
.trust-item strong { font-size: 1.15rem; }
.trust-item span { font-size: .8rem; opacity: .8; }

/* ── FOOTER ───────────────────────────────────────── */
#site-footer {
  background: #111827;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── CALCULATOR PAGE STYLES ───────────────────────── */
.calc-page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 36px 0;
}
.calc-page-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.calc-page-hero p { opacity: .85; max-width: 600px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: .5; }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 32px 0;
  align-items: start;
}
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }

.calc-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.calc-box h2 { font-size: 1.2rem; margin-bottom: 20px; color: var(--blue); }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,115,190,.1); }
.form-group .hint { font-size: .78rem; color: var(--text-light); margin-top: 4px; }

.calc-result {
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 6px;
}
.calc-result .result-primary { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.2; }
.calc-result .result-label { font-size: .8rem; color: var(--blue-dark); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.calc-result .result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.calc-result .result-item { text-align: center; }
.calc-result .result-item .val { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.calc-result .result-item .key { font-size: .75rem; color: var(--text-light); }

.sidebar-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--blue); }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.related-list a { font-size: .875rem; color: var(--text-mid); display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 6px; transition: all var(--transition); }
.related-list a:hover { background: var(--blue-light); color: var(--blue); }

/* ── CONTENT ARTICLE ──────────────────────────────── */
.calc-content {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 28px;
}
.calc-content h2 { font-size: 1.3rem; color: var(--blue); margin: 28px 0 12px; }
.calc-content h2:first-child { margin-top: 0; }
.calc-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.calc-content p { font-size: .95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.calc-content ul, .calc-content ol { padding-left: 22px; margin-bottom: 14px; }
.calc-content li { font-size: .95rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 6px; }
.formula-box {
  background: #f0f4f8;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  font-family: 'Courier New', monospace;
  font-size: .9rem;
  margin: 14px 0;
  overflow-x: auto;
}
.tip-box {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 14px 0;
}
.tip-box strong { color: #92400e; }

/* ── BLOG PAGE ────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.blog-hero h1 { color: var(--white); margin-bottom: 10px; }
.blog-hero p { opacity: .85; }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 36px 0; align-items: start; }
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }

article.blog-article { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
article.blog-article h1 { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 12px; }
article.blog-article .article-meta { font-size: .8rem; color: var(--text-light); margin-bottom: 24px; display: flex; gap: 16px; flex-wrap: wrap; }
article.blog-article h2 { font-size: 1.25rem; color: var(--blue); margin: 28px 0 12px; }
article.blog-article h3 { font-size: 1.05rem; margin: 20px 0 8px; }
article.blog-article p { font-size: .95rem; line-height: 1.75; color: var(--text-mid); margin-bottom: 16px; }
article.blog-article ul, article.blog-article ol { padding-left: 22px; margin-bottom: 16px; }
article.blog-article li { font-size: .95rem; line-height: 1.65; color: var(--text-mid); margin-bottom: 6px; }
article.blog-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
article.blog-article strong { color: var(--text); }

/* ── TABLE ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th { background: var(--blue); color: var(--white); text-align: left; padding: 10px 14px; }
td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--text-mid); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }

/* ── POLICY PAGES ─────────────────────────────────── */
.policy-page { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.policy-page h1 { font-size: 2rem; margin-bottom: 8px; }
.policy-page .updated { font-size: .85rem; color: var(--text-light); margin-bottom: 32px; }
.policy-page h2 { font-size: 1.2rem; color: var(--blue); margin: 28px 0 12px; }
.policy-page p { font-size: .95rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 14px; }
.policy-page ul { padding-left: 20px; margin-bottom: 14px; }
.policy-page li { font-size: .95rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 6px; }

/* ── CONTACT FORM ─────────────────────────────────── */
.contact-form { max-width: 640px; }
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.contact-form .form-group textarea { min-height: 130px; resize: vertical; }
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,115,190,.1); }

/* ── PAGINATION ───────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  transition: all var(--transition);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination .active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── AMORTIZATION TABLE ───────────────────────────── */
.amort-wrap { max-height: 380px; overflow-y: auto; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 20px; }
.amort-wrap table { font-size: .8rem; }
.amort-wrap th { position: sticky; top: 0; }

/* ── MISC ─────────────────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .72rem; font-weight: 700; }
.badge-new { background: #dcfce7; color: #166534; }
.badge-popular { background: #fef3c7; color: #92400e; }

.show-all-btn { text-align: center; margin-top: 28px; }

.back-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 150;
}
.back-top.visible { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE TWEAKS ────────────────────────────── */
@media (max-width: 600px) {
  .hero-stats { gap: 20px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid, .blog-grid { grid-template-columns: 1fr; }
  .calc-result .result-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 1.6rem; }
}
