/* کاروانسرا — تجارت به رسم ایرانی: طاق، کاشی فیروزه‌ای، لاجورد و زعفرانی؛ تیتر کوفی */
:root {
  --bg: #eef0ec; --surface: #fff; --surface-2: #e5e9e4; --ink: #1b2a4a; --muted: #5b6577; --line: #d9ded6;
  --primary: #0e7c86; --primary-ink: #fff; --primary-soft: #dcf0f1; --accent: #d99a1e; --accent-ink: #2a1a00;
  --pom: #a8323e; --night: #1b2a4a;
  --font: "Vazirmatn", sans-serif; --font-display: "Reem Kufi", "Vazirmatn", sans-serif;
  --radius: 14px; --radius-sm: 10px;
  --girih-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2341c3c9' stroke-width='1.2'%3E%3Cpath d='M23 23h34v34H23z'/%3E%3Cpath d='M40 16l24 24-24 24-24-24z'/%3E%3Cpath d='M0 0l23 23M80 0L57 23M0 80l23-23M80 80L57 57M40 0v16M40 64v16M0 40h16M64 40h16'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%230e7c86' stroke-width='1.2'%3E%3Cpath d='M23 23h34v34H23z'/%3E%3Cpath d='M40 16l24 24-24 24-24-24z'/%3E%3Cpath d='M0 0l23 23M80 0L57 23M0 80l23-23M80 80L57 57M40 0v16M40 64v16M0 40h16M64 40h16'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --girih-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23d99a1e' stroke-width='1.2'%3E%3Cpath d='M23 23h34v34H23z'/%3E%3Cpath d='M40 16l24 24-24 24-24-24z'/%3E%3Cpath d='M0 0l23 23M80 0L57 23M0 80l23-23M80 80L57 57M40 0v16M40 64v16M0 40h16M64 40h16'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  --top-bg: #1b2a4a;
}
.site-head { background: var(--night); color: #e8ecf5; position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { font-weight: 700; color: #fff; font-size: 1.5rem; }
.brand-mark { background: var(--accent); color: var(--accent-ink); border-radius: 50% 50% 8px 8px; }
.head-nav { display: flex; gap: 20px; color: #c3cbdc; }
.head-nav a:hover { color: #fff; }
.head-actions { margin-inline-start: auto; display: flex; gap: 14px; align-items: center; }
.login { color: #fff; font-weight: 600; }
.menu-btn { display: none !important; }
.icon-btn { background: transparent; border-color: #34466e; color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

.hero { background-color: var(--night); background-image: var(--girih-light); background-size: 80px 80px; color: #fff; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,42,74,.2), var(--night) 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; padding-top: 70px; }
.hero-text { padding-bottom: 70px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.45; }
.hero-text p { color: #c3cbdc; margin: 18px 0 28px; max-width: 46ch; font-size: 1.05rem; line-height: 2; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.arch { justify-self: center; width: min(380px, 100%); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; padding: 14px 14px 0; background: var(--accent); }
.arch-inner { height: 100%; border-radius: 999px 999px 0 0; background-color: var(--primary); background-image: var(--girih-gold); background-size: 60px 60px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 0 22px 26px; }
.arch-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.arch-card small { color: var(--muted); }
.arch-card-2 { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.arch-card-2 small { flex-basis: 100%; padding-inline-start: 40px; margin-top: -6px; }
.seal-mini { width: 30px; height: 30px; border-radius: 50%; background: var(--pom); color: #fff; display: grid; place-items: center; }
.tile-band { height: 22px; background-color: var(--primary); background-image: var(--girih-gold); background-size: 22px 22px; }

.sec { padding-top: 64px; padding-bottom: 8px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { font-size: 2rem; font-weight: 700; color: var(--ink); }
.sec-head p { color: var(--muted); }
.sec-head.light h2 { color: #fff; } .sec-head.light p { color: #c3cbdc; }
.hojreh-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hojreh { background: #fff; border-radius: 999px 999px 14px 14px; padding: 34px 18px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1px solid var(--line); border-top: 6px solid var(--primary); }
.hojreh:nth-child(3n+2) { border-top-color: var(--accent); }
.hojreh:nth-child(3n) { border-top-color: var(--pom); }
.h-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.5rem; }
.hojreh b { font-size: 1rem; }
.hojreh small { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.hojreh:hover { box-shadow: 0 12px 28px rgba(27,42,74,.12); }

.route-sec { margin-top: 64px; background-color: var(--night); background-image: var(--girih-light); background-size: 80px 80px; padding: 56px 0 64px; position: relative; }
.route-sec::before { content: ""; position: absolute; inset: 0; background: rgba(27,42,74,.88); }
.route-sec .wrap { position: relative; }
.route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; padding-top: 30px; color: #fff; }
.route::before { content: ""; position: absolute; top: 14px; inset-inline: 4%; border-top: 2px dashed var(--accent); }
.route li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.star { position: absolute; top: -26px; inset-inline-start: 0; width: 26px; height: 26px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.r-num { color: var(--accent); font-size: .85rem; font-weight: 700; margin-top: 10px; }
.route b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.route p { color: #c3cbdc; font-size: .9rem; }

.seal-sec { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.seal { color: var(--pom); width: 260px; justify-self: center; transform: rotate(-8deg); }
.seal text { font-family: "Vazirmatn", sans-serif; font-weight: 700; }
.seal-text h2 { font-size: 1.9rem; font-weight: 700; margin-bottom: 18px; }
.seal-text ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.seal-text li { display: flex; gap: 12px; }
.seal-text li > i { font-size: 1.4rem; color: var(--primary); }
.seal-text p { color: var(--muted); font-size: .9rem; }

.bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bar { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bar-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8rem; }
.bar h3 { font-size: 1.1rem; font-family: var(--font); font-weight: 800; }
.bar dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-block: 1px dashed var(--line); padding: 10px 0; }
.bar dt { color: var(--muted); font-size: .75rem; }
.bar dd { margin: 0; font-weight: 700; font-size: .85rem; }

.site-foot { margin-top: 72px; background: var(--night); color: #c3cbdc; padding-bottom: 90px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding-top: 32px; font-size: .9rem; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid p { margin-top: 10px; }
.ltr { direction: ltr; text-align: right; }

/* داخل برنامه */
.app-top { background-color: var(--night); background-image: linear-gradient(rgba(27,42,74,.9), rgba(27,42,74,.9)), var(--girih-light); background-size: auto, 60px 60px; border-bottom: 4px solid var(--accent); }
.app-top .top-nav a { color: #c3cbdc; }
.app-top .top-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.app-top .top-search { background: rgba(255,255,255,.08); color: #c3cbdc; }
.app-top .top-search input { color: #fff; }
.app-top .credit { background: rgba(255,255,255,.08); color: #fff; }
.app-top .avatar { background: var(--accent); color: var(--accent-ink); }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; }
.panel-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.intent { border-radius: 999px 999px 14px 14px; text-align: center; align-items: center; padding-top: 26px; border-top: 5px solid var(--primary); }
.intent-have { border-top-color: var(--ok); } .intent-problem { border-top-color: var(--accent); }
.intent i { border-radius: 50%; }
.kind-tabs button[aria-selected="true"] { background: var(--night); }
.match.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-text { padding-bottom: 10px; }
  .arch { width: min(300px, 80%); }
  .hojreh-grid { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .route::before { display: none; }
  .seal-sec { grid-template-columns: 1fr; }
  .seal { width: 200px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-grid !important; }
  .login { display: none; }
  .head-nav { display: none; position: absolute; top: 70px; inset-inline: 0; background: var(--night); flex-direction: column; padding: 14px 20px; }
  .head-nav.open { display: flex; }
  .bar-grid, .seal-text ul, .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hojreh-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hojreh { padding: 24px 10px 14px; }
  .hojreh small { display: none; }
  .route { grid-template-columns: 1fr; }
  .intent { border-radius: 14px; text-align: start; align-items: center; padding-top: 12px; }
}
