:root {
  --navy: #073955;
  --navy-deep: #052b40;
  --blue: #087fbd;
  --blue-soft: #e8f5fb;
  --green: #07874f;
  --green-dark: #046d3e;
  --ink: #102f40;
  --muted: #627782;
  --line: #d9e3e8;
  --line-strong: #bdcdd5;
  --bg: #f3f6f8;
  --white: #fff;
  --warning: #9b6204;
  --danger: #b13333;
  --shadow: 0 12px 30px rgba(7, 57, 85, .1);
  --shadow-small: 0 5px 16px rgba(7, 57, 85, .09);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.9 Tahoma, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
body.drawer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
::selection { background: #bce9f7; color: var(--navy-deep); }
:focus-visible { outline: 3px solid #f2bd3c; outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  inset: 8px auto auto 50%;
  z-index: 1000;
  transform: translate(-50%, -150%);
  padding: 8px 14px;
  background: #fff;
  color: var(--navy);
  border-radius: 4px;
  font-weight: 700;
}
.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  height: 70px;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid #27a8df;
  box-shadow: 0 2px 9px rgba(4, 40, 59, .2);
}
.header-inner {
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 16px;
}
.brand {
  justify-self: start;
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1px;
}
.brand img { width: 120px; height: 52px; object-fit: contain; }
.brand b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue);
  border-radius: 5px;
  font-size: .68rem;
}
.header-title {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-weight: 700;
}
.menu-button {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
  color: #fff;
}
.menu-button span { width: 22px; height: 2px; background: currentColor; border-radius: 3px; transition: .2s; }
.menu-button:hover { background: rgba(255,255,255,.13); }
.page-progress {
  position: fixed;
  inset: 70px 0 auto;
  z-index: 51;
  height: 2px;
  width: var(--progress, 0%);
  background: #68d5ff;
  pointer-events: none;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 25, 38, .6);
  backdrop-filter: blur(2px);
}
.site-drawer {
  position: fixed;
  inset-block: 0;
  left: 0;
  right: auto;
  z-index: 100;
  width: min(390px, 90vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 18px 0 45px rgba(1, 26, 40, .25);
  transform: translateX(-105%);
  transition: transform .25s ease;
  direction: rtl;
}
.site-drawer.is-open { transform: translateX(0); }
.drawer-head {
  min-height: 70px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid #27a8df;
}
.drawer-head strong { font-size: 1.18rem; }
.drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}
.drawer-search { padding: 16px 18px 10px; }
.drawer-search input { width: 100%; height: 48px; border: 1px solid var(--line-strong); padding: 0 14px; background: #f8fafb; }
.drawer-nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 28px; }
.drawer-group { margin-top: 13px; }
.drawer-group h3 { margin: 0 0 7px; padding-bottom: 5px; color: var(--blue); font-size: .92rem; border-bottom: 1px solid var(--line); }
.drawer-link { min-height: 45px; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-bottom: 1px solid #edf1f3; }
.drawer-link:hover { background: var(--blue-soft); color: var(--navy); }
.drawer-link span { width: 30px; height: 30px; display: grid; place-items: center; background: #eef6f9; color: var(--blue); border-radius: 4px; font-weight: 700; font-size: .78rem; }

.breadcrumbs {
  width: min(var(--container), calc(100% - 32px));
  margin: 18px auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
}
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; }

.home-hero {
  min-height: 545px;
  padding: 64px max(20px, calc((100% - var(--container))/2));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: 65px;
  overflow: hidden;
  background: linear-gradient(142deg, #0a87c5 0%, #08699e 48%, #063752 100%);
  color: #fff;
  position: relative;
}
.home-hero::before {
  content: "1   7   ٪   9   +   2   4   =   8   3";
  position: absolute;
  inset: auto 0 -40px;
  color: rgba(255,255,255,.06);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.home-hero-copy { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 3px 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  color: inherit;
  border-radius: 4px;
  font-size: .82rem;
  font-weight: 700;
}
.home-hero h1 { margin: 18px 0 16px; font-size: clamp(2.45rem, 5.2vw, 4.65rem); line-height: 1.2; letter-spacing: -.02em; }
.home-hero h1 em { color: #94e4ff; font-style: normal; }
.home-hero-copy > p { max-width: 650px; margin: 0; color: #e3f3fa; font-size: 1.12rem; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.primary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  border: 1px solid var(--green-dark);
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 7px 16px rgba(3, 68, 39, .18);
  font-weight: 700;
  transition: background .18s, transform .18s;
}
.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.text-link { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); }
.hero-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: #d8edf7; }
.hero-points span::first-letter { color: #8cf0c1; }
.number-stage { position: relative; min-height: 390px; direction: ltr; }
.number-stage > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage-card { position: absolute; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 22px 55px rgba(1, 30, 46, .25); border: 1px solid rgba(255,255,255,.55); }
.stage-main { inset: 35px 55px 35px 25px; z-index: 2; grid-template-rows: auto 1fr auto; border-radius: 9px; padding: 30px; }
.stage-main span { justify-self: start; font-weight: 700; color: var(--blue); }
.stage-main b { font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--green); }
.stage-main small { font-size: 1rem; color: var(--muted); }
.stage-one, .stage-two { width: 92px; height: 92px; z-index: 3; border-radius: 6px; font-size: 2.4rem; font-weight: 700; }
.stage-one { inset: auto 0 25px auto; background: #f3b13d; color: #fff; transform: rotate(5deg); }
.stage-two { inset: 0 auto auto 0; background: #fff; color: var(--blue); transform: rotate(-7deg); }
.stage-ring { position: absolute; inset: 65px 10px auto auto; width: 185px; height: 185px; border: 24px solid rgba(88,210,255,.18); border-radius: 50%; }

.search-band {
  width: min(var(--container), calc(100% - 32px));
  margin: -35px auto 0;
  position: relative;
  z-index: 4;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: end;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.search-band h2 { margin: 0; font-size: 1.18rem; }
.search-band p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.site-search label { display: block; margin-bottom: 5px; font-size: .88rem; font-weight: 700; }
.site-search > div { display: flex; }
.site-search input { flex: 1; min-width: 0; height: 48px; padding: 0 15px; border: 1px solid var(--line-strong); background: #fff; border-radius: 0 5px 5px 0; }
.site-search button { width: 88px; border: 0; border-radius: 5px 0 0 5px; background: var(--green); color: #fff; font-weight: 700; }
.site-search { position: relative; }
.search-suggestions { position: absolute; inset: 100% 0 auto; z-index: 10; width: 100%; max-height: 300px; overflow-y: auto; padding: 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-small); box-sizing: border-box; }
.search-suggestions { flex-direction: column; align-items: stretch; }
.search-suggestions a { display: flex; flex: 0 0 auto; width: 100%; max-width: 100%; box-sizing: border-box; align-items: flex-start; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); border-radius: 4px; }
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover { background: var(--blue-soft); }
.suggestion-icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 4px; }
.suggestion-icon svg { width: 24px; height: 24px; }
.suggestion-copy { min-width: 0; display: grid; gap: 2px; }
.suggestion-copy b { color: var(--navy); font-size: .92rem; }
.suggestion-copy small { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.tools-shell { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; padding: 60px 0 72px; }
.category-section + .category-section { margin-top: 50px; }
.category-heading { margin-bottom: 18px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.category-heading > span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: -1px; background: var(--navy); color: #fff; font-weight: 700; }
.category-heading > span svg, .tool-icon svg, .drawer-link span svg, .sidebar-card a > span svg, .mini-grid span svg { width: 28px; height: 28px; }
.category-heading h2 { margin: 0; font-size: 1.45rem; line-height: 1.35; }
.category-heading p { margin: 1px 0 7px; color: var(--muted); font-size: .82rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tool-card { min-height: 142px; display: grid; grid-template-columns: 50px 1fr auto; align-items: start; gap: 15px; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-small); transition: transform .18s, border-color .18s, box-shadow .18s; }
.tool-card:hover { transform: translateY(-3px); border-color: #7fbfdc; box-shadow: var(--shadow); }
.tool-icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border: 1px solid #c9e6f1; border-radius: 6px; font-size: 1.1rem; font-weight: 700; }
.tool-card h3 { margin: 0; font-size: 1.05rem; }
.tool-card p { margin: 4px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.75; }
.tool-card > b { color: var(--blue); font-size: 1.15rem; }
.empty-search { padding: 30px; text-align: center; background: #fff; border: 1px dashed var(--line-strong); }
.home-trust { width: min(var(--container), calc(100% - 32px)); margin: 0 auto 70px; display: grid; grid-template-columns: repeat(3,1fr); background: var(--navy); color: #fff; }
.home-trust > div { padding: 28px; border-inline-end: 1px solid rgba(255,255,255,.14); }
.home-trust > div:last-child { border: 0; }
.home-trust span { color: #70d9ff; font-weight: 700; }
.home-trust h2 { margin: 5px 0 2px; font-size: 1.05rem; }
.home-trust p { margin: 0; color: #d4e8f1; font-size: .87rem; }

.tool-hero {
  width: min(var(--container), calc(100% - 32px));
  min-height: 255px;
  margin: 0 auto 26px;
  padding: 34px clamp(24px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: center;
  gap: 35px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0983bf, #075781 62%, #073955);
  color: #fff;
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.tool-hero::after { content: "٪  +  7  =  2  ×"; position: absolute; inset: auto 22px -45px auto; color: rgba(255,255,255,.06); font-size: 5rem; font-weight: 700; white-space: nowrap; }
.tool-hero-copy { position: relative; z-index: 2; }
.tool-hero h1 { margin: 12px 0 6px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.35; }
.tool-hero p { max-width: 660px; margin: 0; color: #e5f4fb; font-size: 1.02rem; }
.hero-symbol { width: 220px; height: 170px; justify-self: end; position: relative; display: grid; place-items: center; direction: ltr; }
.hero-symbol i { width: 128px; height: 128px; z-index: 2; display: grid; place-items: center; background: transparent; color: var(--blue); border-radius: 9px; box-shadow: none; font-size: 2.6rem; font-style: normal; font-weight: 700; }
.hero-symbol i svg { width: 76px; height: 76px; }
.hero-symbol span { position: absolute; width: 55px; height: 55px; display: grid; place-items: center; background: #f5b642; color: #fff; border-radius: 5px; font-weight: 700; transform: rotate(8deg); }
.hero-symbol span:nth-of-type(1) { inset: 8px auto auto 8px; }
.hero-symbol span:nth-of-type(2) { inset: auto 3px 4px auto; background: #68c7e8; transform: rotate(-8deg); }
.hero-symbol span:nth-of-type(3) { inset: 3px 8px auto auto; width: 28px; height: 28px; background: rgba(255,255,255,.25); }

.content-layout { width: min(var(--container), calc(100% - 32px)); margin: 0 auto 65px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 25px; align-items: start; }
.main-column { min-width: 0; }
.tool-panel, .article-card, .faq-card, .sidebar-card, .site-search, .trust-note, .legal-page { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-small); }
.tool-panel { margin-bottom: 24px; padding: clamp(20px, 4vw, 38px); }
.panel-heading { margin-bottom: 25px; padding-bottom: 13px; border-bottom: 1px solid var(--line); text-align: center; }
.panel-heading span { color: var(--green); font-size: .78rem; font-weight: 700; }
.panel-heading h2 { margin: 1px 0 0; color: var(--navy); font-size: 1.4rem; }
.tool-form { max-width: 650px; margin: 0 auto; }
.field { display: grid; gap: 7px; margin-bottom: 17px; font-weight: 700; }
.field > span { font-size: .9rem; }
.date-select-group { min-width: 0; margin: 0 0 17px; padding: 0; border: 0; }
.date-select-group legend { margin-bottom: 7px; font-size: .9rem; font-weight: 700; }
.date-selects { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.date-selects label { min-width: 0; display: grid; gap: 7px; font-weight: 700; }
.date-selects label > span { font-size: .78rem; }
.date-selects label { position: relative; }
.date-selects select.date-select-native { display: none; }
.custom-select { position: relative; }
.custom-select-trigger { width: 100%; min-height: 50px; padding: 10px 30px 10px 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.custom-select-trigger::after { content: ''; position: absolute; inset-inline-end: 10px; top: 50%; width: 0; height: 0; border-inline: 5px solid transparent; border-top: 6px solid var(--muted); transform: translateY(-25%); pointer-events: none; }
.custom-select.is-open { z-index: 20; }
.custom-select.is-open .custom-select-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,189,.12); }
.custom-select-menu { position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 30; display: none; max-height: 260px; overflow-y: auto; padding: 4px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: var(--shadow-small); direction: rtl; }
.custom-select.open-up .custom-select-menu { inset: auto 0 calc(100% + 4px); }
.custom-select.is-open .custom-select-menu { display: block; }
.custom-select-option { width: 100%; min-height: 38px; padding: 7px 9px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: start; cursor: pointer; }
.custom-select-option:hover, .custom-select-option.is-selected { background: var(--blue-soft); color: var(--navy); }
.custom-select-option[hidden] { display: none; }
.date-selects select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,189,.12); outline: 0; }
.field input:not([type="range"]), .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 3px; background: #fff; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.field textarea { resize: vertical; min-height: 115px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,127,189,.12); outline: 0; }
.two-fields, .three-fields, .phone-fields { display: grid; gap: 15px; }
.two-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
.three-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.phone-fields { grid-template-columns: .8fr 1.2fr; }
.choice-row { margin-bottom: 20px; padding: 13px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 25px; background: #f5f8fa; border: 1px solid var(--line); }
.choice-row label, .checks label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); }
.field-help { margin: -5px 0 18px; padding: 10px 13px; border-inline-start: 4px solid #87a2b0; background: #f3f6f8; color: #536b77; font-size: .83rem; }
.form-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.form-actions .primary-button { min-width: 150px; }
.secondary-button { min-height: 48px; padding: 8px 22px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-weight: 700; }
.secondary-button:hover { background: #f3f7f9; }
.form-error { padding: 10px 12px; margin: 14px 0 0; color: var(--danger); background: #fff2f2; border: 1px solid #efc5c5; font-size: .9rem; }
.result-card { max-width: 650px; margin: 28px auto 0; padding: 22px; background: #eff9f4; border: 1px solid #9fd4b9; border-inline-start: 5px solid var(--green); }
.menstrual-tool .result-card { padding: 16px; }
.menstrual-tool .result-card h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 4vw, 1.65rem); }
.menstrual-tool .metric-grid { gap: 8px; margin-top: 10px; }
.menstrual-tool .metric { min-height: 0; padding: 9px 7px; }
.menstrual-tool .metric b { font-size: 1rem; line-height: 1.45; }
.menstrual-tool .metric span { font-size: .72rem; }
.menstrual-tool .result-card p { margin: 8px 0 0; font-size: .86rem; }
.result-kicker { color: var(--green-dark); font-size: .78rem; font-weight: 700; }
.result-card h3 { margin: 3px 0 7px; font-size: 1.55rem; color: var(--navy); }
.result-card p { margin: 4px 0; }
.result-card strong { color: var(--green-dark); }
.result-actions { margin-top: 16px; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #c9e3d5; }
.result-actions button, .download-button, .open-button { min-height: 40px; padding: 6px 15px; border: 1px solid #8cbca3; border-radius: 4px; background: #fff; color: var(--green-dark); font-weight: 700; }
.result-actions button:hover, .download-button:hover, .open-button:hover { background: #e5f5ed; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.metric { padding: 13px; background: #fff; border: 1px solid #c9dfd3; text-align: center; }
.metric b { display: block; font-size: 1.25rem; }
.metric span { color: var(--muted); font-size: .78rem; }
.result-link { display: block; direction: ltr; margin: 10px 0; padding: 10px; background: #fff; border: 1px solid #c9dfd3; word-break: break-all; text-align: left; }
.result-text { width: 100%; min-height: 190px; margin: 10px 0; padding: 12px; resize: vertical; border: 1px solid #c9dfd3; background: #fff; color: var(--ink); }

.calculator { max-width: 430px; margin: 0 auto 20px; padding: 18px; background: #e9eef1; border: 1px solid #ced9df; box-shadow: 0 8px 18px rgba(7,57,85,.1); }
.calc-display { width: 100%; height: 70px; margin-bottom: 12px; padding: 10px 14px; direction: ltr; text-align: right; border: 1px solid #b9c8cf; background: #fff; color: var(--navy); font-size: 1.45rem; }
.calc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; direction: ltr; }
.calc-grid button { min-height: 54px; border: 1px solid #c8d2d8; background: #fff; color: var(--ink); font-weight: 700; }
.calc-grid button:nth-child(4n) { background: #0b91a6; color: #fff; border-color: #0b91a6; }
.calc-equals { grid-column: 1 / -1; background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.checks { margin: 0 0 20px; padding: 15px; display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; border: 1px solid var(--line); }
.checks legend { padding: 0 8px; font-weight: 700; }
.qr-colors { margin: 0 0 20px; padding: 13px; border: 1px solid var(--line); }
.qr-colors legend { padding: 0 8px; font-weight: 700; }
.qr-color-options { display: flex; flex-wrap: wrap; gap: 9px; }
.qr-color-options label { position: relative; display: inline-flex; }
.qr-color-options input { position: absolute; opacity: 0; pointer-events: none; }
.qr-color-options span { width: 28px; height: 28px; display: block; border: 2px solid #fff; border-radius: 50%; background: var(--qr-color); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.qr-color-options input:checked + span { box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px #fff; }
.qr-custom-color { display: inline-flex; align-items: center; gap: 9px; margin-top: 13px; font-size: .86rem; font-weight: 700; }
.qr-custom-color input { width: 36px; height: 30px; padding: 2px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; }
.qr-whatsapp-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 15px; direction: ltr; }
.qr-whatsapp-fields > label { direction: rtl; }
.qr-whatsapp-fields > .field { align-self: start; min-width: 0; }
.qr-whatsapp-fields select.date-select-native { display: none; }
.qr-whatsapp-fields input[type="tel"] { height: 50px; min-height: 50px; }
.range-field input { accent-color: var(--green); }
.counter-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 12px 0 20px; }
.counter-grid div { padding: 10px 5px; background: #f1f6f8; border: 1px solid var(--line); text-align: center; }
.counter-grid b, .counter-grid span { display: block; }
.counter-grid b { color: var(--blue); font-size: 1.25rem; }
.counter-grid span { color: var(--muted); font-size: .73rem; }
.upload-zone { min-height: 170px; margin-bottom: 20px; display: grid; place-items: center; align-content: center; gap: 3px; border: 2px dashed #a9bac3; background: #f7f9fa; cursor: pointer; text-align: center; }
.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.upload-zone:hover { border-color: var(--blue); background: #f0f8fb; }
.upload-symbol { font-size: 2.6rem; line-height: 1; color: var(--blue); }
.upload-zone small { color: var(--muted); }
.preview-image { display: block; max-height: 330px; margin: 15px auto; background: #fff; border: 1px solid #c9dfd3; }
.qr-output { width: min(100%, 480px) !important; max-width: 100%; margin: 15px auto; padding: 14px; overflow: hidden; box-sizing: border-box; background: #fff; border: 1px solid #c9dfd3; }
.qr-output svg { display: block; width: 100%; max-width: 100%; height: auto; }
.barcode-output { overflow-x: auto; margin: 15px 0; padding: 12px; background: #fff; border: 1px solid #c9dfd3; text-align: center; direction: ltr; }
.date-now { margin-bottom: 22px; text-align: center; }
.date-now .date-number { font-size: clamp(3rem,8vw,5rem); color: var(--blue); line-height: 1.25; font-weight: 700; }
.date-now h3 { margin: 0; }
.mini-calendar { margin-top: 18px; display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; direction: rtl; }
.mini-calendar span { min-height: 39px; display: grid; place-items: center; background: #f5f8fa; font-size: .8rem; }
.mini-calendar .calendar-head { background: var(--navy); color: #fff; font-weight: 700; }
.mini-calendar .today { background: var(--green); color: #fff; font-weight: 700; }

.page-sidebar { display: grid; gap: 18px; position: sticky; top: 92px; }
.page-sidebar .site-search { padding: 16px; position: relative; }
.sidebar-card { padding: 18px; }
.sidebar-card h2 { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 1.08rem; color: var(--navy); }
.sidebar-card a { display: grid; grid-template-columns: 36px 1fr; gap: 1px 10px; padding: 10px 2px; border-bottom: 1px solid #edf1f3; }
.sidebar-card a:last-child { border: 0; }
.sidebar-card a > span { grid-row: 1/3; width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .72rem; font-weight: 700; }
.sidebar-card a b { font-size: .86rem; }
.sidebar-card a small { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.sidebar-card a:hover b { color: var(--blue); }
.trust-note { padding: 18px; border-inline-start: 4px solid var(--green); }
.trust-note b { color: var(--green-dark); }
.trust-note p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }

.article-card, .faq-card { margin-bottom: 24px; padding: clamp(22px,4vw,38px); }
.article-intro { margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article-intro span { color: var(--green); font-size: .8rem; font-weight: 700; }
.article-intro h2 { margin: 2px 0 0; font-size: 1.55rem; }
.article-card section + section { margin-top: 31px; }
.article-card h2, .faq-card > h2 { margin: 0 0 8px; color: #145270; font-size: 1.25rem; }
.article-card p { margin: 0; color: #243f4d; }
.steps ol { margin: 8px 0 0; padding-inline-start: 25px; }
.steps li + li { margin-top: 5px; }
.faq-card details { border-bottom: 1px solid var(--line); }
.faq-card details:last-child { border: 0; }
.faq-card summary { padding: 14px 0; cursor: pointer; color: var(--navy); font-weight: 700; }
.faq-card details p { margin: -2px 0 15px; color: var(--muted); }
.related-mobile { display: none; margin-top: 24px; }
.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.mini-grid a { display: flex; align-items: center; gap: 10px; padding: 13px; background: #fff; border: 1px solid var(--line); }
.mini-grid span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: .75rem; font-weight: 700; }

.legal-page { width: min(850px, calc(100% - 32px)); margin: 35px auto 65px; padding: clamp(26px,6vw,58px); }
.legal-page .hero-badge { background: var(--blue-soft); border-color: #c5e6f2; color: var(--blue); }
.legal-page h1 { margin: 12px 0 5px; font-size: clamp(2rem,5vw,3rem); }
.legal-page .lead { margin-top: 0; color: var(--muted); font-size: 1.08rem; }
.legal-page section { margin-top: 34px; }
.legal-page section h2 { color: #145270; font-size: 1.25rem; }
.updated { margin-top: 40px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; align-content: center; padding: 50px 20px; text-align: center; }
.error-page > span { font-size: clamp(5rem,15vw,10rem); line-height: 1; color: var(--blue); font-weight: 700; opacity: .18; }
.error-page h1 { margin: 5px 0; }
.error-page p { margin: 0 0 20px; color: var(--muted); }

.site-footer { background: var(--navy-deep); color: #d9e9f1; }
.footer-inner { width: min(var(--container), calc(100% - 32px)); margin: auto; padding: 42px 0 30px; display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { justify-self: auto; }
.footer-inner p { max-width: 390px; margin: 12px 0 0; color: #aec8d4; font-size: .86rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 10px 22px; }
.footer-inner nav a { font-size: .84rem; }
.footer-inner nav a:hover { color: #80dcff; text-decoration: underline; }
.copyright { padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: #9ebac7; font-size: .76rem; }
.back-to-top { position: fixed; inset: auto auto 20px 0; z-index: 20; min-height: 44px; max-width: calc(100% - 20px); padding: 10px 16px; border: 0; border-radius: 8px; background: var(--green); color: #fff; box-shadow: var(--shadow-small); font: inherit; font-weight: 700; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, transform .2s; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.toast { position: fixed; inset: auto 50% 24px auto; z-index: 150; transform: translateX(50%); max-width: calc(100% - 32px); padding: 10px 18px; background: var(--navy-deep); color: #fff; box-shadow: var(--shadow); border-radius: 5px; text-align: center; }

@media (max-width: 1000px) {
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-layout { grid-template-columns: minmax(0,1fr); }
  .page-sidebar { display: none; }
  .related-mobile { display: block; }
}

@media (max-width: 820px) {
  .site-header { height: 62px; }
  .header-inner { width: min(100% - 24px, var(--container)); gap: 8px; }
  .brand { font-size: 1.13rem; }
  .brand img { width: 105px; height: 48px; }
  .brand b { width: 28px; height: 28px; }
  .header-title { max-width: 43vw; font-size: .84rem; }
  .menu-button { width: 40px; height: 40px; }
  .page-progress { inset-block-start: 62px; }
  .home-hero { min-height: auto; padding: 50px 24px 80px; grid-template-columns: 1fr; gap: 35px; text-align: center; }
  .home-hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .number-stage { min-height: 300px; width: min(430px,100%); margin: auto; }
  .stage-main { inset: 20px 55px 25px 15px; }
  .search-band { grid-template-columns: 1fr; gap: 14px; }
  .tool-hero { grid-template-columns: 1fr 150px; min-height: 225px; }
  .hero-symbol { width: 145px; height: 140px; }
  .hero-symbol i { width: 100px; height: 100px; font-size: 2rem; }
  .home-trust { grid-template-columns: 1fr; }
  .home-trust > div { border-inline-end: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; line-height: 1.85; }
  .menu-button { position: absolute; left: 12px; right: auto; margin: 0; transform: none; }
  .header-title { display: none; }
  .breadcrumbs { width: calc(100% - 24px); margin: 13px auto; white-space: nowrap; overflow: hidden; }
  .breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .home-hero { padding: 40px 16px 66px; }
  .home-hero h1 { font-size: clamp(2.25rem,11vw,3.2rem); }
  .home-hero-copy > p { font-size: 1rem; }
  .number-stage { min-height: 255px; }
  .stage-main { inset: 12px 42px 22px 8px; padding: 22px; }
  .stage-main b { font-size: 5rem; }
  .stage-one, .stage-two { width: 66px; height: 66px; font-size: 1.8rem; }
  .search-band { width: calc(100% - 24px); margin-top: -28px; padding: 18px; }
  .tools-shell { width: calc(100% - 24px); padding-top: 42px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 122px; padding: 17px; }
  .tool-hero { width: calc(100% - 24px); min-height: auto; padding: 28px 20px; grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .tool-hero .hero-badge { margin-inline: auto; }
  .hero-symbol { width: 150px; height: 105px; margin: auto; justify-self: center; }
  .hero-symbol i { width: 84px; height: 84px; }
  .hero-symbol span { width: 42px; height: 42px; }
  .hero-symbol span:nth-of-type(3) { width: 22px; height: 22px; }
  .content-layout { width: calc(100% - 24px); }
  .tool-panel, .article-card, .faq-card { padding: 20px 16px; }
  .two-fields, .three-fields, .phone-fields { grid-template-columns: 1fr; gap: 0; }
  .date-selects { gap: 5px; }
  .date-selects select { padding-inline: 22px 5px; font-size: .86rem; }
  .choice-row { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
  .counter-grid div:last-child { grid-column: 1/-1; }
  .calc-grid button { min-height: 50px; }
  .checks { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-inner nav { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .header-inner { width: calc(100% - 16px); }
  .brand { font-size: 1rem; gap: 6px; }
  .menu-button { width: 38px; }
  .tool-card { grid-template-columns: 44px 1fr; }
  .tool-card > b { display: none; }
  .tool-icon { width: 44px; height: 44px; }
  .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .site-drawer, .drawer-overlay, .page-sidebar, .site-footer, .back-to-top, .form-actions, .result-actions { display: none !important; }
  body { background: #fff; }
  .content-layout { display: block; width: 100%; }
  .tool-panel, .article-card, .faq-card { box-shadow: none; }
}
