/* ==========================================================================
   მთავარი მენიუ (ჰედერში) და საიმიჯო გვერდი — ELRING-ის პალიტრაზე
   ========================================================================== */
.mainnav { display: flex; align-items: stretch; gap: 2px; flex: none; }
.mainnav__link { display: flex; align-items: center; padding: 0 12px; height: 44px; color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none !important; border-bottom: 3px solid transparent; white-space: nowrap; }
.mainnav__link:hover { color: var(--accent); }
.mainnav__link.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* მთავარ გვერდზე ძებნა hero-შია — ჰედერში ზედმეტია */
body[data-page="home"] .topbar .search { display: none; }
body[data-page="home"] .mainnav { margin-left: auto; }

.btn--light { background: #fff; color: #1d1d1b; }
.btn--light:hover { background: #f2f2f2; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.lhero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 84px;
  background: linear-gradient(105deg, rgba(20, 20, 19, .97) 0%, rgba(29, 29, 27, .9) 55%, rgba(226, 0, 26, .85) 140%), #1d1d1b; }
.lhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); }
.lhero svg.lhero__art { position: absolute; right: -6%; top: 50%; width: min(760px, 70vw); height: auto; transform: translateY(-50%) rotate(-12deg); color: rgba(255, 255, 255, .1); pointer-events: none; }
.lhero__inner { position: relative; display: grid; gap: 18px; justify-items: start; }
.lhero__kicker { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.lhero__title { font-size: clamp(30px, 5vw, 54px); font-weight: 700; line-height: 1.12; max-width: 820px; }
.lhero__sub { margin: 0; max-width: 640px; color: #d6d6d6; font-size: 17px; }
.lhero__search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 680px; background: #fff; padding: 6px; border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.lhero__search > svg { margin-left: 10px; color: #8c8c8c; width: 22px; height: 22px; }
.lhero__search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 17px; height: 48px; color: #1d1d1b; }
.lhero__search input:focus { outline: none; }
.lhero__search:focus-within { box-shadow: 0 0 0 4px var(--ring), 0 20px 50px -20px rgba(0, 0, 0, .7); }
.lhero__search .btn { min-height: 48px; padding: 0 26px; font-size: 16px; }
.lhero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
/* ადმინიდან ატვირთული ფონის ფოტო — მუქი ფენით, რომ თეთრი ტექსტი იკითხებოდეს */
.lhero--photo { background-color: #1d1d1b; background-position: center; background-size: cover; background-repeat: no-repeat; } /* ფოტო — inline style-ში (ბილიკი გვერდთან მიმართებით) */
.lhero--photo svg.lhero__art { display: none; }
.lhero__search--vin { max-width: 680px; margin-top: -8px; }
.lhero__vin { margin-left: 8px; padding: 4px 8px; border-radius: 4px; background: #1d1d1b; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.lhero__search--vin input { text-transform: uppercase; font-family: var(--mono, ui-monospace, monospace); }
.lhero__search--vin input::placeholder { text-transform: none; font-family: inherit; }
.lbest { border-top: 1px solid var(--border); border-radius: var(--radius); }

.lstats { background: var(--surface); border-bottom: 1px solid var(--border); }
.lstats__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.lstats__row > div { display: grid; padding: 22px 18px; border-left: 1px solid var(--border); }
.lstats__row > div:first-child { border-left: 0; }
.lstats b { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.lstats span { color: var(--muted); font-size: 14px; }

.lsection { padding: 64px 0; }
.lsection--grey { background: var(--sunken); }
.lsection--dark { background: #1d1d1b; color: #fff; }
.lhead { display: grid; gap: 8px; max-width: 720px; margin-bottom: 28px; }
.lhead h2 { font-size: clamp(24px, 3vw, 34px); }
.lhead p { margin: 0; color: var(--muted); font-size: 16px; }
.lhead__kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lhead--light .lhead__kicker { color: #ff4d5e; }
.lcenter { text-align: center; margin: 28px 0 0; }

.lprod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lprod__card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: box-shadow .2s, transform .2s, border-color .2s; }
.lprod__card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--accent); }
.lprod__img { display: grid; place-items: center; background: var(--img-bg); height: 170px; padding: 18px; border-bottom: 3px solid var(--accent); }
.lprod__img img { width: 100%; height: 100%; max-width: 220px; object-fit: contain; }
.lprod__body { display: grid; gap: 6px; padding: 16px; align-content: start; }
.lprod__body b { font-size: 16px; line-height: 1.3; }
.lprod__body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.lprod__more { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent); font-weight: 700; font-size: 13px; }
.lprod__more svg { width: 16px; height: 16px; }

.lwhy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.lwhy__item { padding: 24px; background: rgba(255, 255, 255, .04); border-top: 3px solid var(--accent); }
.lwhy__ic { display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent); color: #fff; margin-bottom: 14px; }
.lwhy__ic svg { width: 24px; height: 24px; }
.lwhy h3 { font-size: 17px; margin-bottom: 6px; }
.lwhy p { margin: 0; color: #c8c8c8; font-size: 14px; line-height: 1.6; }

.lsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.lsteps li { position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--border); counter-increment: step; }
.lsteps li::before { content: counter(step); position: absolute; top: -1px; right: -1px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; }
.lsteps b { font-size: 18px; }
.lsteps p { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.lsteps a { font-weight: 700; }

.lmakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lmakes__item { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.lmakes__item:hover { border-color: var(--accent); color: var(--accent); }
.lmakes__item b { font-size: 14px; letter-spacing: .02em; }
.lmakes__item small { color: var(--faint); font-size: 12px; }

.lcontact { background: var(--surface); border-top: 6px solid var(--accent); }
.lcontact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lcontact h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 10px; }
.lcontact p { color: var(--muted); font-size: 16px; }
.lcontact__list { display: grid; margin: 0; border: 1px solid var(--border); }
.lcontact__list div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.lcontact__list div:last-child { border-bottom: 0; }
.lcontact__list dt { color: var(--muted); font-size: 14px; }
.lcontact__list dd { margin: 0; font-weight: 600; }

.lbar { display: none; }

@media (max-width: 1024px) {
  .lprod { grid-template-columns: repeat(2, 1fr); }
  .lwhy { grid-template-columns: repeat(2, 1fr); }
  .mainnav__link { padding: 0 8px; }
}
@media (max-width: 1100px) {
  .topbar__row { flex-wrap: wrap; }
  .mainnav { order: 4; width: 100%; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
  .mainnav__link { height: 40px; }
}
@media (max-width: 720px) {
  .lhero { padding: 44px 0 56px; }
  .lhero__sub { font-size: 15px; }
  .lhero__search input { font-size: 15px; }
  .lhero__search .btn { padding: 0 16px; }
  .lhero__search--vin .btn { padding: 0 12px; font-size: 14px; }
  .lstats__row { grid-template-columns: 1fr 1fr; }
  .lstats__row > div:nth-child(3) { border-left: 0; }
  .lstats__row > div { border-top: 1px solid var(--border); }
  .lstats b { font-size: 24px; }
  .lsection { padding: 44px 0; }
  .lprod { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lprod__body small { display: none; }
  .lwhy, .lsteps, .lcontact__row { grid-template-columns: 1fr; }
  .lcontact__list div { grid-template-columns: 1fr; gap: 2px; }
  /* მობილურზე — წითელი ქვედა ზოლი სწრაფი მოქმედებებით */
  body[data-page="home"] { padding-bottom: 58px; }
  .lbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--accent); box-shadow: 0 -4px 14px rgba(0, 0, 0, .2); }
  .lbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: #fff; font-size: 12px; font-weight: 600; text-decoration: none !important; border-left: 1px solid rgba(255, 255, 255, .25); }
  .lbar a:first-child { border-left: 0; }
  .lbar svg { width: 20px; height: 20px; }
}

/* კატალოგის მთავარზე — დანარჩენი ჯგუფები სიად */
.groups-more { margin-top: 16px; }
.groups-more > summary { list-style: none; cursor: pointer; }
.groups-more > summary::-webkit-details-marker { display: none; }
.groups-more__list { list-style: none; margin: 14px 0 0; padding: 16px; columns: 3 260px; column-gap: 24px; background: var(--surface); border: 1px solid var(--border); }
.groups-more__list li { break-inside: avoid; padding: 4px 0; font-size: 14px; }
.groups-more__list a { color: var(--text); }
.groups-more__list a:hover { color: var(--accent); }

/* პარტნიორები: მოძრავი ზოლი ბანერის ქვემოთ */
.lpartners { padding: 34px 0 38px; background: var(--surface); border-bottom: 1px solid var(--border); }
.lpartners__title { margin: 0 0 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.lpartners__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lpartners__track { display: flex; width: max-content; animation: lpartners-run var(--dur, 40s) linear infinite; }
.lpartners__viewport:hover .lpartners__track, .lpartners__viewport:focus-within .lpartners__track { animation-play-state: paused; }
.lpartners__set { display: flex; align-items: center; gap: 24px; margin: 0; padding: 6px 12px; list-style: none; }
/* ლოგო თეთრ ბარათზე — ჩანს ღია და მუქ თემაზეც (ლოგოების უმეტესობა მუქია) */
/* ბარათი — ნაწილის ფოტოს ზომით და სტილით (.card__img: 4:3, თეთრი, თხელი ჩარჩო) */
.lpartners__item a, .lpartners__item span { display: flex; align-items: center; justify-content: center; width: 240px; height: 180px; padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.lpartners__item a:hover, .lpartners__item a:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.lpartners__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes lpartners-run { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .lpartners { padding: 26px 0 28px; } .lpartners__set { gap: 14px; padding: 4px 8px; } .lpartners__item a, .lpartners__item span { width: 160px; height: 120px; padding: 14px; } }
/* მოძრაობის გარეშე (სისტემის პარამეტრი): ლოგოები ერთ რიგად, ცენტრში */
@media (prefers-reduced-motion: reduce) {
  .lpartners__track { animation: none; width: auto; justify-content: center; }
  .lpartners__set { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .lpartners__set[aria-hidden] { display: none; }
}
