/**
 * Главная: категории (Figma Frame 177) + карта-картинка.
 * Токены блока «Товары»: фон #f6faff, заголовок 28px #333 Montserrat, линия 10% black,
 * сетка bento 575:426:425:278, карточки #fff r20 / hero&side r25, нижний ряд r15.
 * Hover: превью — hero ~1.156 (263×140→304×162), c2r1 ~1.205 (157×97→189×117); остальные ячейки 1.08.
 */
.home-main {
   box-sizing: border-box;
   width: auto;
   max-width: 100%;
   margin: 0 auto;
   padding: 0;
}

.home-main__categories {
   margin: 0;
   padding: 30px 3.5208333333vw;
   background: #f6faff;
}

.home-main__cat-shell {
   box-sizing: border-box;

   padding: 0;
   border-radius: 0;
   font-family: Montserrat, sans-serif;   
}

.home-main__cat-title {
   margin: 0 0 20px;
   padding: 0;
   font-size: 28px;
   line-height: 34px;
   font-weight: 500;
   color: #333333;
   text-align: left;
}

.home-main__cat-rule {
   height: 0;
   margin: 0 0 20px;
   border: 0;
   border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.home-main__empty {
   margin: 0;
   padding: 16px 0 0;
   text-align: left;
   color: #666;
   font-size: 15px;
}

.home-main__cat-bento {
   display: grid;
   box-sizing: border-box;
   grid-template-columns: minmax(200px, 575fr) minmax(160px, 426fr) minmax(160px, 425fr) minmax(140px, 278fr);
   grid-template-rows: minmax(126px, 1fr) minmax(126px, 1fr);
   grid-template-areas:
      "hero c2r1 c3r1 side"
      "hero c2r2 c3r2 side";
   gap: 21px 21px;
   min-height: 260px;
}

.home-main__cat-cell {
   box-sizing: border-box;
   display: flex;
   background: #ffffff;
   text-decoration: none;
   color: #000;
   overflow: hidden;
   transition: box-shadow 0.3s ease, transform 0.3s ease;
   box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

/* Hero: Подшипники — крупная плитка */
.home-main__cat-cell--hero {
   flex-direction: row;
   align-items: stretch;
   justify-content: space-between;
   gap: 20px;
   min-height: 287px;
   padding: 28px 32px 28px 35px;
   border-radius: 25px;
}

.home-main__cat-cell--hero .home-main__cat-cell-main {
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: 20px;
   flex: 0 1 220px;
   min-width: 0;
}

.home-main__cat-cell--hero .home-main__cat-name {
   font-size: 20px;
   line-height: 24px;
   font-weight: 600;
   color: #333333;
}

/* Figma Frame 146 — подпись под названием */
.home-main__cat-sub {
   display: block;
   font-size: 16px;
   line-height: 20px;
   font-weight: 400;
   color: rgba(0, 0, 0, 0.5);
}

.home-main__cat-cell--hero .home-main__cat-sub {
   margin: 0;
}

.home-main__cat-cell--hero .home-main__cat-cell-visual {
   flex: 1 1 50%;
   display: flex;
   align-items: center;
   min-width: 0;
}

.home-main__cat-cell--hero .home-main__cat-cell-visual img {
   max-width: 100%;
   max-height: 220px;
   width: auto;
   height: auto;
   object-fit: contain;
   object-position: right bottom;
}

/* Средние 4 карточки */
.home-main__cat-cell--c2r1,
.home-main__cat-cell--c2r2,
.home-main__cat-cell--c3r1,
.home-main__cat-cell--c3r2 {
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 8px 10px 8px 12px;
   border-radius: 20px;
   min-height: 0;
}

.home-main__cat-cell--c2r1 .home-main__cat-cell-main,
.home-main__cat-cell--c2r2 .home-main__cat-cell-main,
.home-main__cat-cell--c3r1 .home-main__cat-cell-main,
.home-main__cat-cell--c3r2 .home-main__cat-cell-main {
   display: flex;
   flex: 1 1 auto;
   min-width: 0;
   padding-left: 4px;
   flex-direction: column;
   align-items: flex-start;
   justify-content: center;
   gap: 6px;
}

.home-main__cat-cell--c2r1 .home-main__cat-sub,
.home-main__cat-cell--c2r2 .home-main__cat-sub,
.home-main__cat-cell--c3r1 .home-main__cat-sub,
.home-main__cat-cell--c3r2 .home-main__cat-sub {
   font-size: 12px;
   line-height: 15px;
}

.home-main__cat-cell--c2r1 .home-main__cat-name,
.home-main__cat-cell--c2r2 .home-main__cat-name,
.home-main__cat-cell--c3r1 .home-main__cat-name,
.home-main__cat-cell--c3r2 .home-main__cat-name {
   font-size: 14px;
   line-height: 18px;
   font-weight: 600;
   color: #333333;
   display: block;
}

.home-main__cat-cell--c2r1 .home-main__cat-cell-visual,
.home-main__cat-cell--c2r2 .home-main__cat-cell-visual,
.home-main__cat-cell--c3r1 .home-main__cat-cell-visual,
.home-main__cat-cell--c3r2 .home-main__cat-cell-visual {
   flex: 0 0 auto;
   width: 180px;
   max-width: 42%;
   height: 97px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 4px;
}

.home-main__cat-cell--c2r1 .home-main__cat-cell-visual img,
.home-main__cat-cell--c2r2 .home-main__cat-cell-visual img,
.home-main__cat-cell--c3r1 .home-main__cat-cell-visual img,
.home-main__cat-cell--c3r2 .home-main__cat-cell-visual img {
   max-width: 100%;
   max-height: 100%;
   width: auto;
   height: auto;
   object-fit: contain;
}

/* Правая высокая карточка */
.home-main__cat-cell--side {
   flex-direction: column;
   align-items: stretch;
   padding: 13px 25px 16px;
   border-radius: 25px;
   gap: 8px;
}

.home-main__cat-cell--side .home-main__cat-cell-main {
   flex: 0 0 auto;
}

.home-main__cat-cell--side .home-main__cat-name {
   font-size: 14px;
   line-height: 18px;
   font-weight: 600;
   color: #000000;
   display: block;
   width: 140px;
}

.home-main__cat-cell--side .home-main__cat-cell-visual {
   flex: 1 1 auto;
   display: flex;
   align-items: center;
   justify-content: end;
   min-height: 160px;
   overflow: hidden;
}

.home-main__cat-cell--side .home-main__cat-cell-visual img {
   width: 100%;
   max-width: 227px;
   height: auto;
   max-height: 227px;
   object-fit: contain;
}

/* Второй ряд — ровная сетка по ширине бенто (равные колонки, как в макете 6 плиток) */
.home-main__cat-row2 {
   --home-main-row2-cols: 6;
   display: grid;
   grid-template-columns: repeat(var(--home-main-row2-cols), minmax(0, 1fr));
   gap: 21px;
   margin-top: 21px;
   width: 100%;
   align-items: stretch;
}

.home-main__cat-chip {
   box-sizing: border-box;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   width: 100%;
   min-width: 0;
   max-width: none;
   min-height: 133px;
   padding: 12px 14px;
   background: #ffffff;
   border-radius: 15px;
   text-decoration: none;
   color: #333;
   overflow: hidden;
   transition: box-shadow 0.3s ease, transform 0.3s ease;
   box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.home-main__cat-chip-text {
   font-size: 14px;
   line-height: 18px;
   flex: 1 1 auto;
   min-width: 0;
   font-weight: 600;
}

.home-main__cat-chip-img {
   flex: 0 0 auto;
   width: 92px;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.home-main__cat-chip-img img {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain;
}

/* Распродажа: по центру «Распродажа»; hover — подпись вверх на 20px, «-50%» съезжает справа */
.home-main__cat-sale {
   box-sizing: border-box;
   position: relative;
   width: 100%;
   max-width: 127px;
   min-width: 0;
   height: 133px;
   border-radius: 15px;
   border: 2px solid #ffffff;
   background-color: #ff6b6b;
   text-decoration: none;
   box-shadow:
      0 0 18px rgba(255, 255, 255, 0.55),
      0 0 32px rgba(255, 255, 255, 0.35),
      0 8px 20px rgba(255, 107, 107, 0.35);
   display: flex;
   flex-direction: column;
   align-items: stretch;
   justify-content: center;
   padding: 0;
   overflow: hidden;
}

.home-main__cat-sale-inner {
   box-sizing: border-box;
   position: relative;
   display: flex;
   flex: 1 1 auto;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 100%;
   min-height: 0;
   max-width: 100%;
}

.home-main__cat-sale-name {
   position: relative;
   z-index: 2;
   max-width: 100%;
   padding: 0 10px;
   font-family: Montserrat, sans-serif;
   font-size: 14px;
   line-height: 17px;
   font-weight: 500;
   color: #ffffff;
   text-align: center;
}

.home-main__cat-sale-pct {
   z-index: 1;
   flex-shrink: 0;
   margin: 0;
   font-family: Inter, Montserrat, sans-serif;
   font-size: 40px;
   line-height: 48px;
   font-weight: 600;
   color: rgba(255, 255, 255, 0.95);
   text-align: right;
   white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
   .home-main__cat-sale-name {
      transform: translateY(0);
      transition: transform 0.32s ease;
   }

   .home-main__cat-sale .home-main__cat-sale-pct {
      position: absolute;
      top: 60%;
      right: 8px;
      left: auto;
      margin: 0;
      padding: 0;
      transform: translate3d(calc(100% + 14px), -50%, 0);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.32s ease, opacity 0.28s ease;
   }

   .home-main__cat-sale:hover {
      box-shadow:
         0 0 22px rgba(255, 255, 255, 0.65),
         0 0 40px rgba(255, 255, 255, 0.45),
         0 12px 28px rgba(255, 90, 100, 0.4);
   }

   .home-main__cat-sale:hover .home-main__cat-sale-name {
      transform: translateY(-20px);
   }

   .home-main__cat-sale:hover .home-main__cat-sale-pct {
      transform: translate3d(0, -50%, 0);
      opacity: 1;
   }

   .home-main__cat-sale:focus-visible .home-main__cat-sale-name {
      transform: translateY(-20px);
   }

   .home-main__cat-sale:focus-visible .home-main__cat-sale-pct {
      transform: translate3d(0, -50%, 0);
      opacity: 1;
   }
}

@media (hover: none), (pointer: coarse) {
   .home-main__cat-sale-inner {
      gap: 4px;
   }

   .home-main__cat-sale-pct {
      position: static;
      transform: none;
      opacity: 1;
      font-size: 28px;
      line-height: 34px;
   }
}

.home-main__cat-cell .home-main__cat-cell-visual img,
.home-main__cat-chip-img img {
   transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (hover: hover) and (min-width: 1270px) {
   .home-main__cat-cell:hover {
      transform: translateY(-4px);
      box-shadow:
         0 16px 40px rgba(69, 94, 137, 0.2),
         0 4px 12px rgba(0, 0, 0, 0.06);
   }

   .home-main__cat-cell:hover .home-main__cat-cell-visual img {
      transform: scale(1.08);
   }

   .home-main__cat-cell--hero:hover .home-main__cat-cell-visual img {
      transform: scale(1.156);
   }

   .home-main__cat-cell--c2r1:hover .home-main__cat-cell-visual img {
      transform: scale(1.205);
   }

   .home-main__cat-chip:hover {
      transform: translateY(-4px);
      box-shadow:
         0 14px 36px rgba(69, 94, 137, 0.18),
         0 4px 12px rgba(0, 0, 0, 0.06);
   }

   /* 78×48 → 91×56: 91/78 = 56/48 */
   .home-main__cat-chip:hover .home-main__cat-chip-img img {
      transform: scale(calc(91 / 78));
   }
}

@media (max-width: 1300px) and (hover: hover) and (min-width: 1270px) {
   .home-main__cat-chip:hover .home-main__cat-chip-img img {
      transform: scale(calc(109 / 94));
   }
}

/* Figma «Блоки. 1600px» (6521:2918): только 1301–1600; контент 1445; Frame 286 255px; Frame 287 чипы 118px; зазор 20 */
@media (max-width: 1600px) and (min-width: 1301px) {

   .home-main__cat-shell {
      box-sizing: border-box;
      max-width: 100%;
      min-width: 0;
   }


   .home-main__cat-cell--hero {
      min-height: 0;
      padding: 24px 28px 24px 30px;
      gap: 18px;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-visual img {
      max-height: 200px;
   }

   .home-main__cat-cell--c2r1,
   .home-main__cat-cell--c2r2,
   .home-main__cat-cell--c3r1,
   .home-main__cat-cell--c3r2,
   .home-main__cat-cell--side {
      min-height: 0;
   }

   .home-main__cat-row2 {
      gap: 20px;
      margin-top: 20px;
      min-width: 0;
   }

   .home-main__cat-chip {
      min-height: 118px;
      padding: 10px 12px;
   }

   .home-main__cat-chip-img {
      width: 86px;
      height: 52px;
   }
}

/* Figma «Блоки. 1300px» (6552:1243): Frame 322 1147×524, inset 77/28; Frame 319 239px; Frame 320 189px; зазор 22 между рядами */
@media (max-width: 1300px) {

   .home-main__cat-shell {
      box-sizing: border-box;
      max-width: 100%;
      min-width: 0;
   }

   .home-main__cat-title {
      margin-bottom: 18px;
   }

   .home-main__cat-rule {
      margin-bottom: 18px;
   }

   .home-main__cat-bento {
      grid-template-columns: minmax(160px, 369fr) minmax(120px, 272fr) minmax(120px, 272fr) minmax(100px, 174fr);
      grid-template-rows: minmax(100px, 255px) minmax(100px, 255px);
      gap: 20px 20px;
   }

   .home-main__cat-cell--hero {
      min-height: 0;
      padding: 20px 22px 20px 24px;
      gap: 14px;
      border-radius: 15px;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-visual img {
      max-height: 178px;
   }

   .home-main__cat-cell--c2r1,
   .home-main__cat-cell--c2r2,
   .home-main__cat-cell--c3r1,
   .home-main__cat-cell--c3r2,
   .home-main__cat-cell--side {
      min-height: 0;
      border-radius: 15px;
   }

   .home-main__cat-row2 {
      gap: 20px;
      margin-top: 20px;
      min-width: 0;
   }

   .home-main__cat-chip {
      min-height: 118px;
      padding: 10px 12px;
      border-radius: 15px;
   }

   .home-main__cat-chip-img {
      width: 59px;
      height: 59px;
      max-width: 59px;
      max-height: 59px;
   }

   .home-main__cat-chip-img img {
      max-width: 100%;
      max-height: 100%;
   }

   .home-main__cat-sale {
      max-width: 122px;
      min-height: 118px;
      height: 118px;
      border-radius: 15px;
      background-color: #ff6767;
   }

   .home-main__cat-sale-name {
      font-size: 12px;
      line-height: 15px;
   }

   .home-main__cat-sale-pct {
      font-size: 26px;
      line-height: 32px;
   }
}

@media (max-width: 1100px) {
   .home-main__cat-bento {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
      grid-template-areas:
         "hero hero"
         "c2r1 c3r1"
         "c2r2 c3r2"
         "side side";
   }

   .home-main__cat-cell--hero {
      flex-direction: column;
      align-items: flex-start;
      min-height: 0;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-visual {
      width: 100%;
      justify-content: center;
   }
}

/* Второй ряд: на узкой ширине много колонок сжимало чипы и «Распродажу» (как .mobile_slide @ 1025) */
@media (max-width: 1025px) {
   .home-main__cat-row2 {
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
   }

   .home-main__cat-row2 .home-main__cat-sale {
      grid-column: 1 / -1;
      max-width: none;
      width: 100%;
      justify-self: stretch;
      height: auto;
   }
}

/* Figma мобилка Frame 178 (6454:921), 390: заголовок 20/24, карточки 360×103 r10, зазор ~9, inset 15 */
@media (max-width: 640px) {
   .home-main__cat-title {
      margin: 0 0 10px;
      font-size: 20px;
      line-height: 24px;
   }

   .home-main__cat-rule {
      margin: 0 0 14px;
   }

   .home-main__cat-bento {
      display: flex;
      flex-direction: column;
      gap: 9px;
   }

   .home-main__cat-bento .home-main__cat-cell {
      grid-area: unset !important;
      border-radius: 10px;
   }

   .home-main__cat-cell--hero {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      min-height: 103px;
      padding: 8px 12px 8px 14px;
      gap: 10px;
      border-radius: 10px;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-main {
      flex: 1 1 auto;
      justify-content: center;
      gap: 4px;
   }

   .home-main__cat-cell--hero .home-main__cat-name {
      font-size: 16px;
      line-height: 20px;
   }

   .home-main__cat-cell--hero .home-main__cat-sub {
      font-size: 12px;
      line-height: 15px;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-visual {
      flex: 0 0 auto;
      width: auto;
      max-width: 46%;
      justify-content: flex-end;
   }

   .home-main__cat-cell--hero .home-main__cat-cell-visual img {
      max-height: 78px;
      max-width: 100%;
   }

   .home-main__cat-cell--c2r1,
   .home-main__cat-cell--c2r2,
   .home-main__cat-cell--c3r1,
   .home-main__cat-cell--c3r2 {
      min-height: 103px;
      border-radius: 10px;
      padding: 6px 8px 6px 10px;
      gap: 8px;
   }

   .home-main__cat-cell--c2r1 .home-main__cat-cell-visual,
   .home-main__cat-cell--c2r2 .home-main__cat-cell-visual,
   .home-main__cat-cell--c3r1 .home-main__cat-cell-visual,
   .home-main__cat-cell--c3r2 .home-main__cat-cell-visual {
      width: 132px;
      max-width: 44%;
      height: 78px;
   }

   .home-main__cat-cell--side {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      min-height: 103px;
      padding: 8px 12px;
      gap: 10px;
      border-radius: 10px;
   }

   .home-main__cat-cell--side .home-main__cat-cell-visual {
      flex: 0 0 auto;
      min-height: 0;
      width: auto;
      max-width: 46%;
      height: 78px;
      justify-content: flex-end;
   }

   .home-main__cat-cell--side .home-main__cat-cell-visual img {
      max-width: 100%;
      max-height: 78px;
      width: auto;
   }

   .home-main__cat-row2 {
      grid-template-columns: 1fr;
      gap: 9px;
      margin-top: 9px;
   }

   .home-main__cat-chip {
      min-width: 0;
      min-height: 103px;
      padding: 8px 12px;
      border-radius: 10px;
   }

   .home-main__cat-chip-img {
      width: 80px;
      height: 52px;
      max-width: none;
      max-height: none;
   }

   .home-main__categories .home-main__cat-sale {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      max-width: none;
      height: auto;
      min-height: 103px;
      padding: 0 16px;
      border-radius: 10px;
      border-width: 0;
      background-color: #ff7272;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
   }

   .home-main__categories .home-main__cat-sale-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      min-height: 0;
      padding: 0;
      gap: 12px;
   }

   .home-main__categories .home-main__cat-sale-name {
      flex: 1 1 auto;
      padding: 0;
      font-size: 14px;
      line-height: 18px;
      font-weight: 500;
      text-align: left;
   }

   .home-main__categories .home-main__cat-sale-pct {
      position: static;
      flex-shrink: 0;
      margin: 0;
      transform: none;
      opacity: 1;
      font-family: Montserrat, sans-serif;
      font-size: 28px;
      line-height: 32px;
      font-weight: 600;
      text-align: right;
   }
}

@media (max-width: 640px) and (hover: hover) and (pointer: fine) {
   .home-main__categories .home-main__cat-sale:hover {
      transform: none;
      justify-content: space-between;
      align-items: center;
      padding: 0 16px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
   }

   .home-main__categories .home-main__cat-sale:hover .home-main__cat-sale-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding-top: 0;
      flex: 0 1 auto;
   }

   .home-main__categories .home-main__cat-sale:hover .home-main__cat-sale-name {
      text-align: left;
   }

   .home-main__categories .home-main__cat-sale:hover .home-main__cat-sale-pct {
      position: static;
      transform: none;
      opacity: 1;
   }
}

/* Блок доставки — Figma Frame 82 (node 6242:3086): сетка 560 + 35 + 1169, ряд1 заголовок|логотипы, ряд2 карточка|карта */
.home-delivery {
   box-sizing: border-box;
   background: #ffffff;
   padding: 58px clamp(16px, 4.0625vw, 78px) 72px;
   font-family: Montserrat, sans-serif;
}

.home-delivery__inner {
   box-sizing: border-box;
   max-width: 1920px;
   margin: 0 auto;
}

.home-delivery__head {
   display: grid;
   grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
   column-gap: 35px;
   max-width: 1764px;
   margin: 0 auto;
   align-items: center;
   box-sizing: border-box;
   padding-bottom: 23px;
   border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.home-delivery__grid {
   display: grid;
   grid-template-columns: minmax(0, 560px) minmax(0, 1169px);
   grid-template-areas: "aside map";
   column-gap: 35px;
   max-width: 1764px;
   margin: 0 auto;
}

.home-delivery__title {
   margin: 0;
   max-width: 643px;
   min-height: 52px;
   font-size: 28px;
   line-height: calc(52 / 28);
   font-weight: 500;
   color: #333333;
}

.home-delivery__title-accent {
   font-weight: 700;
   color: #5479b8;
   text-transform: uppercase;
}

/* Frame 115: зазор 30px между логотипами; hover — COMPONENT_SET Variant2 в Figma */
.home-delivery__logos {
   box-sizing: border-box;
   width: 100%;
   display: flex;
   flex-wrap: wrap;
   justify-content: flex-end;
   align-items: center;
   gap: 30px;
   margin: 0;
   line-height: 0;
}

.home-delivery__logo {
   position: relative;
   display: block;
   flex: 0 0 auto;
   line-height: 0;
   text-decoration: none;
   box-sizing: border-box;
   height: 35px;
   border-radius: 5px;
}

/* Frame 115 (6261:526): точные ширины слотов */
.home-delivery__logo:nth-child(1) {
   width: 79px;
}

.home-delivery__logo:nth-child(2) {
   width: 129px;
}

.home-delivery__logo:nth-child(3) {
   width: 82px;
}

.home-delivery__logo:nth-child(4) {
   width: 190.535px;
}

.home-delivery__logo:focus {
   outline: none;
}

.home-delivery__logo:focus-visible {
   outline: 2px solid #5479b8;
   outline-offset: 2px;
   border-radius: 4px;
}

.home-delivery__logo-img {
   display: block;
   width: 100%;
   height: 100%;
   max-width: none;
   object-fit: contain;
   object-position: center center;
   transition: opacity 0.2s ease;
}

.home-delivery__logo-img--hover {
   position: absolute;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   object-fit: contain;
   object-position: center center;
   opacity: 0;
   pointer-events: none;
}

@media (hover: hover) {
   .home-delivery__logo:hover .home-delivery__logo-img--default,
   .home-delivery__logo:focus-visible .home-delivery__logo-img--default {
      opacity: 0;
   }

   .home-delivery__logo:hover .home-delivery__logo-img--hover,
   .home-delivery__logo:focus-visible .home-delivery__logo-img--hover {
      opacity: 1;
   }
}

.home-delivery__aside {
   grid-area: aside;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 0;
   min-width: 0;
   /* 76px в макете от контента шапки до карточки; минус padding+border у head */
   margin-top: 52px;
}

.home-delivery__card {
   box-sizing: border-box;
   width: 100%;
   max-width: 560px;
   min-height: 422px;
   padding: 20px;
   border-radius: 20px;
   background: rgba(84, 121, 184, 0.9);
   color: #ffffff;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   overflow: visible;
}

.home-delivery__text {
   margin: 0 0 50px;
   font-size: 16px;
   line-height: 1.45;
   flex: 0 0 auto;
   max-width: 520px;
}

/* Как в Figma: после1-го абзаца больше воздуха; перед 3-м один \n */
.home-delivery__text p {
   margin: 0;
   line-height: 27px;
}

.home-delivery__text p:first-child {
   margin-bottom: 35px;
}

.home-delivery__text p:nth-child(2) {
   margin-bottom: 8px;
}

.home-delivery__text p:last-child {
   margin-bottom: 0;
}

.home-delivery__btn {
   box-sizing: border-box;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin-top: 0;
   padding: 10px 15px;
   min-height: 37px;
   border-radius: 6px;
   border: 1px solid #ffffff;
   background: #5479b8;
   color: #ffffff;
   font-size: 14px;
   font-weight: 500;
   font-family: Montserrat, sans-serif;
   text-decoration: none;
   transition: background 0.2s ease, color 0.2s ease;
}

@media (hover: hover) {
   /* Frame 122 Property 1=Variant2 */
   .home-delivery__btn:hover {
      background: #638acd;
      color: #ffffff;
   }
}

.home-delivery__card-truck-wrap {
   display: contents;
}

.home-delivery__truck {
   display: block;
   width: 450px;
   max-width: 100%;
   height: auto;
   aspect-ratio: 450 / 186;
   flex-shrink: 0;
   margin-top: auto;
   margin-left: 160px;
   margin-right: auto;
   margin-bottom: -96px;
   position: relative;
   z-index: 1;
   pointer-events: none;
   align-self: flex-start;
}

.home-delivery__map-stage {
   grid-area: map;
   position: relative;
   box-sizing: border-box;
   width: fit-content;
   max-width: 100%;
   margin-top: 14px;
   line-height: 0;
   justify-self: end;
}

.home-delivery__map {
   display: block;
   box-sizing: border-box;
   width: auto;
   max-width: min(100%, 1169px);
   height: auto;
   vertical-align: top;
   object-fit: contain;
}

.home-delivery__map-overlay {
   position: absolute;
   inset: 0;
   z-index: 1;
   pointer-events: none;
}

.home-delivery__map-chips {
   position: absolute;
   inset: 0;
   z-index: 1;
}

.home-delivery__chip {
   box-sizing: border-box;
   position: absolute;
   display: inline-flex;
   flex-direction: row;
   align-items: center;
   gap: 6px;
   min-height: 25px;
   padding: 5px 15px;
   border-radius: 20px;
   background: rgba(35, 36, 37, 0.7);
   color: #ffffff;
   font-size: clamp(9px, 1.05vw, 12px);
   line-height: 15px;
   font-family: Inter, Montserrat, sans-serif;
   transform: translate(-50%, -50%);
   white-space: nowrap;
   pointer-events: auto;
}

.home-delivery__chip-text {
   white-space: nowrap;
}

.home-delivery__chip-pin {
   flex: 0 0 auto;
   width: 10px;
   height: 10px;
   max-width: 10px;
   max-height: 10px;
   display: block;
}

/* Доставка — 1445 при ширине артборда 1600 (только 1301–1600) */
@media (max-width: 1600px) and (min-width: 1301px) {
   .home-delivery {
      padding: 58px min(78px, max(16px, calc((100vw - 1445px) / 2))) 72px;
   }

   .home-delivery__head,
   .home-delivery__grid {
      max-width: 1445px;
      grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
   }

   .home-delivery__grid {
      grid-template-columns: minmax(0, 469fr) minmax(0, 941fr);
      min-width: 0;
   }

   .home-delivery__aside,
   .home-delivery__map-stage {
      min-width: 0;
   }

   .home-delivery__map {
      max-width: min(100%, 941px);
   }
}

@media (max-width: 1300px) {

   .home-delivery__head {
      grid-template-columns: 1fr;
      max-width: 1147px;
      gap: 20px;
      align-items: flex-start;
   }

   .home-delivery__title {
      max-width: 100%;
   }

   .home-delivery__logos {
      justify-content: flex-start;
      max-width: 495.535px;
   }

   .home-delivery__grid {
      max-width: 1147px;
      grid-template-columns: minmax(0, 382fr) minmax(0, 730fr);
      min-width: 0;
   }

   .home-delivery__aside,
   .home-delivery__map-stage {
      min-width: 0;
   }

   .home-delivery__map-stage {
      display: block;
      justify-self: center;
      width: fit-content;
      max-width: min(100%, 730px);
      margin-left: auto;
      margin-right: auto;
   }

   .home-delivery__map {
      display: block;
      width: auto;
      max-width: min(100%, 730px);
      height: auto;
      margin-left: auto;
      margin-right: auto;
      object-fit: contain;
   }

   .home-delivery__card {
      box-sizing: border-box;
      max-width: 382px;
      width: 100%;
      min-height: 422px;
   }

   .home-delivery__truck {
      width: 380px;
      margin-left: 72px;
      margin-bottom: -80px;
   }

   .home-delivery__aside {
      margin-top: 44px;
   }
}

@media (max-width: 1024px) {
   .home-delivery {
      overflow-x: clip;
   }

   .home-delivery__head {
      grid-template-columns: 1fr;
      max-width: none;
      gap: 20px;
   }

   .home-delivery__logos {
      justify-content: flex-start;
   }

   .home-delivery__grid {
      grid-template-columns: 1fr;
      grid-template-areas: "aside" "map";
      max-width: none;
   }

   .home-delivery__aside {
      margin-top: 28px;
   }

   .home-delivery__map-stage {
      margin-top: 24px;
      justify-self: center;
      width: fit-content;
      max-width: 100%;
   }

   .home-delivery__map {
      width: auto;
      max-width: 100%;
      height: auto;
      object-fit: contain;
   }

   .home-delivery__card {
      min-height: 0;
   }

   .home-delivery__btn {
      margin-top: 12px;
   }

   .home-delivery__truck {
      margin-top: 16px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: -48px;
      align-self: center;
   }
}

@media (max-width: 640px) {
   .home-delivery {
      padding: 32px 16px 40px;
   }

   .home-delivery__grid {
      grid-template-areas: "aside";
   }

   .home-delivery__map-stage {
      display: none;
   }

   .home-delivery__head {
      gap: 20px;
      padding-bottom: 20px;
   }

   .home-delivery__title {
      font-size: 20px;
      line-height: 1.25;
      min-height: 0;
   }

   .home-delivery__logos {
      gap: 12px;
      justify-content: flex-start;
   }

   .home-delivery__card {
      min-height: 0;
      max-width: 100%;
      padding: 0;
      overflow: visible;
      align-items: stretch;
      background: transparent;
   }

   .home-delivery__text {
      order: 1;
      box-sizing: border-box;
      margin: 0;
      max-width: none;
      padding: 20px 20px 16px;
      background: rgba(84, 121, 184, 0.8);
      border-radius: 20px;
      font-size: 14px;
      padding-bottom: 90px;
   }
   .home-delivery__head {
      border: none;
   }
   .home-delivery__text p {
      line-height: 1.45;
   }
   .home-delivery__aside{
      margin: 0px;
   }

   .home-delivery__text p:first-child {
      margin-bottom: 14px;
   }

   .home-delivery__text p:nth-child(2) {
      margin-bottom: 6px;
   }

   .home-delivery__card-truck-wrap {
      display: flex;
      order: 2;
      box-sizing: border-box;
      justify-content: center;
      align-self: stretch;
      width: 100%;
      margin: -100px 0 0;
      border-radius: 0 0 20px 20px;
   }

   .home-delivery__truck {
      width: 100%;
      max-width: 350px;
      margin: 0 auto;
   }

   .home-delivery__btn {
      order: 3;
      box-sizing: border-box;
      width: calc(100% - 18px);
      max-width: 341px;
      margin: 16px auto 0;
      padding: 10px 15px;
      min-height: 48px;
      border: 1px solid #ffffff;
      border-radius: 6px;
      background: #5479b8;
      color: #ffffff;
      justify-content: center;
      text-align: center;
   }

   .home-delivery__chip {
      padding: 3px 8px;
      gap: 4px;
      min-height: 0;
      line-height: 1.2;
   }

   .home-delivery__chip-pin {
      width: 8px;
      height: 8px;
      max-width: 8px;
      max-height: 8px;
   }
   .dectop_main{
      padding: 0px;
   }
}
