/*
 Theme Name:   Sunfung RU
 Theme URI:    https://sunfung.ru
 Description:  Кастомная тема для sunfung.ru — сайт производителя Sunfung Technology Corporation
 Author:       PrintConsulting
 Version:      1.1.0
 Text Domain:  sunfung-ru
 Requires PHP: 8.1
*/

:root {
  --sf-red: #0095FF;
  --sf-red-dark: #0077CC;
  --sf-dark: #1B2A4A;
  --sf-dark2: #16213e;
  --sf-gray: #6c757d;
  --sf-gray-light: #adb5bd;
  --sf-light: #F0F4F8;
  --sf-border: #e9ecef;
  --sf-white: #ffffff;
  --sf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sf-container: 1200px;
  --sf-radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sf-font); color: var(--sf-dark); line-height: 1.6; background: var(--sf-white); font-size: 16px; }
a { color: var(--sf-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sf-red-dark); }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 20px; } h4 { font-size: 16px; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.sf-container { max-width: var(--sf-container); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.sf-btn { display: inline-block; padding: 12px 28px; border-radius: var(--sf-radius); font-weight: 600; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all .25s; text-align: center; line-height: 1.2; }
.sf-btn-primary { background: var(--sf-red); color: #fff; border-color: var(--sf-red); }
.sf-btn-primary:hover { background: var(--sf-red-dark); border-color: var(--sf-red-dark); color: #fff; }
.sf-btn-outline { background: transparent; color: var(--sf-red); border-color: var(--sf-red); }
.sf-btn-outline:hover { background: var(--sf-red); color: #fff; }
.sf-btn-sm { padding: 8px 18px; font-size: 14px; }
.sf-btn-lg { padding: 15px 36px; font-size: 16px; }

/* Header */
.sf-header { background: #fff; border-bottom: 1px solid var(--sf-border); position: sticky; top: 0; z-index: 100; }
.admin-bar .sf-header { top: 32px; }
.sf-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 30px; }
.sf-logo-text { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: var(--sf-red); }
.sf-nav { flex: 1; }
.sf-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; justify-content: center; }
.sf-menu li a { display: block; padding: 8px 14px; color: var(--sf-dark); font-weight: 500; font-size: 15px; border-radius: 6px; }
.sf-menu li a:hover, .sf-menu li.current-menu-item > a { background: var(--sf-light); color: var(--sf-red); }
.sf-header-cta { white-space: nowrap; }
.sf-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.sf-burger span { display: block; width: 24px; height: 2px; background: var(--sf-dark); }

/* Page header */
.sf-page-header { background: var(--sf-light); padding: 40px 0; border-bottom: 1px solid var(--sf-border); }
.sf-page-header-sm { padding: 16px 0; }
.sf-page-title { margin: 8px 0 0; }
.sf-page-desc { color: var(--sf-gray); max-width: 800px; margin-top: 12px; }
.sf-breadcrumbs { font-size: 14px; color: var(--sf-gray); }
.sf-breadcrumbs a { color: var(--sf-gray); }
.sf-breadcrumbs a:hover { color: var(--sf-red); }
.sf-breadcrumbs span { color: var(--sf-dark); }

/* Catalog layout */
.sf-catalog { padding: 40px 0 80px; }
.sf-catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.sf-catalog-sidebar h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--sf-gray); margin-bottom: 16px; }
.sf-cat-tree { list-style: none; padding: 0; margin: 0; }
.sf-cat-tree > li { margin-bottom: 10px; }
.sf-cat-tree > li > a { font-weight: 600; color: var(--sf-dark); display: block; padding: 6px 0; }
.sf-cat-tree > li.active > a { color: var(--sf-red); }
.sf-cat-tree ul { list-style: none; padding: 0 0 0 12px; margin: 4px 0 0; border-left: 2px solid var(--sf-border); }
.sf-cat-tree ul li a { color: var(--sf-gray); font-size: 14px; display: block; padding: 4px 0 4px 10px; }
.sf-cat-tree ul li.active a { color: var(--sf-red); font-weight: 600; }
.sf-cat-tree ul li a:hover { color: var(--sf-red); }
.sf-count { color: var(--sf-gray-light); font-size: 12px; }

.sf-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.sf-cat-card { background: var(--sf-light); border-radius: var(--sf-radius); padding: 24px; }
.sf-cat-card h3 { margin-bottom: 12px; }
.sf-cat-card h3 a { color: var(--sf-dark); }
.sf-cat-card h3 a:hover { color: var(--sf-red); }
.sf-cat-card ul { list-style: none; padding: 0; margin: 0; }
.sf-cat-card li { padding: 4px 0; }
.sf-cat-card li a { color: var(--sf-gray); font-size: 14px; }
.sf-cat-card li a:hover { color: var(--sf-red); }

/* Product grid */
.sf-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sf-product-card { background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); overflow: hidden; transition: all .25s; display: flex; flex-direction: column; }
.sf-product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); border-color: transparent; }
.sf-product-card-img { display: block; aspect-ratio: 4/3; background: var(--sf-light); overflow: hidden; }
.sf-product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.sf-no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--sf-gray-light); }
.sf-product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.sf-product-card-body h3 { font-size: 16px; margin: 0; flex: 1; }
.sf-product-card-body h3 a { color: var(--sf-dark); }
.sf-product-card-body h3 a:hover { color: var(--sf-red); }
.sf-pagination { margin-top: 40px; text-align: center; }
.sf-pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--sf-border); border-radius: 6px; color: var(--sf-dark); }
.sf-pagination .page-numbers.current, .sf-pagination .page-numbers:hover { background: var(--sf-red); color: #fff; border-color: var(--sf-red); }

/* Single product */
.sf-product { padding: 30px 0 80px; }
.sf-product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; align-items: stretch; }
.sf-product-main-img { background: var(--sf-light); border-radius: var(--sf-radius); padding: 30px; text-align: center; }
.sf-product-main-img img { max-height: 480px; object-fit: contain; }
.sf-product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sf-thumb { width: 80px; height: 80px; border: 2px solid var(--sf-border); border-radius: 6px; overflow: hidden; }
.sf-thumb:hover { border-color: var(--sf-red); }
.sf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sf-product-title { font-size: 32px; margin-bottom: 8px; }
.sf-product-cat { color: var(--sf-gray); margin-bottom: 24px; }
.sf-product-actions { margin-bottom: 24px; }
.sf-product-badges { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; color: var(--sf-gray); }
.sf-product-content { max-width: 900px; margin: 0 auto 50px; font-size: 16px; }
.sf-product-content h3 { margin-top: 40px; font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--sf-red); display: inline-block; }
.sf-product-content ul li { margin-bottom: 6px; }
.sf-specs, .sf-product-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.sf-specs td, .sf-product-content table td { padding: 12px 16px; border-bottom: 1px solid var(--sf-border); vertical-align: top; }
.sf-specs tr:nth-child(odd), .sf-product-content table tr:nth-child(odd) { background: var(--sf-light); }
.sf-specs td:first-child { width: 45%; font-weight: 600; }
.sf-product-cta { background: var(--sf-dark); color: #fff; border-radius: 12px; padding: 50px; text-align: center; }
.sf-product-cta h2 { color: #fff; font-size: 26px; }
.sf-product-cta p { color: var(--sf-gray-light); margin-bottom: 24px; }
.sf-product-cta .sf-btn { margin: 6px; }
.sf-product-cta .sf-btn-outline { color: #fff; border-color: #fff; }
.sf-product-cta .sf-btn-outline:hover { background: #fff; color: var(--sf-dark); }

/* Footer */
.sf-footer { background: var(--sf-dark); color: var(--sf-gray-light); padding: 60px 0 0; margin-top: 60px; }
.sf-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; }
.sf-footer-logo { margin-bottom: 14px; display: block; }
.sf-footer-desc { font-size: 14px; line-height: 1.6; }
.sf-footer h4 { color: #fff; margin-bottom: 16px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.sf-footer ul { list-style: none; padding: 0; margin: 0; }
.sf-footer li { margin-bottom: 8px; }
.sf-footer a { color: var(--sf-gray-light); font-size: 14px; }
.sf-footer a:hover { color: #fff; }
.sf-footer p { font-size: 14px; margin-bottom: 8px; }
.sf-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; text-align: center; }

/* Responsive */
@media (max-width: 1024px) {
  .sf-product-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sf-nav, .sf-header-cta { display: none; }
  .sf-burger { display: flex; }
  .sf-catalog-layout { grid-template-columns: 1fr; }
  .sf-catalog-sidebar { order: 2; }
  .sf-cat-grid { grid-template-columns: 1fr; }
  .sf-product-hero { grid-template-columns: 1fr; gap: 24px; }
  .sf-product-title { font-size: 24px; }
  .sf-product-cta { padding: 30px 20px; }
  .sf-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: 28px; }
}
@media (max-width: 480px) {
  .sf-product-grid { grid-template-columns: 1fr; }
}

/* About page */
.sf-about-hero { background: #0d0d0d; color: #fff; padding: 70px 0; text-align: center; }
.sf-about-hero h1 { color: #fff; font-size: 40px; margin: 0; }
.sf-about-section { padding: 70px 0; }
.sf-about-gray { background: var(--sf-light); }
.sf-about-dark { background: var(--sf-dark); color: #fff; }
.sf-about-dark h2, .sf-about-dark h3 { color: #fff; }
.sf-about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.sf-about-split-rev .sf-about-text { order: 1; }
.sf-about-split-rev .sf-about-img { order: 2; }
.sf-about-img img { width: 100%; border-radius: var(--sf-radius); display: block; }
.sf-about-text h2 { font-size: 30px; }
.sf-about-text p { font-size: 17px; line-height: 1.7; color: #444; }
.sf-center { text-align: center; }
.sf-about-narrow { max-width: 800px; }
.sf-about-narrow p, .sf-about-narrow li { font-size: 17px; line-height: 1.7; color: #444; }
.sf-about-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 40px; }
.sf-fact { text-align: center; padding: 28px 16px; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); }
.sf-fact strong { display: block; font-size: 22px; color: var(--sf-red); margin-bottom: 10px; line-height: 1.2; }
.sf-fact span { font-size: 14px; color: var(--sf-gray); line-height: 1.5; display: block; }
.sf-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 40px; }
.sf-why h3 { font-size: 18px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--sf-red); display: inline-block; }
.sf-why p { color: var(--sf-gray-light); font-size: 15px; line-height: 1.6; }
.sf-about-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sf-contact-card { background: #fff; border: 1px solid var(--sf-border); border-radius: var(--sf-radius); padding: 36px; }
.sf-contact-card h3 { font-size: 20px; margin-bottom: 12px; }
.sf-contact-card p { color: #444; line-height: 1.7; }
.sf-contact-card-accent { border: 2px solid var(--sf-red); }
.sf-contact-card .sf-btn { margin-top: 10px; }
@media (max-width: 1024px) { .sf-about-facts { grid-template-columns: repeat(3, 1fr); } .sf-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .sf-about-split, .sf-about-contacts { grid-template-columns: 1fr; } .sf-about-split-rev .sf-about-text { order: 2; } .sf-about-split-rev .sf-about-img { order: 1; } .sf-about-facts { grid-template-columns: 1fr 1fr; } .sf-why-grid { grid-template-columns: 1fr; } .sf-about-hero h1 { font-size: 28px; } }


/* ===== Catalog Page ===== */

.sf-catalog-hero {
  background: linear-gradient(135deg, #1B2A4A 0%, #16213e 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}

.sf-catalog-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.sf-catalog-hero__sub {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

.sf-catalog-grid-section {
  padding: 50px 0 60px;
  background: #F0F4F8;
}



.sf-catalog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.sf-catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sf-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sf-catalog-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #fff;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-catalog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sf-catalog-card__img--placeholder svg {
  width: 64px;
  height: 64px;
}

.sf-catalog-card__body {
  padding: 16px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sf-catalog-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1B2A4A;
  margin: 0 0 6px;
}

.sf-catalog-card:hover .sf-catalog-card__title {
  color: #0095FF;
}

.sf-catalog-card__count {
  font-size: 0.85rem;
  color: #888;
}

/* Mobile */
@media (max-width: 768px) {
  .sf-catalog-hero {
    padding: 40px 0 35px;
  }
  .sf-catalog-hero h1 {
    font-size: 1.6rem;
  }
  .sf-catalog-hero__sub {
    font-size: 0.95rem;
  }
  .sf-catalog-grid-section {
    padding: 30px 0 40px;
  }
  .sf-catalog-cards {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .sf-catalog-group__title {
    font-size: 1.3rem;
  }
}


/* ===== Footer ===== */
.sf-footer { background: #1B2A4A; color: #ccc; padding: 50px 0 0; font-size: 0.95rem; }
.sf-footer a { color: #ddd; text-decoration: none; transition: color 0.2s; }
.sf-footer a:hover { color: #0095FF; }
.sf-footer__grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; }
.sf-footer__title { color: #fff; font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; }
.sf-footer__contact { margin-top: 12px; line-height: 1.8; }
.sf-footer__catalog-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sf-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sf-footer__col li { padding: 3px 0; }
.sf-footer__col li a { color: #8899BB; font-size: 0.9rem; }
.sf-footer__col li a:hover { color: #0095FF; }
.sf-footer__bottom { margin-top: 40px; padding: 20px 0; border-top: 1px solid #2A3A5E; text-align: center; font-size: 0.85rem; color: #777; }
@media (max-width: 768px) {
  .sf-footer__grid { grid-template-columns: 1fr; gap: 30px; }
}


/* ===== Logo ===== */
.sf-logo__img, .sf-logo img {
  height: 52px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .sf-logo__img, .sf-logo img {
    height: 40px;
  }
}


/* ===== Page Content ===== */
.sf-page-content { max-width: 900px; margin: 40px auto 60px; padding: 0 24px; line-height: 1.7; }
.sf-page-content h2 { font-size: 2rem; margin: 0 0 24px; color: #1B2A4A; }
.sf-page-content h3 { font-size: 1.3rem; margin: 32px 0 12px; color: #1B2A4A; }
.sf-page-content h4 { font-size: 1.1rem; margin: 24px 0 8px; color: #1B2A4A; }
.sf-page-content p { margin: 0 0 16px; color: #444; }
.sf-page-content ul { margin: 0 0 20px; padding-left: 24px; }
.sf-page-content li { margin: 6px 0; color: #444; }
.sf-page-content a { color: #0095FF; }
.sf-page-content a:hover { color: #0077CC; }
@media (max-width: 768px) { .sf-page-content { margin: 24px auto 40px; } .sf-page-content h2 { font-size: 1.5rem; } }


/* ===== Product Page ===== */
.sf-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0; align-items: start; }
.sf-product-image { border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; background: #fafafa; padding: 16px; }
.sf-product-image img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.sf-product-image__placeholder { padding: 80px 20px; text-align: center; color: #999; }
.sf-product-info { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.sf-product-info__title { font-size: 1.8rem; font-weight: 700; color: #1B2A4A; margin: 0; line-height: 1.3; }
.sf-product-info__cat { color: #0095FF; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.sf-product-info__cat:hover { color: #0077CC; }
.sf-product-info__excerpt { color: #555; line-height: 1.6; font-size: 0.95rem; margin: 8px 0; flex: 1; }
.sf-product-info__cta { margin-top: auto; padding-top: 20px; }
.sf-product-info__cta .sf-btn { font-size: 16px; padding: 14px 36px; }
.sf-product-info__badges { display: flex; gap: 20px; flex-wrap: wrap; color: #666; font-size: 0.85rem; }
.sf-product-content { margin: 40px 0 60px; line-height: 1.7; color: #444; }
.sf-product-content h2, .sf-product-content h3 { color: #1B2A4A; margin: 28px 0 12px; }
.sf-product-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.sf-product-content th, .sf-product-content td { padding: 10px 16px; border: 1px solid #e0e0e0; text-align: left; }
.sf-product-content th { background: #F0F4F8; font-weight: 600; color: #1B2A4A; }

/* Lightbox */
.sf-lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 99999; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sf-lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.sf-lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 36px; cursor: pointer; }

@media (max-width: 768px) {
  .sf-product-top { grid-template-columns: 1fr; gap: 24px; }
  .sf-product-info__title { font-size: 1.4rem; }
  .sf-product-info__badges { flex-direction: column; gap: 8px; }
}

.sf-product-info__bottom { display: flex; flex-direction: column; gap: 12px; }
.sf-product-info__badges { margin-bottom: 4px; }
.sf-product-info__cta { margin: 0; }


/* ===== Popup ===== */
.sf-popup-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 99998; display: flex; align-items: center; justify-content: center; }
.sf-popup-box { background: #fff; border-radius: 12px; padding: 36px 40px; max-width: 540px; width: 92%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.sf-popup-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; cursor: pointer; color: #999; line-height: 1; }
.sf-popup-close:hover { color: #333; }
.sf-popup-box h3 { margin: 0 0 8px; font-size: 1.4rem; color: #1B2A4A; }
.sf-popup-box p { margin: 0 0 20px; color: #666; font-size: 0.95rem; }

/* ===== CF7 Form Styles ===== */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: #0095FF; outline: none; }
.wpcf7 textarea { height: 100px; resize: vertical; }
.wpcf7 .sf-form-row { margin-bottom: 14px; }
.wpcf7 .sf-form-consent { font-size: 0.85rem; color: #666; }
.wpcf7 .sf-form-consent a { color: #0095FF; }
.wpcf7 input[type="submit"] { width: 100%; padding: 14px; font-size: 16px; }
.wpcf7-response-output { font-size: 0.9rem; margin-top: 12px !important; }

.sf-product-info p.sf-product-info__excerpt { margin: 0 0 10px; }

.sf-product-info__excerpt p { margin: 0 0 8px; }
.sf-product-info__excerpt p:last-child { margin-bottom: 0; }

.wpcf7 .sf-form-consent .wpcf7-list-item { margin: 0; }
.wpcf7 .sf-form-consent .wpcf7-list-item-label { white-space: nowrap; }


/* ===== sf_ux_block ===== */
.sf-breadcrumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--sf-gray); }
.sf-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #aaa; }
.sf-breadcrumbs li:last-child span { color: var(--sf-dark); }
.sf-product-page .sf-breadcrumbs { margin-top: 24px; }
.sf-related { margin: 56px 0 24px; }
.sf-related h2 { font-size: 1.6rem; color: #1B2A4A; margin: 0 0 20px; }
.sf-related-grid { grid-template-columns: repeat(4, 1fr); }
/* search */
.sf-search-toggle { background: none; border: none; cursor: pointer; color: var(--sf-dark); padding: 8px; display: inline-flex; align-items: center; margin-left: auto; margin-right: 8px; }
.sf-search-toggle:hover { color: #0095FF; }
.sf-header-search { border-top: 1px solid #eee; background: #fff; padding: 14px 0; }
.sf-search-form { display: flex; max-width: 640px; margin: 0 auto; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.sf-search-form input { flex: 1; border: none; padding: 12px 16px; font-size: 15px; font-family: inherit; outline: none; }
.sf-search-form button { border: none; background: #0095FF; color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; }
.sf-search-form button:hover { background: #0077CC; }
.sf-search-wrap { margin-top: 16px; } .sf-page-header .sf-search-form { margin: 0; }
.sf-search-count { color: var(--sf-gray); margin: 0 0 20px; } .sf-search-empty { font-size: 1.05rem; color: #444; max-width: 640px; }
/* 404 */
.sf-404 { padding: 48px 0 72px; text-align: center; }
.sf-404__code { font-size: 96px; font-weight: 800; color: #0095FF; line-height: 1; margin: 0 0 12px; }
.sf-404__text { max-width: 560px; margin: 0 auto 24px; color: #555; line-height: 1.6; }
.sf-404__search { max-width: 560px; margin: 0 auto 20px; }
.sf-404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.sf-404 h2 { font-size: 1.2rem; color: #1B2A4A; margin: 0 0 16px; }
.sf-404__cats { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; max-width: 900px; }
.sf-404__cats a { color: var(--sf-gray); font-size: 14px; } .sf-404__cats a:hover { color: #0095FF; }
/* cookie */
.sf-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; background: #1B2A4A; color: #fff; border-radius: 10px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; max-width: 920px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; }
.sf-cookie p { margin: 0; line-height: 1.5; } .sf-cookie a { color: #4db8ff; } .sf-cookie .sf-btn { white-space: nowrap; }
.sf-cookie[hidden] { display: none; }
/* mobile menu */
@media (max-width: 768px) {
  body.sf-menu-open .sf-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eee; box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 8px 0 16px; z-index: 1000; }
  body.sf-menu-open .sf-nav .sf-menu { flex-direction: column; gap: 0; }
  body.sf-menu-open .sf-nav .sf-menu a { display: block; padding: 12px 24px; font-size: 16px; }
  .sf-header { position: relative; }
  .sf-header-cta { display: none; }
  .sf-related-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .sf-404__code { font-size: 64px; }
}

/* sf-mobile-h1 */
@media (max-width: 768px){ .elementor-widget-heading h1.elementor-heading-title, .sf-page-title, .sf-product-info__title { font-size: 26px !important; line-height: 1.25 !important; overflow-wrap: anywhere; } .elementor-widget-heading h2.elementor-heading-title { font-size: 24px !important; } }

/* sf-font-unify */
.elementor, .elementor * { font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; }

/* sf_popular */
.sf-popular { padding: 64px 0; background: #fff; }
.sf-popular__title { text-align: center; font-size: 2rem; color: #1B2A4A; margin: 0 0 8px; }
.sf-popular__sub { text-align: center; color: #666; margin: 0 0 36px; font-size: 1.05rem; }
.sf-popular-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .sf-popular-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sf-popular-grid { grid-template-columns: 1fr; } .sf-popular__title { font-size: 1.5rem; } }
.sf-service .sf-lead { font-size: 1.1rem; color: #333; border-left: 3px solid #0095FF; padding-left: 16px; }

/* sf-menu-nowrap */
.sf-menu a { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1200px){ .sf-menu { gap: 14px; } .sf-menu a { font-size: 14px; padding: 8px 10px; } .sf-header-cta { padding: 10px 16px; font-size: 14px; } }

.sf-page-content h1 { font-size: 2.2rem; color: #1B2A4A; margin: 0 0 20px; }

/* sf_print button */
.sf-product-info__cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sf-print-btn { display: inline-flex; align-items: center; gap: 7px; color: var(--sf-gray); font-size: 14px; font-weight: 600; text-decoration: none; }
.sf-print-btn:hover { color: #0095FF; }
.sf-print-btn svg { width: 18px; height: 18px; }

/* sf_videos */
.sf-videos { margin: 48px 0 8px; }
.sf-videos h2 { font-size: 1.6rem; color: #1B2A4A; margin: 0 0 20px; }
.sf-videos__layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.sf-videos__layout.has-list { grid-template-columns: 3fr 2fr; }
.sf-videos__player iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.sf-videos__title { margin: 10px 0 0; color: #444; font-size: 0.95rem; }
.sf-videos__list-head { margin: 0 0 10px; font-weight: 600; color: #1B2A4A; }
.sf-videos__list ul { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; border: 1px solid #e5e5e5; border-radius: 10px; }
.sf-videos__list li { border-bottom: 1px solid #eee; padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.sf-videos__list li:last-child { border-bottom: 0; }
.sf-videos__list a { color: #333; text-decoration: none; } .sf-videos__list a:hover, .sf-videos__list li.active a { color: #0095FF; }
.sf-videos__list li.active { background: #F0F7FF; }
.sf-videos__list span { color: #999; white-space: nowrap; }
@media (max-width: 900px) { .sf-videos__layout.has-list { grid-template-columns: 1fr; } }

.sf-videos__layout:not(.has-list) .sf-videos__player { max-width: 820px; }

/* sf_compare */
.sf-compare { padding: 48px 0 64px; background: #fff; }
.sf-compare h2 { font-size: 1.7rem; color: #1B2A4A; margin: 0 0 6px; } .sf-compare h3 { font-size: 1.15rem; color: #1B2A4A; margin: 28px 0 12px; }
.sf-compare__sub { color: #666; margin: 0 0 20px; }
.sf-compare__wrap { overflow-x: auto; border: 1px solid #e3e3e3; border-radius: 10px; }
.sf-compare__table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.sf-compare__table th, .sf-compare__table td { padding: 10px 14px; border-bottom: 1px solid #eee; text-align: left; vertical-align: top; }
.sf-compare__table th { background: #F0F4F8; color: #1B2A4A; vertical-align: bottom; }
.sf-compare__table th a { color: #1B2A4A; text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-width: 130px; } .sf-compare__table th a:hover span { color: #0095FF; }
.sf-compare__table th img { width: 90px; height: 70px; object-fit: contain; background: #fff; border-radius: 6px; }
.sf-compare__table td:first-child { font-weight: 600; color: #333; background: #fafbfc; position: sticky; left: 0; min-width: 200px; }
.sf-compare__table tbody tr:hover td { background: #F7FBFF; }
/* sf_cat_video */
.sf-page-header .sf-container { display: grid; grid-template-columns: 1fr; gap: 24px; }
.sf-page-header .sf-container.has-video { grid-template-columns: 3fr 2fr; align-items: center; }
.sf-cat-video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.sf-cat-video p { margin: 8px 0 0; font-size: 0.9rem; color: var(--sf-gray); }
@media (max-width: 900px) { .sf-page-header .sf-container.has-video { grid-template-columns: 1fr; } }
/* sf_faq */
.sf-faq { margin: 8px 0 24px; } .sf-faq__item { border: 1px solid #e3e3e3; border-radius: 8px; margin: 0 0 10px; padding: 0 16px; background: #fff; }
.sf-faq__item summary { cursor: pointer; font-weight: 600; color: #1B2A4A; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.sf-faq__item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: #0095FF; } .sf-faq__item[open] summary::after { content: "−"; }
.sf-faq__item p { margin: 0 0 14px; color: #444; line-height: 1.6; }

.sf-page-content a.sf-btn, .sf-page-content a.sf-btn:hover { color: #fff; text-decoration: none; }

/* sf_map */
.sf-map { border-radius: 10px; overflow: hidden; border: 1px solid #e3e3e3; margin: 8px 0 10px; }
.sf-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.sf-map__hint { color: #555; font-size: 0.95rem; }
@media (max-width: 600px) { .sf-map iframe { height: 260px; } }

@media (max-width: 768px){ .sf-compare__wrap { position: relative; } .sf-compare__wrap::before { content: "← листайте таблицу вбок →"; display: block; font-size: 12px; color: #888; padding: 6px 12px; background: #fafbfc; border-bottom: 1px solid #eee; } .sf-compare__table th a { min-width: 110px; } }
