/* Mobile iteration 8A: address-first footer with compact pickup accordion. */
@media (width < 820px){
  .contacts-footer{grid-template-rows:auto 44px 44px 11px auto;}
  .contacts-footer::before{grid-row:2 / 4;}
  .contacts-footer::after{content:'';grid-column:1 / -1;grid-row:4;align-self:center;width:100%;height:1px;background:rgba(255,255,255,.16);}

  .contacts-footer__addresses{grid-row:1;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:4px;border-top:0;border-bottom:1px solid rgba(255,255,255,.20);}
  .contacts-footer__phones{grid-row:2 / span 2;}
  .contacts-footer__bar-group:nth-of-type(2){grid-row:2;}
  .contacts-footer__email{grid-row:3;}
  .contacts-footer__franchise{grid-row:5;margin:0 15px 0 0;}
  .contacts-footer__policy{grid-row:5;margin:0 0 0 4px;}
  .contacts-footer__franchise a::before{left:8px;right:8px;border-color:rgba(41,171,226,.40);}

  /* Main office stays the visual anchor of the address group. */
  .contacts-footer__addresses > .contacts-footer__address:first-child .contacts-footer__address-text{margin-top:6px;}
  .contacts-footer__addresses > .contacts-footer__address:first-child .contacts-footer__address-text::before{content:"г. Красногорск, ул. Успенская, д. 3\AДЦ «Успенский», 4 этаж, офис 403";}
  .contacts-footer__addresses > .contacts-footer__address:first-child .contacts-footer__hours{margin-top:3px;font-size:0;line-height:0;}
  .contacts-footer__addresses > .contacts-footer__address:first-child .contacts-footer__hours::before{content:"Режим работы: пн-пт 09:00-19:30 · Онлайн 24/7";display:block;font-size:16px;line-height:21px;text-align:center;}

  /* Pick-up points belong to the same address composition, so the accordion is flat. */
  .contacts-footer__pickup-accordion{width:100%;max-width:360px;margin:11px auto 0;border:0;border-radius:0;background:transparent;box-sizing:border-box;overflow:visible;}
  .contacts-footer__pickup-summary{position:relative;display:block;width:100%;min-height:44px;padding:10px 8px 7px;box-sizing:border-box;color:#fff;text-align:center;cursor:pointer;list-style:none;background:transparent;-webkit-tap-highlight-color:transparent;transition:background-color 160ms ease-out;}
  .contacts-footer__pickup-summary::before{content:'';position:absolute;top:0;left:10%;right:10%;height:1px;background:rgba(255,255,255,.14);}
  .contacts-footer__pickup-summary::-webkit-details-marker{display:none;}
  .contacts-footer__pickup-summary:hover,.contacts-footer__pickup-summary:active{background:transparent;}
  .contacts-footer__pickup-summary:focus-visible{outline:2px solid #29ABE2;outline-offset:-3px;border-radius:6px;}
  .contacts-footer__pickup-title,.contacts-footer__pickup-action{display:block;}
  .contacts-footer__pickup-title{font-size:20px;line-height:25px;font-weight:700;}
  .contacts-footer__pickup-action{margin-top:2px;color:#29ABE2;font-size:15px;line-height:20px;font-weight:700;}
  .contacts-footer__pickup-toggle--close{display:none;}
  .contacts-footer__pickup-accordion[open] .contacts-footer__pickup-toggle--open{display:none;}
  .contacts-footer__pickup-accordion[open] .contacts-footer__pickup-toggle--close{display:inline;}
  .contacts-footer__pickup-body{padding:5px 0 7px;border-top:0;box-sizing:border-box;}

  .contacts-footer__pickup-body .contacts-footer__address{margin:0;padding:0 2px;}
  .contacts-footer__pickup-body .contacts-footer__address::before{content:none;}
  .contacts-footer__pickup-body .contacts-footer__address + .contacts-footer__address{position:relative;margin-top:8px;padding-top:9px;border-top:0;}
  .contacts-footer__pickup-body .contacts-footer__address + .contacts-footer__address::before{content:'';position:absolute;top:0;left:10%;right:10%;height:1px;background:rgba(255,255,255,.14);}
  .contacts-footer__pickup-body .contacts-footer__address-type::before{content:none!important;display:none!important;}
  .contacts-footer__pickup-body .contacts-footer__address-text{margin-top:0!important;}
  .contacts-footer__pickup-body .contacts-footer__address-text::before{display:block;font-size:18px;line-height:24px;white-space:pre-line;text-align:center;}
  .contacts-footer__pickup-body .contacts-footer__address:nth-child(1) .contacts-footer__address-text::before{content:"г. Красногорск, Железнодорожный пер., 7\AТЦ «Пассаж»";}
  .contacts-footer__pickup-body .contacts-footer__address:nth-child(2) .contacts-footer__address-text::before{content:"го Красногорск, деревня Гольёво\AЦентральная улица, 1Б";}
  .contacts-footer__pickup-body .contacts-footer__address:nth-child(3) .contacts-footer__address-text::before{content:"г. Красногорск, ул. Карбышева, 10\Aкорп. 2, 1 этаж, фотостудия";}
}

@media (max-width:359px){
  .contacts-footer__pickup-accordion{max-width:100%;}
  .contacts-footer__pickup-summary{padding:9px 6px 6px;}
  .contacts-footer__pickup-title{font-size:19px;line-height:24px;}
  .contacts-footer__pickup-action{font-size:15px;line-height:20px;}
  .contacts-footer__pickup-body{padding:5px 0 7px;}
  .contacts-footer__pickup-body .contacts-footer__address-text::before{font-size:17px;line-height:23px;}
}
