/*
   Unified clean responsive stylesheet for silikonovaya-smazka.ru
   Replaces old Artisteer style.css + style.responsive.css + menu JS dependency.
   Keep existing HTML class names and inline content styles.
*/

:root {
  --page-bg: #ffffff;
  --sheet-bg: rgba(249, 250, 250, 0.94);
  --text: #101213;
  --muted: #484f56;
  --blue: #1f7bc7;
  --blue-dark: #175d96;
  --blue-deep: #063284;
  --link: #2055b6;
  --link-visited: #e56b00;
  --link-hover: #ff8a24;
  --border: #aab2b6;
  --rule: #d8dde2;
  --footer: #00458f;
  --radius: 6px;
  --max-width: 100%;
  --sidebar-width: 220px;
  --gap: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--page-bg) url('images/page.gif') fixed;
  font: 14px/1.55 Arial, 'Arial Unicode MS', Helvetica, sans-serif;
}

#art-main {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  cursor: default;
}

article,
footer,
header,
nav,
.art-sheet,
.art-layout-cell,
.art-button,
.art-hmenu a,
.art-vmenu a {
  box-sizing: border-box;
}

.clearfix::after,
.art-header::after,
.art-layout-wrapper::after,
.art-layout-cell::after,
.art-nav::after,
.art-sheet::after,
.art-footer::after {
  content: '';
  display: table;
  clear: both;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, li {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

ol {
  list-style-position: inside;
}

img,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

form {
  margin: 0 !important;
  padding: 0 !important;
}

/* Header */
.art-header {
  position: relative;
  min-height: 180px;
  margin: 0 auto;
  border-bottom: 2px solid var(--link);
  background: url('images/header.png') center top no-repeat;
  overflow: hidden;
}

.art-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.art-object49381383 {
  position: absolute;
  z-index: 1;
  top: -2px;
  left: 50%;
  width: 1050px;
  height: 150px;
  margin-left: -525px;
  background: url('images/object49381383.png') 0 0 no-repeat;
}

/* Top menu */
.art-nav {
  position: absolute;
  z-index: 100;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2px 10px;
}

.art-nav-inner {
  width: 100%;
  margin: 0;
  padding: 0 10px;
  text-align: right;
}

ul.art-hmenu,
ul.art-hmenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.art-hmenu {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  vertical-align: middle;
}

ul.art-hmenu li {
  position: relative;
  margin: 0;
  padding: 0;
}

ul.art-hmenu a,
ul.art-hmenu a:link,
ul.art-hmenu a:visited {
  position: relative;
  z-index: 11;
  display: block;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: bold;
  line-height: 27px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  outline: none;
}

ul.art-hmenu > li > a.active,
ul.art-hmenu a:hover,
ul.art-hmenu li:hover > a,
ul.art-hmenu li:focus-within > a {
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

ul.art-hmenu ul {
  position: absolute;
  z-index: 200;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 8px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--blue);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

ul.art-hmenu li:hover > ul,
ul.art-hmenu li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

ul.art-hmenu ul li {
  margin: 2px 0;
}

ul.art-hmenu ul a,
ul.art-hmenu ul a:link,
ul.art-hmenu ul a:visited {
  min-width: 160px;
  height: auto;
  min-height: 27px;
  padding: 0 14px;
  border-color: rgba(255,255,255,.35);
  border-radius: 4px;
  background: rgba(255,255,255,.12);
  line-height: 25px;
  text-transform: none;
}

ul.art-hmenu ul a:hover,
ul.art-hmenu ul a.active,
ul.art-hmenu ul li:hover > a {
  background: rgba(255,255,255,.24);
}

ul.art-hmenu ul ul {
  top: 0;
  left: 100%;
}

/* Main sheet and layout */
.art-sheet {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid rgba(141, 150, 160, 0.8);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: var(--sheet-bg);
  box-shadow: 0 0 3px 2px rgba(0,0,0,.13);
  cursor: auto;
}

.art-layout-wrapper {
  position: relative;
  margin: 0 auto;
}

/* Only the main page layout becomes a sidebar/content grid. */
.art-sheet > .art-layout-wrapper > .art-content-layout,
.art-sheet > .art-layout-wrapper > .art-content-layout > .art-content-layout-row {
  display: block;
  width: 100%;
}

.art-sheet > .art-layout-wrapper > .art-content-layout > .art-content-layout-row {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.art-layout-cell {
  vertical-align: top;
}

.art-content-layout .art-sidebar1 {
  width: auto;
  margin: 0;
  border-radius: 3px 0 0 0;
}

.art-content-layout .art-content {
  min-width: 0;
  margin: 0;
}

/* Inner Artisteer layouts inside content: preserve old table-like behaviour on desktop. */
.art-postcontent .art-content-layout-wrapper {
  max-width: 100%;
}

.art-postcontent .art-content-layout {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.art-postcontent .art-content-layout-row {
  display: table-row;
}

.art-postcontent .art-layout-cell {
  display: table-cell;
}

/* Left vertical menu */
.art-vmenublock {
  margin: 10px 0;
}

.art-vmenublockcontent {
  margin: 0 auto;
}

ul.art-vmenu,
ul.art-vmenu ul,
ul.art-vmenu li {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.art-vmenu > li {
  margin-top: 4px;
}

ul.art-vmenu > li:first-child {
  margin-top: 0;
}

ul.art-vmenu a,
ul.art-vmenu a:link,
ul.art-vmenu a:visited {
  display: block;
  position: relative;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: bold;
  line-height: 30px;
  text-align: left;
  text-decoration: none;
}

ul.art-vmenu > li > a:hover,
ul.art-vmenu a.active,
ul.art-vmenu a.active:hover {
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

ul.art-vmenu ul {
  margin: 4px 0;
  padding: 5px 0 5px 12px;
  border-radius: 6px;
  background: rgba(31, 123, 199, .10);
}

ul.art-vmenu ul li {
  margin: 3px 0;
}

ul.art-vmenu ul a,
ul.art-vmenu ul a:link,
ul.art-vmenu ul a:visited {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(23, 93, 150, .30);
  border-radius: 4px;
  color: #ffffff;
  background: linear-gradient(180deg, #58a7ea 0%, #2f84d1 100%);
  font-size: 13px;
  font-weight: bold;
  line-height: 24px;
}

ul.art-vmenu ul a:hover,
ul.art-vmenu ul a.active {
  color: #fff;
  background: linear-gradient(180deg, #2f84d1 0%, #175d96 100%);
}

/* Content typography */
.art-post,
.art-article {
  max-width: 100%;
}

.art-postcontent,
.art-postcontent li,
.art-postcontent table,
.art-postcontent a {
  font-family: Arial, 'Arial Unicode MS', Helvetica, sans-serif;
  font-size: 14px;
}

.art-postcontent {
  overflow-wrap: anywhere;
  word-break: normal;
}

.art-postcontent p {
  margin: 12px 0;
}

.art-postcontent h1,
.art-blockcontent h1 {
  margin: 21px 0;
  color: var(--blue-deep);
  font-size: 22px;
  line-height: 1.25;
  font-weight: bold;
}

.art-postcontent h2,
.art-blockcontent h2 {
  margin: 19px 0;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.art-postcontent h3,
.art-blockcontent h3 {
  clear: both;
  margin: 20px 0 8px;
  color: var(--link);
  font-size: 18px;
  line-height: 1.35;
  font-weight: bold;
}

.art-postcontent h4,
.art-blockcontent h4 {
  margin: 20px 0;
  color: #e2341d;
  font-size: 16px;
  line-height: 1.35;
}

.art-postcontent h5,
.art-blockcontent h5 {
  margin: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.art-postcontent h6,
.art-blockcontent h6 {
  margin: 20px 0;
  color: #9099a2;
  font-size: 12px;
}

.art-postcontent a,
.art-postcontent a:link {
  color: var(--link);
  text-decoration: none;
}

.art-postcontent a:visited {
  color: var(--link-visited);
}

.art-postcontent a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.art-postcontent ul,
.art-blockcontent ul {
  margin: 10px 0 16px 20px;
  list-style: disc outside;
}

.art-postcontent ol,
.art-blockcontent ol {
  margin: 10px 0 16px 22px;
}

.art-postcontent li,
.art-blockcontent li {
  margin: 4px 0;
  line-height: 1.45;
}

.art-postcontent hr {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--rule);
}

.art-postcontent blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--blue);
  background: rgba(31,123,199,.08);
  color: var(--text);
  font-style: italic;
}

.art-postcontent blockquote p {
  margin: 4px 0;
}

/* Buttons */
.art-button,
.art-button:link,
.art-button:visited,
.art-postcontent .art-button,
.art-postcontent .art-button:link,
.art-postcontent .art-button:visited {
  display: inline-block;
  min-height: 30px;
  padding: 0 15px;
  border: 1px solid #8d96a0;
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.art-button:hover,
.art-postcontent .art-button:hover {
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

/* Tables and pseudo-tables */
table {
  max-width: 100%;
  border-collapse: collapse;
}

table.position {
  position: relative;
  width: 100%;
  table-layout: fixed;
}

.art-postcontent table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
}

.art-postcontent th,
.art-postcontent td {
  padding: 6px 8px;
  border-color: var(--border);
  vertical-align: top;
}

.table {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.row {
  display: table-row;
}

.cell {
  display: table-cell;
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.header {
  font-weight: bold;
  background-color: #f2f2f2;
}

.header .cell {
  text-align: center;
}

/* Images in content */
.art-postcontent img {
  max-width: 100%;
  height: auto !important;
}

/* Product/index cards generated by inline Artisteer layout styles */
.art-postcontent .art-layout-cell[style*="border"] {
  background: rgba(255,255,255,.36);
}

/* Footer */
.art-footer {
  position: relative;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 3px;
  color: #e3e5e8;
  background: var(--footer);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.art-footer p {
  margin: 0;
  padding: 0;
}

.art-footer a,
.art-footer a:link,
.art-footer a:visited {
  color: #ff9a42;
  text-decoration: none;
}

.art-footer a:hover {
  color: #ffa352;
  text-decoration: underline;
}

.art-footer img {
  max-width: 100%;
  border: none;
  margin: 5px;
}

/* Existing page-specific inline layout classes from index.html */
.art-content .art-postcontent-0 .layout-item-old-0 {
  margin-bottom: 5px;
}

.art-content .art-postcontent-0 .layout-item-old-1 {
  border-spacing: 10px 0;
  border-collapse: separate;
}

.art-content .art-postcontent-0 .layout-item-old-2,
.art-content .art-postcontent-0 .layout-item-old-3 {
  padding-right: 10px;
  padding-left: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}

.art-content .art-postcontent-0 .layout-item-old-2 {
  vertical-align: top;
}

/* Directory/list pages */
.art-postcontent h3 + div {
  margin-left: 2em;
}

.art-postcontent h3 + div ul {
  margin-top: 8px;
  margin-bottom: 18px;
}

.art-postcontent h3 + div li {
  margin: 4px 0;
}

.art-postcontent ul li a {
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --sidebar-width: 200px;
    --gap: 12px;
  }

  body {
    font-size: 15px;
  }

  .art-sheet {
    width: 100%;
    margin: 8px 0 0;
    padding: 8px;
  }

  .art-header {
    min-height: 150px;
    background-position: center top;
    background-size: auto 150px;
  }

  .art-object49381383 {
    display: none;
  }

  .art-nav-inner {
    text-align: center;
  }

  ul.art-hmenu {
    justify-content: center;
  }

  ul.art-hmenu a,
  ul.art-hmenu a:link,
  ul.art-hmenu a:visited {
    font-size: 13px;
    padding: 0 8px;
  }
}

@media (max-width: 760px) {
  .art-header {
    min-height: auto;
    padding-top: 94px;
    background-position: center top;
    background-size: auto 120px;
  }

  .art-nav {
    position: relative;
    padding: 6px;
    background: rgba(255,255,255,.55);
  }

  ul.art-hmenu {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  ul.art-hmenu > li {
    flex: 1 1 auto;
    min-width: 118px;
  }

  ul.art-hmenu a,
  ul.art-hmenu a:link,
  ul.art-hmenu a:visited {
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    min-height: 34px;
    padding: 8px 7px;
  }

  ul.art-hmenu ul {
    position: static;
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    min-width: 0;
    width: 100%;
    margin-top: 3px;
    padding: 4px;
    border-radius: 5px;
  }

  ul.art-hmenu li:hover > ul,
  ul.art-hmenu li:focus-within > ul,
  ul.art-hmenu li > a.active + ul,
  ul.art-hmenu li > ul.active {
    display: block;
  }

  ul.art-hmenu ul a,
  ul.art-hmenu ul a:link,
  ul.art-hmenu ul a:visited {
    min-width: 0;
    min-height: 30px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.25;
  }

  .art-sheet > .art-layout-wrapper > .art-content-layout > .art-content-layout-row {
    display: block;
  }

  .art-content-layout .art-sidebar1,
  .art-content-layout .art-content {
    width: auto !important;
  }

  .art-sidebar1 {
    margin-bottom: 12px;
  }

  ul.art-vmenu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 4px;
  }

  ul.art-vmenu > li {
    margin-top: 0;
  }

  ul.art-vmenu ul {
    display: none;
  }

  ul.art-vmenu li:hover > ul,
  ul.art-vmenu li:focus-within > ul,
  ul.art-vmenu li > a.active + ul,
  ul.art-vmenu li > ul.active {
    display: block;
    grid-column: 1 / -1;
  }

  .art-postcontent h1 {
    font-size: 21px;
  }

  .art-postcontent h2 {
    font-size: 19px;
  }

  .art-postcontent h3 {
    font-size: 17px;
  }

  .art-postcontent .art-content-layout,
  .art-postcontent .art-content-layout-row,
  .art-postcontent .art-layout-cell {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    border-spacing: 0 !important;
  }

  .art-postcontent .art-layout-cell {
    margin-bottom: 12px !important;
  }

  .art-postcontent .art-content-layout-wrapper {
    margin-bottom: 12px !important;
  }

  .table,
  .row,
  .cell {
    display: block;
    width: 100%;
  }

  .row {
    margin-bottom: 10px;
    border-top: 1px solid #ddd;
  }

  .cell {
    border-top: 0;
  }

  .art-postcontent table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .art-header {
    padding-top: 74px;
    background-size: auto 96px;
  }

  .art-sheet {
    width: calc(100% - 8px);
    margin-top: 4px;
    padding: 6px;
    border-radius: 4px;
  }

  ul.art-hmenu > li,
  ul.art-vmenu > li {
    min-width: 100%;
  }

  .art-postcontent {
    overflow-wrap: break-word;
  }

  .art-postcontent h1 {
    margin: 16px 0;
    font-size: 20px;
  }

  .art-postcontent h2 {
    margin: 15px 0;
    font-size: 18px;
  }

  .art-postcontent h3 {
    margin-top: 15px;
    font-size: 16px;
  }

  .art-postcontent ul,
  .art-blockcontent ul {
    margin-left: 18px;
  }

  .art-postcontent h3 + div {
    margin-left: 0;
  }
}


/* Mobile: show only one menu.
   On narrow screens the top horizontal menu is hidden,
   and the left vertical menu remains as the only navigation menu. */
@media (max-width: 760px) {
  .art-header {
    padding-top: 120px;
  }

  .art-nav {
    display: none !important;
  }

  .art-sidebar1 {
    display: block !important;
  }

  ul.art-vmenu {
    display: block;
  }

  ul.art-vmenu > li {
    margin-top: 4px;
  }

  ul.art-vmenu ul {
    display: block;
    margin: 4px 0;
    padding: 5px 0 5px 12px;
  }
}
