/* r229: phones and tablets, third round (approved 30.10). Phone = up to 743 px (or a phone on its side), «narrow» = up to 980 px (phones + tablets held upright except iPad Pro 12.9/13).
   A computer with a mouse from 1280 px is not touched. */

/* first screen: no animation while the page is one column (up to 980 px); from 981 px it stands on the right as before */
@media (max-width:980px),(max-width:999px) and (max-height:500px){
 .hero>.hh,.p-head>.pzk,.p-head>.aih,.p-head>.dzh{display:none!important}
 .hero{gap:0!important;padding-bottom:30px!important}
 .p-head{padding-bottom:6px}
 /* main button + link in one row; the link has the button's height so it is as easy to tap */
 .hero .cta,.p-head .p-cta{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:14px!important;width:auto!important}
 .hero .cta>.btn-hero,.p-head .p-cta>.btn{width:auto!important;flex:0 1 auto!important;min-width:0}
 .hero .cta>.btn-link,.p-head .p-cta>.btn-link{flex:0 0 auto;align-self:stretch;display:inline-flex;align-items:center;padding:0 2px!important;border-bottom:0!important;text-decoration:underline;text-decoration-color:#E0A04A;text-decoration-thickness:1.5px;text-underline-offset:6px;white-space:nowrap}
}
/* the row is too narrow for both: the button text may take two lines (class from r229_mobile.js) */
.r9-tight>.btn-hero,.r9-tight>.btn{white-space:normal!important;text-align:center;line-height:1.2}
.r9-tight>.btn-link{font-size:14px!important}

/* menu: «Вопросы» = speech bubble, «Контакты» = phone */
@media (max-width:980px),(max-width:999px) and (max-height:500px){
 .mnav__a[data-r8q='q']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 9.5h8M8 12.5h5'/%3E%3C/svg%3E")!important;width:18px;height:18px;background-size:18px}
 .mnav__a[data-r8q='c']::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0A04A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E")!important;width:18px;height:18px;background-size:18px}
}

/* footer: the address is a plain line (opens the mail app), the copy row from r228 is not made */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 .xft__c{display:flex!important;justify-content:center;margin:14px 0 0!important;order:5}
 .xft__wa{order:4}
 .xft__c li:first-child{display:none}
 .xft__c li{display:flex;align-items:center;gap:8px;font-size:14.5px}
 .xft__c li a{color:var(--fg);text-decoration:none}
 .xft__c li svg{color:#E0A04A}
}

/* «Как мы работаем» cards: number and deadline on one line, «what you get» as a plain check list */
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px),(hover:none) and (pointer:coarse) and (min-width:981px) and (min-height:501px) and (max-height:1100px){
 .r8-cd .r9-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
 .r8-cd .r9-top .xw-pn{margin:0}
 .r8-cd .r9-top .xw-term{padding:4px 10px!important;font-size:12.5px!important;margin:0!important;gap:6px}
 .r8-cd .r9-top .xw-term svg{width:13px;height:13px}
 .r8-cd .r9-top .xw-term>span:not(:last-child){display:none}
 .r8-cd .xw-meta{display:block!important}
 .r8-cd .xw-meta ul{display:grid!important;gap:6px!important}
 .r8-cd .xw-meta li{padding:0!important;border:0!important;background:none!important;border-radius:0!important;font-size:13.5px!important;line-height:1.35!important;display:flex!important;gap:9px!important;align-items:flex-start!important}
 .r8-cd .xw-meta li>span:first-child{width:auto!important;height:auto!important;background:none!important;border:0!important;color:#E0A04A;margin-top:2px}
 .r8-cd .xw-meta li>span:first-child svg{width:12px!important;height:12px!important}
}

/* «Подробнее» panel: as tall as its text, up to just under the bar; larger text */
.r227-pn{max-height:calc(100% - 72px)!important}
.r227-ct li{font-size:15.5px!important;line-height:1.4!important}
.r227-ct ul{gap:9px!important}
.r227-ct .hd b,.r227-ct .hd .a7-pn{font-size:19px!important}
.r227-ct .hd i{font-size:14px!important}
.r227-ct .up li,.r227-ct .a7-up li,.r227-ct .a7-upc li{font-size:14px!important}

/* WhatsApp: a button in the bar instead of the round button in the corner (wherever the ☰ menu is) */
.r9-wa{display:none}
@media (max-width:980px),(max-width:999px) and (max-height:500px){
 .wa-fab{display:none!important}
 .r9-wa{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;border:1px solid rgba(37,211,102,.45);background:rgba(37,211,102,.08);color:#25D366;margin-left:auto;-webkit-tap-highlight-color:transparent}
 .r9-wa svg{width:20px;height:20px}
 .bar .wrap{gap:8px!important}
 .bar .lang-dd{margin-left:0!important}
}
@media (max-width:743px),(max-width:999px) and (max-height:500px),(min-width:744px) and (max-width:980px) and (min-height:501px),(min-width:981px) and (max-width:1100px) and (min-height:1101px){
 .bar .lang-dd__cur{display:none!important}
 .bar .lang-dd__btn{padding:0 10px!important;gap:4px!important}
}
@media (max-width:339px){.bar .lang-dd__btn>svg:last-child{display:none!important}}
