* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; color: #222; background: repeating-linear-gradient(to bottom, #eee9df 0, #eee9df 2px, #e8e1d5 2px, #e8e1d5 3px); font-size: 16px; line-height: 1.55; }

/* Site shell and header */
.site-shell { width: calc(100% - 30px); max-width: 1400px; margin: 0 auto; }
.site-header { width: 100%; }
.header-contact-block { width: 100%; padding: 9px 14px; background: #faf7f0; }
.header-contact-line { width: fit-content; max-width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; line-height: 1.3; font-size: 15px; }
.header-contact-line a { color: inherit; text-decoration: none; }
.header-contact-line .messenger-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.header-contact-line .messenger-icon { width: 22px; height: 22px; flex: 0 0 22px; display: block; }
.messenger-max .messenger-icon circle { fill: #111; }
.messenger-max .messenger-icon path:not(.icon-line) { fill: #fff; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.messenger-max .messenger-icon .icon-line { fill: none; stroke: #111; stroke-width: 1.3; stroke-linecap: round; }
.messenger-telegram .messenger-icon circle { fill: #229ed9; }
.messenger-telegram .messenger-icon path:not(.icon-line) { fill: #fff; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
.messenger-telegram .messenger-icon .icon-line { fill: none; stroke: #229ed9; stroke-width: 1.1; stroke-linecap: round; }
.messenger-whatsapp .messenger-icon circle { fill: #25d366; }
.messenger-whatsapp .messenger-icon path { fill: #fff; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
.header-contact-line .site-logo { font-size: 20px; font-weight: 700; white-space: nowrap; }

/* Top navigation */
.main-navigation { width: 100%; margin-top: 7px; padding: 7px 12px 9px; display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; text-align: center; background: #fff; }
.main-navigation a { color: inherit; text-decoration: none; padding: 3px 2px; white-space: nowrap; }

/* Desktop page layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-areas: "sidebar content"; column-gap: 8px; align-items: stretch; width: 100%; margin-top: 8px; }
.sidebar { grid-area: sidebar; min-width: 0; }
.content { grid-area: content; min-width: 0; background: #fff; }
.content-top { padding: 25px 32px 0; }
.content-bottom { padding: 0 32px 35px; display: flow-root; font-size: 14px; line-height: 1.45; font-weight: 400; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.service-content { padding: 25px 32px 35px; }
.content-grid { max-width: 1050px; }

/* Catalog sidebar */
.sidebar-box { background: #fff; }
.side-menu { display: flex; flex-direction: column; }
.side-menu-link { display: block; padding: 7px 14px; color: #333; text-decoration: none; border-top: 1px solid #e5e5e5; line-height: 1.25; font-size: 14px; }
.side-menu-link:hover { background: #f2f2f2; }
.side-menu-link[aria-current="page"] { background: #f1e8d9; font-weight: 700; }

/* Typography */
h1 { margin: 0 0 22px; font-size: 29px; line-height: 1.25; font-weight: 700; }
h2 { margin: 30px 0 15px; font-size: 23px; line-height: 1.3; }
h3 { margin: 0 0 7px; font-size: 19px; }
.content-bottom h2, .service-copy h2 { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
.content-bottom h3, .service-copy h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.service-copy { font-size: 14px; line-height: 1.45; font-weight: 400; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.text-section { border-top: 1px solid #ddd; margin-top: 8px; padding-top: 8px; }
.text-section p { margin: 0 0 5px; }

/* Product table and main image */
.intro-row { display: flex; align-items: flex-start; gap: 25px; flex-wrap: wrap; }
.price-table-wrap { min-width: 0; max-width: 100%; flex: 1 1 620px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table-wrap--medium { flex-basis: 640px; }
.price-table-wrap--wide { flex-basis: 650px; }
.price-table-wrap--extra-wide { flex-basis: 700px; }
.price-table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 8px 10px; border: 1px solid #bfc3c7; text-align: center; vertical-align: top; white-space: normal; overflow-wrap: anywhere; word-break: normal; }
.price-table th { background: #f0f0f0; font-weight: 700; white-space: normal; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table th:last-child, .price-table td:last-child { width: 110px; }
.price-table .group-row th, .price-table .group-row td { font-weight: 700; text-align: left; white-space: normal; }
.table-note { margin: 8px 0 0; font-size: 12px; color: #777; }
.after-table-note { margin: 12px 0 8px; font-size: 16px; }
.main-image { width: 300px; max-width: 100%; flex: 0 0 300px; }
.main-image--medium { width: 320px; flex-basis: 320px; }
.main-image--large { width: 340px; flex-basis: 340px; }
.main-image img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; border: 1px solid #ddd; background: #fff; }

/* Lower product content */
.below-table-layout { display: flow-root; margin-top: 5px; }
.below-table-images { float: left; width: 190px; margin: 0 22px 0 0; }
.below-table-images img { display: block; width: 190px; height: 145px; object-fit: contain; border: 1px solid #ddd; background: #fff; margin-bottom: 12px; }
.below-table-text { min-width: 0; }
.below-table-text .text-section { margin-top: 0; padding-top: 0; }
.below-table-text .text-section:first-child h2 { margin-top: 0; }
.below-table-text .text-section + .text-section { margin-top: 10px; padding-top: 8px; }
.products { margin-top: 5px; display: flow-root; }
.below-table-layout > .text-section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.product-row { display: flow-root; padding: 18px 0; border-top: 1px solid #ddd; }
.product-row > img { float: left; display: block; width: 190px; height: 145px; object-fit: contain; margin: 0 22px 12px 0; border: 1px solid #ddd; background: #fff; }
.product-row > div { min-width: 0; }
.product-row h2 { margin-top: 0; }

/* Visual catalog on the home page */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.catalog-card { min-width: 0; padding: 8px; color: #222; text-decoration: none; text-align: center; background: #fff; border: 1px solid #ddd; }
.catalog-card__image { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 7px; }
.catalog-card__image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.catalog-card__title { display: block; line-height: 1.25; font-size: 14px; }
.catalog-card:hover { background: #f7f7f7; }

.bottom-strip { height: 8px; }

@media (max-width: 900px) {
  .site-shell { width: calc(100% - 20px); }
  .layout { grid-template-columns: 210px minmax(0, 1fr); }
  .content-top { padding: 22px 20px 0; }
  .content-bottom { padding: 0 20px 30px; }
  .service-content { padding: 22px 20px 30px; }
}

@media (max-width: 700px) {
  .header-contact-line { gap: 8px 12px; font-size: 14px; }
  .header-contact-line .site-logo { font-size: 19px; }
  .main-navigation { gap: 14px; padding-top: 6px; padding-bottom: 8px; }
  .layout { display: flex; flex-direction: column; gap: 8px; }
  .sidebar { padding-right: 52px; }
  .sidebar-box { margin-bottom: 0; }
  .content-top { padding: 6px 18px 18px; }
  .content-bottom { padding: 18px 18px 30px; }
  .service-content { padding: 6px 18px 30px; }
  .content-top h1 { margin-top: 0; margin-bottom: 6px; }
  .content-top h2 { margin: 0 0 6px; }
  .intro-row { gap: 12px; }
  .price-table-wrap { width: 100%; min-width: 0; max-width: 100%; flex-basis: 100%; }
  .price-table th, .price-table td { width: auto; padding: 6px 5px; }
  .price-table th:last-child, .price-table td:last-child { width: auto; }
  .price-table th:first-child, .price-table td:first-child { min-width: 0; white-space: normal; }
  .price-table th:not(:first-child) { white-space: normal; }
  .price-table td:not(:first-child) { white-space: normal; }
  .price-table--cols-4, .price-table--cols-5, .price-table--cols-6 { table-layout: fixed; font-size: 14px; }
  .price-table--cols-4 th:first-child, .price-table--cols-4 td:first-child { width: 42%; }
  .price-table--cols-5 th:first-child, .price-table--cols-5 td:first-child { width: 36%; }
  .price-table--cols-6 th:first-child, .price-table--cols-6 td:first-child { width: 31%; }
  .price-table .group-row th, .price-table .group-row td { width: auto; white-space: normal; }
  .main-image, .main-image--medium, .main-image--large { flex: 0 0 100%; width: 100%; max-width: 360px; }
  .below-table-layout { display: block; }
  .below-table-images { float: none; width: 100%; margin: 0 0 10px; }
  .below-table-images img { max-width: 190px; }
  .product-row > img { float: none; margin: 0 0 10px; }
  .catalog-grid { padding-right: 18px; }
}

@media (max-width: 560px) {
  .site-shell { width: 100%; }
  .header-contact-block { padding-left: 10px; padding-right: 10px; }
  .main-navigation { gap: 10px 14px; }
  .side-menu-link { padding-left: 12px; padding-right: 12px; }
  .content-top { padding-left: 14px; padding-right: 14px; }
  .content-bottom { padding-left: 14px; padding-right: 14px; }
  .service-content { padding-left: 14px; padding-right: 14px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 12px; }
  h1 { font-size: 25px; }
}

@media (max-width: 420px) {
  .header-contact-line { gap: 6px 10px; }
  .main-navigation { gap: 8px 10px; }
}

@media (max-width: 390px) {
  .price-table--cols-5, .price-table--cols-6 { font-size: 13px; }
  .price-table--cols-5 th, .price-table--cols-5 td,
  .price-table--cols-6 th, .price-table--cols-6 td { padding-left: 3px; padding-right: 3px; }
}

@media (max-width: 360px) {
  .price-table--cols-6 { min-width: 314px; }
  .price-table--cols-5 th, .price-table--cols-5 td,
  .price-table--cols-6 th, .price-table--cols-6 td { padding-left: 2px; padding-right: 2px; }
}
/* Approved palette trial, 2026-09-30. Layout rules above are unchanged. */
body { background: #d6d2c8; }
.site-shell .header-contact-block { background: #e5e2d9; }
.site-shell .header-contact-line .site-logo {
  color: #41413a; font-size: 21px; font-weight: 700;
}
.site-shell .header-contact-line a { color: #41413a; }
.site-shell .main-navigation,
.site-shell .sidebar-box { background: #efede7; }
.site-shell .main-navigation a,
.site-shell .side-menu-link { color: #41413a; }
.site-shell .content,
.site-shell .content-top,
.site-shell .content-bottom,
.site-shell .service-content { background: #fcfbf8; }
.site-shell .main-navigation a:hover,
.site-shell .main-navigation a:focus-visible,
.site-shell .main-navigation a[aria-current="page"],
.site-shell .side-menu-link:hover,
.site-shell .side-menu-link:focus-visible,
.site-shell .side-menu-link[aria-current="page"] {
  background: #cec7b7; color: #41413a;
}
.site-shell .side-menu-link[aria-current="page"] { font-weight: 700; }
.site-shell .side-menu-link { border-color: #bdb9ae; }
.site-shell .price-table th { background: #efede7; }
.site-shell .price-table th,
.site-shell .price-table td { border-color: #bdb9ae; }
.site-shell .catalog-card { background: #fcfbf8; border-color: #bdb9ae; }
.site-shell .catalog-card:hover,
.site-shell .catalog-card:focus-visible { background: #efede7; }
.site-shell h1,
.site-shell h2,
.site-shell h3 { color: #41413a; }
@media (max-width: 700px) {
  .site-shell .header-contact-line .site-logo { font-size: 19px; }
}

/* Widths based on product data; headers wrap within the allocated columns. */
.site-shell .price-table.price-table--data-widths { table-layout: fixed; width: 100%; max-width: 100%; }
.site-shell .price-table.price-table--data-widths th,
.site-shell .price-table.price-table--data-widths td {
  width: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.site-shell .price-table.price-table--data-widths th:not(:first-child),
.site-shell .price-table.price-table--data-widths td:not(:first-child) { padding-left: 5px; padding-right: 5px; }
@media (max-width: 700px) {
  .site-shell .price-table.price-table--data-widths th:not(:first-child),
  .site-shell .price-table.price-table--data-widths td:not(:first-child) { padding-left: 3px; padding-right: 3px; }
}

/* Phone and space below the complete page, independent of counter badges. */
.site-shell .header-contact-line a[href^="tel:"] {
  font-size: 20px; font-weight: 700; white-space: nowrap;
}
.site-shell { padding-bottom: 40px; }
@media (max-width: 700px) {
  .site-shell .header-contact-line a[href^="tel:"] { font-size: 18px; }
}
/* LiveInternet is outside the main wrapper; keep its code and hide its badge. */
a[href*="liveinternet.ru/click"],
img[src*="counter.yadro.ru/hit"] { display: none !important; }

/* Active top navigation and service-page side gutters. */
.site-shell .site-header .main-navigation a[aria-current="page"] { background: #dedbd2; color: #49463e; border-radius: 6px; font-weight: 700; box-shadow: inset 0 -2px #948b78; }
.site-shell .content.service-content.service-copy { padding-left: 32px; padding-right: 32px; }
@media(max-width:1000px) { .site-shell .content.service-content.service-copy { padding-left:20px; padding-right:20px; } }
@media(max-width:700px) { .site-shell .content.service-content.service-copy { padding-left:18px; padding-right:18px; } }
@media(max-width:480px) { .site-shell .content.service-content.service-copy { padding-left:14px; padding-right:14px; } }

/* Separate price sections: readable titles and hero aligned with the first table. */
.site-shell .content-top .price-section-title {
  margin: 16px 0 7px; font-size: 18px; line-height: 1.3; font-weight: 700;
}
.site-shell .content-top .content-grid > .price-section-title { margin-top: 0; }
@media (min-width: 701px) and (max-width: 1321px) {
  .site-shell .product-content--photo-pair .content-top .content-grid > .price-section-title {
    grid-column: 1 / -1; margin: 0;
  }
}
@media (max-width: 700px) {
  .site-shell .content-top .price-section-title { font-size: 17px; }
}
