body {
  font-family: DejaVu Sans, Arial, sans-serif;
  font-size: 12px;
  color: #000;
  margin: 10mm;
  min-width: 340px;
}

.pdf-content {
  width: 100%;
}

p {
  margin: 0;
  padding: 0;
}

ul {
  padding-top: 0px;
  margin-top: 0px;
  padding-left: 30px;
}

a:hover {
  text-decoration: underline;
}


.header .contacts a { color: #000; text-decoration: none; }
.header .contacts a:hover { text-decoration: underline; }



h1, h2 {
  margin: 8px 0;
  padding: 0;
  font-weight: bold;
}

h1 { 
  font-size: 20px; 
}

h2 { 
  font-size: 14px; 
  margin-top: 14px; 
}

.main-photo img { 
  max-width: 100%; 
  height: auto; 
  border: 1px solid #ddd; 
  padding: 4px; 
}

.advantages { border-collapse: collapse; margin-bottom: 8px; }
.advantages .adv-row td {
  border: 0;
  vertical-align: top;
  font-size: 12px;
  padding: 4px 8px;
}

.contact-item {
  display:inline-block; 
  font-size:15px; 
  color:#000; 
  text-decoration:none; 
  margin-right:12px; 
  line-height:1.2;
}

.product-title {
  margin-top: 20px;
}

.price { 
  margin-top: 8px; 
  font-size: 12px; 
  font-weight: bold; 
}

.stats { 
  border-collapse: collapse; 
  margin-bottom: 8px; 
}

.stat-item {
  padding: 6px;
  border-top: 1px solid #e6e6e6;
  border-bottom: 1px solid #e6e6e6;
}

.variants {
  border-collapse: collapse;
  width: auto;
  max-width: 140mm;
  font-size: 10px;
  table-layout: fixed;
  margin-bottom: 10px;
}

.variants thead th {
  text-align: left;
  font-weight: bold;
  padding: 6px 8px;
  border: 1px solid #999;
  background: transparent;
  font-size: 10px;
}

.variants tbody td {
  padding: 6px 8px;
  border: 1px solid #ccc;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.variants .v-name { width: 48%; }
.variants .v-dim  { width: 32%; }
.variants .v-num  { width: 10%; text-align: center; padding-right: 6px; }
.variants thead th.v-num,
.variants tbody td.v-num { text-align: center; }

.variants, .variants thead, .variants tbody, .variants tr, .variants th, .variants td {
  border-collapse: collapse;
  border-spacing: 0;
}

.variants th, .variants td {
  border: 1px solid #ccc !important;
  padding: 6px 8px !important;
  vertical-align: middle;
}

.company-contacts { font-size: 11px; margin-top: 6px; }
.footer-note { font-size: 10px; color: #333; margin-top: 12px; }

.page-break { display: block; page-break-after: always; }

ul li {
  padding: 2px 0px;
}

.guarantee-list {
  margin-top: 5px;
}

.guarantee-list {
  margin: 5px 0 0 5px;
  padding-left: 0;
  counter-reset: num;
  list-style: none;
}

.guarantee-list li {
  counter-increment: num;
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.guarantee-list li::before {
  content: counter(num) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #000;
}

.contacts-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
}

.contacts-table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ccc; 
}

.contacts-table tr td {
  border: 1px solid #ccc; 
}

.contacts-table td {
  padding: 10px 6px;
  vertical-align: middle;
  border-top: 1px solid #e0e0e0;
}

.contact-label {
  width: 34%;
  color: rgb(138, 138, 138) !important;
  font-weight: normal;
  padding-left: 6px;
}

.contact-value {
  width: 66%;
  color: rgb(0, 0, 0) !important;
  font-weight: normal;
  text-align: left;
}

.contact-value a {
  color: rgb(0, 0, 0) !important;
}

.contact-value.phone {
  font-weight: bold;
}

.contacts-table a {
  color: #000;
  text-decoration: none;
}

.contacts-table img {
  display: inline-block;
  vertical-align: middle;
}

@media print {
  .contacts-table td { padding: 6px 4px; }
}

.contact-value a:hover,
.social a:hover {
  text-decoration: underline;
}

html {
  font-size: clamp(11px, 1.2vw, 14px);
}

@media (max-width: 480px) {
  body {
    margin: 8px;
    font-size: 11px;
    line-height: 1.4;
  }

  h1 {
    font-size: 16px;
  }

  h2 {
    font-size: 13px;
    margin-top: 10px;
  }

  .price {
    font-size: 14px;
  }

  .variants,
  .contacts-table {
    font-size: 10px;
  }

  .main-photo img {
    width: 100%;
    height: auto;
  }

  .header img {
    max-width: 140px;
  }

  .contact-label {
    width: 45%;
  }

  .contact-value {
    width: 55%;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  body {
    margin: 12px;
    font-size: 12px;
  }

  h1 {
    font-size: 18px;
  }

  h2 {
    font-size: 14px;
  }

  .price {
    font-size: 15px;
  }

  .variants {
    font-size: 11px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 12px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 14px;
  }
}

a, a:link, a:visited {
  color: rgb(0, 0, 0) !important;
  text-decoration: none !important;
  background: none !important;
}

a:hover, a:active {
  color: #000 !important;
  text-decoration: underline !important;
}


@page {
  size: A4;
  margin: 0mm; 
}

body {
  margin: 0;
  font-family: DejaVu Sans, Arial, sans-serif;
  font-size: 12px;
  color: #000;
  min-width: 340px;
}

h1 {
  margin: 6px 0 8px;
  font-size: 20px;
}

h2 {
  margin: 8px 0;
  font-size: 14px;
}
.product-title { margin-top: 8px; }

p { margin: 0 0 6px 0; }
ul { margin: 0 0 6px 30px; padding: 0; }
.content-container { margin: 6px 0; }

table, thead, tbody, tr, td, th {
  page-break-inside: auto;
  break-inside: auto;
}

tr {
  page-break-inside: avoid;
  break-inside: avoid;
}

thead { display: table-header-group; }
tbody { display: table-row-group; }

img { display: block; max-width: 100%; height: auto; }

body, td, th, p, li {
  line-height: 1.25;
}

td, th {
  padding: 2px 4px !important;
}

ul li {
  padding: 0 !important;
  margin: 0 !important;
}

.advantages td,
.stats td,
.variants td {
  padding: 2px 4px !important;
}

.contacts-table td {
  padding: 3px 4px !important;
}

h1, h2 {
  margin: 4px 0 !important;
}

.content-container {
  margin: 4px 0 !important;
  padding: 0 !important;
}

p, ul, ol {
  margin: 0 0 4px 0 !important;
}

.two-col-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 8px;
  border: 1px solid #999; 
}

.two-col-table td {
  width: 50%;
  vertical-align: top;
  padding: 6px 8px;
  border: 1px solid #999; 
  word-wrap: break-word;
  overflow-wrap: break-word;
}

@media print {
  .two-col-table td {
    padding: 4px 6px;
    border: 1px solid #999;
  }
  .two-col-table {
    border: 1px solid #999;
  }
}

.delivery-block h2 {
  margin: 6px 0 6px;
  font-size: 16px;
}

.delivery-block .delivery-lead {
  margin: 6px 0 8px;
  line-height: 1.25;
}

.delivery-block .delivery-cities {
  margin: 4px 0 8px;
  font-size: 11px;
  color: #333;
  line-height: 1.2;
}

.delivery-sep {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}

.pickup-heading {
  margin: 6px 0 4px;
  font-size: 14px;
}

.pickup-sub {
  margin: 4px 0 8px;
  color: #333;
}

.pickup-table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd;
  margin-bottom: 8px;
  font-size: 12px;
}


.pickup-table td {
  padding: 6px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #e6e6e6;
}

.pickup-table tbody tr:last-child td {
  border-bottom: none;
}

.pickup-table td + td {
  border-left: 1px solid #e6e6e6;
}

.pickup-label {
  width: 40%;
  color: #666;
  font-size: 11.5px;
  padding-left: 6px;
}

.pickup-value {
  width: 60%;
  color: #000;
}

.map-link {
  margin: 6px 0 10px;
  font-size: 12px;
}

.map-link a {
  text-decoration: underline;
  text-decoration-color: #666;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.map-link a:hover { text-decoration: underline; }

.delivery-features {
  border-collapse: collapse;
  width: 100%;
  margin-top: 6px;
}

.feature-list {
  margin: 0 0 0 18px;
  padding: 0;
}

.feature-list li {
  margin: 0 0 6px 0;
  line-height: 1.25;
}

@media print {
  .delivery-block .delivery-cities { font-size: 10px; }
  .pickup-table td { padding: 4px 6px; }
  .feature-list { font-size: 11px; }
}


.variants {
  border-collapse: collapse;
  width: 100%;
  margin-top: 8px;
  font-size: 2px;
  border: 1px solid #ccc;
  table-layout: fixed;
}

.variants th,
.variants td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
  word-wrap: break-word;
}

.variants th {
  background: #f8f8f8;
  font-weight: bold;
  color: #000;
  text-transform: uppercase;
}


.discount {
  background: #fff;
  color: #c00;
  font-weight: bold;
  padding: 1px 4px;
  margin-left: 4px;
  border-radius: 2px;
  font-size: 9px;
}


table.variants,
table.variants td,
table.variants th {
  font-size: 8px !important;
  line-height: 1.2;
}