/* RSR MAKİNA TASK004 — Unified 3-region grid and exclusive active navigation. */
.contact-bar{display:none!important}
header#header{border-top:5px solid #092744;background:#fff}
/* A single geometry for every locale; 1920px has adequate room for long Cyrillic labels. */
.nav-inner.container{
  width:min(1600px,calc(100% - 36px));height:78px;min-height:78px;
  display:grid;grid-template-columns:128px minmax(0,1fr) 339px;
  grid-template-areas:"brand nav actions";align-items:center;column-gap:14px;
}
.nav-inner>.brand{grid-area:brand;min-width:0;justify-self:start}
/* The outer navigation region has identical coordinates even in compact mode. */
.nav-inner .nav-region{grid-area:nav;width:100%;min-width:0;display:flex;align-items:center;justify-content:center;position:relative}
.brand-icon{font-size:43px}.brand-name strong{font-size:34px}.brand-name small{font-size:11px;letter-spacing:4.7px}
.nav-inner #mainNav{
  grid-area:nav;display:flex;align-items:center;justify-content:center;
  justify-self:stretch;gap:clamp(12px,1.25vw,24px);width:100%;max-width:none;min-width:0;
}
/* Equal box models for all 9 links: switching active state never changes coordinates. */
.nav-inner #mainNav>a{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;font-family:'DM Sans',Arial,sans-serif;font-size:14px;font-weight:600;
  letter-spacing:-.12px;line-height:1.3;white-space:nowrap;height:42px;min-height:42px;
  padding:10px 7px;margin:0;border:0;border-radius:3px;
  color:var(--navy);background:transparent;box-shadow:none;text-decoration:none;
}
.nav-inner #mainNav>a::after{content:none!important;display:none!important}
.nav-inner #mainNav>a:hover:not(.active){background:#f3f5f9;color:var(--wine)}
.nav-inner #mainNav>a.active,.nav-inner #mainNav>a.active:hover{
  background:var(--wine)!important;color:#fff!important;
}
.nav-inner .header-right{
  grid-area:actions;justify-self:end;margin:0;width:339px;min-width:339px;
  display:grid;grid-template-columns:36px 35px 83px 167px;gap:6px;align-items:center;
}
.header-right .search-top{width:36px;min-width:36px;height:42px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;color:var(--navy);border:0;background:transparent;padding:8px}
.header-right .search-top svg,.header-right .cart-top svg{width:19px;height:19px;display:block}
.header-right .cart-top{width:35px;min-width:35px;height:42px;min-height:42px;padding:7px;position:relative;display:inline-flex;align-items:center;justify-content:center;background:none;font-size:17px}
.header-right .cart-top span{top:0;right:-4px}
.header-right .language{min-width:0;width:83px;position:relative}
.header-right .lang-button{display:inline-flex;justify-content:center;align-items:center;gap:5px;width:83px;height:42px;min-height:42px;padding:8px 4px;border:1px solid #d5dfe9;border-radius:4px;background:#fff;color:var(--navy);font-size:13px;font-weight:700;line-height:1;white-space:nowrap}
.flag-icon{width:26px;height:18px;flex:0 0 26px;display:inline-block;border:1px solid #dce4ec;border-radius:2px;object-fit:cover;vertical-align:middle}
.lang-button .lang-code{padding:0;letter-spacing:.2px}.lang-button .lang-chevron{padding:0;font-size:15px;line-height:1}
.header-right .head-quote{width:167px;min-width:167px;height:42px;min-height:42px;padding:10px 9px;gap:8px;font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
.lang-menu{min-width:238px;padding:7px;max-height:350px;overflow-y:auto}
.lang-menu a{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 11px;font-size:13px;line-height:1.3}
.lang-menu a .language-name{flex:1;min-width:0}.lang-menu a small{font-size:11px;font-weight:700}
.lang-menu a:hover,.lang-menu a:focus-visible,.lang-menu a.selected{background:#f2f5f9;color:var(--wine)}
header button:focus-visible,header a:focus-visible{outline:2px solid var(--wine2);outline-offset:3px}
.category-card[id]{scroll-margin-top:115px}
.shop-photo{overflow:hidden}.shop-photo img{display:block;width:100%;height:100%;object-fit:contain}
.shop-photo .type-badge{z-index:2;max-width:calc(100% - 30px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The menu is folded only where real measured link widths cannot fit. */
.nav-inner .nav-region #mobileToggle{position:absolute;right:0;top:50%;transform:translateY(-50%);margin:0}
@media(min-width:1161px){.nav-inner:not(.nav-compact) .menu-toggle{display:none!important}}
.nav-inner.nav-compact #mainNav{display:none!important}
.nav-inner.nav-compact .menu-toggle{display:block!important}
/* Preserve the stable grid regions even when a desktop locale needs the fallback. */
@media(min-width:1161px){.nav-inner.nav-compact{display:grid}}
@media(max-width:1160px){
 .nav-inner.container{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;grid-template-areas:"brand actions nav";width:calc(100% - 36px);gap:8px}
 .nav-inner .nav-region{width:34px;justify-self:end}
 .nav-inner #mainNav{display:none!important}
 .nav-inner .nav-region .menu-toggle{display:block!important;position:static;transform:none;margin:0}
 .nav-inner .header-right{margin:0;width:auto;min-width:0;display:flex;gap:7px}
}
/* Mobile navigation is one column; active style is the same as desktop. */
@media(max-width:1160px){.nav-inner #mainNav.open,.nav-inner.nav-compact #mainNav.open{
 display:flex!important;position:fixed;top:83px;left:0;right:0;z-index:72;width:100vw;max-width:none;
 background:#fff;box-shadow:0 18px 25px #0002;padding:18px;
 flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 83px);overflow:auto;
}}
@media(min-width:1161px){.nav-inner.nav-compact #mainNav.open{
 display:flex!important;position:fixed;top:83px;left:0;right:0;z-index:72;width:100vw;max-width:none;
 background:#fff;box-shadow:0 18px 25px #0002;padding:18px;
 flex-direction:column;align-items:stretch;gap:0;max-height:calc(100dvh - 83px);overflow:auto;
}}
.nav-inner #mainNav.open>a{font-size:14px!important;font-weight:600;min-height:44px;height:44px;padding:10px 12px;justify-content:flex-start;width:100%;}
.nav-inner #mainNav.open>a.active{width:100%}
@media(max-width:690px){
 .nav-inner.container{height:72px;min-height:72px;width:calc(100% - 24px);gap:4px}
 .nav-inner #mainNav.open{top:77px}
 .brand-icon{font-size:32px}.brand-name strong{font-size:27px}.brand-name small{font-size:8px;letter-spacing:4px}
 .header-right .head-quote{display:none}.header-right .search-top{min-width:31px;width:31px;padding:6px}
 .header-right .cart-top{min-width:30px;width:30px;padding:6px}
 .header-right .lang-button{min-height:38px;height:38px;padding:7px 5px;gap:4px;font-size:11px;width:auto}
 .header-right .language{width:auto}
 .flag-icon{width:23px;height:16px;flex-basis:23px}.lang-menu .flag-icon{width:26px;height:18px;flex-basis:26px}
 .menu-toggle{padding:5px;flex-shrink:0;font-size:25px}
}
@media(max-width:395px){
 .nav-inner.container{width:calc(100% - 14px)}.brand{gap:5px}.brand-icon{font-size:28px}.brand-name strong{font-size:24px}.brand-name small{font-size:7px;letter-spacing:3.6px}
 .header-right .search-top{min-width:28px;width:28px;padding:4px}
 .header-right .cart-top{min-width:27px;width:27px;padding:4px}
 .header-right .lang-button{padding:6px 4px;gap:3px}.lang-button .lang-chevron{font-size:12px}
}
