@media screen and (min-width: 1290px) {
  header h1 i {
    font-size: 58px;
  }

  #header_address {
    margin-top: 25px;
    font-size: 17px !important;
    line-height: 16px !important;
  }
  #header_address span {
    font-size: 17px !important;
  }
  #product_basket {
    height: 48px;
    padding: 4px;
    font-size: 14px;
    line-height: 12px;
    font-weight: 500;
  }
  #product_basket img {
    width: 24px;
    height: auto;
  }
  #product_price h2 {
    font-weight: 500px;
  }
  #product_price h2 b {
    font-size: 24px;
  }
  #product_price p {
    padding-top: 4px;
  }
  .number:not(#basket_mail .number) {
  }
  @media screen and (max-width: 1024px) {
    #nav a:not(#nav_home),
    #basket_show {
      padding: 0 0.5%;
      font-size: 13px;
    }
  }
  @media screen and (max-width: 800px) {
    #nav a:not(#nav_home),
    #basket_show {
      padding: 0 2%;
    }
    .a_page {
      width: 0 !important;
      display: none !important;
    }
    #nav_search {
      width: 45%;
    }
    header img {
      position: relative;
      left: 0;
      width: 100%;
    }
    header a {
      position: relative;
      overflow: hidden;
      margin: 0;
      border-bottom: none;
    }
    #index {
      grid-template-areas:
        "h2"
        "catalog_home"
        "news_home";
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      margin: 0;
      grid-gap: 0;
      padding: 1px;
    }
    #index h2 a {
      font-size: 2.8vw;
      line-height: normal;
    }
    h1 {
      font-size: 24px;
      margin: 0;
    }
    #catalog_home {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      grid-gap: 0;
      margin: 0;
    }
    #product {
      display: block;

      position: relative;
      top: 0;
    }
    #product_photos,
    #product_info {
      display: block;
      width: 100%;
      padding: 0;
      position: relative;
      top: 0;
    }
  }
  @media screen and (max-width: 500px) {
    #skidki {
      display: none;
    }
    #skidki_mini {
      display: block;
      width: 100%;
      height: auto;
      margin-bottom: 5px;
    }
  }
  @media screen and (max-width: 430px) {
    #product_article {
      font-size: 12px;
    }

    #product_article .sale {
      line-height: 12px;
      padding: 2px 5px !important;
      text-align: center;
      font-size: 12px;
    }
    #product_article b {
      padding: 0 5px 0 2px;
      font-size: 12px;
    }
    #product_article .comp,
    #product_article img {
      width: 70px !important;
      height: auto;
      margin-top: 2px;
    }
    #page {
      margin: 10px 1% !important;
    }
    #page h1 {
      font-weight: 400 !important;
      font-size: 26px !important;
    }
    #page ol {
      margin-left: 2%;
    }
    .dostavka td {
      font-size: 16px !important;
      line-height: 20px !important;
    }
    b {
      font-weight: 500;
    }
    #product_price {
      padding: 9px 1%;
      width: 98%;
    }
    #product_price p {
      padding-top: 10px;
    }
    #product_basket.active {
      line-height: 18px !important;
    }
    #nav a,
    #basket_show,
    #lupa {
      width: 15%;
      margin: 0 !important;
    }
    #nav_home {
      width: 19% !important;
    }
    #nav_catalog {
      font-size: 0 !important;
      padding: 0 !important;
    }
    #round {
      top: 8px;
      width: 40px;
      height: 16px;
      margin-right: 0;
    }
    #round i {
      height: 3px;
      width: 55%;
      background-color: #444743;
    }
    #nav_catalog:hover i:nth-child(2n + 1),
    .show_tree #round i:nth-child(2n + 1) {
      background: #0096ff;
    }
    #nav_catalog:hover i:nth-child(2n),
    .show_tree #round i:nth-child(2n) {
      background: #0096ff;
    }
    #nav_search {
      display: none;
      position: absolute;
      top: 0;
      width: 100%;
      margin: 0;
      z-index: -777;
      box-shadow: 0 4px 7px rgba(0, 0, 0, 0.14);
      background-color: #fff;
    }
    #nav_search input[type="text"] {
      width: 76%;
      margin-left: 2%;
    }
    #lupa {
      display: inline-block;
      height: 48px;
      background-image: url(img/lupa.png);
      background-repeat: no-repeat;
      background-position: center center;
      background-color: #fff;
    }
    #lupa:hover {
      background-color: #eaedfd;
    }
    #bbat {
      padding: 0 !important;
      font-size: 16px !important;
    }
    #gflag b {
      width: 54px;
    }
    #gflag b img {
      padding-left: 2px;
    }
    #basket_show {
      margin: 0 !important;
      padding: 0 !important;
      font-size: 0;
      background: url(img/basket_in.png);
      background-repeat: no-repeat;
      background-position: center center;
    }
    .basket_complete {
      background: url(img/basket_1.png) !important;
      background-repeat: no-repeat !important;
      background-position: center center !important;
    }
    #basket_show.active,
    #basket_show:hover {
      font-size: 0;
    }

    #basket_show sup {
      float: right;
      margin: 9px 14px 0 0;
      vertical-align: top;
    }
    #tab_sk td,
    #tab_sk tr {
      font-size: 14px;
    }
    #nav_catalog_links {
      grid-template-columns: 48% 52%;
      background-color: #f0f2f4;
      height: 90%;
    }
    #nav_catalog_tree a {
      line-height: 16px;
      padding: 5px 0 5px 3px;
      font-size: 14px;
    }
    #nav_catalog_tree li a:after {
      content: "";
    }
    #nav_catalog_tree a img {
      padding: 0 2px 0 0;
    }
    #root_hover {
      box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    }
    #nav_catalog_chapter {
      font-size: 14px;
      padding: 0 0 0 5px;
      background-color: #fff;
      box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    }
    #nav_catalog_chapter li {
      margin: 0;
    }
    #nav_catalog_chapter img {
      display: none;
    }
    #nav_catalog_chapter ul,
    #nav_catalog_chapter ul ul {
      margin: 0;
    }
    #nav_catalog_chapter ul ul {
      display: none;
    }
    #nav_catalog_chapter li a {
      padding: 7px 0;
      border-bottom: solid 1px #ddd;
      line-height: 16px;
      justify-content: space-between;
    }
    #nav_catalog_chapter li a:has(+ ul):after {
      content: "\1F863";
      padding: 0 5px 0 2px;
    }
    #nav_catalog_chapter li li a:after {
      content: "";
    }
    #nav_catalog_chapter li li {
      padding: 0 0 0 10px;
    }
    #nav_catalog_chapter li li a {
      padding: 9px 0;
      font-size: 13px;
    }
    .ss_rod {
      color: #0096ff !important;
    }
    #index {
      grid-template-areas:
        "h2"
        "catalog_home"
        "news_home";
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    #index h2,
    #news_home h2 {
      margin: 10px 0;
      text-align: center;
    }
    #index h2 a {
      padding: 10px 0;
      font-size: 19px;
      line-height: 24px;
    }
    #catalog_home {
      grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
    .catalog a:first-child:not(p a) {
      font-size: 15px;
    }
    #news_home {
      display: block;
      width: 100%;
      margin: 0;
      text-align: center;
    }
    #breadcrumb {
      margin: 5px 0 0 0;
      padding: 0;
      line-height: 0;
    }
    #breadcrumb li:nth-last-child(n + 2):after {
      font-size: 15px;
    }
    #breadcrumb a {
      margin: 0;
      padding: 5px;
      line-height: 18px;
      font-size: 13px;
      font-family: Arial, Helvetica, sans-serif;
    }
    #breadcrumb li:nth-child(1),
    #breadcrumb li i[data-url*="catalog"] {
      display: none;
    }
    h1 {
      font-size: 19px;
      font-weight: 500;
      line-height: 24px;
      margin: 5px 0 10px 0;
    }
    h2,
    aside h2 {
      font-size: 18px;
      font-weight: 500;
      line-height: 22px;
      margin: 10px 0;
    }
    #kpk {
      margin: 20px 0 5px 0;
    }
    #catalogs_lenta,
    #aside_product {
      display: block;
      width: 100% !important;
    }
    #product {
      padding: 0 7px;
    }
    #product_photos {
      padding: 0;
      width: 100%;
    }
    #photo_big {
      width: calc(100% + 14px) !important;
      margin: 0 -7px 0 -7px;
      height: 260px !important;
    }
    #photo_big img {
      max-height: 260px !important;
    }
    #product_icons {
      padding: 0;
    }
    #product_icons img {
      padding: 1px;
      width: 12.8%;
      height: auto;
      border: 1px solid #e6e6e6;
      margin: 0 1px 1px 0;
      cursor: pointer;
    }
    .icon_active {
      border: 1px solid #0096ff !important;
    }
    .product {
      display: block;
      width: 98%;
      height: 114px;
      padding: 2px;
      overflow: hidden;
    }
    .product img:not(.in_basket) {
      display: block;
      float: left;
      width: 180px;
      height: auto;
    }
    .product span {
      bottom: 2px;
      top: auto;
    }
    .in_basket {
      width: 24px;
      height: auto;
    }
    .product b {
      margin: 3px 0;
      text-align: left;
    }
    .product i {
      line-height: 18px;
      margin: 0;
      font-size: 14px;
    }
    #basket {
      width: 100% !important;
      right: 0 !important;
      font-size: 12px;
      padding: 10px 0 5px 0 !important;
      line-height: 14px !important;
    }
    #basket p {
      font-size: 14px;
      padding: 7px;
      line-height: 18px;
    }
    #basket td,
    #basket th,
    .sdem {
      padding: 1px !important;
    }
    .sdem b {
      font-size: 12px;
      line-height: 14px !important;
    }
    .number:not(#basket_mail .number) {
      right: 52%;
      font-size: 12px !important;
      line-height: 32px !important;
      top: 8px !important;
    }
    .product_number {
      line-height: 32px !important;
      height: 32px !important;
    }
    #basket .number b {
      display: block !important;
      font-size: 24px !important;
      line-height: 24px !important;
    }
    #catalog_sort h2 {
      display: block;
      margin: 5px;
      font-size: 18px;
      line-height: normal;
    }
    #catalog_sort a {
      font-size: 13px;
      line-height: 28px;
      padding: 0 3px;
      margin: 0;
    }
    #category_child a {
      padding: 2px;
      font-size: 15px;
    }
    #basket tr > *:nth-child(2):not(.active_2, #tab_sk td) {
      display: none;
    }
    #basket a,
    #basket a b,
    #basket .n-minus,
    #basket .n-plus {
      width: auto !important;
    }
    #basvn b {
      width: 98% !important;
    }
    #basket_print {
      display: inline-block !important;
      background-color: #5186d7 !important;
    }
    #basket input {
      margin: 5px 0 !important;
    }
    #variative a,
    #variative b {
      min-width: 13.2%;
      padding: 0 1%;
      margin: 0.3% 0;
      line-height: 24px;
    }
    #description p {
      margin: 10px 0;
    }
    #popular a {
      width: 32%;
      height: auto;
    }
    #popular img {
      width: 100%;
      height: auto;
    }
    .small {
      margin: 10px -7px !important;
    }
    footer {
      font-size: 12px;
      display: block;
      margin: 0;
      height: auto;
      padding: 5px 0 60px 0;
    }
    footer div {
      line-height: normal;
      display: inline-block;
      width: 32.5%;
      height: 50%;
      vertical-align: top;
      margin: 0;
    }
    footer div b {
      font-size: 13px;
    }
    .button,
    button {
      padding: 4px 5px;
      font-size: 13px;
      margin: 2px 0;
    }
    #log_b2b {
      margin: 2px;
    }
    #log_b2b input {
      padding: 6px 10px;
      font-size: 13px;
    }

    #b2b_user,
    #b2b_order,
    #status_order,
    table {
      width: 100% !important;
      float: none !important;
      font-size: 13px;
      line-height: 17px;
      margin: 0 !important;
    }
    table td,
    table th,
    #table_sort td {
      font-size: 13px !important;
      padding: 2px !important;
      line-height: 14px !important;
    }
    #b2b_excel,
    #b2b_del_order {
      padding: 3px 8px;
      margin: 4px;
      font-size: 13px;
    }
    #b2b_vz {
      padding: 0 4px !important;
    }
    #b2b_order h2 {
      width: 100% !important;
      clear: both;
    }
    .tabhid tr > *:nth-child(5),
    .tabhid tr > *:nth-child(7),
    .tabhid tr > *:nth-child(8) {
      display: none;
    }
  }
}
