/* Locale additions do not restyle the existing English storefront. The face is the same in
   both languages ('NatGard Lato' has Cyrillic since 15.11.2026, styles.css); only sizes differ. */
html[lang="ru"] .bento-hero-primary { gap: 14px; padding: 24px; }
html[lang="ru"] .bento-hero-primary :is(h1,p,strong) { max-width: 100%; }
html[lang="ru"] .bento-hero-primary h1 { text-wrap: balance; line-height: 1.16; }
html[lang="ru"] .bento-hero-primary p { font-size: 22px; line-height: 1.4; }
html[lang="ru"] .bento-hero-primary strong { font-size: 32px; line-height: 1.25; }
html[lang="ru"] .bento-stack .campaign :is(h2,p) { display: block; }
html[lang="ru"] .bento-stack .campaign h2 { text-wrap: balance; }
html[lang="ru"] .bento-stack .campaign p { line-height: 1.45; }
html[lang="ru"] :is(h1,h2,h3,p,button,a,label) { overflow-wrap: break-word; }
html[lang="ru"] .account-link { min-width: 0; }
html[lang="ru"] .bento-hero-primary h1 { font-size: clamp(32px, 4vw, 48px); }
html[lang="ru"] .personalization-prompt { height: auto; min-height: 64px; gap: 12px; }
html[lang="ru"] .personalization-prompt > :is(a,button) { width: auto; height: auto; min-height: 32px; white-space: normal; text-align: center; }
html[lang="ru"] .footer-legal-california { white-space: normal; }
html[lang="ru"] .footer-trustmark > span:last-child { white-space: normal; }
html[lang="ru"] .contact-shortcuts a { white-space: normal; }
html[lang="ru"] .contact-shortcuts a > span { max-width: 100%; }
@media (min-width: 768px) and (max-width: 1199px) {
  html[lang="ru"] .utility-content { gap: 12px; }
  html[lang="ru"] .utility-sale { min-width: 0; max-width: 52%; flex-shrink: 1; }
  html[lang="ru"] .utility-sale-text { white-space: normal; line-height: 1.2; }
  html[lang="ru"] .utility-deal { min-width: 0; }
  html[lang="ru"] .utility-deal .deal-time { display: none; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  html[lang="ru"] .utility-content { gap: 8px; }
}
.auth-language-switch { position: fixed; z-index: 30; top: 12px; right: 16px; display: flex; gap: 8px; padding: 6px; background: var(--ng-surface-white,#fff); border-radius: 6px; }
.auth-language-switch a { padding: 4px 8px; color: var(--ng-primary-deep,#28730d); }
.auth-language-switch [aria-current="true"] { font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The language and account controls must remain reachable on narrow screens. */
@media (max-width: 767px) {
  .brand-content { gap: 8px; }
  .brand-content .locale-button { display: inline-flex; min-height: 40px; padding-inline: 8px; margin-left: auto; }
  .brand-content .account-menu { display: flex; margin-left: 0; align-self: auto; }
  .brand-content .account-link { min-height: 40px; padding: 0; }
  .brand-content .account-link .site-account-icon { width: 28px; height: 28px; padding: 0; }
  .brand-content .account-link-copy, .brand-content .account-caret { display: none; }
  .brand-content .cart-control { margin-left: 0; }
  .account-popover { position: fixed; inset: 140px 14px 16px; width: auto; height: auto; overflow: auto; overscroll-behavior: contain; padding: 20px; }
  .account-popover-layout { height: auto; display: grid; gap: 20px; }
  .account-rewards { width: 100%; height: auto; }
  body.account-signed-in .account-rewards { height: auto; }
  .account-rewards-content { width: 100%; }
  .account-popover-main { width: 100%; height: auto; }
  .account-popover-main h2 { height: auto; }
  .account-popover-links { height: auto; }
  .account-popover-links li { width: 100%; }
  .account-popover-action { width: 100%; height: auto; min-height: 48px; margin-inline-start: 0; white-space: normal; }
  .search-form input { font-size: 16px; }
  .footer-store-badges { flex-wrap: wrap; }
  html[lang="ru"] .personalization-prompt > :is(a,button) { width: 100%; }
  html[lang="ru"] .utility-shipping { display: none; }
  html[lang="ru"] .daily-deals-heading > div { width: 100%; min-width: 0; }
  html[lang="ru"] .daily-deals-title-row { flex-wrap: wrap; }
  .auth-page[data-auth-stage="form"] .auth-main { padding-top: 72px; }
  html[lang="ru"] .hero-campaign:not(.hero-quality) { gap: 12px; }
  html[lang="ru"] .hero-campaign:not(.hero-quality) p { max-width: 100%; margin: 0; font-size: 17px; line-height: 1.4; }
  html[lang="ru"] .hero-campaign:not(.hero-quality) h1 { font-size: clamp(26px, 8vw, 36px); line-height: 1.2; }
  html[lang="ru"] .hero-campaign:not(.hero-quality) strong { margin: 0; font-size: 23px; line-height: 1.3; }
  html[lang="ru"] .bento-stack .campaign h2, html[lang="ru"] .bento-stack .campaign p { display: block; }
  html[lang="ru"] .bento-stack .campaign p { max-width: 65%; line-height: 1.4; }
}
@media (max-width: 359px) {
  .brand-content { gap: 6px; }
  .brand-content .wordmark img { width: 120px; height: auto; }
  html[lang="ru"] .brand-content { gap: 4px; }
  html[lang="ru"] .brand-content .wordmark { width: 112px; }
  html[lang="ru"] .brand-content .wordmark img { width: 110px; }
  html[lang="ru"] .brand-content .menu-button { width: 28px; flex: none; }
  html[lang="ru"] .brand-content .cart-control { width: 36px; }
  .brand-content .locale-button { padding-inline: 6px; gap: 4px; }
}
/* English text baked into the reference image is replaced by the shared HTML
   promotion cards in RU. Existing decorative assets remain unchanged. */
@media (min-width: 1200px) {
  html[lang="ru"] .desktop-reference { display: none; }
  html[lang="ru"] .responsive-promotions { width: min(var(--shell), calc(100% - 64px)); height: 510px; display: block; position: relative; overflow: visible; margin: 24px auto 40px; }
  html[lang="ru"] .bento-clip { width: 100%; height: 100%; overflow: hidden; }
  html[lang="ru"] .bento-track { width: max-content; height: 100%; display: grid; grid-template-columns: 680px 332px 332px 680px; gap: 16px; transition: transform 400ms ease; }
  html[lang="ru"] .responsive-promotions[data-carousel-index="1"] .bento-track { transform: translateX(calc(min(var(--shell), calc(100vw - 64px)) - 2072px)); }
  html[lang="ru"] .bento-stack { width: 332px; height: 510px; display: grid; grid-template-rows: repeat(2, 249px); gap: 14px; }
  html[lang="ru"] .campaign { border-radius: 15px; overflow: hidden; cursor: pointer; }
  html[lang="ru"] .hero-campaign { width: 680px; height: 510px; min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: #005334 url('/assets/banners/anniversary-sale-green-balloons.webp') center / cover no-repeat; color: #fff; font-family: 'NatGard Noto Sans', Arial, sans-serif; text-align: center; }
  html[lang="ru"] .hero-campaign p { margin: 0; padding: 8px 20px; border-radius: 13px 3px; background: linear-gradient(80deg,#fff0b3,#fbcb3c); color: #181b1f; font-size: 22px; font-weight: 700; line-height: 1.4; }
  html[lang="ru"] .hero-campaign h1 { margin: 0; color: #fff; font-size: 48px; line-height: 1.16; }
  html[lang="ru"] .hero-campaign strong { margin: 0; font-size: 32px; line-height: 1.25; }
  html[lang="ru"] .hero-call-to-action { padding: 12px 28px; border-radius: 100px; background: #fff; color: #181b1f; font-size: 16px; font-weight: 700; }
  html[lang="ru"] .bento-stack .campaign { width: 332px; height: 249px; min-height: 249px; padding: 14px 18px; }
  html[lang="ru"] .bento-stack h2 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--ng-text-black,#000); }
  html[lang="ru"] .bento-stack p { margin: 5px 0 0; font-size: 14px; line-height: 20px; color: var(--ng-text-black,#000); }
  html[lang="ru"] .flash { background: var(--ng-accent,#ffc27c) url('/assets/banners/daily-flash-deals-promo.avif') center / cover; }
  html[lang="ru"] .bath { background: var(--ng-surface,#f0eee7) url('/assets/banners/natgard-partnership-warm-selected-20261024.webp') center / cover; }
  html[lang="ru"] .school { background: var(--ng-primary-soft,#d8f4fb) url('/assets/banners/natgard-mushrooms-airy-selected-20261024.webp') center / cover; }
  html[lang="ru"] .app { background: var(--ng-primary,#d6ee95) url('/assets/banners/natgard-first-order-bag-selected-20261024.webp') center / cover; }
  html[lang="ru"] .hero-quality { align-items: flex-start; justify-content: flex-start; padding: 28px 36px; background: #f6f4f0 url('/assets/banners/natgard-quality-promise-approved.webp') center / cover; color: #000; text-align: left; }
  html[lang="ru"] .quality-hero-copy h1 { color: var(--ng-text,#000); font-size: 36px; }
  html[lang="ru"] .quality-hero-copy p { color: var(--ng-text,#000); background: none; padding: 0; font-size: 28px; font-weight: 400; }
  html[lang="ru"] .responsive-promotions .carousel-arrow--previous { left: -20px; }
  html[lang="ru"] .responsive-promotions .carousel-arrow--next { right: -20px; }
  html[lang="ru"] .responsive-promotions .carousel-controls { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); z-index: 3; }
  html[lang="ru"] .carousel-pause-button { display: flex; gap: 6px; align-items: center; padding: 4px 10px; border: 0; border-radius: 30px; background: #0008; color: inherit; cursor: pointer; }
  html[lang="ru"] .carousel-pause-icon { width: 6px; height: 8px; }
  html[lang="ru"] .carousel-play-icon { display: none; width: 7px; height: 9px; }
  html[lang="ru"] .is-paused .carousel-pause-icon { display: none; }
  html[lang="ru"] .is-paused .carousel-play-icon { display: block; }
  html[lang="ru"] .carousel-pause-button svg { width: 100%; height: 100%; fill: currentColor; }
  html[lang="ru"] .carousel-controls .carousel-status { position: static; background: none; padding: 0; transform: none; }
}

/* Text fields (owner 15.11.2026): no square blue frame when the cursor is in a field — neither on the field nor
   on the box drawn around it. The field and its box take the brand green for their own focus border instead
   (rules that colour a focused field with var(--ng-focus) now get green). Buttons and links keep the keyboard ring. */
:is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="submit"],[type="button"],[type="reset"],[type="image"],[type="color"]), select, textarea):focus,
:has(> :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="submit"],[type="button"],[type="reset"],[type="image"],[type="color"]), select, textarea):focus),
:has(> * > :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="file"],[type="submit"],[type="button"],[type="reset"],[type="image"],[type="color"]), select, textarea):focus) {
  --ng-focus: var(--ng-primary, #458500);
  outline: none !important;
}
