/* Десктопная верхняя панель Amadei. Действия и мобильная версия темы сохранены. */
@media screen and (min-width: 1200px) {
  #top { background: #fff; padding: 0; }
  #top > .container { width: 100%; max-width: 1330px; padding: 0 15px; }
  #top #top-links { float: none !important; width: 100%; padding: 0; margin: 0; text-align: left; }
  #top #top-links > .list-inline { display: flex; align-items: center; justify-content: flex-start; min-height: 94px; gap: 0; padding: 0; margin: 0; }
  #top #top-links > .list-inline > li { flex: 0 0 auto; padding: 0; }
  #top #top-links > .list-inline > .top_search,
  #top #top-links > .list-inline > .top_nav_button_whatsapp,
  #top .top_call .am-original-buy { display: none; }
  #top .top_call .am-callback { display: inline-block; }
  #top #top-links > .list-inline > .top_call,
  #top #top-links > .list-inline > .am-max,
  #top #top-links > .list-inline > .cities,
  #top #top-links > .list-inline > .top_timetable,
  #top #top-links > .list-inline > .am-header-cart { margin-left: auto; }
  #top #top-links > .list-inline > .top_nav_button_telegramm { margin-left: 8px; }
  #top #top-links, #top #top-links a { font-family: 'PT Sans Narrow', sans-serif; }
  #top .top_button_phone > a { display: flex; align-items: center; gap: 14px; color: #262824; text-decoration: none; }
  #top .top_button_phone > a > img { display: block; box-sizing: border-box; width: 46px; height: 46px; padding: 11px; border: 1px solid #e6e6e1; border-radius: 50%; }
  #top .am-phone-text { text-align: left; }
  #top .am-phone-number { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
  #top .am-phone-caption { display: block; margin-top: 5px; color: #8b8e87; font-size: 14px; font-weight: 400; line-height: 1; }
  #top .top_call .top_nav_button { display: inline-block; padding: 12px 22px; border: 1px solid #d5d8d1; border-radius: 28px; background: #fff; color: #30342e; font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
  #top .top_call .top_nav_button.am-original-buy { display: none; }
  #top #top-links .top_call .top_nav_button:hover { background: #1c1c1c; border-color: #1c1c1c; color: #fff; }
  #top #top-links .top_call .top_nav_button:active, #top #top-links .top_call .top_nav_button:focus { background: #1c1c1c; border-color: #1c1c1c; color: #fff; }
  #top .am-max, #top .cities, #top .am-header-cart { position: relative; }
  #top #top-links > .list-inline > .am-max::before,
  #top #top-links > .list-inline > .cities::before,
  #top #top-links > .list-inline > .am-header-cart::before { content: ''; position: absolute; top: 50%; left: -20px; height: 33px; border-left: 1px solid #e5e6e2; transform: translateY(-50%); pointer-events: none; }
  #top .am-max a, #top .top_nav_button_telegramm a { display: block; box-sizing: border-box; width: 42px; height: 42px; border: 1px solid #e7e9e3; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 22px 22px; }
  #top #top-links .am-max a:hover, #top #top-links .top_nav_button_telegramm a:hover { background-color: #f5f5f5 !important; }
  #top .top_nav_button_telegramm a:hover { background-image: url(../image/telegram.svg); }
  #top .am-max a { background-image: url(../image/amadei-max.svg); }
  #top .am-max a[aria-disabled="true"] { cursor: default; }
  #top .cities.b-btn { display: block; padding: 10px 15px !important; border: 1px solid #d5d8d1; border-radius: 28px; background: #fff; color: #30342e; cursor: pointer; }
  #top #top-links .cities.b-btn:hover { border-color: #899489; background: #f5f5f5 !important; }
  #top .cities .prmn-cmngr__city, #top .cities.b-btn:hover .prmn-cmngr__city { display: inline-flex; align-items: center; gap: 6px; color: #30342e; font-size: 18px; font-weight: 700; line-height: 1.2; cursor: pointer; }
  #top .cities .prmn-cmngr__city .prmn-cmngr__city-name { padding-right: 0; }
  #top .cities .prmn-cmngr__city::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: -3px 2px 0 4px; border-right: 1.5px solid #7b8278; border-bottom: 1.5px solid #7b8278; transform: rotate(45deg); }
  #top .cities .prmn-cmngr__city .fa-map-marker { padding: 0; color: #777f70; font-size: 19px; }
  #top .cities.b-btn:hover .fa-map-marker::before { color: #777f70; background: transparent; }
  #top .am-timetable-original { display: none; }
  #top .am-timetable-desktop { display: block; color: #777d72; font-size: 16px; line-height: 1.4; white-space: nowrap; }
  #top .am-timetable-desktop strong, #top .am-timetable-desktop > span { display: block; }
  #top .am-timetable-desktop strong { color: #343a32; font-size: 18px; font-weight: 700; }
  #top .am-timetable-desktop > span { font-weight: 400; }
  #top .am-header-cart #cart { width: auto; margin-bottom: 0; }
  #top .am-header-cart #cart_btn { display: flex; align-items: center; gap: 12px; color: #262824; font-size: 18px; font-weight: 700; white-space: nowrap; }
  #top .am-header-cart .icon_shopping-cart { top: auto; box-sizing: border-box; width: 46px; height: 46px; border: 1px solid #e6e6e1; border-radius: 50%; background-position: center; background-size: 22px 25px; }
  #top .am-header-cart #cart:has(.dropdown-menu p.text-center) #cart_btn > span::after { content: 'Пока пусто'; display: block; margin-top: 5px; color: #999e96; font-size: 14px; font-weight: 400; line-height: 1; }
  #top .am-header-cart #cart.open > #cart_btn, #top .am-header-cart #cart.open > #cart_btn:hover, #top .am-header-cart #cart.open > #cart_btn:focus { background: transparent; color: #262824; box-shadow: none; }
  #top .am-header-cart #cart > .dropdown-menu { right: 0; left: auto; top: calc(100% + 12px); min-width: 290px; max-width: min(480px, calc(100vw - 30px)); padding: 12px; border: 1px solid #e8ebe5; border-radius: 14px; background: #fff; color: #262824; box-shadow: 0 12px 36px rgba(38,48,38,.13); }
  #top .am-header-cart #cart > .dropdown-menu:has(table) { width: 460px; }
  #top .am-header-cart #cart > .dropdown-menu > li { padding: 0; }
  #top .am-header-cart #cart > .dropdown-menu > li > p.text-center { margin: 0; padding: 18px 12px 20px; color: #343a32; font-size: 18px; line-height: 1.3; }
  #top .am-header-cart #cart > .dropdown-menu > li > p.text-center::before { content: ''; display: block; width: 48px; height: 48px; margin: 0 auto 12px; border: 1px solid #e5e9e2; border-radius: 50%; background: #f7f9f6 url('../image/cart.svg') center / 22px 25px no-repeat; }
  #top .am-header-cart #cart .dropdown-menu table, #top .am-header-cart #cart .dropdown-menu tr { background: #fff; color: #343a32; }
  @media (max-width: 1350px) { #top #top-links > .list-inline > .am-max::before, #top #top-links > .list-inline > .cities::before, #top #top-links > .list-inline > .am-header-cart::before { left: -10px; } }
}

/* В мобильной панели меняем только мессенджер, сохраняя прежние размеры и отступы. */
@media screen and (max-width: 1199px) {
  #top .top_nav_button_whatsapp a,
  #top .top_nav_button_whatsapp a:hover { background-image: url('../image/amadei-max.svg'); }
  #top .top_nav_button_whatsapp a::before { background-image: url('../image/amadei-max.svg'); }
}
