/* TurkishVPS — light violet brand, shared with my.turkishvps.com. The one bold element is the
   night-blue route map in the hero; everything else stays quiet. */
:root {
  --paper: #F4F3FA;
  --surface: #FFFFFF;
  --ink: #1B1736;
  --muted: #5F5A78;
  --line: #E1DEEC;
  --violet: #5B3DF5;
  --violet-deep: #3E24C8;
  --violet-wash: #ECE8FE;
  --night: #130F35;
  --night-2: #221C5C;
  --signal: #34E3A0;
  --green: #0B8F58;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-head: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
.lang-ru { --font-body: 'Onest', system-ui, sans-serif; --font-head: 'Onest', system-ui, sans-serif; }
.lang-fa, .lang-ar { --font-body: 'Vazirmatn', Tahoma, sans-serif; --font-head: 'Vazirmatn', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font-body); overflow-x: hidden; }
.lang-fa, .lang-ar { line-height: 1.85; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.lang-fa h1, .lang-fa h2, .lang-fa h3, .lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.35; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--violet-deep); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--ink); color: #fff; padding: 8px 14px; z-index: 300; border-radius: 8px; }
.skip:focus { transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--violet); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; transition: background .15s; white-space: nowrap; }
.btn:hover { background: var(--violet-deep); }
.btn-big { padding: 14px 26px; font-size: 1rem; }
.btn-small { padding: 7px 16px; font-size: 0.875rem; }
.btn-ghost { display: inline-flex; align-items: center; padding: 14px 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 100; background: rgba(244,243,250,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.1875rem/1 'Sora', var(--font-head); letter-spacing: -0.03em; }
.logo b { color: var(--violet); font-weight: 700; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo-c { fill: var(--night); }
.logo-a { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; }
.logo-d { fill: #fff; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover { color: var(--ink); }
.top-act { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.login { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.langs { position: relative; }
.langs summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: 0.875rem; font-weight: 500; padding: 6px 8px; border-radius: 8px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs[open] summary, .langs summary:hover { color: var(--ink); background: var(--violet-wash); }
.langs-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 150px; box-shadow: 0 12px 32px -12px rgba(27,23,54,.25); display: grid; }
.langs-menu a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.langs-menu a:hover { background: var(--violet-wash); }
.langs-menu a[aria-current] { color: var(--violet-deep); font-weight: 600; }

/* hero */
.hero { padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 700; letter-spacing: -0.035em; max-width: 13ch; }
.lang-ru .hero h1 { max-width: 15ch; font-size: clamp(2.1rem, 4.1vw, 3.3rem); }
.lang-fa .hero h1, .lang-ar .hero h1 { letter-spacing: 0; font-weight: 800; max-width: 14ch; }
.lead { margin-top: 22px; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.from { margin-top: 26px; color: var(--muted); font-size: 1rem; }
.from strong { font: 700 2rem/1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

.map { margin: 0; position: relative; background: radial-gradient(120% 90% at 40% 40%, var(--night-2) 0%, var(--night) 62%); border-radius: 28px; padding: 22px 22px 18px; color: #DCD8FF; overflow: hidden; }
.map figcaption { font-size: 0.875rem; color: #A9A3DA; }
.map-readout { position: absolute; top: 18px; inset-inline-end: 22px; text-align: end; }
.map-readout span { display: block; font-size: 0.875rem; color: #C9C4F5; }
.map-readout strong { display: block; font: 700 2.5rem/1.05 'Sora', var(--font-head); color: var(--signal); letter-spacing: -0.02em; min-height: 2.6rem; }
.map-readout strong.open { font-size: 1rem; line-height: 1.4; max-width: 18ch; color: #fff; font-weight: 600; font-family: var(--font-body); padding-top: 4px; }
.map-svg text { direction: ltr; unicode-bidi: plaintext; }
.map-svg { display: block; width: 100%; height: auto; margin-top: 4px; }
.grid line { stroke: rgba(169,163,218,.12); stroke-width: 1; }
.grid text { fill: rgba(169,163,218,.4); font: 500 10px/1 'Sora', sans-serif; }
.arc { fill: none; stroke: rgba(169,163,218,.35); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .25s, stroke-width .25s; }
.arc-open { stroke-dasharray: .012 .01; }
.arc.on { stroke: var(--signal); stroke-width: 2.5; }
.city circle { fill: #8E87D6; transition: fill .25s, r .25s; }
.city text { fill: #C9C4F5; font: 600 13px/1 var(--font-body); }
.city.on circle { fill: var(--signal); r: 6.5; }
.city.on text { fill: #fff; }
.hub circle { fill: #fff; }
.hub .hub-ring { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.hub text { fill: #fff; font: 700 14px/1 var(--font-body); }
.packet { fill: var(--signal); opacity: 0; filter: drop-shadow(0 0 6px var(--signal)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; background: rgba(255,255,255,.06); color: #DCD8FF; border: 1px solid rgba(169,163,218,.22); border-radius: 999px; padding: 7px 14px; font: 500 0.875rem/1.2 var(--font-body); cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { background: rgba(255,255,255,.12); }
.chip[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--night); }
.chip-ms { font-weight: 700; font-size: 0.8125rem; opacity: .85; }
.chip-open { font-style: italic; }

/* load sequence: arcs draw out from Istanbul once */
@media (prefers-reduced-motion: no-preference) {
  .map.ready .arc { animation: draw 1.1s cubic-bezier(.5,0,.2,1) both; }
  .map.ready .arc-open { animation: fade .8s both; }
  .map.ready .arc:nth-child(2) { animation-delay: .08s; }
  .map.ready .arc:nth-child(3) { animation-delay: .16s; }
  .map.ready .arc:nth-child(4) { animation-delay: .24s; }
  .map.ready .arc:nth-child(5) { animation-delay: .32s; }
  .map.ready .arc:nth-child(6) { animation-delay: .4s; }
  .map.ready .arc:nth-child(7) { animation-delay: .48s; }
  .hub-ring { animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* regions */
.regions { padding: 72px 0; background: var(--surface); border-block: 1px solid var(--line); }
.region-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.region { padding: 4px 24px 4px 0; }
.region + .region { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
[dir="rtl"] .region { padding: 4px 0 4px 24px; }
[dir="rtl"] .region + .region { padding-inline-start: 24px; }
.region h3 { font-size: 1.25rem; color: var(--violet-deep); }
.region ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.region li { color: var(--muted); font-size: 0.9375rem; padding-inline-start: 18px; position: relative; }
.region li::before { content: ''; position: absolute; inset-inline-start: 0; top: .65em; width: 8px; height: 2px; background: var(--violet); }

/* plans */
.plans { padding: 88px 0 72px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.sec-head p { color: var(--muted); max-width: 52ch; }
.tabs { margin-top: 32px; display: inline-flex; background: var(--violet-wash); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 9px 22px; border-radius: 999px; font: 600 0.9375rem/1 var(--font-body); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(27,23,54,.12); }
.table-wrap { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.plan-table th, .plan-table td { padding: 16px 20px; text-align: start; }
.plan-table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--muted); background: #FAF9FD; border-bottom: 1px solid var(--line); }
.plan-table tbody tr + tr { border-top: 1px solid var(--line); }
.plan-table tbody tr:hover { background: #FBFAFF; }
.plan-table tbody th { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.plan-table td.os-win { color: var(--green); font-weight: 500; }
.plan-table td.price { font: 700 1.125rem/1 var(--font-head); white-space: nowrap; }
.plan-table td.order { text-align: end; }
.fine { margin-top: 16px; color: var(--muted); font-size: 0.875rem; max-width: 78ch; }

/* included */
.included { padding: 72px 0; }
.inc-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.inc-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.inc-list dt { font-weight: 700; font-family: var(--font-head); }
.inc-list dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }

/* pay */
.pay { padding: 72px 0; background: var(--violet); color: #fff; }
.pay h2 { max-width: 22ch; }
.pay-grid { margin-top: 36px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.pay-item { padding: 26px; border-radius: 20px; background: rgba(255,255,255,.1); }
.pay-crypto { background: var(--night); }
.pay-item h3 { font-size: 1.25rem; }
.pay-item p { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 0.9375rem; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px !important; }
.lang-fa .tokens, .lang-ar .tokens { justify-content: flex-end; }
.tokens span, .tokens em { font: 600 0.8125rem/1 'Sora', sans-serif; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-style: normal; }
.tokens em { background: var(--signal); color: var(--night); }

/* test */
.test { padding: 80px 0; }
.test-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.test p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.console { background: var(--night); color: #DCD8FF; border-radius: 20px; padding: 8px 22px; font-size: 0.9375rem; }
.console-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 0; }
.console-row + .console-row { border-top: 1px solid rgba(169,163,218,.16); }
.console-label { color: #A9A3DA; font-size: 0.875rem; flex: 0 0 170px; }
.console code { font: 500 1rem/1 'IBM Plex Mono', ui-monospace, Menlo, monospace; color: var(--signal); }
.console a { color: #fff; }
.copy { margin-inline-start: auto; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; font: 600 0.8125rem/1 var(--font-body); cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.18); }
.files { display: flex; gap: 14px; }

/* steps */
.steps { padding: 72px 0 80px; background: var(--surface); border-block: 1px solid var(--line); }
.step-list { list-style: none; margin: 36px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: s; }
.step-list li { counter-increment: s; position: relative; padding-top: 52px; }
.step-list li::before { content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet-deep); font: 700 1rem/1 'Sora', sans-serif; }
.step-list li:not(:last-child)::after { content: ''; position: absolute; top: 18px; inset-inline-start: 48px; inset-inline-end: -24px; height: 1px; background: var(--line); }
.step-list p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }

/* faq */
.faq { padding: 80px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.0625rem; }
[dir="rtl"] .faq-list summary { padding: 20px 0 20px 36px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list p { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* legal */
.legal { padding-top: 56px; padding-bottom: 80px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-size: 1.25rem; margin-top: 36px; }
.legal p { margin-top: 12px; color: #3B3658; }

/* responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .hero-in, .test-in { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 18ch; }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .region:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .inc-in, .faq-in { grid-template-columns: 1fr; gap: 28px; }
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .pay-crypto { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .top-in { gap: 12px; height: 60px; }
  .login, .langs summary span { display: none; }
  .top-act { gap: 8px; }
  .top-act .btn { padding: 8px 14px; font-size: 0.875rem; }
  .hero { padding: 40px 0 48px; }
  .lead { font-size: 1.0625rem; }
  .map { border-radius: 20px; padding: 16px 12px 14px; margin: 0 -4px; }
  .map-readout { top: 14px; inset-inline-end: 14px; }
  .map-readout strong { font-size: 1.875rem; }
  .map-readout strong.open { font-size: 0.875rem; max-width: 15ch; }
  .map figcaption { max-width: 52%; font-size: 0.8125rem; }
  .city text { font-size: 20px; }
  .hub text { font-size: 19px; }
  .grid text { display: none; }
  .region-grid { grid-template-columns: 1fr; gap: 0; }
  .region, [dir="rtl"] .region { padding: 20px 0; border-inline-start: 0 !important; padding-inline-start: 0 !important; }
  .region + .region { border-top: 1px solid var(--line); }
  .pay-grid, .step-list, .inc-list { grid-template-columns: 1fr; }
  .step-list li:not(:last-child)::after { display: none; }
  .plan-table thead { display: none; }
  .plan-table, .plan-table tbody, .plan-table tr, .plan-table th, .plan-table td { display: block; }
  .plan-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 12px; padding: 18px; }
  .plan-table th, .plan-table td { padding: 0; }
  .plan-table tbody th { grid-column: 1 / 3; font-size: 1.0625rem; }
  .plan-table td.price { grid-column: 3; grid-row: 1; text-align: end; }
  .plan-table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
  .plan-table td.os-win, .plan-table td[data-label]:nth-of-type(4) { grid-column: 1 / 3; }
  .plan-table td.order { grid-column: 3; text-align: end; align-self: end; }
  .console-label { flex-basis: 100%; }
}

/* nav dropdowns */
.nav { align-items: center; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 0.9375rem; display: flex; align-items: center; gap: 6px; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.dd summary:hover, .dd[open] summary, .dd summary.on { color: var(--ink); }
.dd-menu { position: absolute; top: calc(100% + 14px); inset-inline-start: -14px; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: grid; box-shadow: 0 18px 40px -18px rgba(27,23,54,.3); z-index: 120; }
.dd-menu a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 0.9375rem; }
.dd-menu a:hover { background: var(--violet-wash); }
.nav a[aria-current="page"], .dd-menu a[aria-current="page"] { color: var(--violet-deep); font-weight: 600; }

/* mobile menu */
.mmenu { display: none; position: static; }
.mmenu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.mmenu summary::-webkit-details-marker { display: none; }
.mmenu summary svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.mmenu-panel { position: absolute; top: 100%; inset-inline: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(27,23,54,.35); padding: 12px 20px 22px; display: grid; gap: 2px; max-height: calc(100vh - 60px); overflow-y: auto; }
.mmenu-panel a:not(.btn) { padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mmenu-panel a[aria-current="page"] { color: var(--violet-deep); }
.mmenu-h { margin-top: 14px !important; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.mmenu-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.mmenu-langs a { border-bottom: 0 !important; }
.mmenu-panel .btn { margin-top: 16px; }

/* breadcrumbs */
.crumbs { padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet-deep); text-decoration: underline; }

/* inner page hero + sections */
.phero { padding: 30px 0 46px; }
.phero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; max-width: 20ch; }
.lang-fa .phero h1, .lang-ar .phero h1 { letter-spacing: 0; font-weight: 800; }
.phero .lead { max-width: 62ch; }
.sec { padding: 56px 0; }
.sec + .sec:not(.sec-alt) { padding-top: 8px; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-alt + .sec { padding-top: 56px; }
.sec h2 { margin-bottom: 8px; }
.sec-intro { color: var(--muted); max-width: 66ch; margin-bottom: 4px; }
.sec .inc-list { margin-top: 24px; }
.sec .table-wrap { margin-top: 22px; }
.prose { max-width: 760px; }
.prose p { margin-top: 14px; color: #3B3658; }
.prose a, .inc-list a, .faq-list a, .sec-intro a { color: var(--violet-deep); }
.more { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.more a { color: var(--violet-deep); }
.more-light a { color: #fff; }
.sec-head a { color: var(--violet-deep); font-weight: 600; }

/* cards (related pages, use cases) */
.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.sec-alt .card { background: var(--paper); }
.card:hover { border-color: var(--violet); }
.card strong { font-family: var(--font-head); font-size: 1.0625rem; }
.card span { color: var(--muted); font-size: 0.9375rem; }
.cards-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards-lg .card { padding: 26px; }
.related { padding-top: 40px; }

/* call-to-action band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 30px 32px; border-radius: 22px; background: var(--night); color: #DCD8FF; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin-top: 8px; max-width: 60ch; }
.cta-band a:not(.btn) { color: #fff; }
.signup .step-list { margin-bottom: 30px; }

/* code + endpoint tables */
.code { position: relative; margin-top: 18px; background: var(--night); border-radius: 16px; padding: 20px 22px; overflow-x: auto; }
.code pre { margin: 0; }
.code code { font: 500 0.875rem/1.7 'IBM Plex Mono', ui-monospace, Menlo, monospace; color: #DCD8FF; white-space: pre; }
.code .copy { position: absolute; top: 12px; right: 12px; }
.ep-h { margin-top: 30px; font-size: 1.0625rem; }
.ep-table, .lat-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ep-table td, .lat-table th, .lat-table td { padding: 12px 18px; text-align: start; border-top: 1px solid var(--line); }
.ep-table tr:first-child td, .lat-table tr:first-child > * { border-top: 0; }
.ep-table code { font: 500 0.875rem/1.4 'IBM Plex Mono', ui-monospace, Menlo, monospace; color: var(--ink); }
.ep-table .m { width: 84px; font: 700 0.75rem/1 'IBM Plex Mono', ui-monospace, monospace; }
.m-get { color: var(--green); } .m-post { color: var(--violet-deep); } .m-patch { color: #B4560B; } .m-delete { color: #C2263C; }
.lat-table th { font-weight: 600; width: 34%; }
.lat-table td:nth-child(2) { white-space: nowrap; font-weight: 700; font-family: var(--font-head); width: 22%; }
.lat-table .bar span { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--violet)); }
[dir="rtl"] .lat-table .bar span { background: linear-gradient(270deg, var(--green), var(--violet)); }

/* footer */
.foot { background: var(--night); color: #A9A3DA; padding: 56px 0 28px; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot .logo { color: #fff; }
.foot .logo b { color: var(--signal); }
.foot-brand p { margin-top: 12px; max-width: 34ch; }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-col h2 { font-size: 0.875rem; font-weight: 600; color: #fff; margin-bottom: 4px; letter-spacing: 0; }
.foot a { color: #DCD8FF; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-langs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(169,163,218,.16); font-size: 0.8125rem; color: #7E78B5; }

@media (max-width: 1020px) {
  .nav, .login, .langs { display: none; }
  .mmenu { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .sec { padding: 40px 0; }
  .cta-band { padding: 24px 20px; }
  .ep-table td { padding: 10px 12px; }
  .ep-table tr { display: grid; grid-template-columns: 70px 1fr; }
  .ep-table td:nth-child(3) { grid-column: 1 / -1; padding-top: 0; color: var(--muted); }
  .ep-table td:nth-child(3), .ep-table td:nth-child(2) { border-top: 0; }
  .lat-table .bar { display: none; }
}

/* header never wraps; endpoint tables share column widths */
.nav a, .dd summary, .login, .top-act .btn { white-space: nowrap; }
.nav { gap: 22px; }
.ep-table { table-layout: fixed; }
.ep-table .m { width: 90px; }
.ep-table td:nth-child(2) { width: 42%; }
.step-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step-list li:not(:last-child)::after { display: none; }
@media (max-width: 1180px) and (min-width: 1021px) { .nav { gap: 16px; } .top-in { gap: 18px; } .langs summary span { display: none; } }

/* Safari renders the content of a closed <details> when it has an explicit display, so the
   menus must be hidden explicitly while closed. */
details:not([open]) > .mmenu-panel,
details:not([open]) > .dd-menu,
details:not([open]) > .langs-menu { display: none; }
html, body { overflow-x: clip; }
.mmenu-panel { box-sizing: border-box; width: 100%; }

/* home: Frankfurt location band */
.fra-band .fra-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.16); margin-bottom: .5rem; }

/* ready-made apps: inline code, app cards, app page hero and plan picks */
:not(pre) > code { font: 500 0.875em/1.4 'IBM Plex Mono', ui-monospace, Menlo, monospace; background: var(--violet-wash); color: var(--violet-deep); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; unicode-bidi: isolate; }
.cta-band :not(pre) > code { background: rgba(255,255,255,.14); color: #fff; }
.app-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.app-card { display: grid; grid-template-rows: 1fr auto auto; gap: 12px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.sec-alt .app-card { background: var(--paper); }
.app-card:hover { border-color: var(--violet); }
.app-card-main { display: flex; align-items: flex-start; gap: 14px; text-decoration: none; color: var(--ink); }
.app-card-main h3 { font-size: 1.0625rem; }
.app-card-main:hover h3 { color: var(--violet-deep); }
.app-line { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }
.app-icon { flex: none; border-radius: 12px; }
.app-min { color: var(--muted); font-size: 0.8125rem; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.app-from { color: var(--muted); font-size: 0.875rem; }
.app-from strong { font: 700 1.125rem/1 var(--font-head); color: var(--ink); }
.app-hero-in { display: flex; align-items: flex-start; gap: 24px; }
.app-hero-in > div { min-width: 0; }
.app-hero .app-icon { margin-top: 6px; border-radius: 18px; box-shadow: 0 10px 24px -14px rgba(27,23,54,.45); }
.app-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags span { font-size: 0.8125rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--violet-wash); color: var(--violet-deep); }
.app-hero .from { margin-top: 18px; }
.app-hero .cta-row { margin-top: 22px; }
.plan-picks { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; max-width: 760px; }
.plan-pick { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.plan-pick:last-child:not(:first-child) { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet) inset; }
.pp-label { font-size: 0.8125rem; font-weight: 700; color: var(--violet-deep); text-transform: uppercase; letter-spacing: .04em; }
.lang-fa .pp-label, .lang-ar .pp-label { text-transform: none; letter-spacing: 0; }
.pp-name { font: 700 1.375rem/1.2 var(--font-head); }
.pp-spec { color: var(--muted); font-size: 0.9375rem; }
.pp-price { margin: 6px 0 10px; color: var(--muted); }
.pp-price strong { font: 700 1.75rem/1 var(--font-head); color: var(--ink); letter-spacing: -0.02em; }
.plan-pick .btn { justify-self: start; }
@media (max-width: 680px) {
  .app-hero-in { flex-direction: column; gap: 14px; }
  .app-hero .app-icon { width: 56px; height: 56px; }
}

/* header with the Apps item: tighter gaps between 1021 and 1180 px, and Russian (the longest
   labels) drops the language name next to the globe and switches to the menu button below 1121 px */
@media (max-width: 1180px) and (min-width: 1021px) { .nav { gap: 12px; } .top-in { gap: 16px; } }
@media (min-width: 1181px) { .lang-ru .nav { gap: 16px; } .lang-ru .top-in { gap: 22px; } }
.lang-ru .langs summary span { display: none; }
@media (max-width: 1120px) {
  .lang-ru .nav, .lang-ru .login, .lang-ru .langs { display: none; }
  .lang-ru .mmenu { display: block; }
}
