/* turancloud.com — warm editorial theme: ivory paper, warm ink, clay accent, olive ticks,
   Source Serif 4 headings over Inter body. Flat surfaces, hairline borders, small radii.
   Uses logical properties (inline-start/end) so Persian and Arabic (dir=rtl) need no overrides. */

:root {
  --bg: #FAF9F5;
  --band: #F0EEE6;
  --card: #FFFFFF;
  --line: #E6E2D6;
  --line-2: #D3CEC0;
  --ink: #1F1E1D;
  --ink-2: #3D3929;
  --muted: #6F6C66;
  --brand: #C15F3C;
  --brand-2: #A14A2B;
  --brand-soft: #F5E6DE;
  --olive: #5E6B3E;
  --olive-soft: #E9EBDD;
  --night: #1F1E1D;
  --night-2: #2B2A27;
  --night-ink: #F0EEE6;
  --night-muted: #B3AEA2;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: none;
  --shadow-lg: 0 1px 2px rgba(31, 30, 29, .04), 0 12px 32px -18px rgba(31, 30, 29, .22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-logo: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
.lang-fa { --font: 'Vazirmatn', system-ui, sans-serif; --font-h: 'Vazirmatn', system-ui, sans-serif; }
.lang-ar { --font: 'IBM Plex Sans Arabic', system-ui, sans-serif; --font-h: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.lang-fa body, .lang-ar body { line-height: 1.9; }
img, svg { max-width: 100%; }
::selection { background: var(--brand-soft); color: var(--ink); }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); font-weight: 500; letter-spacing: -0.012em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
.lang-fa h1, .lang-fa h2, .lang-fa h3, .lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.5; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }
.lang-fa h3, .lang-ar h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .86em; background: var(--band); color: var(--ink-2); padding: .12em .4em; border-radius: 4px; border: 1px solid var(--line); unicode-bidi: isolate; }
strong { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 500 .95rem/1 var(--font); color: #fff; background: var(--brand); border: 1px solid var(--brand); padding: .9em 1.35em; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { padding: .62em 1em; font-size: .88rem; }
.btn-lg { padding: 1.02em 1.6em; font-size: 1rem; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 245, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 30px; height: 30px; flex: none; }
.logo .word { font: 600 1.38rem/1 var(--font-logo); letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-link, .dd > summary { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; font-size: .94rem; cursor: pointer; list-style: none; }
.nav-link:hover, .dd > summary:hover, .dd[open] > summary { background: var(--band); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand-2); }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.4px 1.4px 0; transform: translateY(-2px) rotate(45deg); opacity: .55; }
.dd.lang > summary .ico { width: 18px; height: 18px; }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 310px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 0; }
.dd-panel.small { min-width: 170px; inset-inline-start: auto; inset-inline-end: 0; }
details.dd:not([open]) > .dd-panel { display: none; }
.dd-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dd-panel a strong { font-weight: 600; font-size: .94rem; }
.dd-panel a span { font-size: .82rem; color: var(--muted); }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--bg); text-decoration: none; }
.dd-panel a[aria-current] strong { color: var(--brand-2); }
.nav-sep { width: 1px; height: 20px; background: var(--line-2); margin-inline: 8px; }
.nav .btn { margin-inline-start: 8px; }
.nav-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: transparent; cursor: pointer; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.nav-btn span { display: block; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.top.open .nav-btn span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.top.open .nav-btn span:nth-child(2) { opacity: 0; }
.top.open .nav-btn span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 10px 16px 20px; gap: 0; max-height: calc(100vh - 68px); overflow-y: auto; }
  .top.open .nav { display: flex; }
  .dd-panel, .dd-panel.small { position: static; box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px; background: transparent; }
  .dd-panel a { padding-inline-start: 22px; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
  .nav .btn { margin: 10px 0 0; }
  .nav-link, .dd > summary { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd > summary { justify-content: space-between; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero.inner { padding: 52px 0 56px; }
.hero.inner h1 { max-width: 860px; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.hero .lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-2); max-width: 700px; }
.lang-fa .hero .lead, .lang-ar .hero .lead { line-height: 1.95; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 16px; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.lang-fa .kicker, .lang-ar .kicker { letter-spacing: 0; font-size: .9rem; font-weight: 600; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; }
.chips li { background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.chips li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--olive); margin-inline-end: 8px; vertical-align: middle; transform: rotate(45deg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero.home { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero.home h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; }
.lang-fa .hero.home h1, .lang-ar .hero.home h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.45; letter-spacing: 0; }
.hero.home .lead { font-size: 1.2rem; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font: 500 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); }
.lang-fa .pill, .lang-ar .pill { letter-spacing: 0; font-size: .92rem; font-weight: 600; }
.pill .ico { width: 16px; height: 16px; color: var(--brand); }
.from { list-style: none; padding: 22px 0 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .94rem; border-top: 1px solid var(--line); }
.from li { display: inline-flex; align-items: center; gap: 8px; }
.from strong { color: var(--ink); font-weight: 600; margin-inline-start: 4px; }
.hero-visual { position: relative; }
.map { display: block; width: 100%; height: auto; }
.map .mapbg { fill: var(--card); stroke: var(--line); }
.map .mapdot { fill: #D9D4C6; }
.map .route { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 5 7; animation: dash 22s linear infinite; }
.map .route.thin { stroke: #BDB6A5; stroke-width: 1.3; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map .pin .halo { fill: rgba(193, 95, 60, .14); animation: pulse 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.map .pin.fra .halo { fill: rgba(31, 30, 29, .1); }
.map .pin .dot { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.map .pin.fra .dot { fill: var(--ink); }
.map text { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.map .chip text { stroke: none; }
.map .pin text { font: 600 16px var(--font-h); fill: var(--ink); }
.map .city circle { fill: var(--ink-2); }
.map .city text { font: 500 12px var(--font); fill: var(--muted); }
.map .chip rect { fill: var(--ink); }
.map .chip text { font: 500 12px var(--mono); fill: var(--bg); }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map .route, .map .pin .halo { animation: none; } html { scroll-behavior: auto; } }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 13px; font-weight: 500; font-size: .86rem; color: var(--ink-2); }
.float .ico { width: 18px; height: 18px; color: var(--olive); }
.float.f1 { bottom: 22px; inset-inline-start: -16px; }
.float.f2 { top: 20px; inset-inline-end: -12px; }
.float.f2 .ico { color: var(--brand); }
.trust { margin-top: 64px; }
.trust ul { border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.trust li { display: flex; align-items: center; gap: 10px; padding: 20px 18px; font-weight: 500; color: var(--ink-2); font-size: .93rem; border-inline-start: 1px solid var(--line); }
.trust li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust .ico { width: 20px; height: 20px; color: var(--olive); }
@media (max-width: 1000px) {
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .trust li { border-inline-start: 0; padding-inline: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .float.f1 { inset-inline-start: 10px; }
  .float.f2 { inset-inline-end: 10px; }
}
@media (max-width: 560px) {
  .trust { margin-top: 44px; }
  .trust ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .trust li { padding: 14px 0; font-size: .9rem; }
  .float { font-size: .8rem; padding: 7px 10px; }
  .float.f1 { bottom: 12px; }
  .float.f2 { top: 12px; }
}

/* ---------------------------------------------------------------- content */
.content { padding: 72px 24px 88px; }
.block { margin: 0 0 88px; }
.block:last-child { margin-bottom: 0; }
.block-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
.block-head h2 { margin-bottom: .3em; max-width: 820px; }
.block-head .sub, .sub { color: var(--muted); margin: 0; max-width: 720px; font-size: 1.04rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.more { margin: 22px 0 0; font-weight: 500; }
.more a { color: var(--ink); border-bottom: 1px solid var(--brand); padding-bottom: 2px; }
.more a:hover { color: var(--brand-2); text-decoration: none; }
.more.center { text-align: center; }
.intro { color: var(--ink-2); }
.ico { width: 22px; height: 22px; flex: none; }

/* Home: every other section sits on a full-bleed sand band for a calm editorial rhythm. */
.page-home .content > .block:nth-child(even):not(.cta):not(.stats-wrap) { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-block: 80px; }
.page-home .content > .block:nth-child(even) .card,
.page-home .content > .block:nth-child(even) .pcard,
.page-home .content > .block:nth-child(even) .faq details,
.page-home .content > .block:nth-child(even) .steps li { background: var(--card); }
.page-home .content > .block:nth-child(even) { --muted: #66635D; }

.flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(31, 30, 29, .1); vertical-align: middle; }
.flag.big { width: 36px; height: 24px; border-radius: 3px; }
.flag-turkey { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23E30A17'/%3E%3Ccircle cx='11' cy='10' r='5' fill='%23fff'/%3E%3Ccircle cx='12.3' cy='10' r='4' fill='%23E30A17'/%3E%3Cpath d='M17.2 10l3.9-1.3-2.4 3.3V8l2.4 3.3z' fill='%23fff'/%3E%3C/svg%3E") center/cover; }
.flag-germany { background: linear-gradient(#000 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.block-head .flag { margin-top: 12px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.cols-3 { grid-template-columns: 1fr; } }
.card { position: relative; display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; color: var(--ink); transition: border-color .18s, background .18s; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-2); margin-bottom: 18px; }
.card .ic .ico { width: 20px; height: 20px; }
.card:nth-child(3n+2) .ic { background: var(--olive-soft); color: var(--olive); }
.card:nth-child(3n+3) .ic { background: var(--band); color: var(--ink-2); }
.card.link { padding-bottom: 52px; }
.card.link:hover { text-decoration: none; border-color: var(--ink); }
.card .go, .loccard .go, .related .go { position: absolute; inset-inline-end: 22px; bottom: 18px; color: var(--brand); font-weight: 500; transition: transform .18s; }
.card.link:hover .go { transform: translateX(4px); }
[dir="rtl"] .card.link:hover .go { transform: translateX(-4px); }

/* locations */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 800px) { .locs { grid-template-columns: 1fr; } }
.loccard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 30px 28px 24px; color: var(--ink); transition: border-color .18s; }
.loccard.loc-germany { border-top-color: var(--ink); }
.loccard:hover { text-decoration: none; border-color: var(--line-2); border-top-color: var(--brand-2); }
.loccard.loc-germany:hover { border-top-color: var(--ink); }
.loc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.loc-top h3 { font-size: 1.45rem; font-weight: 500; margin: 0; }
.lang-fa .loc-top h3, .lang-ar .loc-top h3 { font-weight: 700; font-size: 1.25rem; }
.loc-sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.loc-foot { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.loc-foot strong { color: var(--ink); font: 500 1.4rem var(--font-h); }
.loccard .go { position: static; font-size: 1.2rem; }

/* tick list */
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { width: 18px; height: 18px; color: var(--olive); margin-top: 4px; }
.prose .ticks li span { color: var(--ink-2); }

/* plan cards */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1050px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.pcard.hot { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--brand); }
.badge { position: absolute; top: -11px; inset-inline-start: 22px; background: var(--ink); color: var(--bg); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; }
.lang-fa .badge, .lang-ar .badge { letter-spacing: 0; font-size: .8rem; }
.ploc { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; margin-bottom: 10px; }
.pcard h3 { font: 600 1.25rem var(--font-h); margin-bottom: 8px; }
.pprice { font: 500 2.3rem/1.1 var(--font-h); margin: 0 0 18px; color: var(--ink); letter-spacing: -0.02em; }
.pprice small { font: 400 .9rem var(--font); color: var(--muted); margin-inline-start: 3px; letter-spacing: 0; }
.pspec { list-style: none; padding: 16px 0 0; margin: 0 0 22px; display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.pspec li { display: flex; align-items: center; gap: 10px; }
.pspec .ico { width: 17px; height: 17px; color: var(--olive); }
.pcard .btn { margin-top: auto; width: 100%; }

/* stats: a dark editorial band */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--night); border-radius: var(--radius); color: var(--night-ink); }
.stats li { display: grid; gap: 6px; padding: 36px 30px; border-inline-start: 1px solid rgba(240, 238, 230, .12); }
.stats li:first-child { border-inline-start: 0; }
.stats strong { font: 500 clamp(2rem, 3.6vw, 2.9rem)/1.05 var(--font-h); color: var(--night-ink); letter-spacing: -0.02em; }
.stats li:first-child strong { color: #E08A68; }
.stats span { color: var(--night-muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 26px 20px; border-inline-start: 0; border-bottom: 1px solid rgba(240, 238, 230, .12); }
  .stats li:nth-child(even) { border-inline-start: 1px solid rgba(240, 238, 230, .12); }
  .stats li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* specs */
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs > div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.specs > div:nth-last-child(-n+2):nth-child(odd), .specs > div:last-child { border-bottom: 0; }
.specs dt { font-size: .74rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.lang-fa .specs dt, .lang-ar .specs dt { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.specs dd { margin: 0; color: var(--ink); }
@media (max-width: 700px) {
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(odd) { border-inline-end: 0; }
  .specs > div:nth-last-child(-n+2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand-2); font: 500 1.05rem var(--font-h); }
.steps li div { color: var(--ink-2); }

/* tables */
.table-wrap { position: relative; overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg); }
.lang-fa thead th, .lang-ar thead th { text-transform: none; letter-spacing: 0; font-size: .86rem; }
tr.group th { background: var(--band); color: var(--ink); font: 600 .95rem var(--font-h); text-transform: none; letter-spacing: 0; }
.plans tbody tr:not(.group):hover { background: #FDFCF9; }
.plans .pname { font: 600 1rem var(--font-h); color: var(--ink); }
.num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans th.num, .plans td.num { text-align: center; }
.plans .price { text-align: end !important; font: 600 1.12rem var(--font-h); }
.plans .price small { font: 400 .8rem var(--font); color: var(--muted); margin-inline-start: 2px; }
.plans .act { text-align: end; width: 1%; }
.plans .act .btn { background: transparent; color: var(--ink); border-color: var(--line-2); }
.plans .act .btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 28%; }
.compare td { color: var(--ink-2); }
@media (max-width: 700px) { .hide-sm { display: none; } th, td { padding: 12px 10px; } }

.endpoints .method { font: 600 .76rem var(--mono); width: 70px; }
.m-get { color: var(--olive); } .m-post { color: var(--brand-2); } .m-patch { color: #8A6A1F; } .m-delete { color: #B23A2E; }
.endpoints .path { font-family: var(--mono); font-size: .86rem; white-space: nowrap; color: var(--ink); }
.endpoints + h3, .block > h3 { margin-top: 30px; }

/* faq: hairline accordion */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details { background: transparent; border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; padding-inline: 0 48px; font: 500 1.08rem/1.45 var(--font-h); color: var(--ink); position: relative; }
.lang-fa .faq summary, .lang-ar .faq summary { font-weight: 600; font-size: 1rem; }
.faq summary:hover { color: var(--brand-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--brand-2); font: 400 1.1rem/1 var(--font); }
.faq details[open] summary::after { content: '−'; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.faq details:not([open]) > .ans { display: none; }
.faq .ans { padding: 0 0 22px; padding-inline-end: 48px; color: var(--ink-2); max-width: 860px; }
.page-home .content > .block:nth-child(even) .faq details { background: transparent; }

/* code */
.code { background: var(--night); border-radius: var(--radius); overflow: hidden; direction: ltr; border: 1px solid var(--night); }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--night-2); border-bottom: 1px solid rgba(240, 238, 230, .08); }
.code-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5A5750; }
.code-bar i:nth-child(1) { background: var(--brand); }
.code-bar .copy { margin-left: auto; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; }
.code pre code { background: none; border: 0; color: #EDEAE0; padding: 0; font-size: .86rem; line-height: 1.75; }
.copy { font: 500 .78rem var(--font); color: var(--night-ink); background: transparent; border: 1px solid rgba(240, 238, 230, .22); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: rgba(240, 238, 230, .1); }

/* notice */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-inline-start: 3px solid var(--olive); border-radius: var(--radius-sm); padding: 18px 22px; }
.notice > .ico { color: var(--olive); margin-top: 2px; }
.notice.warn { border-inline-start-color: var(--brand); background: #FCF6F2; }
.notice.warn > .ico { color: var(--brand-2); }
.notice strong { display: block; margin-bottom: 2px; }
.notice p { margin: 0; color: var(--ink-2); }
.notice + .notice { margin-top: -72px; }

/* prose */
.prose p { color: var(--ink-2); max-width: 780px; }

/* latency */
.latency { list-style: none; padding: 10px 26px; margin: 0; display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.latency li { display: grid; grid-template-columns: 110px 1fr 70px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.latency li:last-child { border-bottom: 0; }
.latency .city { font-weight: 500; }
.lt-bar { height: 6px; background: var(--band); border-radius: 1px; overflow: hidden; }
.lt-bar span { display: block; height: 100%; background: var(--brand); }
.latency .ms { text-align: end; font: 500 .88rem var(--mono); color: var(--ink-2); white-space: nowrap; }

/* speedtest */
.st-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 800px) { .st-grid { grid-template-columns: 1fr; } }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 22px 16px; min-width: 0; }
.st-title { display: flex; align-items: center; gap: 10px; font: 500 1.2rem var(--font-h); margin: 14px 0 6px; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.st-row:last-child { border-bottom: 0; }
.st-row .label { color: var(--muted); font-size: .92rem; }
.copyable { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.copyable code { font-size: .9rem; overflow-wrap: anywhere; }
.copyable .copy { color: var(--ink-2); background: transparent; border-color: var(--line-2); }
.copyable .copy:hover { border-color: var(--ink); background: var(--bg); }
.files { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.files a { font: 500 .84rem var(--mono); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 4px; }
.files a:hover { border-color: var(--brand); color: var(--brand-2); text-decoration: none; }
.st-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* cta: dark warm panel */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 52px; border-radius: var(--radius); color: var(--night-ink); background: var(--night); }
.cta::before { content: ''; position: absolute; inset-inline-end: -40px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(193, 95, 60, .55); box-shadow: 0 0 0 36px rgba(193, 95, 60, .07), 0 0 0 72px rgba(193, 95, 60, .04); pointer-events: none; }
.cta > * { position: relative; }
.cta h2 { color: var(--night-ink); margin-bottom: .35em; }
.cta p { margin: 0; color: var(--night-muted); max-width: 620px; }
.cta p a { color: var(--night-ink); text-decoration: underline; }
@media (max-width: 720px) { .cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; } }

/* related */
.related { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.related h2 { font-size: 1.35rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.related a { position: relative; display: grid; gap: 2px; padding: 18px 46px 18px 20px; padding-inline: 20px 46px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.related a strong { font-weight: 600; }
.related a span:not(.go) { color: var(--muted); font-size: .88rem; }
.related a:hover { text-decoration: none; border-color: var(--ink); }
.related .go { bottom: auto; top: 50%; transform: translateY(-50%); }

/* legal */
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.with-side .related { grid-column: 1 / -1; }
.side { position: sticky; top: 92px; border-inline-end: 1px solid var(--line); padding: 4px 18px 4px 0; padding-inline: 0 18px; }
.side-h { font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 4px 10px 10px; }
.lang-fa .side-h, .lang-ar .side-h { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--ink-2); }
.side a:hover { background: var(--band); text-decoration: none; }
.side a[aria-current] { color: var(--brand-2); font-weight: 600; box-shadow: inset 2px 0 0 var(--brand); }
[dir="rtl"] .side a[aria-current] { box-shadow: inset -2px 0 0 var(--brand); }
.legal-body { max-width: 820px; }
.legal-body .block { margin-bottom: 36px; }
.legal-body h2 { font-size: 1.4rem; }
.updated { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .with-side { grid-template-columns: 1fr; gap: 28px; } .side { position: static; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: var(--night-muted); padding: 72px 0 28px; font-size: .92rem; }
.foot .logo { color: var(--night-ink); }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; }
.foot h2 { color: var(--night-ink); font: 500 .74rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .12em; margin: 8px 0 16px; }
.lang-fa .foot h2, .lang-ar .foot h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: var(--night-muted); }
.foot a:hover { color: var(--night-ink); }
.foot .about p { margin: 16px 0 0; max-width: 300px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .links a { color: var(--night-ink); font-weight: 500; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { font-size: .74rem; font-weight: 500; color: var(--night-ink); border: 1px solid rgba(240, 238, 230, .18); padding: 3px 8px; border-radius: 3px; direction: ltr; }
.foot .legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(240, 238, 230, .12); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .langs a[aria-current] { color: var(--night-ink); font-weight: 600; }
.foot :focus-visible { outline-color: #E08A68; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: repeat(3, 1fr); } .foot .about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .content { padding: 48px 16px 64px; }
  .wrap { padding-inline: 16px; }
  .block { margin-bottom: 64px; }
  .page-home .content > .block:nth-child(even):not(.cta):not(.stats-wrap) { padding-block: 52px; }
  .hero.home { padding-top: 44px; }
  .hero.inner { padding: 36px 0 40px; }
  .hero .lead, .hero.home .lead { font-size: 1.06rem; }
  .latency { padding: 4px 16px; }
  .latency li { grid-template-columns: 84px 1fr 58px; gap: 10px; }
  .notice + .notice { margin-top: -48px; }
  .related { margin-top: 64px; }
}

/* ---------------------------------------------------------------- apps marketplace */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.appcard { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 50px; color: var(--ink); transition: border-color .18s; min-width: 0; }
.appcard:hover { text-decoration: none; border-color: var(--ink); }
.appcard img { width: 42px; height: 42px; object-fit: contain; border-radius: 6px; margin-bottom: 8px; }
.appcard h3 { margin: 0; }
.appcard p { margin: 0; color: var(--muted); font-size: .94rem; }
.appcard .appmeta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: .85rem; border-top: 1px solid var(--line); }
.appcard .appmeta strong { color: var(--ink); font-weight: 600; }
.appcard .go { position: absolute; inset-inline-end: 22px; bottom: 18px; color: var(--brand); font-weight: 500; }
.hero-app { display: block; width: 64px; height: 64px; object-fit: contain; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 18px; }
.appplans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.appmin { background: var(--band); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.appmin .big { font: 500 1.6rem/1.35 var(--font-h); margin: 0 0 12px; color: var(--ink); }
.appmin .note { color: #66635D; }
.pnote { font-size: .85rem; color: var(--muted); }
