/* The ruble sign ₽ from Inter (© The Inter Project Authors, SIL Open Font License 1.1), only this one glyph: some phones
   have system fonts without it and showed an empty box. unicode-range keeps every other character in the system font. */
@font-face { font-family: "PSRub"; font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+20BD; src: url(data:font/woff2;base64,d09GMk9UVE8AAAOMAAsAAAAAB0QAAANBAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYJgGyAcKgZgADQBNgIkAwgEBgWHPAcgG4EGCB4FblsDz+jUThZizlwqfeXz7ve729u+mIFnSRpNk4dOpFEZllUSp+OheHRNcPZgyOGapmU1xJNlUDBkhYU8UTJCRUbNTs+SULOEwkwS8Y+3e38b0gA3sDygMPAk1AD7/+9VzVj+MbRuBgckJ6QReyNr0lg65gbKCVA4NlZbWrYGlStQrFgBO6hnNTH2tVfYTLACCXF8JNfuf34RIny6Qu/AT5zoXTboSaqDpr5tmgQbS1QdDo4IcfhSmzH23fzrijWcx0xnXLLOEfntkYIb2UNM1uIuQV1R+Ego3xMLhEwtwuzgPxkSqIgnVggRXb+wYhCZBGxEF/HQDIfFaBvSP04mWOo8Hl+KEMgDGqL13zrk4Ned/uaXHwMyIueFPDaduo7U9roF9SFMP2eCi1+Gq11QrLJczutEmy579hRbcp6ZLFeWTlTUf6pfk1lf3ydL4lVZhYqahIoX/jtVWZgcMfbghwlgEdPFtPtGZpATA+D/HwCATZbLxbxe1VWkCmphZuNuNtJkFBz4ZLuAMVCN/nhruhhvAKgCAEBVtRyj0+gGNk+yjDt/HiDgUeQdQABgp+0IkOIUZGsJHwsCqlulILAYgdTnFh41LnpgAuCxDB5zH1M91aWfTs0EALjabx0CG1e+m38l37npzISUAkAcyvLffy2SY1oC4ujzdFSaqmwTqIOaIApwWKUh3QygCUIBYdEElEM7aOpwwERcAFfiFgwiYWDUlgSYmNILZqn0sa38MW2byB7+2v/sUFTHWFSaDQYei0OBiJCwBDCDg4FBCgozgAkGlQAro0DOCoqjMhCB+0zBWCskRYaYgNDJX81i8Si/oriIsKiwuLS4rCnTRk3LKpzjX3Qz6ALrHPEYCJ5KAcbHYfDnswaBIkUFjAyPxABlgJIKTH6eQQRUDGAgZERgwUwpWleUWHPqSRBc4uPQE3UNkRHsUpSQYcESEQesfWIJCkwbDVBrTrAxYbxawivDFAQOg73Cr9hpsX87bdAIME6DKQZmRxSxfX1Tzg6jU9I8g8x3JyyxqohPdaBEYgis4d0h6Uz0yZlEZagMSAmZ+4jyLsHT0IWVqLQGGvH4WUHj+oyIei2O9P0tYBAAAAA=) format("woff2"); }
@font-face { font-family: "PSRub"; font-style: normal; font-weight: 600; font-display: swap; unicode-range: U+20BD; src: url(data:font/woff2;base64,d09GMk9UVE8AAAOwAAsAAAAAB5wAAANnAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYJuGyAcKgZgADQBNgIkAwgEBgWIAgcgG9UGCB6F6bbIH61Jc2eZWOa5g4hPPt9+v+7YV0uIh4QnUe+umYFDUwlVvRFhzZq23Xn44FrbI6aLby7Jxt/+fdsbkaqlUxKRLJlOSGLEP97u7W9IgQaWRAGFgWc0wAFm3P9/7/SP5R+zOrfBgUWa2PtjNXhsGwsXjQ3UCSjO1tC0E0VroAfakbt35kXNNXEywRtIiP2W3LQkhdr4vBUKu0aS5odPf6IFWKAFUi2IacH88YuFqUTLTEDG1cSUlNZ5LXq/+9dng9/Og5/hh1A99nv14lITJ5gPMZijapu9yaCDlXKnWy2VFzgIM4F/GYq+HKYGbCi6wjBCaJtK64mO8kiaQ9mkySj9OlkMlZsgBCKmS+bNUwAAedFC2Ni3NTV8r2nX3v9dqjJVOK42DRNq4bFINTz+kYanKynkc4X4afWaHtvERz9mqYMYX8YV8Z5vEz86C4p7r7WBaOzgaypTfv8B8jHQIB9Do8Q/iXGDzY//9OIBTPyc4e1p4TRYwAF4fQUASGaJwDc13trdyDrgIDGO/XzE0wrMgtj4DWDe60A/TLqSpC+wDAdAoVBSdERS4DFoOYr0py9bAJ6DyF8AAYBf4hkQZCEjzjIe04jhOCMIAE8TCFr1QtTpixsPgEM5dPSlovp1878FZgAAfBsrnvRWv/l6fS55Hgw/yjBTAMQaFXmfr9v/NNEQhO10OhKIX7zgBAoACnB5QyHdCKAACALCTxwomyZg8lx286QgRHsCHT//oFeSIzAwpAWMgtIDZkGZ7rZgzhp6G2wi2x04LJUJnDbK0+2NJn3/1qWrZ4LA6jgMpCSnoAWlcRAooINBCCiO6GpAqhjIYYDhdBE0wzlSkDbMqaulJgmpG2gpI9Sk5I5fNanDGIkyDSUFFQUNAw2TpJSIFFMZriVGli4DhXV1QKNp4NoWlWcEQGUd2gslHqMpiCFeowZ2bBnRBHVdgAiqjZIafFLZGIAYDnixHSQNcJjDsYcykilAKk8IkY2PWAPDmy3DQKlSQ8yoFn5Ux90tWBXSQaF24AO65mUjvSslIAyK6WWpKaE3DISL6/Y6rkBOceY0Kr9Lj2WGyvBcCFW0EoRGcH3E/sx4OSSCCowR7BNRBKiqkcF6mGRQSEM6C5e/TibGK5xVGd26MyJkms3dyxYmAAA=) format("woff2"); }
@font-face { font-family: "PSRub"; font-style: normal; font-weight: 700; font-display: swap; unicode-range: U+20BD; src: url(data:font/woff2;base64,d09GMk9UVE8AAAOUAAsAAAAABygAAANMAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYJZGyAcKgZgADQBNgIkAwgEBgWHJAcgG2IGKC4G7MbpIquBstLSEgsD4VkRiTuNd/D0Ld2f2d2Upi6uled7dRVQcSiBUEEoLB4pShMGu6eSwbW2f0+oLr4bJjLu9u/bsEoVC8kk8kRohCQWogtRdJu975ACLLC4gMLAU+rB8uHPtU4byFRHVJTAJb5d+AEejy7y/VUvMkg8/uPe6R9LK8vWa3AgkSfyV2PzWDoXjg3W5jiL/2VpF0VriHQecIAduQvyPdzU2qb1whYSST6R69LetOKdcyzDLH6yheSkqDBXCTQkya5XGd+siQuVM8+nPGpi7je6FwVJ+4E0OT9qLuJ2nrOBNBJLdvo4/3gQmwzFpRadAdMobKv6kaE4xGDqhhzytxeWCA1QHYH8FR5p5dEu6ym0/jdZnOJpF/p3AQB5qYqYp/cYv7LIw6iPRx6jJvcHUo3NdRhD60clbZdcuTfy/zhQrrM8hsNB1ka60RMU2I18ll9dtzjul6R9Etl+F/Iu1/plTY6Va8bI9l9Zxoyc+JWMACTk5BDs29pWIGcBtxsArNI0KAhXi7kfWRCkrUXZbnunR1TDreILeOkZ6c/UplxsALofAFV3d9S1gNXSUOeJx2sCoL2T/AMB2MudghL5PtSkAiKSG4uVAGxCUPqoEtomP6UIALtavDYzDJieT7mJAfAX3887m69+o3uLty9NhKEsJKAnH2Sf38Pf75oJVFSHa8+l0j1zAkdAQcYbgyxx4AiMgEg4goo5g7E1DFZgF5yuI4gIvEHUQ6QQE8sZ4kqJ0CSZmqeYdMj+P2e068wmJGwagXF4DGRiYGQDteIhUJUgBiGgRkSIFzKCgYqMY3ghBF0vXSzEb5SFjqH+VTcOxmgNsTIxMjOycrJya9aiTgs3kE8bNs7Q0N0+KqPwAoIgvu5wfKpNFWhI0Cj/IYzOJyCG9FSjkMB+hA8UMgYiqABKFyqaDbnHIdxF4CL1OA3wWG0cRrnoG2BSAYheEyJ+d/muFAO14AwxkzT4EYXSftgIJIhCXKDj5GiI4XckWlSpDUMNwnYT/HAtDKJpLWvEyLfEM9IWe6O8pCcMwfyGDPPPhyZhavg1PPZQkaaRHOMCJSIGAWokT2FhLHRTwG+uE0Jw9BqUq90ZIlJZuh5TEw==) format("woff2"); }
@font-face { font-family: "PSRub"; font-style: normal; font-weight: 800; font-display: swap; unicode-range: U+20BD; src: url(data:font/woff2;base64,d09GMk9UVE8AAAO0AAsAAAAAB6QAAANrAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYJuGyAcKgZgADQBNgIkAwgEBgWICgcgG90GCB4FbtMzYuOt4daUE6IYhTriK4hq7f2evb0AkgRUhBItsEpFAWvavLBiZdBF5TNoor3w0P7eG+SLH9bA/si7iXWpuS+pLi+uVIjnl/d+XQA00rlOJISdLZfdpWtwSMhQNEKiJMbtDXVyClV9qV04glBoHMJjkahS/40pzbgX9o/mNne4V0lUlpDtglaISMRHcsl5b0nctxKPzlH3OctnqnhpIXjpystwvEx9fRHi2OEQndZysbJmzHzcEP+Uy+Xbesro1WzAl7HT4Wsf/1F2LhJ0iAQEl3XJxuG2Kvg8uULA5eG4DDerf2aIhzoBEdRUvMWwZiIFuQQVr/LYBs/guaPR/d/JeOnVQTqWioAzdO4CALIAlIgz/xBmt69mvb1Y+9vYU1tYsi8Bvo/76x1LXf+sBNx8NW3mr+Je9+6NP1eulSMZu5ZS5uN/+Ifipf7avfa/t/GrWPPpvGa+17L55s1ufroCzM9AXf4nsdwZluJGxoImIIgU85oaSo0N0IkGuL8HAMycx6J5s/4RAqtgEszZrd3BlgzawC3RF7Czt1MXtvmwnEAHUBQAUNS1n8V18AiPV3kdZz8KsNsr30EAdHfbE8jQickdf0xKUtu3kgGg4wIZTy7MHD4WNAHsqyFs4Ga4Z6DiX4ATAMDns3Vf1vrycvm2GnPV+YWHSQGgRHmx9+vyHwVaAYTF4cqtaWppj4QGWgEFRHkHjehAoBU4AyHNCijCGAWHVkfzGgou5V7Bj7Qo8KczGRBAgIxBIBmZg2AysjcfkupCRX0EYZTWO4jQ7URApOFOmo99rIz7b/M0un0mAYeHQT4eXiHQBh4DqlJhDBO0wqQRMSgYlLUN42lMCOM4RXswEyFHI6OtYXC2yQimABfP6q/GcQSYEyHIx8vPKygqKG7NukXr4lycOfnWV2FCBBoVrMenPajXW22qgggq2jYRAQLIkIqfHuwVBJOU0rCghDkF4joxrCFomwpl6aMmShTi4ZW9Dolx91FKKRhuL6EEVMJLYdA61wi2KwVnEOiX960Uhgph9ODbalrG/v7tuqoGaJmOoXJYbFBijuF2Z16xxvgZyb/fYqkdBCEeIiQZQLueIh4k+EeyVs9yWAy0CVYhhBpTAh2uCdEkVyx+4Ry3ZSUNuF7vjoqJYAsLV3fnLAAA) format("woff2"); }
/* PlaceShow — the styles every page of the site shares. Dark navy with the blue / teal / orange of the logo. */
:root {
  --bg: #0b1420;
  --bg-alt: #0e1a2c;
  --surface: #132238;
  --surface-soft: #1b2d48;
  --ink: #eef3fa;
  --ink-soft: #93a7c4;
  --line: rgba(255,255,255,0.09);
  --blue: #2e8fd9;
  --teal: #3cc8d5;
  --orange: #ff8a3d;
  --orange-dark: #f2691b;
  --ok: #35c48c;
  --err: #ff6b6b;
  --grad: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--orange));
  --nav-h: 68px;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: "PSRub", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Hiragino Sans", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* While a translation is on its way the page stays invisible for a moment instead of flashing Russian first. */
html.ps-i18n-wait body { opacity: 0; }
body { transition: opacity .18s ease; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.scrolled, .nav.solid {
  background: rgba(11,20,32,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  border-bottom-color: var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-decoration: none; flex: none; }
.nav-brand img { width: 30px; height: 30px; object-fit: contain; }
.nav-brand .show { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color .2s; white-space: nowrap; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-cta {
  background: var(--orange); color: #1a0e02 !important; padding: 9px 18px; border-radius: 999px; font-weight: 700;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--orange-dark); color: #fff !important; }
.nav-cta.active::after { display: none; }
.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  margin: 0; width: 42px; height: 42px; padding: 0; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 20px; color: var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: rgba(255,255,255,.09); border-color: rgba(60,200,213,.45); outline: none; }
.nav-toggle { display: none; }

/* language picker */
.lang-pick { position: relative; }
.lang-btn {
  margin: 0; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; letter-spacing: .3px;
  transition: background .2s, border-color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.09); border-color: rgba(60,200,213,.45); }
.lang-btn svg { width: 17px; height: 17px; opacity: .85; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; z-index: 120;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45); list-style: none; margin: 0;
  animation: popIn .16s ease both;
}
.lang-menu button {
  margin: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border: none; border-radius: 10px; background: none; color: var(--ink);
  font: inherit; font-size: 14.5px; cursor: pointer; text-align: left;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--surface-soft); outline: none; }
.lang-menu button[aria-current="true"] { color: var(--teal); font-weight: 700; }
.lang-menu .code { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .nav { padding: 0 14px; gap: 10px; }
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + 6px); right: 12px; left: 12px; margin: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    flex-direction: column; align-items: stretch; text-align: center;
    padding: 14px; gap: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.5);
    display: none; max-height: calc(100vh - var(--nav-h) - 24px); overflow-y: auto;
  }
  .nav-links.open { display: flex; animation: popIn .18s ease both; }
  .nav-links a { display: block; padding: 11px; border-radius: 10px; font-size: 16px; }
  .nav-links a:hover, .nav-links a.active { background: var(--surface-soft); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin-top: 6px; }
  .nav-tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 13px 26px; border-radius: 999px; border: none;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--orange); color: #1a0e02; box-shadow: 0 10px 24px rgba(255,138,61,.28); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-teal { background: var(--teal); color: #04202a; box-shadow: 0 10px 24px rgba(60,200,213,.22); }
.btn-teal:hover { background: #5ad6e1; }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-danger { background: rgba(255,107,107,.12); color: var(--err); border: 1px solid rgba(255,107,107,.35); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link { color: var(--teal); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; text-decoration: none; }
.more-link::after { content: "→"; transition: transform .2s; }
.more-link:hover::after { transform: translateX(4px); }

/* ---------- Layout ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.alt-bg { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-align: center; color: var(--teal); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12.5px; margin-bottom: 10px; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 14px; text-align: center; letter-spacing: -.3px; }
.section-lead { text-align: center; color: var(--ink-soft); max-width: 620px; margin: 0 auto 44px; font-size: 16.5px; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-36 { margin-top: 36px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { color: var(--ink-soft); font-size: 16px; }
.prose p { margin: 0 0 14px; }
.prose b, .prose strong { color: var(--ink); }
.prose h3 { color: var(--ink); font-size: 19px; margin: 30px 0 10px; }

/* Page header (all pages but the home page) */
.page-head {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(var(--nav-h) + 64px) 20px 64px;
  background: radial-gradient(ellipse 900px 420px at 50% -10%, rgba(46,143,217,.25), transparent 62%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; letter-spacing: -.5px; position: relative; z-index: 1; }
.page-head p { color: var(--ink-soft); font-size: 17.5px; max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.page-head .eyebrow { position: relative; z-index: 1; }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .32; z-index: 0; animation: float 12s ease-in-out infinite alternate; pointer-events: none; }
.blob.b1 { width: 300px; height: 300px; background: var(--blue); top: -90px; left: 6%; }
.blob.b2 { width: 240px; height: 240px; background: var(--teal); top: 30px; right: 5%; animation-delay: -4s; }
.blob.b3 { width: 200px; height: 200px; background: var(--orange); bottom: -110px; left: 44%; animation-delay: -8s; opacity: .22; }
@keyframes float { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(18px,-22px) scale(1.08); } 100% { transform: translate(-14px,10px) scale(.96); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.hover:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.35); border-color: rgba(60,200,213,.4); }
.card h3 { margin: 0 0 8px; font-size: 17.5px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card p + p { margin-top: 10px; }
.card .icon {
  font-size: 24px; margin-bottom: 14px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  background: rgba(46,143,217,.15); border: 1px solid rgba(60,200,213,.25); border-radius: 13px;
}
.card ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 14.5px; }
.card li { margin: 5px 0; }
a.card { display: block; text-decoration: none; }

.note {
  background: rgba(60,200,213,.08); border: 1px solid rgba(60,200,213,.3); border-radius: 14px;
  padding: 14px 18px; color: var(--ink); font-size: 14.5px;
}
.note.warn { background: rgba(255,138,61,.09); border-color: rgba(255,138,61,.42); }
.note.warn b { color: var(--orange); }
.note a { color: var(--teal); }

.example {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 620px;
  margin: 34px auto 0; font-size: 15.5px; position: relative;
}
.example .tag {
  position: absolute; top: -12px; left: 20px; background: var(--orange); color: #1a0e02; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.example .price { color: var(--teal); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.step { text-align: center; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #0b1420; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 8px 20px rgba(46,143,217,.35);
}
.step h3 { margin: 0 0 8px; font-size: 16.5px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--teal), var(--orange)); opacity: .5; }
.timeline li { position: relative; padding: 0 0 26px 66px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .num {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--grad);
  color: #0b1420; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(46,143,217,.3);
}
.timeline h3 { margin: 10px 0 6px; font-size: 18px; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.timeline p + p { margin-top: 8px; }

/* ---------- Tabs (pill buttons) ---------- */
.pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  margin: 0; font: inherit; font-size: 14px; color: var(--ink-soft); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 20px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.pill:hover { color: var(--ink); background: var(--surface-soft); border-color: rgba(60,200,213,.45); }
.pill.active, .pill[aria-selected="true"] { color: #04202a; background: var(--teal); border-color: var(--teal); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-soft); font-size: 15px; }
.faq details > div a { color: var(--teal); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 20px 22px; text-align: center; position: relative; display: flex; flex-direction: column; }
.plan.best { border-color: var(--teal); box-shadow: 0 10px 30px rgba(60,200,213,.15); }
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #1a0e02;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { margin: 0 0 4px; font-size: 18px; }
.plan .term { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.plan .cost { font-size: 32px; font-weight: 800; line-height: 1.1; }
.plan .cost s { font-size: 18px; color: var(--ink-soft); font-weight: 600; margin-right: 6px; }
.plan .per { color: var(--teal); font-weight: 700; font-size: 15px; margin-top: 6px; }
.plan .save { margin-top: 10px; font-size: 13px; color: var(--ink-soft); min-height: 20px; }
.plan .save b { color: var(--orange); }
.plan .actions { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }

/* ---------- Forms ---------- */
.form label { display: block; font-size: 13px; color: var(--ink-soft); margin: 14px 0 6px; }
.form label:first-child { margin-top: 0; }
.input, .form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px;
  background: var(--surface-soft); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 84px; }
.input::placeholder, .form input::placeholder, .form textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(60,200,213,.18); }
.form .btn { margin-top: 18px; width: 100%; }
.form .row { display: flex; gap: 8px; align-items: center; }
.form .row .input { flex: 1; }
.form .row .btn { width: auto; margin-top: 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin-top: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }
.msg { margin-top: 14px; font-size: 14px; border-radius: 10px; padding: 10px 12px; display: none; }
.msg.ok { display: block; background: rgba(53,196,140,.12); color: var(--ok); }
.msg.err { display: block; background: rgba(255,107,107,.12); color: var(--err); }
.msg.info { display: block; background: rgba(60,200,213,.1); color: var(--teal); }

/* switch */
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--ink-soft); border-radius: 50%; transition: transform .2s, background .2s; }
.switch input:checked + span { background: rgba(60,200,213,.35); border-color: var(--teal); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--teal); }
.switch input:disabled + span { opacity: .5; cursor: default; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding: 44px 20px 40px; color: var(--ink-soft); font-size: 13.5px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--teal); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.footer .brand img { width: 26px; height: 26px; }
.footer .brand .show { color: var(--orange); }
.footer .legal { max-width: 1080px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
/* the note about cookies at the bottom of the screen */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 240; margin: 0 auto; max-width: 720px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.cookie-bar.show { opacity: 1; transform: none; }
.cookie-bar p { margin: 0; flex: 1; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.cookie-bar .cookie-ico { margin-right: 6px; }
.cookie-bar .btn { flex: none; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
/* the other address of the site (placeshow.ru / placeshow.online), once, under the menu */
.site-hint {
  position: fixed; top: calc(var(--nav-h) + 10px); left: 16px; right: 16px; z-index: 90; margin: 0 auto; max-width: 620px;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0,0,0,.45);
  font-size: 14px; color: var(--ink-soft); line-height: 1.4;
}
.site-hint span { flex: 1; min-width: 0; }
.site-hint .btn { flex: none; }
.site-hint-x { flex: none; width: 34px; height: 34px; }
.footer .legal .sites { display: block; margin-top: 8px; }
@media (max-width: 560px) { .site-hint { left: 10px; right: 10px; flex-wrap: wrap; } .site-hint span { flex-basis: calc(100% - 46px); } }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; gap: 10px; }
  .cookie-actions .btn { flex: 1; }
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45); font-size: 14.5px; opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: rgba(255,107,107,.5); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 250; background: rgba(5,10,18,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .18s ease both; }
.modal-box { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: popIn .2s ease both; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-box h3 { margin: 0 0 8px; font-size: 20px; }
.modal-box p { color: var(--ink-soft); margin: 0 0 6px; font-size: 14.5px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Gallery (gallery page, home strip, lightbox) ---------- */
.gal-trending { margin-bottom: 36px; }
.gal-trending h3 { margin: 0 0 12px; font-size: 16px; }
.gal-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.gal-strip .gal-thumb { flex: 0 0 140px; width: 140px; scroll-snap-align: start; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.gal-card {
  margin: 0; padding: 0; display: block; width: 100%; text-align: left; color: inherit; font: inherit; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer;
  animation: galIn .5s ease both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gal-card:hover, .gal-card:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.35); border-color: rgba(60,200,213,.4); outline: none; }
.gal-cover { aspect-ratio: 4 / 3; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; font-size: 38px; overflow: hidden; }
.gal-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-card:hover .gal-cover img { transform: scale(1.06); }
.gal-card-special { border-color: rgba(60,200,213,.4); background: linear-gradient(160deg, var(--surface), rgba(46,143,217,.2)); }
.gal-card-special .gal-cover { background: linear-gradient(135deg, rgba(46,143,217,.45), rgba(60,200,213,.3) 55%, rgba(255,138,61,.45)); font-size: 56px; }
.gal-card-body { padding: 12px 14px 14px; }
.gal-card-title { font-weight: 700; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-card-sub { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-album-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.gal-album-head .titles { flex: 1 1 220px; min-width: 0; }
.gal-album-head h3 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.gal-album-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.gal-sort { display: flex; gap: 6px; }
.gal-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal-thumb {
  margin: 0; padding: 0; position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-soft); animation: galIn .45s ease both; animation-delay: calc(var(--i, 0) * 30ms);
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gal-thumb:hover img { transform: scale(1.07); }
.gal-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; pointer-events: none; }
.gal-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; pointer-events: none; }
.gal-empty, .gal-error { text-align: center; color: var(--ink-soft); padding: 44px 10px; grid-column: 1 / -1; }
.gal-error .btn { margin-top: 14px; }
@keyframes galIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5,10,18,.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 16px; animation: fadeIn .2s ease both; }
.lb-stage { flex: 1 1 auto; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; background: #000; animation: fadeIn .25s ease both; }
.lb-info { flex: 0 0 auto; width: 100%; max-width: 720px; padding-top: 12px; text-align: center; max-height: 34vh; overflow-y: auto; }
.lb-author { font-weight: 700; }
.lb-caption { margin-top: 2px; overflow-wrap: anywhere; }
.lb-stats { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.lb-comments { margin-top: 10px; text-align: left; font-size: 14px; }
.lb-comment { padding: 6px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.lb-comment b { color: var(--teal); margin-right: 6px; }
.lb-close, .lb-nav { position: absolute; z-index: 3; width: 44px; height: 44px; margin: 0; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; line-height: 44px; text-align: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; margin-top: -22px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 640px) {
  .lb { padding: 60px 8px 10px; }
  .lb-nav { width: 38px; height: 38px; line-height: 38px; margin-top: -19px; background: rgba(0,0,0,.45); }
  .lb-prev { left: 4px; } .lb-next { right: 4px; }
}

/* ---------- Contract ---------- */
.ct-doc { max-width: 820px; margin: 0 auto; padding: 28px 30px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.ct-doc h3.ct-title { margin: 0 0 4px; font-size: 20px; text-align: center; overflow-wrap: anywhere; }
.ct-doc .ct-version { margin: 0 0 22px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.ct-doc .ct-h { margin: 26px 0 8px; font-weight: 700; color: var(--teal); font-size: 15px; letter-spacing: .3px; overflow-wrap: anywhere; }
.ct-doc .ct-p { margin: 0 0 9px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ct-doc .ct-sub { margin: 0 0 6px 22px; font-size: 14.5px; line-height: 1.6; overflow-wrap: anywhere; }
.ct-status { text-align: center; color: var(--ink-soft); padding: 30px 10px; }
.ct-status .btn { margin-top: 14px; }
@media (max-width: 640px) { .ct-doc { padding: 20px 16px; } }

/* ---------- Phone mockups (app page) ---------- */
.showcase { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; align-items: flex-end; }
.phone-wrap { text-align: center; }
.phone-wrap .caption { margin-top: 18px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.phone { width: 220px; height: 440px; border-radius: 34px; background: #050a12; padding: 10px; box-shadow: 0 24px 55px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05); position: relative; transition: transform .3s ease; }
.phone-wrap:nth-child(1) .phone { transform: rotate(-4deg); }
.phone-wrap:nth-child(3) .phone { transform: rotate(4deg); }
.phone-wrap .phone:hover { transform: translateY(-8px) rotate(0); }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 16px; background: #050a12; border-radius: 0 0 12px 12px; z-index: 2; }
.phone .screen { width: 100%; height: 100%; border-radius: 24px; background: var(--bg-alt); overflow: hidden; position: relative; padding: 26px 12px 12px; }
.screen-title { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-align: center; margin-bottom: 10px; letter-spacing: .5px; text-transform: uppercase; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-grid div { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--teal)); background-size: cover; background-position: center; }
.mock-grid div:nth-child(2n) { background-color: #1c6e78; }
.mock-chat { display: flex; flex-direction: column; gap: 8px; }
.mock-bubble { max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 11px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); }
.mock-bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border: none; }
.mock-board { display: flex; flex-direction: column; gap: 8px; }
.mock-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 10.5px; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mock-row b { color: #fff; background: linear-gradient(90deg, var(--orange), var(--orange-dark)); padding: 2px 7px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Home: the moving gallery ---------- */
.show-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); isolation: isolate; }
.show-slides { position: absolute; inset: 0; z-index: -2; }
.show-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.show-slide.on { opacity: 1; }
.show-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--ox, 50%) var(--oy, 50%); }
.show-slide.on img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.14) translate(var(--dx, -1.5%), var(--dy, -1%)); } }
.show-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,20,32,.78) 0%, rgba(11,20,32,.35) 34%, rgba(11,20,32,.45) 62%, rgba(11,20,32,.97) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(11,20,32,.15), rgba(11,20,32,.55) 75%); }
.show-hero .blob { opacity: .22; }
.show-inner { position: relative; z-index: 1; text-align: center; padding: calc(var(--nav-h) + 40px) 20px 140px; max-width: 820px; }
.show-inner .logo-mark { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 10px; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 10px 26px rgba(0,0,0,.45)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.show-inner h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 60px); letter-spacing: -.8px; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.show-inner .lead { color: #d5e1f1; font-size: clamp(16px, 2.2vw, 19px); max-width: 640px; margin: 0 auto 30px; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.show-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.show-ctas .btn-ghost { background: rgba(11,20,32,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.show-meta { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 28px; }
.show-caption { display: flex; align-items: center; gap: 10px; background: rgba(11,20,32,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 13.5px; max-width: 70%; transition: opacity .5s; text-decoration: none; }
.show-caption .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); flex: none; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.show-caption b { color: var(--ink); }
.show-caption span { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-dots { display: flex; gap: 6px; }
.show-dots button { margin: 0; padding: 0; width: 26px; height: 4px; border-radius: 4px; border: none; background: rgba(255,255,255,.25); cursor: pointer; overflow: hidden; position: relative; }
.show-dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: left; animation: dotfill var(--show-ms, 6500ms) linear both; }
.show-hero.paused .show-dots button.on::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); color: var(--ink-soft); font-size: 22px; animation: cue 2s ease-in-out infinite; text-decoration: none; z-index: 2; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); opacity: .6; } 50% { transform: translate(-50%, 8px); opacity: 1; } }
@media (max-width: 640px) {
  .show-meta { padding: 0 14px; bottom: 16px; }
  .show-caption { max-width: 100%; }
  .show-dots { display: none; }
  .scroll-cue { display: none; }
}

/* the endless strip of fresh pictures */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--marquee-s, 60s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: block; width: 200px; height: 150px; border-radius: 14px; overflow: hidden; flex: none; border: 1px solid var(--line); position: relative; }
.marquee img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.marquee a:hover img { transform: scale(1.08); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cta-band { text-align: center; padding: 64px 24px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(26,93,166,.9), rgba(46,143,217,.85) 45%, rgba(28,147,166,.9)); }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,61,.55), transparent 70%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 26px; position: relative; z-index: 1; }
.cta-band .show-ctas { position: relative; z-index: 1; }
.cta-band .btn-primary { background: #fff; color: #1a5da6; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.cta-band .btn-primary:hover { background: #eaf4ff; color: #1a5da6; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }

.banner { max-width: 760px; margin: 0 auto 30px; }

/* ---------- Auth (start page) ---------- */
.auth-box { max-width: 440px; margin: 0 auto; }
.auth-box .card { padding: 30px; box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.auth-box .pills { margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.auth-alt button { margin: 0; padding: 0; border: none; background: none; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; }
.auth-alt button:hover { text-decoration: underline; }

/* ---------- Cabinet ---------- */
.cab { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.cab-side { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.cab-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #0b1420; font-size: 19px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 14px; }
.cab-user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-user span { color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cab-nav { display: grid; gap: 4px; }
.cab-nav button { margin: 0; text-align: left; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: none; background: none; color: var(--ink-soft); font: inherit; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.cab-nav button:hover { background: var(--surface-soft); color: var(--ink); }
.cab-nav button.active { background: rgba(60,200,213,.14); color: var(--teal); font-weight: 700; }
.cab-nav hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; }
.cab-main { min-width: 0; display: grid; gap: 18px; }
.cab-main .card { padding: 22px; }
.cab-main h2 { text-align: left; font-size: 24px; margin: 0; }
.cab-main .plans { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.cab-main .plan { padding: 24px 14px 16px; }
.cab-main .plan .cost { font-size: 26px; }
.cab-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.big-num { font-size: 36px; font-weight: 800; letter-spacing: -.5px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-pill.ok { background: rgba(53,196,140,.14); color: var(--ok); }
.status-pill.off { background: rgba(255,255,255,.07); color: var(--ink-soft); }
.status-pill.warn { background: rgba(255,138,61,.14); color: var(--orange); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface-soft); border-radius: 14px; border: 1px solid var(--line); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { color: var(--ink-soft); font-size: 13.5px; }
.list-item .row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cab-sub { color: var(--ink-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 18px 0 8px; }
.cab-sub:first-child { margin-top: 6px; }
.price-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-dark)); color: #fff; font-weight: 800; font-size: 14px; white-space: nowrap; }
.stars { color: var(--orange); letter-spacing: 1px; }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
@media (max-width: 860px) {
  /* minmax(0, 1fr): without it the row of tabs below (wider than a phone) stretched the whole page sideways */
  .cab { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cab-side { position: static; min-width: 0; padding: 14px; }
  /* on a phone every section is in sight at once: the buttons wrap into rows instead of a strip that scrolls sideways */
  .cab-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .cab-nav button { white-space: nowrap; padding: 8px 12px; font-size: 14px; background: var(--surface-soft); border-radius: 999px; gap: 6px; }
  .cab-nav hr { display: none; }
  .cab-main .card { padding: 18px; }
  .cab-main h2 { font-size: 21px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  /* a field with its button: the button goes under the field instead of squeezing it */
  .cab-main .row { flex-wrap: wrap; }
  .cab-main .row > .input, .cab-main .row > input { flex: 1 1 100%; min-width: 0; }
  .cab-main .row > .btn { flex: 1 1 auto; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .input { flex: 1 1 100%; min-width: 0; }
  .list-item { flex-wrap: wrap; }
  .list-item .row-actions { flex: 1 1 100%; justify-content: flex-start; }
}

/* ---------- Currency converter (cabinet) ---------- */
.conv { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 6px; }
.conv .btn { padding: 10px 12px; }
.conv-result { font-size: 22px; font-weight: 800; margin: 14px 0 4px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .conv { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .conv .input[type=number] { grid-column: 1 / -1; } }

/* ---------- Admin panel (admin.html) ---------- */
.adm-head h2 { margin: 0 0 4px; }
.adm-head .hint { margin: 0; font-size: 14px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.adm-tile { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
.adm-tile:hover:not(:disabled) { border-color: rgba(60,200,213,.5); transform: translateY(-2px); }
.adm-tile:disabled { cursor: default; }
.adm-tile b { font-size: 28px; line-height: 1.1; }
.adm-tile span { color: var(--ink-soft); font-size: 13.5px; }
.adm-tile small { color: var(--teal); font-size: 12.5px; }
.adm-tile.warn b { color: var(--orange); }
.adm-list { margin: 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; font-size: 14.5px; }
.adm-gap { margin-top: 14px; }
.adm-row { width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.adm-row:hover { border-color: rgba(60,200,213,.45); }
.adm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adm-badges .status-pill { font-size: 12px; padding: 3px 10px; }
.adm-detail { display: grid; gap: 18px; }
.adm-detail:empty { display: none; }
.adm-user-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.adm-user-top .avatar { width: 56px; height: 56px; }
.adm-user-top .grow { min-width: 0; }
.adm-user-top h3 { margin: 0 0 2px; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adm-tx { margin-top: 14px; display: grid; gap: 2px; font-size: 13.5px; }
.adm-tx-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.adm-tx-row b.neg { color: var(--err); }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.adm-pills { justify-content: flex-start; margin: 0; }
.adm-pills .pill { padding: 7px 14px; font-size: 13.5px; }
.adm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.adm-media-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.adm-media-card.hidden-item { border-color: rgba(255,138,61,.45); }
.adm-media-card.hidden-item .adm-thumb img { opacity: .45; }
.adm-media-card .adm-thumb { width: 100%; height: 170px; border-radius: 0; }
.adm-media-info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.adm-media-info .title { font-weight: 700; }
.adm-media-info .sub { color: var(--ink-soft); font-size: 12.5px; }
.adm-thumb { position: relative; display: block; width: 64px; height: 64px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-soft); }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.adm-text { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); margin: 4px 0 0; }
.adm-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); }
.adm-reasons { font-size: 12.5px; color: var(--orange); }
.adm-cards { display: grid; gap: 14px; }
.adm-cards .card h3 { margin: 8px 0 2px; font-size: 17px; }
.adm-cards .sub { font-size: 13px; }
.adm-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.adm-quote { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--surface-soft); border-radius: 0 10px 10px 0; font-size: 14px; display: grid; gap: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-log { display: grid; font-size: 13.5px; }
.adm-log-row { display: grid; grid-template-columns: 150px 130px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.adm-log-row:first-child { border-top: none; }
.adm-promos { display: grid; gap: 8px; }
.adm-promo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--surface-soft); border-radius: 12px; flex-wrap: wrap; }
.adm-promo-row code { font-size: 13.5px; overflow-wrap: anywhere; }
.adm-more { justify-self: center; grid-column: 1 / -1; margin: 6px auto 0; display: block; }
@media (max-width: 640px) {
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-media { grid-template-columns: minmax(0, 1fr); }
  .adm-tx-row, .adm-log-row { grid-template-columns: 1fr; gap: 2px; }
  .adm-actions .btn { flex: 1 1 auto; }
}

/* ---------- Chat ---------- */
.chat-page { padding: calc(var(--nav-h) + 18px) 16px 18px; height: 100vh; height: 100dvh; display: flex; }
.chat-shell { flex: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 320px 1fr; gap: 16px; min-height: 0; width: 100%; }
.chat-side, .chat-main { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat-side-head { padding: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.chat-side-head h2 { font-size: 18px; text-align: left; margin: 0; }
.chat-rooms { overflow-y: auto; padding: 8px; display: grid; gap: 4px; align-content: start; flex: 1; }
.room-item { margin: 0; width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--ink); font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.room-item:hover { background: var(--surface-soft); }
.room-item.active { background: rgba(60,200,213,.12); border-color: rgba(60,200,213,.35); }
.room-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: none; color: #0b1420; background: var(--grad); }
.room-icon.global { background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-size: 19px; }
.room-item .grow { flex: 1; min-width: 0; }
.room-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.room-item .sub { color: var(--ink-soft); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-section { color: var(--ink-soft); font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 12px 12px 4px; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head .grow { flex: 1; min-width: 0; }
.chat-head .title { font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .sub { color: var(--ink-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-back { display: none; }
.chat-filter { display: flex; gap: 6px; padding: 10px 16px 0; }
.chat-filter .pill { padding: 6px 14px; font-size: 13px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; scroll-behavior: auto; }
.msg-row { display: flex; gap: 10px; align-items: flex-end; max-width: 82%; animation: msgIn .25s ease both; }
.msg-row.me { align-self: flex-end; flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 9px 13px; min-width: 0; overflow-wrap: anywhere; }
.msg-row.me .bubble { background: linear-gradient(135deg, #1f6fb8, var(--blue)); border-color: transparent; border-radius: 16px 16px 6px 16px; color: #fff; }
.bubble .who { font-size: 12.5px; font-weight: 700; color: var(--teal); margin-bottom: 2px; }
.msg-row.me .bubble .who { display: none; }
.bubble .text { white-space: pre-wrap; font-size: 14.5px; }
.bubble .time { font-size: 11px; color: var(--ink-soft); margin-top: 3px; text-align: right; }
.msg-row.me .bubble .time { color: rgba(255,255,255,.75); }
.bubble img, .bubble video { max-width: 280px; max-height: 300px; border-radius: 10px; margin: 4px 0; cursor: zoom-in; background: #000; }
.bubble video { cursor: default; }
.day-sep { align-self: center; color: var(--ink-soft); font-size: 12px; background: rgba(255,255,255,.05); padding: 3px 12px; border-radius: 999px; margin: 6px 0; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-soft); padding: 30px; max-width: 360px; }
.chat-empty .icon { font-size: 40px; margin-bottom: 8px; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 44px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; }
.composer textarea:focus { outline: none; border-color: var(--teal); }
.composer .icon-btn { height: 44px; width: 44px; }
.send-btn { background: var(--orange); border-color: var(--orange); color: #1a0e02; }
.send-btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.chat-gate { margin: auto; max-width: 520px; text-align: center; padding: 36px 20px; }
.chat-gate .icon { font-size: 52px; margin-bottom: 10px; }
.chat-gate h2 { margin-bottom: 8px; }
.chat-gate p { color: var(--ink-soft); margin: 0 0 22px; }
.mine-actions { display: flex; gap: 6px; }
/* private conversations in the list and at the top */
.avatar.room-av { width: 40px; height: 40px; font-size: 16px; }
.room-item .unread { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: #1a0e02; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.head-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px; margin: -4px; border-radius: 12px; color: inherit; font: inherit; text-align: left; cursor: default; }
.head-who:not(:disabled) { cursor: pointer; }
.head-who:not(:disabled):hover, .head-who:focus-visible { background: rgba(255,255,255,.05); outline: none; }
.head-who .title, .head-who .sub { display: block; }
/* names and avatars that open a person's menu */
.msg-row .clickable { cursor: pointer; }
.msg-row .avatar.clickable:hover, .msg-row .avatar.clickable:focus-visible { box-shadow: 0 0 0 2px var(--teal); outline: none; }
.bubble .who.clickable:hover, .bubble .who.clickable:focus-visible { text-decoration: underline; outline: none; }
.msg-row.followed .bubble { border-color: rgba(60,200,213,.5); box-shadow: inset 3px 0 0 var(--teal); }
.bubble audio { display: block; width: 260px; max-width: 100%; margin: 4px 0; }
/* a person's menu */
.user-menu { max-width: 420px; padding: 22px; }
.um-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.um-head .avatar { width: 60px; height: 60px; font-size: 24px; }
.um-head .grow { flex: 1; min-width: 0; }
.um-head h3 { margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-rating { color: var(--ink-soft); font-size: 13px; }
.um-close { flex: none; align-self: flex-start; }
.um-status { background: rgba(60,200,213,.1); border: 1px solid rgba(60,200,213,.35); border-radius: 12px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 10px; }
.um-status.warn { background: rgba(255,107,107,.1); border-color: rgba(255,107,107,.35); }
.um-actions { display: grid; gap: 6px; }
.um-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-soft); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.um-item:hover:not(:disabled), .um-item:focus-visible { border-color: rgba(60,200,213,.5); background: rgba(60,200,213,.1); outline: none; }
.um-item:disabled { opacity: .55; cursor: progress; }
.um-item .um-ico { width: 22px; text-align: center; flex: none; }
.um-item.primary { background: linear-gradient(135deg, #1f6fb8, var(--blue)); border-color: transparent; color: #fff; }
.um-item.quiet { background: none; font-weight: 500; color: var(--ink-soft); }
.um-item.danger { background: none; font-weight: 500; color: var(--err); border-color: rgba(255,107,107,.3); }
.um-hint { color: var(--ink-soft); font-size: 12px; padding: 0 4px 4px; }
@media (max-width: 860px) {
  .chat-page { padding: calc(var(--nav-h) + 8px) 8px 8px; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-shell.in-room .chat-side { display: none; }
  .chat-shell:not(.in-room) .chat-main { display: none; }
  .chat-back { display: inline-flex; }
  .msg-row { max-width: 92%; }
  .bubble img, .bubble video { max-width: 220px; }
}

/* small screens: generic */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .page-head { padding: calc(var(--nav-h) + 44px) 16px 48px; }
  .card { padding: 22px; }
  .btn { padding: 12px 22px; }
}

/* The payment service tiles (only Robokassa is used now, so the choice is not shown) */
.pay-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pay-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s, transform .1s; }
.pay-choice b { font-size: 15px; }
.pay-choice span { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
@media (hover: hover) { .pay-choice:hover { border-color: var(--teal); } }
.pay-choice:active { transform: scale(.98); }
.pay-choice.on { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(60, 200, 213, .18); }
.pay-choice:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (max-width: 460px) { .pay-choices { grid-template-columns: 1fr; } }
.adm-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }

/* Download of the Android app (APK) — app.html, see apkBlock() in site.js */
.btn-lg { padding: 16px 30px; font-size: 17px; }
.apk-block { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 30px auto 0; scroll-margin-top: 90px; }
.apk-block[hidden] { display: none; }
.apk-meta { color: var(--ink-soft); font-size: 14px; }
.apk-note { color: var(--ink-soft); font-size: 14px; max-width: 460px; margin: 0; }
.apk-qr { display: flex; align-items: center; gap: 16px; max-width: 460px; padding: 12px 18px 12px 12px; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; }
.apk-qr img { width: 120px; height: 120px; flex: none; border-radius: 10px; background: #fff; }
.apk-qr span { color: var(--ink-soft); font-size: 14px; }
.apk-how { width: 100%; max-width: 520px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.apk-how summary { cursor: pointer; padding: 12px 16px; font-weight: 700; }
.apk-how ol { margin: 0 16px 10px 36px; padding: 0; color: var(--ink-soft); font-size: 14.5px; }
.apk-how li { margin: 6px 0; }
.apk-sha { margin: 0 16px 14px; font-size: 12px; color: var(--ink-soft); overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 520px) {
  .btn-lg { width: 100%; padding: 15px 18px; font-size: 16px; }
  .apk-qr { display: none; }
}

/* RuStore: the official badge (the RuStore logo) and a download button side by side */
.rustore { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.rustore-badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease, box-shadow .15s ease; }
.rustore-badge:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,119,255,.28); }
.rustore-badge:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.rustore-badge img { display: block; width: 188px; height: auto; }
.footer .rustore-badge { margin-top: 14px; }
.footer .rustore-badge img { width: 150px; }
/* Phones: the badge alone, small, one compact row — the orange "Скачать в RuStore" button repeats the same link, so it is hidden
   there (the badge is the link, with the same analytics goal); the footer badge gets smaller too. */
@media (max-width: 640px) {
  .rustore { gap: 10px; margin-top: 14px; }
  .rustore .btn { display: none; }
  .rustore-badge img { width: 132px; }
  .footer .rustore-badge { margin-top: 10px; }
  .footer .rustore-badge img { width: 116px; }
}

/* =====================================================================================================================
   The web app (PWA): the board, the contract, the call, the iPhone page, the app's tab bar and safe areas.
   ===================================================================================================================== */
.app-main { padding: calc(var(--nav-h) + 22px) 0 56px; min-height: 70vh; }
.app-container { max-width: 980px; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.app-title { font-size: clamp(24px, 4vw, 32px); margin: 0 0 4px; letter-spacing: -.3px; }
.app-lead { color: var(--ink-soft); margin: 0; font-size: 15px; }
.app-head-actions { display: flex; gap: 8px; flex: none; }
.app-back { display: inline-block; color: var(--teal); text-decoration: none; font-weight: 700; font-size: 14.5px; margin: 0 0 12px; }
.app-sub { font-size: 16px; margin: 18px 0 10px; }
.app-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.app-row.full { width: 100%; }
.app-row.spread { justify-content: space-between; margin-top: 0; }
.app-row.center { justify-content: center; }
.app-pills { justify-content: flex-start; margin-bottom: 14px; }
.app-pills.left { margin: 8px 0 4px; }
.app-search { margin-bottom: 18px; }
.app-empty { text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }
.app-empty b { color: var(--ink); display: block; margin-bottom: 4px; }
.app-banner { margin-bottom: 14px; border-left: 4px solid var(--teal); }
.app-banner b { display: block; margin-bottom: 4px; font-size: 16px; }
.app-banner p { white-space: pre-line; color: var(--ink); opacity: .88; }
.app-banner.info { border-left-color: var(--blue); }
.app-banner.good { border-left-color: var(--ok); background: linear-gradient(0deg, rgba(53,196,140,.07), rgba(53,196,140,.07)), var(--surface); }
.app-banner.warn { border-left-color: var(--orange); background: linear-gradient(0deg, rgba(255,138,61,.07), rgba(255,138,61,.07)), var(--surface); }
.app-banner.bad { border-left-color: var(--err); background: linear-gradient(0deg, rgba(255,107,107,.08), rgba(255,107,107,.08)), var(--surface); }
.app-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin: 8px 0 4px; }
.app-bar span { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .3s ease; }
.app-progress { height: 3px; overflow: hidden; border-radius: 2px; margin: 10px 0; background: rgba(255,255,255,.06); }
.app-progress span { display: block; width: 35%; height: 100%; background: var(--teal); animation: appSlide 1.1s ease-in-out infinite; }
@keyframes appSlide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.app-lb-extra { position: relative; z-index: 3; padding: 12px 0 calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; }
.app-lb-note { background: rgba(0,0,0,.55); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.mt-8 { margin-top: 8px; }
.hint.err, .dl-warn { color: var(--err); }
.status-pill { background: rgba(60,200,213,.14); color: var(--teal); }
.status-pill.muted { background: rgba(255,255,255,.07); color: var(--ink-soft); }
.badge-num { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #1a0e02; font-size: 12px; font-weight: 800; }
a.list-item { text-decoration: none; color: inherit; transition: border-color .2s; }
a.list-item:hover { border-color: var(--teal); }

/* ---------- the board ---------- */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bd-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.bd-card:hover { transform: translateY(-2px); border-color: rgba(60,200,213,.45); }
.bd-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #18304f, #13223a 60%, #2a2116); display: flex; align-items: center; justify-content: center; }
.bd-img img { width: 100%; height: 100%; object-fit: cover; }
.bd-ph { font-size: 38px; opacity: .55; }
.bd-kind, .bd-new { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.bd-kind { left: 10px; background: var(--teal); color: #04202a; }
.bd-new { right: 10px; background: var(--orange); color: #1a0e02; }
.bd-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.bd-title { font-weight: 800; font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd-place { color: var(--ink-soft); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-place.big { font-size: 15.5px; white-space: normal; color: var(--ink); margin-bottom: 4px; }
.bd-meta { font-size: 13px; color: var(--teal); }
.bd-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 8px; }
.bd-price { font-weight: 800; font-size: 17px; color: var(--orange); white-space: nowrap; }
.bd-author { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--ink-soft); min-width: 0; text-align: right; }
.bd-author span:first-child { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.bd-detail { margin-bottom: 14px; }
.bd-pics { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px -4px 14px; padding: 4px; }
.bd-pic { flex: 0 0 78%; max-width: 420px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; overflow: hidden; scroll-snap-align: start; background: #000; cursor: zoom-in; }
.bd-pic img { width: 100%; height: 100%; object-fit: cover; }
.bd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-h1 { font-size: clamp(22px, 4vw, 30px); margin: 10px 0 6px; line-height: 1.25; overflow-wrap: anywhere; }
.bd-desc { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 16px; color: var(--ink); }
.bd-detail .kv { margin-top: 6px; }
.bd-author-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.bd-actions { margin-bottom: 14px; }
.bd-actions p { margin: 0 0 12px; }
.bd-thread { margin-top: 8px; }
.bd-go { color: var(--ink-soft); font-size: 22px; }
.bd-form .row select { width: 110px; flex: none; }
.bd-form-pics { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.bd-form-pic { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #000; }
.bd-form-pic img { width: 100%; height: 100%; object-fit: cover; }
.bd-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; cursor: pointer; line-height: 26px; padding: 0; }

/* ---------- the contract ---------- */
.dl .card { margin-bottom: 14px; }
.dl-order { color: var(--teal); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.dl-price { font-weight: 800; color: var(--orange); font-size: 17px; }
.dl-doc { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-soft); max-height: 70vh; overflow: auto; }
.dl-text-toggle { margin: 6px 0 12px; }
.dl-pay h3, .dl-result h3, .dl-review h3 { margin: 0 0 6px; font-size: 17.5px; }
.dl-paid { display: block; margin-top: 10px; }
.dl-due { margin: 14px 0 8px; font-size: 16px; }
.dl-sub { margin: 18px 0 6px; font-size: 14px; color: var(--ink-soft); font-weight: 700; }
.dl-method { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 8px 0; }
.dl-value { display: block; font-size: 17px; letter-spacing: .3px; overflow-wrap: anywhere; }
.dl-mark { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; background: var(--surface-soft); border-radius: 12px; padding: 12px; margin: 8px 0; }
.dl-mark .grow { flex: 1; min-width: 0; }
.dl-mark-st { font-size: 13px; font-weight: 700; }
.dl-mark-st.ok { color: var(--ok); } .dl-mark-st.err { color: var(--err); } .dl-mark-st.wait { color: var(--orange); }
.dl-receipt { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; }
.dl-receipt img { width: 100%; height: 100%; object-fit: cover; }
.dl-method-edit { background: var(--surface-soft); border-radius: 12px; padding: 12px; margin: 10px 0; }
.dl-methods select { margin-top: 10px; }
.dl-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 4px; }
.dl-tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dl-tile img { width: 100%; height: 100%; object-fit: cover; }
.dl-tile-note { position: absolute; inset: auto 4px 4px; font-size: 11px; text-align: center; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 4px; }
.dl-tile-video { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; border-radius: 6px; padding: 1px 6px; }
.dl-event { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl-event:last-child { border-bottom: 0; }
.dl-history .btn { margin-bottom: 6px; }
.dl-stars { color: var(--orange); font-size: 20px; letter-spacing: 2px; }
.dl-star-pick { display: flex; gap: 4px; margin: 6px 0 10px; }
.dl-star-pick button { background: none; border: 0; font-size: 30px; color: var(--ink-soft); cursor: pointer; padding: 0 2px; line-height: 1; }
.dl-star-pick button.on { color: var(--orange); }
.dl-actions { margin: 6px 0 4px; }
.dl-actions .check { margin: 0 0 12px; }
.dl-dispute { color: var(--err); }
.dl-cur { font-weight: 700; color: var(--ink-soft); padding: 0 6px; }

/* ---------- the call ---------- */
body.call-page { background: #05090f; overflow: hidden; }
.call { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(circle at 50% 30%, #17304e, #05090f 70%); }
.call-remote { position: absolute; inset: 0; }
.call-remote video { object-fit: cover !important; }
.call-local { position: absolute; z-index: 3; right: 14px; top: calc(14px + env(safe-area-inset-top, 0px)); width: 110px; height: 150px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.5); background: #000; }
.call-top { position: relative; z-index: 2; text-align: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 20px 0; transition: opacity .3s; }
.has-remote .call-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); text-align: left; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.has-remote .call-avatar { display: none; }
.call-avatar { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; color: #0b1420; animation: callPulse 1.8s ease-in-out infinite; }
.call-over .call-avatar, .has-remote .call-avatar { animation: none; }
@keyframes callPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(60,200,213,.45); } 50% { box-shadow: 0 0 0 22px rgba(60,200,213,0); } }
.call-name { font-size: 24px; font-weight: 800; }
.call-status { color: rgba(255,255,255,.75); margin-top: 4px; font-variant-numeric: tabular-nums; }
.call-note { margin: 14px auto 0; max-width: 340px; font-size: 14px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.35); padding: 8px 12px; border-radius: 10px; }
.call-sound { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.call-controls { position: relative; z-index: 2; display: flex; justify-content: center; gap: 18px; padding: 0 20px calc(34px + env(safe-area-inset-bottom, 0px)); }
.call-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.call-btn[aria-pressed="true"] { background: #fff; color: #0b1420; }
.call-btn.end { background: #e5484d; font-weight: 800; }
.call-over .call-controls { opacity: .4; pointer-events: none; }

/* ---------- incoming call, notes ---------- */
.ring-box { text-align: center; }
.ring-avatar { width: 88px; height: 88px; border-radius: 50%; margin: 4px auto 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; color: #0b1420; overflow: hidden; animation: callPulse 1.8s ease-in-out infinite; }
.ring-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ring-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.ring-actions .btn { flex: 1; max-width: 160px; }
.ios-hint { position: fixed; z-index: 150; left: 12px; right: 12px; margin: 0 auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid rgba(60,200,213,.35); border-radius: 16px; padding: 10px 10px 10px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: popIn .25s ease both; font-size: 14px; }
.ios-hint img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.ios-hint span { flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .ios-hint { display: grid; grid-template-columns: 36px 1fr 36px; column-gap: 10px; row-gap: 8px; align-items: center; }
  .ios-hint img { grid-column: 1; grid-row: 1; }
  .ios-hint span { grid-column: 2; grid-row: 1; line-height: 1.35; }
  .ios-hint .icon-btn { grid-column: 3; grid-row: 1; align-self: start; }
  .ios-hint .btn { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
}
.push-settings { margin-top: 14px; }
.push-settings h3 { margin: 0 0 6px; }

/* ---------- the private chat: calls, the order ---------- */
.dm-actions { display: flex; gap: 4px; }
.dm-actions a { text-decoration: none; }
.dm-order { display: flex; gap: 18px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 14px; background: rgba(60,200,213,.05); }
.dm-order a { color: var(--teal); text-decoration: none; font-weight: 600; }

/* ---------- iphone.html ---------- */
.ios-head .ios-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 14px; position: relative; z-index: 1; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.ios-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.apk-qr.ios-qr { max-width: none; margin: 0 0 14px; padding: 14px 22px 14px 14px; }
.ios-qr span { font-size: 15px; }
.ios-step { display: flex; gap: 14px; align-items: flex-start; }
.ios-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #04202a; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ios-step-body { flex: 1; min-width: 0; }
.ios-step-body h3 { margin: 4px 0 4px; font-size: 17px; }
.ios-mock { margin-top: 12px; background: #f2f2f7; color: #111; border-radius: 14px; padding: 12px; max-width: 340px; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
.ios-url { display: block; background: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; font-size: 14px; color: #333; }
.ios-bar { display: flex; justify-content: space-around; align-items: center; color: #0a84ff; font-size: 22px; }
.ios-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; }
.ios-btn.hl { background: rgba(10,132,255,.14); box-shadow: 0 0 0 2px #0a84ff; }
.ios-menu { padding: 6px; }
.ios-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: #fff; font-size: 15px; }
.ios-row:first-child { border-radius: 10px 10px 0 0; } .ios-row:last-child { border-radius: 0 0 10px 10px; }
.ios-row + .ios-row { border-top: 1px solid #e5e5ea; }
.ios-row.hl { background: #e8f2ff; font-weight: 600; box-shadow: inset 0 0 0 2px #0a84ff; border-radius: 10px; }
.ios-ic { color: #333; display: inline-flex; }
.ios-home { background: linear-gradient(160deg, #4a6fa5, #2d3f6a); display: flex; padding: 18px; }
.ios-app { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 12px; }
.ios-app img { width: 62px; height: 62px; border-radius: 14px; }
.ios-what { margin-top: 16px; }
.ios-what ul { margin: 6px 0 0; }
.ios-cta { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; max-width: 460px; margin: 22px auto 0; padding: 12px 14px; text-align: left; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid rgba(60,200,213,.35); border-radius: 16px; transition: border-color .2s, transform .2s; }
.ios-cta:hover { transform: translateY(-2px); border-color: var(--teal); }
.ios-cta img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.ios-cta > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; color: var(--ink-soft); }
.ios-cta b { color: var(--ink); font-size: 15px; }
.ios-cta-go { font-size: 26px; color: var(--teal); }

/* ---------- running as an app (opened from the home screen) ---------- */
html.ps-app { --nav-h: calc(60px + env(safe-area-inset-top, 0px)); }
html.ps-app .nav { padding-top: env(safe-area-inset-top, 0px); }
html.ps-app .footer { display: none; }
html.ps-app body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); overscroll-behavior-y: none; }
html.ps-app body.call-page { padding-bottom: 0; }
html.ps-app .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
html.ps-app .cookie-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.app-tabs { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(11,20,32,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.app-tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--ink-soft); font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.app-tabs a .ico { font-size: 21px; line-height: 1.1; filter: grayscale(.6); opacity: .8; }
.app-tabs a.active { color: var(--teal); }
.app-tabs a.active .ico { filter: none; opacity: 1; }
.app-tabs .badge-num { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; font-size: 11px; }
html.ps-app .chat-page { padding-bottom: 0; }

@media (max-width: 640px) {
  .app-head { flex-direction: column; }
  .app-head-actions { width: 100%; }
  .app-head-actions .btn { flex: 1; }
  .bd-grid { grid-template-columns: 1fr; }
  .bd-pic { flex-basis: 88%; }
  .call-local { width: 92px; height: 128px; }
  .dm-order { gap: 14px; padding: 8px 12px; }
}
@media (max-width: 640px) {
  .app-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .app-pills::-webkit-scrollbar { display: none; }
  .app-pills .pill { flex: none; }
}
