@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,500&display=swap");

:root {
  --red: #ea3c2a;
  --red-deep: #c42a1b;
  --ink: #121417;
  --muted: #5b6472;
  --line: #e6e9ee;
  --paper: #f7f5f2;
  --card: #ffffff;
  --shadow: 0 24px 50px -28px rgba(18, 20, 23, 0.28);
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(234, 60, 42, 0.08), transparent 55%),
    radial-gradient(720px 320px at 0% 8%, rgba(18, 20, 23, 0.04), transparent 50%),
    var(--paper);
}

::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

h1, h2, h3, .display { font-family: var(--serif); letter-spacing: -0.03em; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: 4.5rem 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(18, 20, 23, 0.06);
}

.site-header-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy small { color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-copy b { font-size: 0.95rem; }

.nav-desktop { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-desktop a {
  color: #2a3038;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
}
.nav-desktop a:hover,
.nav-desktop a.is-active { background: #fff; color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd5de; }
.btn-dark { background: #171a1f; color: #fff; }

.menu-toggle {
  margin-left: auto;
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.45rem 0.65rem;
  font-weight: 700;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.8rem 1rem 1.2rem;
}
.mobile-nav.is-open { display: grid; gap: 0.35rem; }
.mobile-nav a { color: inherit; text-decoration: none; font-weight: 600; padding: 0.65rem 0.4rem; border-bottom: 1px solid #f1f3f6; }

.hero { padding: 3.4rem 0 2.4rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
}
.page-hero { display: grid; gap: 2rem; align-items: center; padding: 2.4rem 0 1.2rem; }
@media (min-width: 900px) { .page-hero { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero img, .rounded-media { width: 100%; border-radius: 1.4rem; object-fit: cover; box-shadow: var(--shadow); }
.lede { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.trust-line { color: var(--muted); font-size: 0.88rem; margin-top: 0.9rem; }
.trust-line a { color: inherit; }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.86rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs a { color: inherit; }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--ink); font-weight: 600; }

.prose-article { max-width: 74ch; }
.prose-article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.1rem 0 0.7rem; }
.prose-article h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; font-family: var(--sans); }
.prose-article p, .prose-article li { color: #333a44; line-height: 1.8; }
.prose-article p { margin: 0 0 1rem; }
.prose-article ul, .prose-article ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose-article a { color: var(--red-deep); font-weight: 600; }
.prose-article blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--red);
  background: #fff;
  border-radius: 0 0.9rem 0.9rem 0;
  color: #2a3038;
}
.prose-article code { background: #efece7; padding: 0.1rem 0.35rem; border-radius: 0.35rem; font-size: 0.92em; }

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.soft-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}
.soft-card:hover { border-color: #f0b4ad; box-shadow: var(--shadow); }
.soft-card h3 { margin: 0.2rem 0 0.45rem; font-size: 1.2rem; }
.soft-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.soft-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 0.85rem; margin-bottom: 0.85rem; }

.site-footer { background: #121417; color: #d8dde4; margin-top: 4rem; }
.site-footer a { color: #f3f5f7; text-decoration: none; }
.site-footer a:hover { color: #ffb4ab; }
.footer-grid {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { margin: 0 0 0.8rem; color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-legal {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0 1.4rem;
  color: #93a0b0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  justify-content: space-between;
}

.search-wrap { margin: 1rem 0 1.4rem; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
}
.guide-item.hidden,
[data-guide-item].hidden { display: none; }

.kw-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.kw-row a, .kw-row span {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a3038;
  text-decoration: none;
}
.kw-row a:hover { border-color: #f0b4ad; color: var(--red); }

.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.faq-item + .faq-item { margin-top: 0.7rem; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.faq-item .faq-body { display: none; padding: 0 1.1rem 1rem; color: var(--muted); line-height: 1.7; }
.faq-item.is-open .faq-body { display: block; }

.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.lang-switch-btn:hover,
.lang-switch.is-open .lang-switch-btn { border-color: #f0b4ad; }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 80;
}
.lang-switch-menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-switch-menu a:hover { background: #f8f5f2; }
.lang-switch-menu a[aria-current="true"] { background: #171a1f; color: #fff; }

html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] .nav-desktop { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .prose-article ul,
html[dir="rtl"] .prose-article ol { padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .prose-article blockquote {
  border-left: 0;
  border-right: 4px solid var(--red);
  border-radius: 0.9rem 0 0 0.9rem;
}

@media (max-width: 860px) {
  .nav-desktop, .site-header-inner .btn-solid { display: none; }
  .menu-toggle { display: inline-flex; }
  .lang-switch { margin-left: auto; }
  html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: auto; }
}

.grid { display: grid; }
.relative { position: relative; }
.gap-4 { gap: 1rem; }
.gap-10 { gap: 2.5rem; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.max-w-xl { max-width: 36rem; }
.leading-none { line-height: 1; }
.text-xs { font-size: 0.75rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-red-600 { color: #dc2626; }
.text-slate-500 { color: #64748b; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: 1fr 1fr; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
