/* bulutkale.cloud — editorial enterprise theme: warm paper, deep navy ink, deep-teal brand with brass
   accents, Newsreader serif headings over IBM Plex Sans. Flat hairline surfaces, small radii,
   rectangular buttons. Logical properties (inline-start/end) keep Persian and Arabic (dir=rtl) working
   without overrides. */

:root {
  --paper: #F7F5F0;
  --band: #ECE8DF;
  --card: #FFFFFF;
  --line: #E2DDD2;
  --line-2: #CFC8BA;
  --ink: #14213D;
  --ink-2: #2E3A55;
  --muted: #62687A; /* #6B7180 nudged darker so small text passes AA on paper and the alternate band */
  --brand: #1F5F5B;
  --brand-2: #174845;
  --brand-soft: #DFECE9;
  --brass: #A8823F;
  --brass-ink: #7A5A22;
  --brass-soft: #F3EAD8;
  --brass-lt: #D7B677;
  --night: #14213D;
  --night-2: #1B2A4B;
  --on-night: #F7F5F0;
  --on-night-2: #B9C0CF;
  --bg: var(--paper);
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 0 rgba(20, 33, 61, .03);
  --shadow-lg: 0 18px 40px -24px rgba(20, 33, 61, .28);
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-h: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --mono: 'IBM Plex 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; --font-serif: '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; --font-serif: 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); 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%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font-h); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; letter-spacing: -0.01em; }
.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.6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: 0; }
.lang-fa h3, .lang-ar h3 { font-size: 1.08rem; font-weight: 700; }
.lang-fa h1, .lang-ar h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.lang-fa h2, .lang-ar h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .86em; background: var(--brand-soft); color: var(--brand-2); padding: .12em .42em; border-radius: 4px; unicode-bidi: isolate; }
strong { font-weight: 600; }
.lang-fa strong, .lang-ar strong { font-weight: 700; }
.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(--paper); 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; }
.foot :focus-visible, .cta :focus-visible, .code :focus-visible { outline-color: var(--brass-lt); }
::selection { background: var(--brand-soft); color: var(--ink); }

.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); 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(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--brand-2); }
.btn-sm { padding: .62em 1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 240, .94); 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: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; flex: none; }
.logo .word { font: 600 1.42rem/1 'Newsreader', Georgia, serif; letter-spacing: -0.01em; color: var(--ink); }
.logo .word b { font-weight: 600; color: var(--brand); }
.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); }
.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[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.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: .95rem; }
.dd-panel a span { font-size: .84rem; color: var(--muted); }
.dd-panel a:hover, .dd-panel a[aria-current] { background: var(--paper); text-decoration: none; }
.dd-panel a[aria-current] strong { color: var(--brand); }
.nav-sep { width: 1px; height: 22px; 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: var(--card); 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: 1px; transition: transform .2s, opacity .2s; }
.top.open .nav-btn span:nth-child(1) { transform: translateY(7.2px) rotate(45deg); }
.top.open .nav-btn span:nth-child(2) { opacity: 0; }
.top.open .nav-btn span:nth-child(3) { transform: translateY(-7.2px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-btn { display: flex; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; max-height: calc(100vh - 70px); 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 > .dd, .nav > .nav-link { border-bottom: 1px solid var(--line); }
  .nav-sep { display: none; }
  .nav .btn { margin: 14px 0 0; }
  .nav-link, .dd > summary { padding: 13px 8px; border-radius: 0; }
  .nav-link:hover, .dd > summary:hover, .dd[open] > summary { background: transparent; }
  .dd > summary { display: flex; justify-content: space-between; }
  .dd.lang > summary span { margin-inline-end: auto; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; }
.hero.inner { padding: 56px 0 60px; background: var(--band); border-bottom-color: var(--line-2); }
.hero.inner h1 { max-width: 860px; font-size: clamp(2rem, 4.2vw, 3.1rem); }
.lang-fa .hero.inner h1, .lang-ar .hero.inner h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.hero .lead { font-size: 1.14rem; color: var(--ink-2); max-width: 720px; line-height: 1.6; }
.lang-fa .hero .lead, .lang-ar .hero .lead { line-height: 1.95; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 16px; }
.kicker::before { content: ''; width: 22px; height: 1.5px; background: var(--brass); flex: none; }
.lang-fa .kicker, .lang-ar .kicker { letter-spacing: 0; font-size: .9rem; }
.crumbs { font-size: .88rem; color: var(--ink-2); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--brand); text-decoration-color: currentColor; }
.crumbs [aria-current] { color: var(--ink); }
.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-2); 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(--brass); margin-inline-end: 9px; vertical-align: middle; transform: rotate(45deg) translateY(-1px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.hero.home { padding: 72px 0 0; background:
  linear-gradient(180deg, rgba(236, 232, 223, 0) 0%, rgba(236, 232, 223, .55) 100%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero.home h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: .4em; }
.lang-fa .hero.home h1, .lang-ar .hero.home h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.4; letter-spacing: 0; }
.hero.home .lead { font-size: 1.18rem; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.pill::before { content: ''; width: 22px; height: 1.5px; background: var(--brass); }
.pill .ico { display: none; }
.lang-fa .pill, .lang-ar .pill { letter-spacing: 0; font-size: .92rem; }
.from { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .95rem; }
.from li { display: inline-flex; align-items: center; gap: 9px; }
.from strong { color: var(--ink); margin-inline-start: 2px; font-weight: 600; }
.hero-visual { position: relative; }
.map { display: block; width: 100%; height: auto; }
.map .mapbg { fill: #fff; stroke: var(--line-2); }
.map .mapdot { fill: #D8D1C2; }
.map .route { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 7; animation: dash 20s linear infinite; }
.map .route.thin { stroke: #9DB8B4; stroke-width: 1.4; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.map .pin .halo { fill: rgba(31, 95, 91, .14); animation: pulse 2.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.map .pin.ist .halo { fill: rgba(168, 130, 63, .2); }
.map .pin .dot { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.map .pin.ist .dot { fill: var(--brass); }
.map .pin text { font: 600 16px var(--font-serif); 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(--paper); }
@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(--card); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; font-size: .88rem; color: var(--ink); box-shadow: var(--shadow-lg); }
.float .ico { width: 19px; height: 19px; color: var(--brand); }
.float.f1 { bottom: 26px; inset-inline-start: -18px; }
.float.f2 { top: 22px; inset-inline-end: -12px; }
.float.f2 .ico { color: var(--brass); }
/* trust strip: a crenellated hairline (the brand's battlement) above a row of facts */
.trust { margin-top: 64px; position: relative; }
.trust::before { content: ''; position: absolute; inset-inline: 24px; top: 0; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='8' viewBox='0 0 28 8'%3E%3Cpath d='M0 7.5h6V.5h8v7h14' fill='none' stroke='%23CFC8BA'/%3E%3C/svg%3E") repeat-x left top; }
.trust ul { list-style: none; margin: 0; padding: 26px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
.trust li { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.trust .ico { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .float.f1 { inset-inline-start: 8px; }
  .float.f2 { inset-inline-end: 8px; }
  .trust ul { justify-content: flex-start; }
}

/* ---------------------------------------------------------------- content */
.content { padding: 72px 24px 88px; }
.block { margin: 0 0 80px; }
.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; }
.block-head .sub, .sub { color: var(--muted); margin: 0; max-width: 760px; font-size: 1.04rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.more { margin: 22px 0 0; font-weight: 500; }
.more a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more a:hover { text-decoration: none; color: var(--brand-2); }
.more.center { text-align: center; }
.intro { color: var(--ink-2); }
.ico { width: 22px; height: 22px; flex: none; }

.flag { display: inline-block; width: 22px; height: 15px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(20, 33, 61, .1); vertical-align: middle; }
.flag.big { width: 36px; height: 25px; 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(260px, 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: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card .ic .ico { width: 21px; height: 21px; }
.card:nth-child(3n+2) .ic { background: var(--brass-soft); color: var(--brass-ink); }
.card:nth-child(3n+3) .ic { background: var(--band); color: var(--ink); }
.card.link { padding-bottom: 50px; }
.card.link:hover { text-decoration: none; border-color: var(--brand); }
.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-turkey { border-top-color: var(--brass); }
.loccard:hover { text-decoration: none; border-color: var(--line-2); border-top-color: var(--brand); }
.loccard.loc-turkey:hover { border-top-color: var(--brass-ink); }
.loc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.loc-top h3 { font-size: 1.55rem; margin: 0; }
.lang-fa .loc-top h3, .lang-ar .loc-top h3 { 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: 600 1.5rem var(--font-serif); }
.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(--brand); 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(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.badge { position: absolute; top: -11px; inset-inline-start: 22px; background: var(--brass-soft); color: var(--brass-ink); border: 1px solid var(--brass); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 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: .85rem; margin-bottom: 10px; }
.pcard h3 { font: 600 1.05rem var(--mono); letter-spacing: 0; margin-bottom: 8px; }
.pprice { font: 500 2.4rem/1.1 var(--font-serif); 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: 18px; height: 18px; color: var(--brand); }
.pcard .btn { margin-top: auto; width: 100%; }

/* stats: an editorial figure row with hairline dividers */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--brass); border-radius: var(--radius); }
.stats li { display: grid; gap: 6px; align-content: start; padding: 28px 26px; border-inline-start: 1px solid var(--line); }
.stats li:first-child { border-inline-start: 0; }
.stats strong { font: 500 clamp(2rem, 3.6vw, 2.9rem)/1 var(--font-serif); color: var(--brand); letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 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: 600; color: var(--brass-ink); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.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; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.steps .n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--brand); color: var(--brand); font: 500 1.05rem var(--font-serif); background: var(--card); }
.lang-fa .steps .n, .lang-ar .steps .n { font-family: var(--font); }
.steps li div { padding-top: 5px; 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: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--paper); border-bottom-color: var(--line-2); }
.lang-fa thead th, .lang-ar thead th { text-transform: none; letter-spacing: 0; font-size: .86rem; }
tr.group th { background: var(--brand-soft); color: var(--brand-2); font-size: .86rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.plans tbody tr:not(.group):hover { background: #FBFAF7; }
.plans .pname { font: 500 .95rem var(--mono); }
.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.18rem var(--font-serif); }
.plans .price small { font: 400 .8rem var(--font); color: var(--muted); margin-inline-start: 2px; }
.plans .act { text-align: end; width: 1%; }
.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; } }
/* phones: each plan row becomes a compact two-line card */
@media (max-width: 600px) {
  .plans, .plans tbody { display: block; }
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans tr.group { display: block; }
  .plans tr.group th { display: block; padding: 10px 14px; }
  .plans tbody tr:not(.group) { display: grid; grid-template-columns: auto auto auto 1fr auto; grid-template-areas: 'name name name name price' 'cpu ram disk . act'; align-items: center; gap: 4px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
  .plans tbody tr:not(.group):last-child { border-bottom: 0; }
  .plans tbody tr:not(.group) > * { padding: 0; border: 0; }
  .plans tbody th[scope="row"] { grid-area: name; }
  .plans td[data-l] { text-align: start !important; font-size: .84rem; color: var(--ink-2); }
  .plans td[data-l]::before { content: attr(data-l); display: block; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .lang-fa .plans td[data-l]::before, .lang-ar .plans td[data-l]::before { letter-spacing: 0; text-transform: none; font-size: .74rem; }
  .plans td[data-l="vCPU"], .plans td:nth-child(2) { grid-area: cpu; }
  .plans td:nth-child(3) { grid-area: ram; }
  .plans td:nth-child(4) { grid-area: disk; }
  .plans .price { grid-area: price; }
  .plans .act { grid-area: act; width: auto; }
  .plans .pname { font-size: .92rem; }
}


.endpoints .method { font: 600 .76rem var(--mono); width: 72px; }
.m-get { color: var(--brand); } .m-post { color: #1F4FA0; } .m-patch { color: var(--brass-ink); } .m-delete { color: #A63A32; }
.endpoints .path { font-family: var(--mono); font-size: .86rem; white-space: nowrap; color: var(--ink); }
.endpoints + h3, .block > h3 { margin-top: 30px; }

/* faq: a ruled list rather than boxes */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; padding-inline: 2px 52px; font-weight: 500; font-size: 1.04rem; position: relative; color: var(--ink); }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; inset-inline-end: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--brand); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details:not([open]) > .ans { display: none; }
.faq .ans { padding: 0 2px 22px; color: var(--ink-2); max-width: 820px; }

/* 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; border-bottom: 1px solid rgba(247, 245, 240, .08); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 245, 240, .18); }
.code-bar i:first-child { background: var(--brass); }
.code-bar .copy { margin-left: auto; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; }
.code pre code { background: none; color: #E6E2D8; padding: 0; font-size: .86rem; line-height: 1.75; }
.copy { font: 500 .78rem var(--font); color: var(--on-night); background: rgba(247, 245, 240, .08); border: 1px solid rgba(247, 245, 240, .18); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: rgba(247, 245, 240, .16); }

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

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

/* latency */
.latency { list-style: none; padding: 24px 26px; margin: 0; display: grid; gap: 14px; 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; }
.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 li:first-child .lt-bar span { background: var(--brass); }
.latency .ms { text-align: end; font: 500 .9rem 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; }
.st-title { display: flex; align-items: center; gap: 10px; font: 600 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; }
.copyable code { font-size: .92rem; }
.copyable .copy { color: var(--brand-2); background: var(--brand-soft); border-color: #C4DBD6; }
.files { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.files a { font: 500 .85rem var(--mono); background: var(--paper); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 4px; }
.files a:hover { border-color: var(--brand); text-decoration: none; }
.st-note { color: var(--muted); font-size: .88rem; margin: 10px 0 0; }

/* cta: a deep navy band with a brass rule */
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border-radius: var(--radius); color: var(--on-night); background: var(--night); }
.cta::before { content: ''; position: absolute; inset-inline-start: 48px; top: 0; width: 56px; height: 3px; background: var(--brass); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: var(--on-night); margin-bottom: .3em; }
.cta p { margin: 0; color: var(--on-night-2); max-width: 640px; }
.cta p a { color: var(--on-night); text-decoration: underline; }
@media (max-width: 720px) { .cta { flex-direction: column; align-items: flex-start; padding: 36px 24px 32px; } .cta::before { inset-inline-start: 24px; } }

/* related */
.related { margin-top: 88px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.related h2 { font-size: 1.4rem; }
.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 44px 18px 20px; padding-inline: 20px 44px; 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(--brand); }
.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: 96px; border-inline-start: 2px solid var(--brass); padding: 4px 0 4px 14px; padding-inline: 14px 0; }
.side-h { font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-ink); margin: 0 0 10px; }
.lang-fa .side-h, .lang-ar .side-h { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.side ul { list-style: none; padding: 0; margin: 0; }
.side a { display: block; padding: 6px 0; color: var(--ink-2); }
.side a[aria-current] { color: var(--brand); font-weight: 600; }
.legal-body .block { margin-bottom: 36px; }
.legal-body h2 { font-size: 1.45rem; }
.updated { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .with-side { grid-template-columns: 1fr; gap: 28px; } .side { position: static; } }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--night); color: var(--on-night-2); padding: 72px 0 28px; font-size: .92rem; }
.foot .logo, .foot .logo .word { color: var(--on-night); }
.foot .logo .word b { color: var(--brass-lt); }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 32px; }
.foot h2 { color: var(--brass-lt); font: 600 .74rem/1.4 var(--font); text-transform: uppercase; letter-spacing: .14em; margin: 8px 0 16px; }
.lang-fa .foot h2, .lang-ar .foot h2 { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { color: var(--on-night-2); }
.foot a:hover { color: var(--on-night); }
.foot .about p { margin: 16px 0 0; max-width: 310px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .links a { color: var(--on-night); font-weight: 500; border-bottom: 1px solid rgba(215, 182, 119, .5); }
.foot .links a:hover { text-decoration: none; border-bottom-color: var(--brass-lt); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { font-size: .74rem; font-weight: 500; color: var(--on-night); border: 1px solid rgba(247, 245, 240, .18); padding: 3px 8px; border-radius: 3px; direction: ltr; }
.foot .legal { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 22px; }
.foot .legal::before { content: ''; position: absolute; top: 0; inset-inline: 24px; height: 1px; background: rgba(247, 245, 240, .12); }
.foot .langs { display: flex; flex-wrap: wrap; gap: 16px; }
.foot .langs a[aria-current] { color: var(--on-night); font-weight: 600; }
@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); gap: 28px 20px; } }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .content { padding: 48px 16px 64px; }
  .wrap { padding-inline: 16px; }
  .block { margin-bottom: 56px; }
  .hero.home { padding-top: 44px; }
  .hero.inner { padding: 36px 0 40px; }
  .trust { margin-top: 44px; }
  .trust::before { inset-inline: 16px; }
  .foot .legal::before { inset-inline: 16px; }
  .float { display: none; }
  .latency { padding: 18px 16px; }
  .latency li { grid-template-columns: 84px 1fr 58px; gap: 10px; }
  .notice + .notice { margin-top: -40px; }
  .card { padding: 22px 20px; }
  .card.link { padding-bottom: 48px; }
}

/* ---------------------------------------------------------------- apps marketplace */
.appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 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 52px; color: var(--ink); transition: border-color .18s; min-width: 0; }
.appcard:hover { text-decoration: none; border-color: var(--brand); }
.appcard img { width: 44px; height: 44px; 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: 9px; margin-bottom: 16px; }
.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-2); border-radius: var(--radius); padding: 26px 24px; }
.appmin .big { font: 500 1.6rem/1.3 var(--font-serif); margin: 0 0 12px; color: var(--ink); }
.lang-fa .appmin .big, .lang-ar .appmin .big { font-family: var(--font); font-weight: 700; font-size: 1.35rem; }
.pnote { font-size: .85rem; color: var(--muted); }
