/* PIRS v2 (11.11): iOS and App Store for everyone, over one sea. Loaded after site.css on every page.
   Research and decisions: pirs-host/research/17-design-ios-v2.md. Glass only for the bar, the tab bar, the buy bar and
   sheets; content sits on calm dark cards; one accent (PIRS orange) for the main action; no entrance animations. */

:root {
  --sea-0: #0e2425;                 /* the hero's last row: the water under the harbour */
  --sea-1: #0a1c22;
  --sea-2: #071420;
  --sea-3: #040a13;                 /* the abyss under the footer */
  --card: rgba(18, 24, 36, 0.78);   /* content card over the sea (secondarySystemGroupedBackground) */
  --card-solid: #121824;
  --card-2: rgba(255, 255, 255, 0.055);   /* rows and cells inside a card */
  --card-3: rgba(255, 255, 255, 0.09);    /* hover, the chosen cell */
  --line: rgba(255, 255, 255, 0.075);
  --t1: #f5f7fb;
  --t2: rgba(235, 240, 250, 0.74);
  --t3: rgba(235, 240, 250, 0.52);
  --gray: rgba(120, 120, 128, 0.28);       /* the gray button */
  --gray-hi: rgba(120, 120, 128, 0.38);
  --tint: rgba(255, 106, 43, 0.16);       /* the tinted button */
  --tint-ink: #ff9f70;
  --green: #30d158;
  --r-card: 28px; --r-mid: 20px; --r-row: 14px;
  --sec-gap: clamp(72px, 9vw, 128px);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- the sea: one world behind every page ---------- */
.wall, .wall:is(*) { background: linear-gradient(180deg, #121a3e 0, #18234a 320px, var(--sea-0) 900px, #08141a 1250px, #05080d 1750px, #04060a 100%); }
@media (max-aspect-ratio: 10/11) { .wall, .wall:is(*) { background: linear-gradient(180deg, #121a3e 0, var(--sea-0) 820px, #07111a 1200px, #04060a 1700px, #04060a 100%); } }
.wall::before { display: none; }
/* the sea spans the whole page, not the screen: sky behind the first screen, deeper water further down (11.11 owner:
   «фон после первого экрана обыгран не идеально») */
body { position: relative; min-height: 100vh; }
.wall { position: absolute; top: 0; left: 0; right: 0; bottom: 0; min-height: 100vh; }
.wall::after { display: none; }
/* light on the water under the harbour: our own caustics, tinted teal, only in the shallows right under the first screen */
.v2 #nothing::before { content: ""; position: absolute; left: 0; right: 0; top: -260px; height: 1500px; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: screen;
  background: url("art/caustics.webp") 50% 0 / 900px repeat; filter: blur(1.5px) sepia(1) hue-rotate(125deg) saturate(2) brightness(0.9);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0, 0, 0, 0.5) 48%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0, 0, 0, 0.5) 48%, transparent 100%); }
.v2 .sec { scroll-margin-top: 76px; }

/* ---------- type ---------- */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tint-ink); margin: 0 0 10px; }
.h-sec { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin: 0; color: var(--t1); text-wrap: balance; }
.h-sec span { color: var(--t3); }
.h-sec em, .panel-head h2 em { font-style: normal; color: #ffb38a; }   /* two-tone heading: the first word warm (mitelis.net) */
.sub-sec { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: var(--t2); margin: 14px 0 0; max-width: 46ch; text-wrap: pretty; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 clamp(24px, 3vw, 40px); }
.sec-head .more { flex: none; white-space: nowrap; }
.more { color: var(--link); font-weight: 600; font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- buttons: filled, tinted, gray, plain × large, medium, small (HIG) ---------- */
.b { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 calc(var(--h) * 0.5);
  border-radius: 999px; border: 0; font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: transform 0.18s var(--ease), filter 0.18s var(--ease), background-color 0.18s var(--ease); -webkit-tap-highlight-color: transparent; }
.b:active { transform: scale(0.97); filter: brightness(0.92); }
.b:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.b-m { --h: 40px; font-size: 15px; }
.b-s { --h: 30px; font-size: 14px; font-weight: 700; padding: 0 15px; }
.b-fill { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(255, 106, 43, 0.75); }
.b-fill:hover { background: #ff7a40; }
.b-tint { background: var(--tint); color: var(--tint-ink); }
.b-tint:hover { background: rgba(255, 106, 43, 0.24); }
.b-gray { background: var(--gray); color: var(--t1); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.b-gray:hover { background: var(--gray-hi); }
.b-plain { background: none; color: var(--link); padding: 0 6px; }
.b-plain:hover { text-decoration: underline; text-underline-offset: 3px; }
.b img, .b svg { width: 20px; height: 20px; flex: none; }
.b-s img, .b-s svg { width: 16px; height: 16px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8); }
.v2 .sec { padding: calc(var(--sec-gap) / 2) 0; }
.v2 .sec:first-of-type { padding-top: 0; }

/* ---------- hero ---------- */
.v2 .hero { padding-top: clamp(96px, 12vh, 140px); }
.v2 .hero-copy h1 { font-size: clamp(42px, 6.6vw, 84px); letter-spacing: -0.035em; line-height: 0.98; font-weight: 700; }
.v2 .hero-copy h1 span { display: block; color: var(--t2); font-weight: 700; }
.v2 .hero-copy .lede { font-size: clamp(17px, 1.7vw, 22px); color: var(--t2); max-width: 46ch; margin-inline: auto; }
.v2 .hero-under { margin-top: clamp(8px, 2vw, 28px); }
.v2 .hero-copy .actions { gap: 12px; }
.v2 .hero-art img, .v2 .hero-art video { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; max-width: 980px; padding: 0; list-style: none; }
.strip li { text-align: center; padding: 6px 10px; position: relative; }
.strip li + li::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.strip b { display: block; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: var(--t1); }
.strip small { display: block; font-size: 13px; color: var(--t3); margin-top: 3px; }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } .strip li:nth-child(3)::before { display: none; } }

/* ---------- lineup (Apple «Explore the lineup») ---------- */
.lineup { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gut) 18px; margin: 0 calc(var(--gut) * -1); scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding-inline: var(--gut); }   /* 11.11 owner: a snapped card kept the gutter, not the screen edge */
.lineup::-webkit-scrollbar { display: none; }
.lu { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 22px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.lu-art { width: 132px; height: 132px; margin: 4px 0 20px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
.lu .tag { font-size: 12px; font-weight: 700; color: var(--tint-ink); letter-spacing: 0.02em; min-height: 16px; }
.lu h3 { font-size: 26px; letter-spacing: -0.02em; margin: 4px 0 6px; font-weight: 700; }
.lu p { font-size: 15px; color: var(--t2); margin: 0; line-height: 1.4; min-height: 42px; max-width: 26ch; }
.lu .from { font-size: 15px; color: var(--t1); font-weight: 600; margin: 16px 0 16px; }
.lu .acts { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.lu-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.lu-nav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--gray); color: var(--t1); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.lu-nav button:hover { background: var(--gray-hi); }
.lu-nav button:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 1240px) { .lineup { grid-auto-columns: calc((100% - 32px) / 3); padding-inline: 0; margin: 0; } }

/* ---------- configurator, restyled (site.js keeps its markup) ---------- */
.v2 #servers .panel { background: var(--card); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.v2 #servers .panel::before, .v2 #servers .panel::after { display: none; }

/* ---------- App Store lists: games and apps ---------- */
.store { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; padding: 10px 26px; }
.app-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; min-width: 0; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.app-row:nth-last-child(-n+3) { border-bottom: 0; }
.app-row img { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; background: #0c1018; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12); }
.app-row b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row small { display: block; font-size: 13px; color: var(--t3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-row .get { min-height: 30px; padding: 0 16px; border-radius: 999px; background: var(--gray); color: var(--link); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; }
.app-row:hover .get { background: var(--gray-hi); }
.store.store-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.store.store-4 .app-row { border-bottom: 0; }
@media (max-width: 1000px) { .store.store-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .store.store-4 .app-row:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 640px) { .store.store-4 { grid-template-columns: minmax(0, 1fr); } .store.store-4 .app-row:not(:last-child) { border-bottom: 1px solid var(--line); } }
@media (max-width: 1000px) { .store { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-row:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .app-row:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 640px) { .store { grid-template-columns: minmax(0, 1fr); padding: 4px 18px; } .app-row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); } .app-row:last-child { border-bottom: 0; } }
.store-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 4px 0; padding: 0; list-style: none; color: var(--t3); font-size: 14px; }
.store-facts b { color: var(--t1); font-weight: 600; }

/* ---------- compare ---------- */
.cmp-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.segs { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(118, 118, 128, 0.24); border-radius: 999px; padding: 3px; gap: 2px; }
.segs button { min-height: 34px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--t1); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.segs button { position: relative; z-index: 1; }
.segs button[aria-checked="true"] { color: var(--t1); }
.cmp { overflow-x: auto; padding: 6px 0; }
.cmp table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.cmp th { color: var(--t3); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.cmp td:first-child { font-weight: 700; font-size: 16px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.p { font-weight: 700; font-size: 17px; }
.cmp td.p small { color: var(--t3); font-weight: 600; font-size: 13px; }
.cmp td:last-child { text-align: right; }
.cmp tr.out td:not(:last-child) { opacity: 0.45; }
.cmp tr.go { cursor: pointer; }
.cmp tr.go:hover td { background: var(--card-2); }
.cmp td { padding-block: 12px; }
.cmp-sum, .tbl-sum { display: none; }
.v2 .cmp .cmp-note { padding: 6px 20px 8px; color: var(--t3); font-size: 13px; line-height: 1.4; margin: 0; }
/* 13.11 a phone: a plan is a list row (name and price, what is inside under the name), nothing scrolls sideways */
@media (max-width: 640px) {
  .cmp { overflow: visible; padding: 0; }
  .cmp table { min-width: 0; display: block; }
  .cmp thead, .cmp td.s { display: none; }
  .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .cmp tr:last-child { border-bottom: 0; }
  .cmp td { display: block; padding: 0; border: 0; }
  .cmp td:first-child { white-space: normal; font-size: 17px; }
  .cmp-sum, .lp .tbl-sum { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 500; color: var(--t2); line-height: 1.4; overflow: hidden; }
  /* the parts wrap whole; the dot before a part that starts a line is cut off by the box */
  .cmp-sum span, .tbl-sum span { display: flex; flex-wrap: wrap; margin-left: -13px; }
  .cmp-sum i, .tbl-sum i { position: relative; padding-left: 13px; font-style: normal; }   /* a part longer than the line wraps inside itself */
  .cmp-sum i::before, .tbl-sum i::before { content: ""; position: absolute; left: 5px; top: 0.7em; width: 3px; height: 3px; margin-top: -1px; border-radius: 50%; background: var(--t3); }
  .cmp tr.go td:last-child .b { min-height: 0; width: 9px; height: 28px; padding: 0; gap: 0; font-size: 0; background: none; }
  .cmp tr.go td:last-child .b::after { content: ""; flex: none; width: 9px; height: 15px; background: var(--t3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 15'%3E%3Cpath d='M1.5 1.5l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 15'%3E%3Cpath d='M1.5 1.5l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .cmp tr.go:active { background: var(--card-2); }
  .cmp tr.go:hover td { background: none; }
  .cmp tr.out { grid-template-columns: minmax(0, 1fr) auto; }
  .cmp tr.out td:last-child { grid-column: 1 / -1; text-align: left; margin-top: 10px; }
  .v2 .cmp .cmp-note { padding: 10px 14px 12px; }
}
/* the lineup: the whole card is the button (the link stretched over it), the button itself at a finger's size */
.lu { position: relative; cursor: pointer; transition: background-color 0.18s var(--ease); }
.lu:hover { background: rgba(26, 33, 48, 0.86); }
.lu .lu-go { --h: 44px; min-width: 132px; }
.lu .lu-go { position: static; }
.lu .lu-go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lu .acts .b-plain { z-index: 2; min-height: 44px; }
@media (hover: none) { .lu-nav { display: none; } }   /* phones swipe; the arrows are for a mouse */
.lu:hover .lu-go.b-fill { background: #ff7a40; }
/* no pointer light on the v2 buttons: they are not positioned, the glow landed elsewhere in the section */
.b { position: relative; }
.b[data-light]::before { display: none; }

/* ---------- API ---------- */
.api { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 16px; align-items: stretch; }
.api-copy { padding: 32px; display: flex; flex-direction: column; }
.api-copy img { width: 72px; height: 72px; margin-bottom: 18px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45)); }
.api-copy h3 { font-size: 30px; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.api-copy p { color: var(--t2); font-size: 16px; line-height: 1.5; margin: 12px 0 18px; }
.api-copy ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; color: var(--t2); }
.api-copy li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.api-copy .acts { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.code { background: #0a0e16; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.code-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code-top > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-top > i:nth-child(2) { background: #febc2e; } .code-top > i:nth-child(3) { background: #28c840; }
/* 11.11 the window dots rule caught the selection lens inside the language switch (an orange dot in its corner) */
.segs button:focus-visible { outline-offset: -3px; border-radius: 999px; }
.code-top .segs { margin-left: auto; }
.code-top .segs button { min-height: 28px; font-size: 13px; padding: 0 12px; }
.code pre { margin: 0; padding: 22px 22px 26px; font: 13.5px/1.65 var(--mono); color: #d6deeb; overflow-x: auto; flex: 1; }
.code .k { color: #ff9f70; } .code .s { color: #8bd5ca; } .code .c { color: #6b7894; } .code .f { color: #82aaff; }
@media (max-width: 900px) { .api { grid-template-columns: 1fr; } }

/* ---------- zig-zag rows: our 3D on one side, a short text on the other (cispay.app) ---------- */
.zz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.zz.flip > :first-child { order: 2; }
.zz-txt .h-sec { font-size: clamp(32px, 4vw, 50px); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 16px; color: var(--t2); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; transform: translateY(3px);
  background: rgba(48, 209, 88, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.6' fill='none' stroke='%2330d158' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 50% 50% / 14px no-repeat; }
.zz-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.cluster { position: relative; aspect-ratio: 1 / 0.82; max-width: 520px; width: 100%; justify-self: center; }
.cluster img { position: absolute; height: auto; filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.6)); }
.cluster .c-big { width: 54%; left: 8%; top: 17%; z-index: 2; }
.cluster .c-a { width: 29%; right: 3%; top: 0; z-index: 1; opacity: 0.8; filter: blur(2px) drop-shadow(0 30px 36px rgba(0, 0, 0, 0.6)); }   /* depth: the far tile out of focus (cispay.app) */
.cluster .c-b { width: 25%; right: 13%; bottom: 0; z-index: 3; }
.locs { display: grid; margin: 24px 0 22px; border-top: 1px solid var(--line); }
.loc { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.loc .flag { width: 30px; height: 21px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.loc .flag svg { width: 100%; height: 100%; display: block; }
.loc b { font-size: 16px; font-weight: 600; }
.loc small { display: block; font-size: 13px; color: var(--t3); margin-top: 2px; }
.loc .go { color: var(--t3); font-size: 22px; }
.loc:hover b { color: #fff; } .loc:hover .go { color: var(--t1); }
@media (max-width: 860px) { .zz { grid-template-columns: 1fr; } .zz.flip > :first-child { order: 0; } .cluster { max-width: 380px; } }

/* ---------- everything included ---------- */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 28px; }
.ft { display: flex; flex-direction: column; gap: 14px; }
.ft img { width: 60px; height: 60px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.5)); }
.ft h3 { font-size: 17px; margin: 0 0 4px; font-weight: 600; letter-spacing: -0.01em; }
.ft p { font-size: 15px; color: var(--t2); margin: 0; line-height: 1.4; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; gap: 20px; } .ft { flex-direction: row; align-items: center; } .ft img { width: 52px; height: 52px; } }
.v2 .dsearch-home { display: flex; align-items: center; gap: 12px; margin-top: clamp(36px, 5vw, 56px); padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); max-width: 680px; }
.v2 .dsearch-home img { width: 40px; height: 40px; flex: none; }
.v2 .dsearch-home input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; color: var(--t1); font: inherit; font-size: 17px; }
/* 11.11 owner's phone: the old fixed height (site.css 64/56 px) let the wrapped button hang out of the card, and iOS drew
   the search field its own way (inset, magnifier): the card grows with its rows, the field is a plain one */
.v2 .dsearch-home { height: auto; }
.v2 .dsearch-home input { height: auto; padding: 0; -webkit-appearance: none; appearance: none; border-radius: 0; }
.v2 .dsearch-home input::-webkit-search-decoration { -webkit-appearance: none; }
.v2 .dsearch-home input:focus { outline: none; }
.v2 .dsearch-home:focus-within { border-color: rgba(255, 255, 255, 0.22); }

/* ---------- FAQ ---------- */
.v2 .faq-v2 { display: block; padding: 4px 26px; }
/* 11.11 owner: «плашка в плашке»: the old list box inside the card goes, the rows sit on the card itself */
.v2 .faq-v2 .list { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.v2 .faq-v2 .qa summary { padding-inline: 0; }
.v2 .faq-v2 .qa summary:hover { background: none; color: #fff; }
.v2 .faq-v2 .qa p { padding-inline: 0; }
.fold-more { display: none; }
@media (max-width: 640px) {
  .fold5.folded > :nth-child(n+6), .fold4.folded > :nth-child(n+5) { display: none; }
  .fold5.folded > :nth-child(5) { border-bottom: 0; }
  .fold-more { display: flex; width: 100%; margin-top: 12px; }
  .v2 .faq-v2 { padding: 2px 18px; }
}
.v2 .faq-v2 .qa summary { font-size: 17px; font-weight: 600; }

/* ---------- final call ---------- */
.cta { text-align: center; padding: clamp(24px, 4vw, 48px) 0; }
.cta h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.cta p { color: var(--t2); font-size: 18px; margin: 14px 0 28px; }
.cta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cmp-card { padding: 22px 6px 10px; }
.cmp-card .cmp-top { padding: 0 18px; }
/* 13.11 four kinds on a phone: each segment as wide as its word (equal columns ran 70px off the screen) */
@media (max-width: 560px) {
  .cmp-card .cmp-top { padding: 0 10px; gap: 10px; }
  .cmp-top .segs { display: grid; width: 100%; grid-auto-columns: auto; }
  .cmp-top .segs button { padding: 0 6px; font-size: 14px; }
}
@media (max-width: 350px) { .cmp-top .segs button { padding: 0 3px; font-size: 13px; } }

/* ---------- footer v2 ---------- */
.v2 .foot { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: 44px; }
.v2 .foot::before, .v2 .foot::after { display: none; }
.v2 .foot { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 1000px) { .v2 .foot { grid-template-columns: repeat(2, 1fr); } }

/* ---------- the top bar: attached to the top edge at rest, a floating glass capsule once the page moves (owner 11.11:
   «изначально как будто сверху подключена, а когда листаешь вниз отрывается с красивой эпл анимацией ликвидгласс»).
   me.js sets .off past the first few pixels; the spring carries width, corners and offset, a sheen crosses the glass. */
.v2 .bar { transition: top 0.6s var(--spring), width 0.6s var(--spring), height 0.6s var(--spring), border-radius 0.6s var(--spring),
  padding 0.6s var(--spring), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.v2 .bar:not(.off) { top: 0; width: 100%; height: 68px; border-radius: 0; padding: 0 max(var(--gut), calc((100% - 1180px) / 2));
  background: rgba(8, 12, 26, 0.42); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); }
.v2 .bar:not(.off)::after { opacity: 0; }
.v2 .bar::after { transition: opacity 0.35s var(--ease); }
.v2 .bar.solid:not(.off) { background: rgba(8, 12, 24, 0.82); }
.v2 .bar.off { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
.v2 .bar[data-light]::before { opacity: 0; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 190, 150, 0.1) 52%, transparent 66%) -120% 0 / 200% 100% no-repeat; }
.v2 .bar[data-light]:hover::before { opacity: 0; }
.v2 .bar.off[data-light]::before { animation: barsheen 0.9s var(--ease) 0.08s both; }
.v2 .bar.off { animation: barlift 0.6s var(--spring); }
@keyframes barlift { 0% { transform: translateX(-50%) scale(1, 1); } 35% { transform: translateX(-50%) scale(1.012, 1.08); } 100% { transform: translateX(-50%) scale(1, 1); } }
@keyframes barsheen { 0% { opacity: 0; background-position: -120% 0; } 30% { opacity: 1; } 100% { opacity: 0; background-position: 220% 0; } }
@media (max-width: 760px) { .v2 .bar:not(.off) { height: 60px; } .v2 .bar.off { top: 10px; width: calc(100% - 20px); } }
@media (prefers-reduced-motion: reduce) { .v2 .bar { transition: none; } .v2 .bar.off, .v2 .bar.off[data-light]::before { animation: none; } }

/* the scroll edge effect of Apple's glass bars: once the page moves, the content fades out under the floating bar
   (and above the phone's tab bar) instead of running hard into it (me.js sets html.edge) */
html.edge body::after { content: ""; position: fixed; z-index: 55; left: 0; right: 0; top: 0; height: 104px; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.78), rgba(4, 6, 12, 0.35) 55%, rgba(4, 6, 12, 0)); }
@media (max-width: 760px) { html.edge body::after { height: 84px; } }
/* HIG: a hit region of at least 44x44 for every button, the small ones too (the visible pill stays small) */
.b-s:not(.lu-go)::after { content: ""; position: absolute; inset: -7px -4px; }

/* the bar on mid-width windows: secondary links and the account name step aside before anything is cut */
@media (max-width: 1100px) { .bar .links a.wide { display: none; } }
@media (max-width: 960px) { .bar .signin.me .me-name, .bar .me-admin { display: none; } .bar .signin.me { padding: 0 5px; } }

/* HIG: a Clear button at the trailing end of a search field (the system one), tinted to the page */
.v2 .dsearch-home input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  background: rgba(235, 240, 250, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.5 3.5 5 5m0-5-5 5' stroke='%230b0f18' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* phone pass 11.11: a change log folds under «Что изменилось» (HIG progressive disclosure); every small link gets a
   finger-sized row: «Сравнить тарифы»-style links, the footer's, the contacts in a document's company block */
.doc .meta-log { margin-top: 10px; color: var(--t3); font-size: 15px; }
.doc .meta-log summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: var(--link); font-weight: 600; list-style: none; }
.doc .meta-log summary::-webkit-details-marker { display: none; }
.doc .meta-log summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--spring); }
.doc .meta-log[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.doc .meta-log p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--t3); }
.v2 .more { display: inline-flex; align-items: center; min-height: 44px; }
.doc .company dd a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) { .foot2 li a { display: flex; } }

/* ---------- documents and the API reference on the sea: a calm card, not glass (offer, rules, developers) ---------- */
.v2 .doc .glass { background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--r-card); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8); }
.v2 .doc .glass::before, .v2 .doc .glass::after { display: none; }
.v2 .doc .toc { background: var(--card-2); box-shadow: none; border-radius: var(--r-mid); }
.v2 .doc .toc-title { text-transform: none; letter-spacing: -0.01em; font-size: 17px; color: var(--t1); }
.v2 .doc .note { background: var(--card-2); box-shadow: none; border-radius: var(--r-mid); }
.dev-art { display: block; width: 96px; height: 96px; margin: 0 0 18px -6px; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45)); }
.doc .api-pre { margin: 14px 0 0; padding: 18px 20px; border-radius: var(--r-mid); background: #0a0e16; border: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc .api-pre code { padding: 0; background: none; border-radius: 0; font: 13.5px/1.65 var(--mono); color: #d6deeb; white-space: pre; overflow-wrap: normal; }
.doc .api-pre + .api-pre { margin-top: 10px; }
.doc .api-tbl td:nth-child(2) code { font-family: var(--mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.doc .api-tbl td:nth-child(4) { color: var(--t3); white-space: nowrap; }
.m { display: inline-block; min-width: 58px; padding: 3px 0; border-radius: 7px; text-align: center; font: 700 12px/1.4 var(--mono); letter-spacing: 0.02em; }
.m-get { background: rgba(48, 209, 88, 0.16); color: #63e083; }
.m-post { background: rgba(10, 132, 255, 0.18); color: #6cb6ff; }
.m-patch { background: rgba(255, 159, 10, 0.18); color: #ffc15a; }
.m-delete { background: rgba(255, 69, 58, 0.18); color: #ff8a80; }

/* ---------- the focus effect on cards (home.js, a mouse only): lean toward the pointer, the object closer, a soft light ---------- */
.lu { --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.55s var(--spring), background-color 0.18s var(--ease); }
.lu.lean { transition: transform 0.12s linear, background-color 0.18s var(--ease); }
.lu .lu-art { transform: translate3d(var(--px), var(--py), 0); transition: transform 0.55s var(--spring); }
.lu.lean .lu-art { transition: transform 0.12s linear; }
.lu::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.07), transparent 70%); }
.lu.lean::before { opacity: 1; }
.ft { position: relative; }
@media (prefers-reduced-motion: reduce) { .lu, .lu .lu-art { transform: none !important; transition: none; } }

/* ---------- one footer on every page (site-tools/footer.py): Apple's footer, columns on a computer, folding rows on a
   phone (me.js opens them on wide screens), sentence-case headings, one line of small print ---------- */
.foot2 { position: relative; margin-top: clamp(56px, 7vw, 96px); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--t3); background: rgba(4, 6, 10, 0.4); }
.foot2 .f-top { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.foot2 .logo { width: 84px; flex: none; display: flex; }
.foot2 .logo img { width: 100%; height: auto; }
.foot2 .f-top p { margin: 0; font-size: 15px; color: var(--t2); }
.foot2 .f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot2 summary { list-style: none; pointer-events: none; }
.foot2 summary::-webkit-details-marker { display: none; }
.foot2 h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--t1); text-transform: none; }
.foot2 ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot2 li a { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--t2); text-decoration: none; }
.foot2 li a:hover, .foot2 .f-lang:hover { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
.foot2 li a[aria-current="page"] { color: var(--t1); }
.foot2 .f-legal { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot2 .f-lang { display: inline-flex; align-items: center; min-height: 44px; color: var(--t2); text-decoration: none; }
@media (max-width: 860px) { .foot2 .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .foot2 { padding-top: 28px; }
  .foot2 .f-top { margin-bottom: 14px; }
  .foot2 .f-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot2 .f-col { border-bottom: 1px solid var(--line); }
  .foot2 summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 50px; }
  .foot2 summary h2 { margin: 0; font-size: 16px; font-weight: 600; }
  .foot2 summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3);
    transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--spring); }
  .foot2 .f-col[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .foot2 ul { padding: 0 0 10px; }
  .foot2 li a { min-height: 44px; font-size: 16px; }
  .foot2 .f-legal { margin-top: 18px; border-top: 0; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .foot2 summary::after { transition: none; } }
/* the old footers are gone; their doc variant must not leave a card behind */
.foot-doc { display: none; }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h-sec { font-size: 34px; }
  .card, .who-card, .lu { border-radius: 24px; }
}
@media (max-width: 560px) {
  .v2 .hero-copy .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; margin-inline: auto; }
  .v2 .hero-copy .actions .b { width: 100%; }
  .v2 .hero-copy h1 { font-size: 40px; }
  .zz-acts .b, .cta .acts .b { flex: 1 1 100%; }
  .v2 .dsearch-home { flex-wrap: wrap; border-radius: 24px; padding: 12px 12px 12px 14px; row-gap: 10px; }
  .v2 .dsearch-home input { flex-basis: calc(100% - 56px); font-size: 17px; }
  .v2 .dsearch-home .b { width: 100%; height: auto; --h: 48px; }
}
/* the English page pays with crypto: no SBP, Mir or card logos under the order */
html[lang="en"] .paylogos img:not([src*="tether"]) { display: none; }

/* 12.11 English landing pages (pirs-host/site-tools/make_landings.py) and the five-column English footer */
@media (min-width: 861px) { .foot2 .f-cols.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.lp .lp-kicker { margin: 0 0 6px; color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lp .doc h1 { margin-top: 0; }
.lp .lp-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lp .lp-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lp .lp-facts li { margin: 0; padding: 14px 16px; border-radius: var(--r-mid); background: var(--card-2); display: flex; flex-direction: column; gap: 2px; }
.lp .lp-facts b { font-size: 19px; letter-spacing: -0.02em; color: var(--t1); }
.lp .lp-facts span { font-size: 14px; color: var(--t3); }
.lp .tbl td a { white-space: nowrap; font-weight: 600; }
/* 13.11 a phone: a plan is a row (what it is, its columns in a line under it), the price and the button never leave the screen */
@media (max-width: 640px) {
  .lp .doc .tbl { overflow: visible; }
  .lp .tbl table, .lp .tbl tbody { display: block; }
  .lp .tbl thead, .lp .tbl td.s { display: none; }
  .lp .tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lp .tbl td { display: block; padding: 0; border: 0; }
  .lp .tbl td.p { white-space: nowrap; font-weight: 700; color: var(--t1); }
}
.lp .lp-faq details { border-top: 1px solid var(--line); }
.lp .lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp .lp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; cursor: pointer; font-weight: 600; color: var(--t1); list-style: none; }
.lp .lp-faq summary::-webkit-details-marker { display: none; }
.lp .lp-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--t3); border-bottom: 2px solid var(--t3); transform: rotate(45deg) translateY(-2px); }
.lp .lp-faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.lp .lp-faq p { margin: 0 0 16px; color: var(--t2); }
.lp .lp-more { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp .lp-more li { margin: 0; }
.lp .lp-more a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card-2); color: var(--t1); text-decoration: none; }
@media (max-width: 720px) { .lp .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp .lp-acts .b { flex: 1 1 100%; } }
/* 12.11 me.js: a Russian page in a browser with no Russian or CIS language offers the English twin */
.lang-hint { position: fixed; z-index: 70; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--card-solid); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8); color: var(--t2); font-size: 14px; white-space: nowrap; }
.lang-hint a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.lang-hint button { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gray); color: var(--t1); font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) { .lang-hint { bottom: calc(96px + env(safe-area-inset-bottom)); } .lang-hint span { display: none; } }

/* 15.11 the help section (/help/, make_help.py): a list of articles and command blocks inside a document */
.help .lp-kicker a { color: inherit; }
.help.lp .doc .help-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 0; }
.help-list li { border-top: 1px solid var(--line); }
.help-list li:last-child { border-bottom: 1px solid var(--line); }
.help.lp .doc .help-list a { display: grid; gap: 4px; padding: 16px 2px; color: inherit; text-decoration: none; font-weight: 400; }
.help.lp .doc .help-list b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.help.lp .doc .help-list span { font-size: 15.5px; line-height: 1.45; font-weight: 400; color: var(--ink-2); }
.help.lp .doc .help-list a:hover b { color: var(--link); }
.help.lp .doc pre { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); overflow-x: auto; font: 600 15px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--ink); }
.help.lp .doc pre code { padding: 0; background: none; font: inherit; }
.help.lp .doc li pre { margin-top: 8px; }
