/* WordPress and WooCommerce adaptations for Silectra Modern. */
.custom-logo-link { display: inline-flex; align-items: center; max-width: 220px; }
.custom-logo { display: block; width: auto; max-width: 220px; max-height: 54px; object-fit: contain; }
body.admin-bar .site-header { top: 32px; }

.main-nav > ul, .main-nav ul.menu, .main-nav .menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; list-style: none; }
.main-nav li a { display: inline-flex; align-items: center; gap: 5px; }
.main-nav .sub-menu { position: absolute; top: calc(100% + 12px); left: -17px; display: block; min-width: 225px; padding: 9px; border: 1px solid #d8e2ea; border-radius: 4px; background: #f8fbfd; box-shadow: 0 18px 38px rgba(18,42,71,.12); opacity: 0; pointer-events: none; transform: translateY(7px); transition: opacity .18s ease, transform .18s ease; }
.main-nav .menu-item-has-children:hover > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.main-nav .sub-menu li a { display: flex; width: 100%; padding: 10px 11px; border-radius: 3px; color: #40627c; font-size: 17px; white-space: normal; }
.main-nav .sub-menu li a:hover { color: #112843; background: #e1edf6; }
.main-nav .sub-menu .sub-menu { top: -9px; left: calc(100% + 7px); }
.footer-nav-column .footer-menu, .footer-nav-column .footer-menu ul { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-nav-column .footer-menu li { margin: 0; padding: 0; list-style: none; }
.footer-nav-column .footer-menu a, .footer-nav-column .wp-product-categories a { display: inline-block; margin-bottom: 11px; color: #b8c9d9; font-size: 17px; transition: color .2s ease; }
.footer-nav-column .footer-menu a:hover, .footer-nav-column .wp-product-categories a:hover { color: #79d1f9; }
.footer-nav-column .wp-product-categories { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-nav-column .wp-product-categories li { list-style: none; }
.footer-nav-column .wp-product-categories .children { display: none; }

.wp-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 0 18px; color: #6b94b3; font-size: 15.3px; }
.wp-breadcrumbs a { color: #486f8d; }
.wp-breadcrumbs a:hover { color: #2b74ab; }
.wp-catalog-page { padding-bottom: 90px; }
.wp-catalog-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; padding: 20px 0 37px; border-bottom: 1px solid #d6e0e9; }
.wp-catalog-intro .eyebrow { margin-bottom: 13px; }
.wp-catalog-intro h1, .wp-page-heading h1 { margin: 0; font-size: clamp(40px,5vw,62px); font-weight: 500; line-height: .98; letter-spacing: -.03em; }
.wp-catalog-intro > p { max-width: 420px; margin: 0 0 3px; color: #4f799a; font-size: 18.7px; line-height: 1.8; }
.wp-catalog-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 30px; padding-top: 31px; }
.wp-catalog-sidebar { align-self: start; padding: 17px 15px; border: 1px solid #d6e0e9; border-radius: 4px; background: #f5f9fc; }
.wp-catalog-search > label { display: block; margin-bottom: 9px; color: #40617b; font-size: 17px; font-weight: 700; }
.wp-catalog-search .catalog-search { gap: 8px; height: 42px; padding: 0 9px; background: #ffffff; }
.wp-catalog-search .catalog-search input { font-size: 15.3px; }
.wp-catalog-search .catalog-search .icon { width: 16px; height: 16px; }
.wp-category-menu { margin-top: 24px; }
.wp-category-menu h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #d9e2ea; font-size: 20.4px; font-weight: 700; }
.wp-product-categories { margin: 0; padding: 0; list-style: none; }
.wp-product-categories li { position: relative; margin: 0; padding: 0; list-style: none; }
.wp-product-categories > li { border-bottom: 1px solid #dceaf5; }
.wp-product-categories li a { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; padding: 9px 0; color: #3d5d75; font-size: 15.3px; line-height: 1.4; }
.wp-product-categories li a:hover, .wp-product-categories li.current-cat > a, .wp-product-categories li.current-cat-parent > a { color: #2b74ab; }
.wp-product-categories .count { color: #6f97b5; font-size: 13.6px; }
.wp-product-categories .children, .wp-product-categories .sub-menu { margin: 0 0 6px 9px; padding: 0 0 0 9px; border-left: 1px solid #d1dce6; list-style: none; }
.wp-product-categories .children li a, .wp-product-categories .sub-menu li a { padding: 5px 0; color: #5583a6; font-size: 13.6px; }
.wp-sidebar-contact { margin-top: 20px; padding: 13px; border-radius: 3px; background: #deebf5; }
.wp-sidebar-contact-icon { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 3px; color: #1c426e; background: #add1f0; }
.wp-sidebar-contact strong { display: block; font-size: 17px; }
.wp-sidebar-contact p { margin: 7px 0; color: #4f7999; font-size: 13.6px; line-height: 1.6; }
.wp-sidebar-contact a { color: #1d4472; font-size: 15.3px; font-weight: 700; }
.wp-catalog-main { min-width: 0; }
.wp-catalog-main .woocommerce { min-width: 0; }
.wp-catalog-main .woocommerce-notices-wrapper { margin-bottom: 12px; }
.wp-catalog-main .woocommerce-result-count { float: left; margin: 0 0 15px; color: #5583a6; font-size: 15.3px; }
.wp-catalog-main .woocommerce-ordering { float: right; margin: 0 0 15px; }
.wp-catalog-main .woocommerce-ordering select { min-height: 34px; padding: 0 10px; border: 1px solid #cfdbe5; border-radius: 3px; color: #3d5d75; background: #f5f9fc; font-size: 15.3px; }
.wp-catalog-main .woocommerce-products-header { display: none; }
.wp-catalog-main .term-description { clear: both; margin: 0 0 17px; padding: 12px 14px; border-left: 2px solid #4594d0; color: #4f799a; background: #f2f7fb; font-size: 17px; line-height: 1.7; }
body .wp-catalog-main ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; clear: both; margin: 0; padding: 0; list-style: none; }
body .wp-catalog-main ul.products::before, body .wp-catalog-main ul.products::after { display: none; }
body .wp-catalog-main ul.products li.product { float: none; width: auto; margin: 0; padding: 0; list-style: none; }
body .wp-catalog-main ul.products li.product .product-card { height: 100%; }
.wp-catalog-main .woocommerce-pagination { clear: both; padding: 24px 0 3px; }
.wp-catalog-main .woocommerce-pagination ul.page-numbers { display: flex; justify-content: flex-start; gap: 6px; margin: 0; padding: 0; border: 0; }
.wp-catalog-main .woocommerce-pagination ul.page-numbers li { border: 0; }
.wp-catalog-main .woocommerce-pagination .page-numbers a, .wp-catalog-main .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 33px; height: 33px; border: 1px solid #d3dee8; border-radius: 3px; color: #3d5d75; background: #f4f8fc; font-size: 15.3px; }
.wp-catalog-main .woocommerce-pagination .page-numbers .current { border-color: #112843; color: #ffffff; background: #112843; }
.wp-catalog-request { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 55px; padding: 28px 34px; border-radius: 4px; background: #153152; }
.wp-catalog-request .eyebrow { margin-bottom: 10px; color: #90abc3; }
.wp-catalog-request h2 { margin: 0; color: #ffffff; font-size: 40.6px; font-weight: 500; letter-spacing: -.04em; }
.wp-catalog-request p:not(.eyebrow) { max-width: 500px; margin: 8px 0 0; color: #aec2d3; font-size: 17px; line-height: 1.7; }

.silectra-loop-item .woocommerce-loop-product__title { margin: 7px 0; padding: 0; color: #112843; font-size: 23px; font-weight: 700; line-height: 1.27; letter-spacing: -.025em; }
.silectra-loop-item .woocommerce-loop-product__title a { color: inherit; }
.silectra-loop-item .woocommerce-loop-product__title a:hover { color: #2b74ab; }
.silectra-loop-item .product-card-content { min-height: 222px; }
.silectra-loop-item .product-summary { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.wp-standard-page { min-height: 45vh; padding: 0 0 92px; }
.wp-standard-page .wp-breadcrumbs { padding-top: 28px; }
.wp-page-heading { padding: 27px 0 32px; }
.wp-page-heading .eyebrow { margin-bottom: 14px; }
.wp-content-card { max-width: 1000px; padding: 31px 40px 40px; border: 1px solid #d8e2ea; border-radius: 4px; background: #ffffff; }
.wp-page-featured-image { max-height: 490px; margin: -5px 0 28px; overflow: hidden; border-radius: 3px; }
.wp-page-featured-image img { width: 100%; max-height: 490px; object-fit: cover; }
.wp-entry-content { color: #3c5c75; font-size: 21.7px; line-height: 1.85; }
.wp-entry-content h2 { margin: 30px 0 13px; color: #112843; font-size: clamp(23px,3vw,33px); font-weight: 500; line-height: 1.12; letter-spacing: -.04em; }
.wp-entry-content h3 { margin: 24px 0 9px; color: #112843; font-size: 27.9px; line-height: 1.3; }
.wp-entry-content p { margin: 0 0 15px; }
.wp-entry-content ul, .wp-entry-content ol { padding-left: 21px; }
.wp-entry-content li { margin-bottom: 7px; }
.wp-entry-content a { color: #2b74ab; text-decoration: underline; text-underline-offset: 3px; }
.wp-entry-content img { height: auto; border-radius: 3px; }
.wp-entry-content table { width: 100%; border-collapse: collapse; font-size: 18.7px; }
.wp-entry-content th, .wp-entry-content td { padding: 10px 12px; border: 1px solid #d7e1e9; text-align: left; }
.wp-entry-content th { color: #183a60; background: #e5eff7; }
.wp-entry-content blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid #529cd4; color: #23548c; background: #ecf4fa; }
.wp-post-card { max-width: 900px; }
.wp-post-card .wp-page-heading { padding-top: 0; }
.wp-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.wp-post-preview { padding: 20px; border: 1px solid #d6e0e9; border-radius: 4px; background: #ffffff; }
.wp-post-preview-image { display: block; height: 180px; margin: -20px -20px 18px; overflow: hidden; background: #dbe9f4; }
.wp-post-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.wp-post-preview .eyebrow { margin-bottom: 11px; }
.wp-post-preview h2 { margin: 0 0 9px; font-size: 29.1px; line-height: 1.2; }
.wp-post-preview h2 a:hover { color: #2b74ab; }
.wp-post-preview > p:not(.eyebrow) { color: #527e9f; font-size: 17px; line-height: 1.7; }
.wp-post-preview .text-link { margin-top: 7px; }
.wp-not-found { display: flex; align-items: center; min-height: 60vh; }
.wp-not-found .container { padding-block: 75px; }
.wp-not-found h1 { margin: 0; font-size: clamp(48px,8vw,86px); font-weight: 500; line-height: .97; letter-spacing: -.03em; }
.wp-not-found h1 span { color: #82a0bb; }
.wp-not-found .container > p:not(.eyebrow) { max-width: 400px; margin: 20px 0; color: #4e7898; font-size: 20.4px; line-height: 1.7; }
.wp-404-actions { display: flex; align-items: center; gap: 20px; }
.wp-no-results { padding: 25px; border: 1px solid #d7e1ea; background: #ffffff; }
.archive-description { color: #537fa1; font-size: 18.7px; line-height: 1.8; }
.silectra-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.optional-label { color: #8ba7c0; font-size: 13.6px; font-weight: 400; }
.product-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.saved-filter:disabled { opacity: .5; cursor: not-allowed; }
.product-card[hidden], li.product[hidden] { display: none !important; }
.catalog-search .search-submit { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; color: #112843; background: #79d1f9; cursor: pointer; }
.catalog-empty-note { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px dashed #b0c3d4; border-radius: 4px; background: rgba(255,255,255,.48); }
.catalog-empty-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 4px; color: #143151; background: #d3e4f2; }
.catalog-empty-note h3 { margin: 0 0 6px; font-size: 27.9px; }
.catalog-empty-note p { margin: 0 0 16px; color: #537fa1; font-size: 17px; }
.wp-entry-content .wp-block-image { margin: 20px 0; }
.wp-entry-content .wp-block-table { overflow-x: auto; }
.wp-entry-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 4px; color: #112843; background: #79d1f9; font-size: 18.7px; font-weight: 700; text-decoration: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: #338acc; color: #3d5d75; background: #e7f0f8; font-size: 18.7px; }
.woocommerce-message::before, .woocommerce-info::before { color: #2b74ac; }

@media (max-width: 880px) {
  .wp-catalog-layout { grid-template-columns: 200px minmax(0,1fr); gap: 18px; }
  body .wp-catalog-main ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wp-catalog-intro { gap: 24px; }
  .wp-catalog-intro > p { max-width: 330px; }
  .wp-content-card { padding: 28px; }
}
@media (max-width: 680px) {
  body.admin-bar .site-header { top: 0; }
  .main-nav > ul, .main-nav ul.menu, .main-nav .menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid #dbe9f4; }
  .main-nav li a { justify-content: space-between; width: 100%; padding: 12px 0; }
  .main-nav .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 8px 13px; border: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .main-nav .menu-item-has-children.submenu-open > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .main-nav .sub-menu li { border: 0; }
  .main-nav .sub-menu li a { padding: 8px; font-size: 17px; }
  .wp-catalog-page { padding-bottom: 65px; }
  .wp-breadcrumbs { padding-top: 19px; font-size: 13.6px; }
  .wp-catalog-intro { align-items: flex-start; flex-direction: column; gap: 12px; padding: 13px 0 25px; }
  .wp-catalog-intro h1, .wp-page-heading h1 { font-size: 56.2px; }
  .wp-catalog-intro > p { max-width: 100%; font-size: 17px; }
  .wp-catalog-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
  .wp-catalog-sidebar { padding: 12px; }
  .wp-category-menu { margin-top: 15px; }
  .wp-category-menu h2 { margin-bottom: 8px; }
  .wp-product-categories { display: flex; flex-wrap: wrap; gap: 6px; }
  .wp-product-categories > li { border: 0; }
  .wp-product-categories > li > a { min-height: 29px; padding: 6px 9px; border: 1px solid #d3dee7; border-radius: 3px; background: #ffffff; }
  .wp-product-categories .children, .wp-product-categories .sub-menu { display: none; }
  .wp-sidebar-contact { display: grid; grid-template-columns: 33px 1fr; column-gap: 10px; align-items: center; margin-top: 12px; padding: 10px; }
  .wp-sidebar-contact-icon { grid-row: 1 / 4; margin: 0; }
  .wp-sidebar-contact p { margin: 3px 0; }
  body .wp-catalog-main ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .wp-catalog-main .woocommerce-result-count { float: none; margin-bottom: 9px; }
  .wp-catalog-main .woocommerce-ordering { float: none; margin-bottom: 12px; }
  .wp-catalog-main .woocommerce-ordering select { min-height: 31px; }
  body .wp-catalog-main ul.products li.product .product-visual { height: 140px; }
  body .wp-catalog-main ul.products li.product .product-card-content { min-height: 220px; padding: 11px 10px 10px; }
  body .wp-catalog-main ul.products li.product .woocommerce-loop-product__title { min-height: 34px; font-size: 18.7px; }
  body .wp-catalog-main ul.products li.product .product-summary { min-height: 48px; font-size: 13.6px; }
  body .wp-catalog-main ul.products li.product .product-specs span { padding: 4px 5px; font-size: 13.5px; }
  body .wp-catalog-main ul.products li.product .product-card-index { top: 157px; }
  .wp-catalog-request { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 35px; padding: 21px; }
  .wp-catalog-request h2 { font-size: 36px; }
  .wp-standard-page { padding-bottom: 60px; }
  .wp-page-heading { padding: 14px 0 23px; }
  .wp-content-card { padding: 20px 18px; }
  .wp-entry-content { font-size: 18.7px; }
  .wp-entry-content th, .wp-entry-content td { padding: 7px; font-size: 15.3px; }
  .wp-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .wp-post-preview { padding: 13px; }
  .wp-post-preview-image { height: 120px; margin: -13px -13px 13px; }
  .wp-post-preview h2 { font-size: 23px; }
  .wp-post-preview > p:not(.eyebrow) { font-size: 13.6px; }
  .wp-not-found .container { padding-block: 55px; }
  .wp-not-found h1 { font-size: 70.7px; }
}
@media (max-width: 390px) {
  .wp-post-grid { grid-template-columns: 1fr; }
  body .wp-catalog-main ul.products li.product .product-visual { height: 124px; }
  body .wp-catalog-main ul.products li.product .product-card-content { min-height: 230px; }
  .wp-404-actions { align-items: flex-start; flex-direction: column; }
}

/* ===== Inner pages (About / Contacts) ===== */
.inner-page { padding-bottom: 90px; }
.page-hero { padding: 30px 0 56px; background: linear-gradient(125deg, #f3f9ff, #dcefff 55%, #c3e3fb); border-bottom: 1px solid #cfe5f7; }
.page-hero .wp-breadcrumbs { padding: 0 0 28px; }
.page-hero h1 { margin: 0; color: #0d2f57; font-size: clamp(40px, 5.4vw, 66px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.page-hero-lead { max-width: 640px; margin: 20px 0 0; color: #45617f; font-size: 23px; line-height: 1.8; }
.inner-section { padding: 64px 0 0; }
.inner-section h2 { margin: 0 0 22px; color: #0d2f57; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 15px; color: #4c6783; font-size: 21.7px; line-height: 1.85; }
.fact-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; border: 1px solid #cfe5f7; border-radius: 6px; background: #fff; }
.fact-card > div { display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; border-right: 1px solid #e1eefa; }
.fact-card > div:last-child { border-right: 0; }
.fact-card strong { color: #1e7fd0; font-size: 46.1px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.fact-card span { color: #5d7b99; font-size: 17px; line-height: 1.4; }
.nomenclature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.nomenclature-list li { position: relative; padding: 20px 20px 20px 68px; border: 1px solid #d3e6f6; border-radius: 6px; background: #fff; color: #35526f; font-size: 20.4px; line-height: 1.65; counter-increment: n; }
.nomenclature-list li::before { content: counter(n, decimal-leading-zero); position: absolute; top: 19px; left: 20px; color: #1e7fd0; font-size: 26.8px; font-weight: 700; }
.inner-note { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid #1e7fd0; border-radius: 0 4px 4px 0; color: #35526f; background: #e6f3fd; font-size: 20.4px; }
.requisites { width: 100%; overflow: hidden; border-collapse: collapse; border: 1px solid #d3e6f6; border-radius: 6px; background: #fff; font-size: 20.4px; }
.requisites th, .requisites td { padding: 14px 18px; border-bottom: 1px solid #e1eefa; text-align: left; vertical-align: top; line-height: 1.6; color: #35526f; }
.requisites th { width: 32%; color: #5d7b99; font-weight: 700; background: #f4f9fe; }
.requisites tr:last-child th, .requisites tr:last-child td { border-bottom: 0; }
.requisites a { color: #1e7fd0; }
.contacts-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.contact-map-link--flat { margin: 18px 0 0; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 38px; border-radius: 6px; color: #fff; background: linear-gradient(120deg, #0f5aa8, #2b8fe0); }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { max-width: 480px; margin: 0; color: #dcefff; font-size: 20.4px; line-height: 1.7; }
.inner-page .advantages-grid { border-top-color: #cfe5f7; }
@media (max-width: 880px) {
  .two-col, .contacts-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .page-hero { padding: 20px 0 38px; }
  .inner-section { padding-top: 44px; }
  .nomenclature-list { grid-template-columns: 1fr; }
  .nomenclature-list li { padding: 16px 16px 16px 58px; }
  .requisites th, .requisites td { display: block; width: 100%; padding: 8px 14px; border-bottom: 0; }
  .requisites th { padding-top: 14px; padding-bottom: 2px; background: #fff; font-size: 17px; }
  .requisites td { padding-bottom: 14px; border-bottom: 1px solid #e1eefa; }
  .fact-card strong { font-size: 38.3px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 26px 22px; }
}
.wp-catalog-request { background: linear-gradient(120deg, #0f5aa8, #2b8fe0); }
.wp-catalog-request .eyebrow { color: #cfe8fb; }
.wp-catalog-request p:not(.eyebrow) { color: #dcefff; }
.wp-sidebar-contact { background: #e3effa; }
.wp-sidebar-contact-icon { background: #bfe2fb; color: #0f5aa8; }

/* ===== WordPress large-type layout ===== */
.custom-logo-link, .custom-logo { display: none; }
.main-nav > ul, .main-nav ul.menu, .main-nav .menu { gap: clamp(22px, 2.4vw, 38px); }
.main-nav li a { font-size: 19px; }
.main-nav .sub-menu { min-width: 300px; padding: 12px; }
.main-nav .sub-menu li a { padding: 13px 14px; font-size: 17px; }
.footer-nav-column .footer-menu a { font-size: 17.5px; margin-bottom: 14px; }
.wp-breadcrumbs { font-size: 15px; gap: 10px; }
.wp-catalog-intro h1, .wp-page-heading h1 { font-size: clamp(42px, 5vw, 68px); }
.wp-catalog-intro > p { max-width: 520px; font-size: 18px; }
.wp-catalog-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 34px; }
.wp-catalog-sidebar { padding: 22px 20px; }
.wp-catalog-search > label { font-size: 16px; }
.wp-catalog-search .catalog-search { height: 54px; }
.wp-catalog-search .catalog-search input { font-size: 16px; }
.wp-category-menu h2 { font-size: 20px; }
.wp-product-categories li a { padding: 11px 0; font-size: 16.5px; }
.wp-product-categories .count { font-size: 14px; }
.wp-product-categories .children li a, .wp-product-categories .sub-menu li a { padding: 7px 0; font-size: 15.5px; }
.wp-sidebar-contact strong { font-size: 18px; }
.wp-sidebar-contact p { font-size: 15.5px; }
.wp-sidebar-contact a { font-size: 18px; }
.wp-catalog-main .woocommerce-result-count { font-size: 15.5px; }
.wp-catalog-main .woocommerce-ordering select { min-height: 46px; font-size: 16px; }
.wp-catalog-main .term-description { font-size: 16.5px; }
body .wp-catalog-main ul.products { gap: 18px; }
.wp-catalog-main .woocommerce-pagination .page-numbers a, .wp-catalog-main .woocommerce-pagination .page-numbers span { min-width: 46px; height: 46px; font-size: 16px; }
.wp-catalog-request h2 { font-size: 40px; }
.wp-catalog-request p:not(.eyebrow) { font-size: 17px; }
.wp-entry-content { font-size: 19px; }
.wp-entry-content table { font-size: 16px; }
.wp-post-preview > p:not(.eyebrow) { font-size: 16.5px; }
.wp-post-preview h2 { font-size: 26px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { font-size: 17px; }

/* inner pages */
.page-hero-lead { max-width: 720px; font-size: 20px; }
.inner-section h2 { font-size: clamp(32px, 3.6vw, 48px); }
.prose p { font-size: 19px; }
.fact-card strong { font-size: 46px; }
.fact-card span { font-size: 15.5px; }
.nomenclature-list li { padding: 24px 24px 24px 78px; font-size: 18px; }
.nomenclature-list li::before { font-size: 24px; top: 22px; left: 24px; }
.inner-note { font-size: 18px; }
.requisites { font-size: 18px; }
.requisites th, .requisites td { padding: 18px 22px; }
.cta-band h2 { font-size: 40px; }
.cta-band p { max-width: 540px; font-size: 18px; }

@media (max-width: 1100px) {
  .main-nav > ul, .main-nav ul.menu, .main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid #e1eefa; }
  .main-nav li:last-child { border-bottom: 0; }
  .main-nav li a { justify-content: space-between; width: 100%; padding: 17px 0; font-size: 20px; }
  .main-nav .sub-menu { position: static; display: none; min-width: 0; padding: 0 0 10px 16px; border: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .main-nav .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .main-nav .sub-menu li { border: 0; }
  .main-nav .sub-menu li a { padding: 12px 8px; font-size: 18px; }
  .main-nav .menu-item-has-children > a::after { content: "⌄"; margin-left: auto; color: #1e7fd0; }
  body.admin-bar .site-header { top: 0; }
}
@media (max-width: 980px) {
  .wp-catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .wp-product-categories { display: flex; flex-wrap: wrap; gap: 8px; }
  .wp-product-categories > li { border: 0; }
  .wp-product-categories > li > a { min-height: 42px; padding: 8px 14px; border: 1px solid #cfe5f7; border-radius: 4px; background: #fff; }
  .wp-product-categories .children, .wp-product-categories .sub-menu { display: none; }
}
@media (max-width: 680px) {
  body .wp-catalog-main ul.products, .wp-catalog-main .related.products ul.products, .wp-post-grid { grid-template-columns: 1fr; gap: 14px; }
  body .wp-catalog-main ul.products li.product .product-visual { height: 230px; }
  body .wp-catalog-main ul.products li.product .product-card-content { min-height: 0; }
  body .wp-catalog-main ul.products li.product .woocommerce-loop-product__title { min-height: 0; font-size: 22px; }
  body .wp-catalog-main ul.products li.product .product-summary { min-height: 0; font-size: 16.5px; }
  body .wp-catalog-main ul.products li.product .product-specs span { font-size: 14px; }
  .wp-catalog-intro h1, .wp-page-heading h1 { font-size: 44px; }
  .wp-catalog-request h2, .cta-band h2 { font-size: 30px; }
  .nomenclature-list li { padding: 20px 18px 20px 64px; font-size: 17px; }
  .nomenclature-list li::before { left: 18px; font-size: 20px; }
  .requisites th { font-size: 14px; }
  .requisites td { font-size: 17px; }
  .prose p, .wp-entry-content { font-size: 17px; }
}
.brand-custom-logo { display: block; width: auto; max-width: 260px; max-height: 60px; object-fit: contain; }

/* =====================================================================
   v1.3 — desktop dropdown that stays open, collapsed menu, mobile catalog
   ===================================================================== */
.site-header .main-nav { align-self: stretch; }
.main-nav > ul, .main-nav > ul.menu { flex-wrap: nowrap; align-items: stretch; justify-content: center; height: 100%; }
.main-nav > ul > li { display: flex; align-items: center; }
.main-nav > ul > li > a { height: 100%; }
.main-nav .submenu-toggle { display: none; }

/* caret next to items that have sub-items */
.main-nav > ul > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: .7; transform: rotate(45deg); transition: transform .2s ease; }
.main-nav > ul > li.menu-item-has-children:hover > a::after, .main-nav > ul > li.menu-item-has-children:focus-within > a::after { margin-top: 3px; transform: rotate(-135deg); }

/* dropdown: sits flush against the item (no gap), closes with a short delay */
.main-nav .sub-menu { top: calc(100% - 2px); left: -22px; z-index: 90; width: max-content; min-width: 320px; max-width: min(440px, 90vw); max-height: calc(100vh - 150px); margin: 0; padding: 12px; overflow-y: auto; list-style: none; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease .16s, transform .18s ease .16s, visibility 0s linear .34s; }
.main-nav .menu-item-has-children:hover > .sub-menu, .main-nav .menu-item-has-children:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition-delay: 0s; }
.main-nav .sub-menu li { display: block; border: 0; }
.main-nav .sub-menu li a { display: flex; width: 100%; line-height: 1.3; white-space: normal; }
/* third level is shown indented inside the dropdown (nothing to hover-chase) */
.main-nav .sub-menu .sub-menu { position: static; width: auto; min-width: 0; max-width: none; max-height: none; padding: 0 0 6px 14px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: none; }
.main-nav .sub-menu .sub-menu li a { padding: 8px 12px; color: #5d7b99; font-size: 16px; }

/* admin bar offsets for the sticky header */
@media (min-width: 783px) { body.admin-bar .site-header { top: 32px; } }
@media (max-width: 782px) and (min-width: 601px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

/* collapsed (burger) mode */
.site-header.nav-collapsed .main-nav > ul, .site-header.nav-collapsed .main-nav > ul.menu { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; height: auto; gap: 0; }
.site-header.nav-collapsed .main-nav > ul > li, .site-header.nav-collapsed .main-nav .sub-menu li { display: flex; flex-wrap: wrap; align-items: center; height: auto; border-bottom: 1px solid #e1eefa; }
.site-header.nav-collapsed .main-nav .sub-menu li { border-bottom: 0; }
.site-header.nav-collapsed .main-nav li > a { flex: 1 1 0; min-width: 0; height: auto; padding: 16px 0; border: 0; font-size: 20px; white-space: normal; }
.site-header.nav-collapsed .main-nav .menu-item-has-children > a::after { display: none; }
.site-header.nav-collapsed .main-nav .submenu-toggle { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; color: var(--blue-deep); background: none; cursor: pointer; }
.submenu-toggle span { display: block; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.submenu-open > .submenu-toggle span { transform: translateY(2px) rotate(-135deg); }
.site-header.nav-collapsed .main-nav .sub-menu, .site-header.nav-collapsed .main-nav .sub-menu .sub-menu { position: static; flex: 0 0 100%; display: none; width: 100%; min-width: 0; max-width: none; max-height: none; padding: 0 0 10px 14px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; visibility: visible; opacity: 1; pointer-events: auto; transform: none; transition: none; }
.site-header.nav-collapsed .main-nav .submenu-open > .sub-menu { display: block; }
.site-header.nav-collapsed .main-nav .sub-menu li a { padding: 12px 8px; color: var(--navy); font-size: 18px; }
.site-header.nav-collapsed .main-nav .sub-menu .sub-menu li a { color: #5d7b99; font-size: 17px; }
.site-header.nav-collapsed .main-nav li > a.nav-cta { flex: none; justify-content: center; padding: 0 20px; color: #fff; }

/* footer menus */
.footer-nav-column .footer-menu { display: flex; flex-direction: column; align-items: flex-start; }

/* catalog on phones: categories become a swipeable row */
@media (max-width: 980px) {
  .wp-product-categories { flex-wrap: nowrap; margin-inline: -4px; padding: 2px 4px 8px; overflow-x: auto; scrollbar-width: thin; }
  .wp-product-categories > li { flex: 0 0 auto; }
  .wp-product-categories > li > a { white-space: nowrap; }
}
@media (max-width: 680px) {
  .wp-catalog-sidebar { padding: 14px; }
  .wp-catalog-main .woocommerce-ordering, .wp-catalog-main .woocommerce-result-count { float: none; width: 100%; }
  .wp-catalog-main .woocommerce-ordering select { width: 100%; }
}

/* =====================================================================
   v1.4 — product page (own markup) + reliable product grid
   ===================================================================== */
/* product cards in lists: beat WooCommerce's own float/width rules */
body .wp-catalog-main ul.products li.product,
body.woocommerce .wp-catalog-main ul.products[class*="columns-"] li.product { float: none !important; width: auto !important; margin: 0 !important; clear: none !important; }
body .wp-catalog-main ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
body .wp-catalog-main ul.products::before, body .wp-catalog-main ul.products::after { display: none !important; }
@media (max-width: 980px) { body .wp-catalog-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { body .wp-catalog-main ul.products { grid-template-columns: 1fr; gap: 14px; } }

/* layout: no sidebar on the product page */
.wp-catalog-layout--single { display: block; padding-top: 6px; }
.wp-catalog-layout--single .wp-catalog-main { width: 100%; max-width: none; }
.wp-catalog-page--product { padding-bottom: 80px; }
.silectra-product { display: block; width: 100%; margin: 0; padding: 0; }
.silectra-product .onsale { display: none; }

.sp-back { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; color: var(--blue-deep); font-size: 17px; font-weight: 700; }
.sp-back .icon { transform: rotate(180deg); }
.sp-back:hover { color: var(--blue); }

/* hero: gallery + info */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
.sp-gallery { position: sticky; top: 120px; min-width: 0; }
.sp-gallery-frame { position: relative; overflow: hidden; padding: 24px; border: 1px solid #d3e6f6; border-radius: 10px; background: #fff; }
.sp-placeholder { display: block; width: 100%; height: auto; max-height: 520px; margin: 0 auto; object-fit: contain; }
.silectra-product .woocommerce-product-gallery { position: relative; float: none !important; width: 100% !important; margin: 0 !important; opacity: 1 !important; }
.silectra-product .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.silectra-product .woocommerce-product-gallery__image { margin: 0; text-align: center; }
.silectra-product .woocommerce-product-gallery__image a { display: block; }
.silectra-product .woocommerce-product-gallery__image img,
.silectra-product .woocommerce-product-gallery img.wp-post-image { display: block; width: 100%; max-width: 100%; height: auto; max-height: 540px; margin: 0 auto; object-fit: contain; }
.silectra-product .woocommerce-product-gallery__trigger { top: 12px; right: 12px; z-index: 5; }
.silectra-product .flex-control-thumbs { display: flex; gap: 10px; margin: 16px 0 0; padding: 0; overflow-x: auto; list-style: none; }
.silectra-product .flex-control-thumbs li { flex: 0 0 84px; float: none !important; width: 84px !important; margin: 0 !important; }
.silectra-product .flex-control-thumbs img { width: 100%; height: 84px; border: 2px solid transparent; border-radius: 6px; object-fit: cover; opacity: .65; cursor: pointer; }
.silectra-product .flex-control-thumbs img.flex-active, .silectra-product .flex-control-thumbs img:hover { border-color: var(--blue); opacity: 1; }

.sp-info { min-width: 0; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sp-tags a { padding: 8px 14px; border: 1px solid #cfe5f7; border-radius: 999px; color: var(--blue-deep); background: #eef6fd; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.sp-tags a:hover { border-color: var(--blue); background: #dff0fd; }
.silectra-product .product_title { margin: 0 0 18px; color: var(--navy); font-size: clamp(32px, 3.6vw, 50px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.sp-short { color: #45617f; font-size: 19px; line-height: 1.7; }
.sp-short p { margin: 0 0 12px; }
.sp-facts { margin: 24px 0; padding: 0; overflow: hidden; border: 1px solid #d3e6f6; border-radius: 10px; background: #fff; }
.sp-facts > div { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 14px; margin: 0; padding: 15px 20px; border-bottom: 1px solid #e1eefa; font-size: 17px; line-height: 1.45; }
.sp-facts > div:last-child { border-bottom: 0; }
.sp-facts dt { color: #5d7b99; font-weight: 700; }
.sp-facts dd { margin: 0; color: var(--navy); overflow-wrap: anywhere; }

.sp-cta { padding: 28px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #0f5aa8, #2b8fe0); }
.sp-cta h2 { margin: 0 0 10px; color: #fff; font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.sp-cta > p { margin: 0 0 20px; color: #dcefff; font-size: 17px; line-height: 1.6; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-benefits { display: grid; gap: 10px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.25); list-style: none; }
.sp-benefits li { display: flex; align-items: center; gap: 12px; color: #e6f3ff; font-size: 16px; line-height: 1.4; }
.sp-benefits .icon { color: #9fe0ff; }
.sp-save { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 0; border: 0; color: #dcefff; background: none; font-size: 16px; font-weight: 700; cursor: pointer; }
.sp-save:hover { color: #fff; }
.sp-save.is-saved { color: #9fe0ff; }
.sp-save.is-saved .icon { fill: currentColor; }

/* sections */
.sp-section { margin-top: 64px; }
.sp-section > h2, .sp-section .related.products > h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: -.045em; }
.sp-section--related:empty { display: none; }
.sp-section .related.products { margin: 0; padding: 0; }

.sp-description { min-width: 0; overflow-x: auto; padding: 36px 42px; border: 1px solid #d3e6f6; border-radius: 10px; background: #fff; color: #35526f; font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.sp-description > :first-child { margin-top: 0; }
.sp-description > :last-child { margin-bottom: 0; }
.sp-description :where(p, ul, ol, div, figure, pre, h1, h2, h3, h4, blockquote) { max-width: 100%; }
.sp-description img, .sp-description video, .sp-description iframe { max-width: 100% !important; height: auto; }
.sp-description [style*="width"]:not(td):not(th):not(col) { max-width: 100% !important; }
.sp-description strong, .sp-description b { color: var(--navy); }
.sp-description--empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sp-description--empty p { margin: 0; }

.table-scroll { width: 100%; margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #d3e6f6; border-radius: 8px; background: #fff; }
.table-scroll > table { width: 100%; min-width: 560px; margin: 0; border: 0; border-collapse: collapse; }
.sp-description table th, .sp-description table td, .sp-attrs table th, .sp-attrs table td { padding: 13px 16px; border: 0; border-bottom: 1px solid #e1eefa; text-align: left; vertical-align: top; font-size: 16.5px; line-height: 1.5; overflow-wrap: break-word; }
.sp-description table th, .sp-attrs table th { color: #0d2f57; background: #eef6fd; font-weight: 700; }
.sp-description table tr:last-child td, .sp-attrs table tr:last-child th, .sp-attrs table tr:last-child td { border-bottom: 0; }
.sp-description table tr:nth-child(even) td { background: #f8fbfe; }

.sp-attrs { overflow-x: auto; border: 1px solid #d3e6f6; border-radius: 10px; background: #fff; }
.sp-attrs table { width: 100%; min-width: 420px; margin: 0; border-collapse: collapse; }
.sp-attrs th { width: 34%; }
.sp-attrs td p { margin: 0; }

/* tablet */
@media (max-width: 1100px) {
  .sp-hero { gap: 34px; }
  .sp-cta { padding: 24px; }
}
@media (max-width: 900px) {
  .sp-hero { grid-template-columns: 1fr; gap: 28px; }
  .sp-gallery { position: static; }
  .sp-placeholder, .silectra-product .woocommerce-product-gallery__image img { max-height: 420px; }
}
/* phone */
@media (max-width: 680px) {
  .wp-catalog-page--product { padding-bottom: 56px; }
  .sp-back { margin-bottom: 18px; font-size: 16px; }
  .sp-gallery-frame { padding: 12px; border-radius: 8px; }
  .sp-tags { margin-bottom: 14px; }
  .sp-tags a { padding: 7px 12px; font-size: 13.5px; }
  .silectra-product .product_title { font-size: 32px; }
  .sp-short { font-size: 17px; }
  .sp-facts > div { grid-template-columns: 1fr; gap: 3px; padding: 12px 16px; font-size: 16px; }
  .sp-facts dt { font-size: 13.5px; }
  .sp-cta { padding: 22px 18px; border-radius: 10px; }
  .sp-cta h2 { font-size: 24px; }
  .sp-cta-actions { flex-direction: column; }
  .sp-benefits li { font-size: 15px; }
  .sp-section { margin-top: 44px; }
  .sp-description { padding: 20px 16px; font-size: 16.5px; }
  .table-scroll > table { min-width: 500px; }
  .sp-description table th, .sp-description table td, .sp-attrs table th, .sp-attrs table td { padding: 10px 12px; font-size: 15px; }
  .sp-attrs table { min-width: 0; }
  .sp-attrs th { width: 40%; }
}
.sp-section--related:not(:has(.related)) { display: none; }

/* v1.4.1 — product CTA buttons */
.sp-cta-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
