.hp-head__cta{display:flex;flex-wrap:wrap;gap:10px;margin-block-start:6px}

.hp{display:grid;grid-template-columns:minmax(0,250px) minmax(0,1fr);gap:clamp(32px,4.5vw,72px);align-items:start;padding-block-end:clamp(56px,7vw,104px)}
.hp-content{min-width:0;max-width:900px;container-type:inline-size}

.hp-nav{position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100vh - var(--header-h) - 48px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--tile-3) transparent}
.hp-nav__in{display:grid;gap:18px;padding-block-end:8px}
.hp-nav__label{margin-block-end:6px;padding-inline:12px;color:var(--text-3);font-size:13px;font-weight:500;line-height:1.3}
.hp-nav__sub{margin-block:8px 2px;padding-inline:12px;color:var(--text-3);font-size:12.5px;line-height:1.3}
.hp-nav ul{display:grid;gap:2px}
.hp-nav__nested{margin-inline-start:12px;padding-inline-start:6px;border-inline-start:1px solid var(--line)}
.hp-nav .link{display:flex;align-items:center;gap:10px;min-height:36px;padding:7px 12px;border-radius:12px;color:var(--text-2);font-size:15px;font-weight:500;line-height:1.3;text-decoration:none;transition:background-color .15s,color .15s}
.hp-nav .link:hover{background:var(--tile);color:#fff}
.hp-nav .link.is-active{background:var(--tile-2);color:#fff;font-weight:600}
.hp-nav .link.is-active::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--pink)}

.hp-page{display:grid;gap:12px}
.hp-page>h2{margin-block-end:4px;font-size:clamp(28px,3vw,40px);font-weight:700;line-height:1.08;letter-spacing:-.03em}
.hp-lead{max-width:64ch;color:var(--text-2);font-size:var(--fs-lead);line-height:1.5}
.hp-lead+:not(.hp-lead){margin-block-start:12px}
.hp-sub{margin-block-start:36px;font:700 clamp(22px,2vw,26px)/1.25 var(--font-text);letter-spacing:-.015em}

.hp-list{display:grid;gap:12px}
.hp-item{display:grid;grid-template-columns:minmax(0,1fr);gap:20px 32px;padding:clamp(20px,2.4vw,30px);border-radius:var(--r-lg);background:var(--tile)}
.hp-body{display:grid;align-content:start;gap:12px;min-width:0;color:var(--text-2);font-size:16px;line-height:1.6}
.hp-body h3{color:#fff;font:700 19px/1.3 var(--font-text);letter-spacing:-.01em}
.hp-h{display:flex;align-items:center;gap:14px;text-wrap:pretty}
.hp-n{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--grad-select);font:700 16px/1 var(--font-brand);letter-spacing:0}
.hp-body b{color:#fff;font-weight:600}
.hp-body a:not(.btn):not(.hp-badge),.hp-get a,.ios-help a{padding-block:3px;color:var(--lilac);text-decoration:underline;text-decoration-color:rgba(220,200,255,.45);overflow-wrap:anywhere}
.hp-body a:not(.btn):not(.hp-badge):hover,.hp-get a:hover,.ios-help a:hover{text-decoration-color:currentColor}
.hp-body ul{display:grid;gap:6px;padding-inline-start:22px;list-style:disc}
.hp-body li::marker{color:var(--text-3)}
.hp-item .msg{background:var(--tile-2)}
.hp-item .msg--err{background:rgba(255,69,58,.16)}
.hp-item .msg--ok{background:rgba(48,209,88,.14)}
.hp-item--warn{box-shadow:inset 0 0 0 1px rgba(255,159,10,.42)}
.hp-item--warn .hp-n{background:rgba(255,159,10,.14);color:#FFB86B}

.hp-shot{display:flex;justify-content:center;align-items:center;gap:12px;min-width:0;padding:clamp(14px,2vw,22px);border:1px solid var(--line);border-radius:var(--r-tile);background:#000}
.hp-shot img{min-width:0;max-width:100%;height:auto}
.hp-shot--phone img{flex:0 1 auto;width:176px}
.hp-shot--desk img{width:100%;max-width:560px;border-radius:10px}
.hp-shot--menus img{flex:1 1 0;width:0;max-width:260px;border-radius:8px}
.hp-shot--menus img:first-child{flex-grow:1.05}
.hp-shot--menu img{width:240px;border-radius:8px}
.hp-shot--wide{display:block;padding:0;border:0;background:none}
.hp-shot--wide img{width:100%;max-width:760px;border:1px solid var(--line);border-radius:var(--r-sm)}
.hp-shot--strip{justify-content:flex-start;padding:12px;border-radius:var(--r-sm)}
.hp-shot--strip img{border-radius:6px}

.hp-badges{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hp-badge{display:inline-block;border-radius:11px;transition:transform .18s var(--ease)}
.hp-badge:hover{transform:translateY(-1px)}
.hp-badge img{width:auto;height:48px}

.hp-get{display:grid;justify-items:start;gap:16px;padding:clamp(20px,2.4vw,30px);border:1px solid transparent;border-radius:var(--r-lg);background:linear-gradient(var(--tile),var(--tile)) padding-box,var(--grad-brand) border-box;color:#fff;font-weight:500}
.hp-creds{gap:14px}
.hp-creds h3{color:#fff;font:700 19px/1.3 var(--font-text)}
.hp-creds .field{max-width:520px}
.hp-copy{position:relative}
.hp-copy .input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;cursor:pointer}
.appleIdCopyHint{position:absolute;inset-inline-end:4px;top:0;color:var(--text-3);font-size:13px;line-height:20px;pointer-events:none}

.hp-guide>*+*{margin-block-start:12px}
.hp-guide>.hp-sub{margin-block-start:36px}
.hp-guide>.msg--ok{background:rgba(48,209,88,.14)}
.hp-guide .as-guide{--as-accent:var(--lilac);--as-tint:rgba(220,200,255,.1);--as-ink:#fff;--as-muted:var(--text-2);--as-line:var(--line);--as-card:var(--tile);--as-ground:#fff;--as-warn:#FFB86B;--as-warn-bg:rgba(255,159,10,.14);--as-warn-line:rgba(255,159,10,.42);margin-block-start:24px;font-family:var(--font-text)}
.hp-guide .as-guide :is(.as-guide__heading,.as-guide__lead,.as-guide__notice p,.as-guide__number,.as-guide__title,.as-guide__text,.as-guide__badge,.as-guide__zoom,.as-guide__download,.as-guide__after h4,.as-guide__after p){font-family:var(--font-text)}
.hp-guide .as-guide .as-guide__eyebrow{font-size:12px;letter-spacing:.08em}
.hp-guide .as-guide .as-guide__heading{letter-spacing:-.015em}
.hp-guide .as-guide .as-guide__lead,.hp-guide .as-guide .as-guide__notice p{font-size:15px}
.hp-guide .as-guide .as-guide__notice{border-radius:var(--r-tile)}
.hp-guide .as-guide .as-guide__step{border-color:transparent;border-radius:var(--r-lg)}
.hp-guide .as-guide .as-guide__step--important{border-color:var(--as-warn-line)}
.hp-guide .as-guide .as-guide__number{border-radius:12px;background:var(--grad-select);color:#fff;font-family:var(--font-brand)}
.hp-guide .as-guide .as-guide__step--important .as-guide__number{background:var(--as-warn-bg);color:var(--as-warn)}
.hp-guide .as-guide .as-guide__title{font-size:19px;letter-spacing:-.01em}
.hp-guide .as-guide .as-guide__text{font-size:15px}
.hp-guide .as-guide .as-guide__shot{border-color:var(--line);color:var(--text-2)}
.hp-guide .as-guide .as-guide__zoom{border-top-color:var(--line);background:var(--tile-2);color:var(--text-2);font-size:12px}
.hp-guide .as-guide .as-guide__shot:hover .as-guide__zoom{color:#fff}
.hp-guide .as-guide .as-guide__download{min-height:44px;padding:10px 20px;border-radius:var(--r-pill);background:var(--grad-cta);font-size:15px;font-weight:600}
.hp-guide .as-guide .as-guide__after{border-radius:var(--r-tile)}
.hp-guide .as-guide .as-guide__after h4{font-size:15px}
.hp-guide .as-guide .as-guide__after p{font-size:14.5px}

.hp-fb{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,80px);align-items:start}
.hp-fb__head{display:grid;gap:16px;min-width:0}
.hp-fb__head .h2{overflow-wrap:break-word}
.hp-fb__head .h2:lang(de){hyphens:auto}

.ios-layout{display:grid;grid-template-columns:minmax(0,880px) minmax(0,300px);justify-content:space-between;gap:clamp(32px,4vw,64px);align-items:start;padding-block-end:clamp(56px,7vw,104px)}
.ios-aside{position:sticky;top:calc(var(--header-h) + 24px)}
.ios-help{display:grid;gap:14px;color:var(--text-2);font-size:15.5px;line-height:1.55}
.ios-help b{color:#fff;font-weight:600}
.ios-help__ico{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--tile-2);color:var(--lilac)}
.ios-help__ico svg{width:22px;height:22px}
.ios-head__icon{width:72px;height:72px;border-radius:17px}
.ios-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-block-end:28px}
.ios-tab{display:flex;align-items:center;justify-content:center;min-height:54px;padding:10px 12px;border:0;border-radius:var(--r-tile);background:var(--tile);color:#fff;font:600 15px/1.25 var(--font-text);text-align:center;cursor:pointer;transition:background-color .15s}
.ios-tab:hover{background:var(--tile-2)}
.ios-tab.is-info{background:var(--grad-select)}
.ios-panel>*+*{margin-block-start:12px}
.ios-phead{display:flex;align-items:center;gap:16px;margin-block-end:20px}
.ios-phead__ico{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:16px;background:var(--tile);color:var(--lilac)}
.ios-phead__ico svg{width:28px;height:28px}
.ios-phead__ico img{width:56px;height:56px;border-radius:14px}
.ios-phead h2{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font:700 clamp(20px,2vw,24px)/1.25 var(--font-text);letter-spacing:-.015em}
.ios-phead p{margin-block-start:4px;color:var(--text-2);font-size:15px;line-height:1.45}
.ios-intro{max-width:64ch;color:var(--text-2);line-height:1.6}
.ios-fields{padding:12px 16px;border-radius:var(--r-sm);background:var(--tile-2);color:#fff;font:15px/1.85 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
.ios-cta{margin-block-start:20px}
.ios-panel>.ios-get{margin-block-start:20px}
.qa__a a:not(.btn){padding-block:3px;color:var(--lilac);text-decoration:underline;text-decoration-color:rgba(220,200,255,.45);overflow-wrap:anywhere}
.qa__a a:not(.btn):hover{text-decoration-color:currentColor}

@media (max-width:1023px){
  html{scroll-padding-top:calc(var(--header-h) + 80px)}
  .hp{display:block}
  .hp-content{max-width:none;margin-block-start:28px}
  .hp-nav{top:var(--header-h);z-index:30;max-height:none;overflow:visible;margin-inline:calc(var(--gutter) * -1);padding-block:10px;border-block:1px solid var(--line);background:rgba(0,0,0,.88);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px)}
  .hp-nav::after{content:"";position:absolute;inset-block:0;inset-inline-end:0;width:28px;background:linear-gradient(to left,#000,rgba(0,0,0,0));pointer-events:none}
  [dir=rtl] .hp-nav::after{background:linear-gradient(to right,#000,rgba(0,0,0,0))}
  .hp-nav__in{position:relative;display:flex;align-items:center;gap:6px;overflow-x:auto;padding:0 var(--gutter);scrollbar-width:none;overscroll-behavior-x:contain}
  .hp-nav__in::-webkit-scrollbar{display:none}
  .hp-nav__group{display:flex;flex:none;align-items:center;gap:6px}
  .hp-nav__group+.hp-nav__group{margin-inline-start:6px;padding-inline-start:12px;border-inline-start:1px solid var(--line)}
  .hp-nav__label{margin:0;padding-inline:0 4px;font-size:12.5px;white-space:nowrap}
  .hp-nav__sub{display:none}
  .hp-nav ul,.hp-nav li,.hp-nav__nested{display:flex;gap:6px;margin:0;padding:0;border:0}
  .hp-nav .link{min-height:var(--tap);padding:8px 15px;border-radius:var(--r-pill);background:var(--tile);color:#fff;font-size:14.5px;white-space:nowrap}
  .hp-nav .link:hover{background:var(--tile-2)}
  .hp-nav .link.is-active{background:var(--grad-select)}
  .hp-nav .link.is-active::before{content:none}
  .hp-fb{grid-template-columns:1fr}
  .ios-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .ios-aside{position:static}
  .ios-help{grid-template-columns:44px minmax(0,1fr);align-items:center}
}
@container (min-width:560px){
  .hp-item--side:not(.hp-item--desk):not(.hp-item--pair){grid-template-columns:minmax(0,1fr) minmax(0,var(--w,210px));align-items:center}
  .hp-item--menu{--w:270px}
}
@container (min-width:780px){
  .hp-guide>.hp-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-guide>.hp-list>li:last-child:nth-child(odd){grid-column:1/-1}
  .hp-item--desk,.hp-item--pair{grid-template-columns:minmax(0,1fr) minmax(0,var(--w,340px));align-items:center}
  .hp-item--pair{--w:380px}
}
@media (max-width:719px){
  .hp-item{gap:18px}
  .hp-shot--phone img{width:min(190px,46%)}
  .hp-shot--phone img:only-child{width:min(220px,64%)}
  .hp-shot--menu img{width:min(240px,80%)}
  .hp-badge img{height:44px}
  .hp-head__cta .btn{flex:1 1 auto}
  .ios-cta,.ios-get .btn{width:100%}
  .hp-get .btn{width:100%}
}
@media (max-width:599px){
  .ios-tabs{grid-template-columns:1fr 1fr}
  .hp-h{gap:12px}
  .hp-n{width:36px;height:36px;border-radius:11px;font-size:15px}
  .hp-body h3{font-size:18px}
  .hp-body{font-size:15.5px}
  .ios-phead{align-items:flex-start}
  .ios-phead__ico,.ios-phead__ico img{width:48px;height:48px;border-radius:14px}
}

:is(html:lang(fa),html:lang(zh)) [lang=ru],:is(html:lang(fa),html:lang(zh)) .hp-content[lang=en]{--font-text:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--font-display:"Unbounded","Onest",system-ui,sans-serif;font-family:var(--font-text);line-height:1.55}
:is(html:lang(fa),html:lang(zh)) [lang=ru] .h1,:is(html:lang(fa),html:lang(zh)) .hp-content[lang=en] .h1{letter-spacing:-.04em;line-height:.98}
:is(html:lang(fa),html:lang(zh)) [lang=ru] .h2,:is(html:lang(fa),html:lang(zh)) .hp-content[lang=en] .h2{letter-spacing:-.035em;line-height:1.04}
:is(html:lang(fa),html:lang(zh)) [lang=ru] .hp-page>h2,:is(html:lang(fa),html:lang(zh)) .hp-content[lang=en] .hp-page>h2{letter-spacing:-.03em;line-height:1.08}
:is(html:lang(fa),html:lang(zh)) [lang=ru] :is(h3,h4),:is(html:lang(fa),html:lang(zh)) .hp-content[lang=en] :is(h3,h4){letter-spacing:-.01em;line-height:1.3}
[lang=ru] [lang=fa]{font-family:"Vazirmatn",Tahoma,"Segoe UI","Noto Sans Arabic",sans-serif}
[lang=ru] [lang=zh]{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif}
