@media (max-width: 999px) {
  .shell {
    width: 100%;
  }
  .right {
    width: 70%;
  }
  .left {
    width: 30%;
  }
  .slider,
  .top-nav,
  .container2 {
    width: 100% !important;
  }
  .navigation ul {
    background-color: #323232;
    margin-left: 0px;
    padding-left: 23px;
    display: block;
  }
  .table {
    clear: both;
  }
  .top-nav {
    width: 100%;
  }
}
@media (max-width: 850px) {
  .black_title {
    font-size: 12px !important;
  }
  .leftbox iframe {
    display: none;
  }
  .right,
  .left {
    width: 100%;
  }
  .llogo {
    overflow: hidden;
  }
  .slider {
    display: none;
  }
  #form1 tr td:nth-child(2) {
    width: 10% !important;
  }
  .OrderProductTitle {
    word-wrap: break-word;
  }

  #dgeucookielaw p {
    display: none !important;
  }
  #dgeucookielaw {
    position: static !important;
    width: 92% !important;
  }
  .content .right-side {
    padding: 20px;
  }
  .left-side,
  .right-side {
    max-width: 100%;
    width: auto;
    float: none;
  }
  .content .right-side {
    padding: 20px;
  }

  .content .right .rightbox .right-side {
    padding: 20px;
    width: auto;
    float: none;
  }
  body,
  .content .right .rightbox .right-side .section > p,
  .content .right .rightbox .right-side .section label {
    font-size: 14px;
  }
  #orderIt {
    width: 90%;
    text-align: center;
  }
  .content .right .rightbox .right-side .section label {
    margin: 10px;
  }
  .top-nav li a,
  .topphone strong,
  .telporachki {
    font-size: 12px !important;
  }
  .harakteristiki-produkt__row dt {
    font-size: 13px;
  }
  .harakteristiki-produkt__row dd {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .Ccontent .right .rightbox .right-side {
    width: 94%;
  }
  .Ccontent .right .rightbox .left-side {
    width: 90%;
  }
}

/* ---- mobile cleanup (2026-11) ---- */
@media (max-width: 850px) {
  /* no horizontal scrolling */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }
  img,
  iframe,
  table,
  video {
    max-width: 100%;
  }
  .shell,
  .content,
  .header,
  .navigation,
  .footer {
    max-width: 100%;
    box-sizing: border-box;
  }
  .logo a img {
    max-width: 100%;
    height: auto;
  }

  /* hide top bar (блог, срокове, общи условия, контакти) */
  .topheader {
    display: none;
  }

  /* search button */
  .header .search {
    width: auto;
  }
  .header .search .search-open {
    padding: 8px 12px;
  }

  /* footer */
  .footer .left,
  .footer .right {
    float: none;
    width: auto;
    text-align: center;
  }
  .footer-social {
    margin: 10px 0;
  }
  .footer-fb,
  .footer-trust {
    float: none;
    text-align: center;
    margin: 10px auto;
  }
  .footer-trust img {
    height: 55px;
    margin: 0 8px;
  }
}

/* ---- header layout for tablet / phone (2026-11) ----
   normal flow instead of float + absolute positions:
   row 1: logo | row 2: phone · cart · search button */
@media (max-width: 999px) {
  .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 10px;
    box-sizing: border-box;
  }
  .header > .cl {
    display: none;
  }
  .header .logo {
    float: none;
    flex: 0 0 100%;
    margin: 0;
    text-align: center;
  }
  .header .logo a img {
    margin: 0 !important; /* overrides inline negative margins (incl. December logo) */
    max-width: 100%;
    height: auto;
  }
  .header .header-info {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
  }
  .header .header-info > .cl {
    display: none;
  }
  .header .topphone {
    position: static;
    float: none;
    margin: 0;
    padding: 0;
    right: auto;
    order: 1;
  }
  .header .bag {
    float: none;
    width: auto;
    margin: 0;
    order: 2;
    display: flex;
    align-items: center;
  }
  .header .bag img {
    display: block;
    float: none;
    height: 34px;
    padding: 0 8px 0 0;
  }
  .header .bag p {
    padding: 0;
  }
  .header .search {
    position: static !important;
    float: none;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }
}
@media (max-width: 480px) {
  .header .topphone {
    flex: 0 0 100%;
    text-align: center;
  }
  .header .header-info {
    justify-content: center;
  }
  .header .bag p {
    font-size: 11px;
  }
  .header .telefoncheto {
    font-size: 18px !important;
  }
}

/* logo.png is 645x104 but the visible part is only ~322x60 (bottom-left);
   crop the transparent area so it doesn't leave empty space on small screens */
@media (max-width: 999px) {
  .header .logo a.logo-plain {
    display: block;
    width: 330px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 322 / 60;
  }
  .header .logo a.logo-plain img {
    display: block;
    width: 200.3%;
    max-width: none;
    height: auto;
    margin: -13.7% 0 0 0 !important;
  }
}
@media (max-width: 480px) {
  .header .search {
    flex: 0 0 100%;
    text-align: center;
  }
}
@media (max-width: 999px) {
  .header .rabotnotovreme p {
    margin: 0 !important;
  }
}

/* home product carousels: products per view */
@media (max-width: 999px) {
  .pcarousel__track { grid-auto-columns: calc((100% - 12px) / 3); }
}
@media (max-width: 600px) {
  /* 2 products + a peek of the next one, so it is obvious the row can be swiped */
  .pcarousel__track { grid-auto-columns: calc((100% - 12px) / 2.25); }
}
