/* Public account entry only; existing menu handlers and original logo are retained. */
.ewa-account-header>.ewa-account-link{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--ink,#1b2226);border-radius:8px;background:var(--paper,#fffef9);color:var(--ink,#1b2226);font-size:.875rem;font-weight:700;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap}
.ewa-account-header>.ewa-account-link:hover{background:var(--cream,#f4f1e6)}
.ewa-account-header>.ewa-account-link:focus-visible{outline:3px solid var(--focus,#925b00);outline-offset:3px}
@media(max-width:1080px){
 .ewa-account-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;position:relative;padding-block:8px}
 .ewa-account-header>.brand{grid-column:1;grid-row:1;min-width:0;max-width:100%}
 .ewa-account-header>.brand>.brand-logo{max-width:100%;height:auto}
 .ewa-account-header>.ewa-account-link{grid-column:2;grid-row:1;justify-self:end}
 .ewa-account-header>.menu-toggle{display:inline-flex;grid-column:1;grid-row:2;margin-left:0;justify-self:start}
 .ewa-account-header>.language-switch{grid-column:2;grid-row:2;justify-self:end}
 .ewa-account-header>.nav{display:none;position:absolute;top:100%;left:calc(var(--gutter,20px)*-1);right:calc(var(--gutter,20px)*-1);margin-left:0;padding:16px var(--gutter,20px) 24px;background:var(--paper,#fffef9);border-bottom:1px solid var(--line,#d9dfd6)}
 .ewa-account-header>.nav.is-open{display:flex;flex-direction:column;align-items:stretch}
}

/* Phones and tablets: logo, account, language and menu in one row. */
@media(max-width:1080px){
 .ewa-account-header{grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center}
 .ewa-account-header>.brand{grid-column:1;grid-row:1}
 .ewa-account-header>.ewa-account-link{grid-column:3;grid-row:1}
 .ewa-account-header>.language-switch{grid-column:4;grid-row:1;justify-self:end}
 .ewa-account-header>.menu-toggle{grid-column:5;grid-row:1;justify-self:end;margin-left:0}
}
@media(max-width:600px){
 .ewa-account-header{gap:6px;padding-block:6px}
 .ewa-account-header>.brand>.brand-logo{width:56px}
 .ewa-account-header>.ewa-account-link{min-height:40px;padding:6px 9px;font-size:.78rem}
 .ewa-account-header>.language-switch a{min-width:30px;padding-inline:6px}
 /* Icon only; the word "Меню"/"Menu" stays as the button's accessible name. */
 .ewa-account-header>.menu-toggle{font-size:0;gap:0;width:44px;min-height:44px;padding:0;justify-content:center}
 .ewa-account-header>.menu-toggle .fa-icon{width:20px;height:20px;font-size:20px}
}
@media(max-width:360px){
 .ewa-account-header{gap:4px}
 .ewa-account-header>.brand>.brand-logo{width:46px}
 .ewa-account-header>.ewa-account-link{padding:6px 7px;font-size:.72rem}
}
