/* ====================== */
/* ЦВЕТОВАЯ СХЕМА */
/* ====================== */
:root {
  --primary-color: #096eb6;       /* Основной цвет */
  --primary-light: #50b0f5;       /* Светлый вариант основного */
  --primary-dark: #222;        /* Темный вариант основного */
  
  --secondary-color: #ffc107; /* желтый */
  --secondary-dark: #e0b015;
  --secondary-rgb: 255, 193, 7;
  
  --text-color: #333333;          /* Основной цвет текста */
  --light-bg: #f8f9fa;            /* Светлый фон */
  --white: #ffffff;               /* Белый */
  
  --icon-color: #096eb6;
  --table-color: #ddd;
    
  --ulli-color: #1a5c36;       /* Основной цвет элементов */
  --ulli-accent: #ff6b6b;      /* Акцентный цвет */
  --ulli-hover: #495057;        
}



/* ====================== */
/* БАЗОВЫЕ СТИЛИ */
/* ====================== */
html, body {font-family:'Raleway', sans-serif}
html { height: 100%;  scroll-behavior: smooth;}
body { display: flex; flex-direction: column; scroll-behavior: smooth; height: 100%;  color: var(--text-color); line-height: 1.6; position: relative;}
h1, h2, h3, h4, h5, h6 {font-weight: 600;line-height: 1.3;}
a {text-decoration: none;transition: all 0.3s ease;}
.btn {font-weight:100;text-transform: normal;letter-spacing: 0.5px;padding: 10px 10px; font-size:14px; border-radius: 5px;transition: all 0.3s ease;}

.form { background-color: #f9f9f9; border:1px solid #d7d7d7; box-shadow:0px}
main { flex: 1 0 auto; }

/* Стили для списков в секциях */
div.content ul {list-style:none;padding:0;margin:0 0 20px 10px;}
div.content ul li {padding:0 0 0 20px;position:relative;color:var(--text-color,#333);line-height:1.5;}
div.content ul li::before {content:"✔";position:absolute;left:0;color:var(--ulli-color,#2c7be5);font-weight:bold;}
div.content ul li:hover {color:var(--ulli-hover,#2a6495);}
div.content ul li:hover::before {color:var(--ulli-accent,#ff6b6b);}

/* ====================== */
/* АНИМАЦИИ И ЭФФЕКТЫ */
/* ====================== */
@keyframes fadeIn {from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {animation: fadeIn 0.6s ease forwards;}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.scroll-top{position:fixed;right:30px;bottom:30px;width:50px;height:50px;background:var(--primary-color);color:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transition:all 0.3s ease;z-index:1000;box-shadow:0 5px 15px rgba(0,0,0,0.1);}
.scroll-top:hover{background:var(--primary-light);transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.2);}
.scroll-top.active{opacity:1;visibility:visible;}
.scroll-top svg{width:24px;height:24px;}

/* ====================== */
/* ФОРМЫ и КНОПКИ */
/* ====================== */
/* ====================== */
/* ФОРМЫ и КНОПКИ */
/* ====================== */

#form {background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(255, 255, 255, 1) 100%);}
.phone-input { font-family: monospace; /* Для равномерного отступа символов */}
.form label {color:#333}
.form-box {background: rgba(255, 255, 255, 0.95); border-radius: 12px; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15); padding: 2rem; transition: transform 0.3s ease, box-shadow 0.3s ease;}
.form-box:hover {transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);}

.date-picker{display:flex;gap:10px;}
.date-picker input[type="date"]{flex:1;min-width:0;}
.time-select{flex:0 0 120px;}
input[type="date"]::-webkit-calendar-picker-indicator{background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%231a5c36" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>') no-repeat center;cursor:pointer;}

.date-input::-webkit-calendar-picker-indicator {background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%231a5c36" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>') no-repeat center; cursor: pointer;}
.time-select option[disabled] {color: #6c757d;}


.btn-signup .full-label { display: inline; }
.btn-signup .short-label { display: none; }
.dotted-underline { border-bottom: 1px dashed #aaa; cursor: help;}

.btn-primary {background: var(--primary-color); border-color: var(--primary-color); color: white; transition: all 0.3s ease;}

.btn-signup:disabled {background-color: #e9ecef; border-color: #e9ecef; color: #6c757d; cursor: not-allowed; opacity: 1; transform: none;}
.btn-signup {background: var(--primary-color); border-color: var(--primary-color); color: white; transition: all 0.3s ease;}
.btn-signup:hover:not(:disabled) {background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); color:#fff}

.form-check-input:checked {background-color: var(--primary-color); border-color: var(--primary-color);}
.form-check-input:focus {box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25); border-color: var(--primary-light);}

.form-check-label a {color: var(--primary-color); text-decoration: underline; transition: color 0.2s;}
.form-check-label a:hover {color: var(--primary-dark);}

.btn-success {background: var(--secondary-color); border-color: var(--secondary-color); color: #333;}
.btn-success:hover {background: var(--secondary-dark); border-color: var(--secondary-dark);}
.btn-outline-light:hover {color: #333;}

.btn-outline-primary {border-color: var(--primary-color); color: var(--primary-color);}
.btn-outline-primary:hover {background: var(--primary-color); color: white;}

.hero .form-control, .hero .btn, .hero .form-select {border-radius: 0.375rem;}

#form .form-control, #form .form-select {border: 1px solid #dee2e6; padding: 0.75rem 1.25rem;}
#form .form-control:focus, #form .form-select:focus {border-color: var(--primary-color); box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25);}

.btn-outline-primary{--bs-btn-color:var(--primary-color);--bs-btn-border-color:var(--primary-color);--bs-btn-hover-color:#fff;--bs-btn-hover-bg:var(--primary-color);--bs-btn-hover-border-color:var(--primary-color);--bs-btn-active-color:#fff;--bs-btn-active-bg:var(--primary-color);--bs-btn-active-border-color:var(--primary-color);--bs-btn-disabled-color:var(--primary-color);--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:var(--primary-color);}

@media (max-width: 576px) {
  .btn-signup .full-label {display: none;}
  .btn-signup .short-label {display: inline;}
}

/* ====================== */
/* HEADER */
/* ====================== */
header {background: var(--white); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; z-index: 1000; }
header.scrolled {box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);}
header .navbar-brand {font-weight: 700;font-size: 1.5rem;color: var(--primary-color);}
header .logo-container { display: flex; align-items: center; }
header .logo-container img { height: 40px; margin-right: 10px; }
header .nav-link {font-weight: 500;color: var(--text-color);padding: 0 10px;position: relative;}
header .nav-link:before {content: '';position: absolute;bottom: 0;left: 1rem;width: 0;height: 2px;background: var(--primary-color);transition: width 0.3s ease;}
header .nav-link:hover:before {width: calc(100% - 2rem);}
header .phone-link {font-weight: 600;color: var(--primary-color); white-space: nowrap; font-size:18px}
header .mail-link {font-weight: 400;color: var(--primary-color); white-space: nowrap; }
header .btn-signup {background: var(--primary-color);border-color: var(--primary-color);color: white; text-transform: none; font-size:12px}
header .btn-signup:hover {background: var(--primary-dark);border-color: var(--primary-dark);}
header .navbar .extralink{ background:var(--primary-color); color: #fff; border-radius: 5px; padding: 0; margin: 0 0 0 20px }
header .navbar .extralink:hover{ background:var(--secondary-dark); color: #fff; border-radius: 5px;}
header .navbar .extralink:before{ background: none}
@media (max-width: 991.98px) {
  header .navbar-nav .nav-link { font-size: 0.9rem; padding-left: 0.5rem; padding-right: 0.5rem; }
  header .navbar .extralink { background:none; margin:0; color:var(--secondary-dark)}
  header .navbar .extralink:hover{  margin: 0; color: #111; background: none; font-weight: 700 }
    .account { width: 100%}
}
.account a{color:var(--primary-color)}
ol.breadcrumb a{color:var(--primary-color)}
.price {color: var(--primary-color) !important;}

.hero { text-align:center;}
#hero img { border-radius: 10px}

/* ====================== */
/* SERVICES SECTION */
/* ====================== */
.services {position: relative;overflow: hidden;}
.services .card {min-height: 10px; border: none;border-radius: 12px;overflow: hidden;transition: all 0.3s ease;b }
.services .card:hover {transform: translateY(-10px);box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);}
.services .card-body {padding: 10px 4px;}
.services .card-title {font-weight: 600;margin: 0; font-size: 16px; color:var(--primary-color) !important;}
.services .card-title a{font-weight: 600;margin: 0; font-size: 16px; color:var(--primary-color) !important;}
.services .card-title a:hover{ text-decoration: underline }


/* ====================== */
/* PROJECTS SECTION */
/* ====================== */
.projects { display: flex; flex-wrap: wrap; }
.projects .card { flex: 1; min-width: 250px; background: #f8f9fa; border-radius: .5rem; transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.projects .card:hover { transform: translateY(-5px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.05); }
.projects .card h6 { font-size: .95rem; font-weight: 600; color: #6c757d; }
.projects .card p { font-size: .95rem; margin-bottom: .3rem; }
.projects .card a { color: var(--primary-color) !important; }
.projects .card-wrapper { flex: 1; min-width: 250px; display: flex; }
.projects .card img { max-width: 100%; height: auto; display: block; }



/* ====================== */
/* ADVANTAGES SECTION */
/* ====================== */
.stats-counter {background: linear-gradient(to right, #fff, #f9f9f9);}
.stat-item {padding: 1rem;}
.stat-number { }

.advantages .border-top, .advantages .border-bottom { border-color: rgba(0, 0, 0, 0.05) !important;}
.advantages .dotted-underline { border-bottom: 1px dashed var(--primary-light); cursor: help}
.adv-item { transition: box-shadow 0.25s ease-in-out, transform 0.2s ease;}
.adv-item:hover { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);transform: translateY(-3px);}
.adv-item i { width: 2rem; text-align: center;}

/* ====================== */
/* Cases SECTION */
/* ====================== */
.cases .case-card { background: #f8f9fa; border-radius: .5rem; border-left: 4px solid var(--primary-color) !important; transition: transform .25s ease, box-shadow .25s ease; }
.cases .case-card:hover { transform: translateY(-5px); box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.05); }
.cases .case-card h6 { font-size: .95rem; font-weight: 600; color: #6c757d; }
.cases .case-card p { font-size: .95rem; margin-bottom: .3rem; }

/* ====================== */
/* WHY TRUST SECTION */
/* ====================== */
/* Галерея */
.why-trust .gallery-grid {display: grid; gap: 15px;}
.why-trust .gallery-item {position: relative; cursor: pointer; overflow: hidden; transition: all 0.3s ease; border-radius: 12px;}
.why-trust .gallery-item.main-image {box-shadow: 0 15px 40px rgba(0,0,0,0.1);}
.why-trust .gallery-item:hover {transform: scale(1.02);}
.why-trust .gallery-overlay {position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; color: white; font-size: 2rem;}
.why-trust .gallery-item:hover .gallery-overlay {opacity: 1;}
.why-trust .gallery-thumbnails {display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;}
.why-trust .gallery-thumbnails img {height: 100px; width: 100%; object-fit: cover;}

/* Модальное окно */
#galleryModal .modal-content {background: transparent; border: none;}
#galleryModal .carousel-control-prev, #galleryModal .carousel-control-next {width: 8%;}
#galleryModal .carousel-control-prev-icon, #galleryModal .carousel-control-next-icon {width: 2.5rem; height: 2.5rem;}

/* Адаптив */
@media (max-width: 768px) {
  .why-trust .gallery-thumbnails {grid-template-columns: repeat(2,1fr);}
  .why-trust .gallery-thumbnails img {height: 80px;}
}

/* ====================== */
/* TEAM SECTION */
/* ====================== */
.team2 .team-card img { border-top-left-radius: .5rem; border-top-right-radius: .5rem; }
.team2 .team-card { border-radius: .5rem; transition: transform .25s ease; }
.team2 .team-card:hover { transform: translateY(-5px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.06); }


.testimonials .swiper-wrapper { display: flex; }
.testimonials .swiper-slide { display: flex; align-items: stretch; height: auto !important; }
.testimonials .testimonial-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; border-radius: .5rem; transition: .3s ease; position: relative; z-index: 1; }
.testimonials .testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.06); }
.testimonials .bi-chat-quote-fill { z-index: 0; opacity: .06; font-size: 5rem; position: absolute; top: 1rem; left: 1rem; pointer-events: none; }
.testimonials .swiper-pagination { margin-top: 2rem !important; position: static !important; }


.partners img { max-height: 40px; filter: grayscale(1); opacity: .75; transition: .3s ease; }
.partners img:hover { filter: none; opacity: 1; }


/* ====================== */
/* PRICES SECTION */
/* ====================== */
.table-primary {background: var(--primary-color); color: white;}
.table-primary th {border-color: var(--primary-dark); background: var(--table-color)}
.table-hover tbody tr:hover {background: rgba(26, 92, 54, 0.05);}

/* ====================== */
/* REVIEWS SECTION */
/* ====================== */
.reviews-scroller{overflow-x:auto;padding-bottom:15px;-webkit-overflow-scrolling:touch;white-space:nowrap;}
.review-cards{display:inline-flex;gap:15px;padding:10px 5px;}
.review-card{display:inline-block;width:300px;background:#fff;border-radius:12px;padding:20px;box-shadow:0 5px 15px rgba(0,0,0,0.05);vertical-align:top;white-space:normal;}
.review-header{display:flex;justify-content:space-between;margin-bottom:10px;font-size:0.9rem;}
.review-author{font-weight:700;color:var(--primary-color);}
.review-source{color:#6c757d;font-size:0.8rem;}
@media(max-width:768px){.review-card{width:280px;}}

/* ====================== */
/* Partners SECTION */
/* ====================== */
.partners .logo-wrap { height: 80px; display: flex; align-items: center; justify-content: center; }
.partners .logo-wrap img { max-height: 60px; max-width: 100%; object-fit: contain; opacity: .75; transition: .3s ease; filter: grayscale(1); }
.partners .logo-wrap img:hover { opacity: 1; filter: none; }

/* ====================== */
/* CTA1 */
/* ====================== */
.cta1 i {color: var(--icon-color);}

/* ====================== */
/* CONTACTS SECTION */
/* ====================== */

.contacts{background:var(--light-bg);}
.contact-card{background:#fff;border-radius:1rem;box-shadow:0 10px 30px rgba(0,0,0,0.1);}
.contact-item{display:flex;gap:1.5rem;}
.contact-icon{width:50px;height:50px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.25rem;flex-shrink:0;border-radius:50%;}
.contact-icon-primary{background:var(--primary-color);}
.social-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.25rem;transition:all 0.3s ease;}
.social-icon-whatsapp{background:#25D366;}
.social-icon-telegram{background:#0088CC;}
.social-icon:hover{transform:translateY(-3px);box-shadow:0 5px 15px rgba(0,0,0,0.2);}

.btn-contact{background:var(--primary-color);color:#fff;border:none;transition:all 0.3s ease;}
.btn-contact:hover{background:var(--primary-light);transform:translateY(-2px);box-shadow:0 5px 15px rgba(var(--secondary-rgb),0.3);}
@media(max-width:992px){.map-container{min-height:350px;margin-top:2rem;}}

/* ====================== */
/* FOOTER */
/* ====================== */
.footer{background:var(--primary-dark);color:rgba(255,255,255,0.8);padding:2.5rem 0;font-size:0.95rem;}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-bottom:1.5rem;}
.footer-title{color:#fff;font-size:1rem;margin-bottom:1rem;font-weight:600;}
.footer-nav{list-style:none;padding:0;margin:0;}
.footer-nav li{margin-bottom:0.5rem;}
.footer-link{color:rgba(255,255,255,0.8);text-decoration:none;position:relative;transition:all 0.2s ease;}
.footer-link:after{content:'';position:absolute;left:0;bottom:-2px;width:0;height:1px;background:var(--secondary-color);transition:width 0.3s ease;}
.footer-link:hover{color:var(--secondary-color);}
.footer-link:hover:after{width:100%;}
.footer-text{margin:0.3rem 0;line-height:1.4;}
.footer-bottom{border-top:1px solid rgba(255,255,255,0.1);padding-top:1rem;margin-top:1rem;}
.footer-legal{margin-bottom:1rem;}
.footer-disclaimer{font-size:0.8rem;color:rgba(255,255,255,0.5);margin:0;line-height:1.4;}
.footer-copyright{display:flex;justify-content:space-between;align-items:center;}
.copyright{font-size:0.85rem;color:rgba(255,255,255,0.7);}
.dev-link{display:inline-flex;align-items:center;gap:5px;color:rgba(255,255,255,0.7);font-size:0.85rem;text-decoration:none;transition:all 0.2s ease;}
.dev-link:hover{color:var(--secondary-color);}
@media(max-width:768px){.footer{padding:2rem 0;}.footer-grid{gap:1.2rem;}.footer-copyright{flex-direction:column;gap:0.5rem;align-items:flex-start;}}

/* ====================== */
/* Privacy */
/* ====================== */
#privacyModal .modal-body{max-height:60vh;overflow-y:auto;padding-right:10px;}
#privacyModal .modal-body::-webkit-scrollbar{width:6px;}
#privacyModal .modal-body::-webkit-scrollbar-track{background:#f1f1f1;}
#privacyModal .modal-body::-webkit-scrollbar-thumb{background:var(--primary-color);border-radius:3px;}

/* ====================== */
/* Cookies */
/* ====================== */
#cookie_note{ display: none; z-index: 1000; position: fixed; bottom: 15px; left: 50%; max-width: 90%; transform: translateX(-50%); padding: 20px;  background-color: white; border-radius: 4px; box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.4);}
#cookie_note p{ margin: 0; font-size: 0.7rem; text-align: left; color: black;}
.cookie_accept{ width:100%; min-width: 100px; height: 30px; margin: 15px 0 0 0; padding: 0;}
#cookie_note a{color: var(--primary-color)}
@media (min-width: 576px){
 #cookie_note.show{ display: flex;}
}
@media (max-width: 575px){
 #cookie_note.show{ display: block; text-align: left;}
}

/* ====================== */
/* MEDIA QUERIES */
/* ====================== */
@media (max-width: 991.98px) {.hero {  padding: 10px 0 10px;}
.hero h1 {  font-size: 2.2rem;}
.navbar-nav {  padding-top: 1rem;}
.nav-link {  padding: 0.5rem 0;}
.nav-link:before {  display: none;}
}

@media (max-width: 767.98px) {.hero {  text-align: center;  padding: 10px 0 10px;}
.hero h1 {  font-size: 1.8rem;}
.hero-icon-list {  text-align: left;  display: inline-block;}
.form-box {  margin-top: 2rem;}
}


.pagination-area {margin-top: 2rem; display: flex; justify-content: center;}
.pagination-area .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin: 0 3px; border-radius: 8px;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: all 0.25s ease; border-color:var(--primary-color); border-style: solid; border-width: 1px;
}
.pagination-area .page-numbers:hover {
    background-color: #f1f5f9; border-color: #cbd5e1;
}
.pagination-area .page-numbers.current {
    background-color: #3b82f6; color: white; border-color: #3b82f6;
}
.pagination-area .page-numbers.prev,
.pagination-area .page-numbers.next {
    width: auto; padding: 0 12px;
}
.pagination-area .page-numbers.empty {color: #cbd5e1; cursor: default;}
.pagination-area .page-numbers.empty:hover {background: transparent; border-color: #e2e8f0;}

/* Стрелки с Bootstrap Icons */
.pagination-area .page-numbers.prev::before {
    content: "\F284"; /* bi-chevron-left */
    font-family: "bootstrap-icons"; 
    margin-right: 5px;
}
.pagination-area .page-numbers.next::after {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons"; 
    margin-left: 5px;
}
.pagination-area .page-numbers.prev.empty::before {
    content: "\F284"; /* bi-chevron-left */
    font-family: "bootstrap-icons"; 
    margin-right: 5px; 
    color: #cbd5e1;
}
.pagination-area .page-numbers.next.empty::after {
    content: "\F285"; /* bi-chevron-right */
    font-family: "bootstrap-icons"; 
    margin-left: 5px; 
    color: #cbd5e1;
}



/* 4 ровные колонки всегда (1–4 элементы займут первые ячейки), с зазором */
.product-thumbs{
  display: grid !important;                 /* !important — на случай, если где-то остался d-flex */
  grid-template-columns: repeat(4, 1fr);    /* каждая миниатюра ~25% ширины */
  gap: .5rem;
}

.product-thumbs .thumb-item{
  display: block;
  width: 100%;
}

.product-thumbs .thumb-item img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;      /* квадратные превью, аккуратная сетка */
  object-fit: cover;
  display: block;
  border-radius: .25rem;     /* в тон .rounded */
  border: 1px solid rgba(0,0,0,.08);
}



@media (max-width: 576px) {
  .product-thumbs .thumb-item { width: 23%; }
}

/* Тёмный фон модалки без отступов вокруг изображения */
#pgModal .modal-content { background: #000; }
#pgModal .swiper,
#pgModal .swiper-slide { width: 100%; height: 100%; }
#pgModal img { max-height: 80vh; object-fit: contain; }

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: .5rem; /* чуть мягче углы */
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}

.card-image-wrapper:hover .card-image-overlay,
.card-image-wrapper:focus-within .card-image-overlay {
  opacity: 1;
}

.card-image-overlay p {
  font-size: .9rem;
  line-height: 1.4;
  margin: 0;
}
/* Оверлей описания при ховере (из прошлого шага) */
.card-image-wrapper { position: relative; overflow: hidden; border-radius: .5rem; }
.card-image-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.25rem; text-align: center; background: rgba(0,0,0,.6); color: #fff;
  opacity: 0; transition: opacity .25s ease;
}
.card-image-wrapper:hover .card-image-overlay,
.card-image-wrapper:focus-within .card-image-overlay { opacity: 1; }
.card-image-overlay p { font-size: .9rem; line-height: 1.4; margin: 0; }

/* Цены */
.price-wrap { display: flex; gap: .5rem; align-items: baseline; justify-content: center; }
.price-current { font-weight: 800; font-size: 1.125rem; line-height: 1; }
.price-old { color: #98a2b3; text-decoration: line-through; }

/* Бейдж скидки */
.badge-discount {
  position: absolute; top: .5rem; left: .5rem;
  background: #dc3545; /* можно заменить на var(--bs-danger) если используете BS vars */
  color: #fff; font-weight: 700; font-size: .8rem;
  padding: .35rem .5rem; border-radius: .5rem;
  box-shadow: 0 4px 12px rgba(220,53,69,.35);
}


/* ===== ТОЛЬКО для очень узких экранов (до 576px) ===== */
@media (max-width: 575.98px) {
  /* Делаем адаптивную сетку без горизонтальной прокрутки */
  .product-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); /* минимум 84px, остальное — равномерно */
    gap: .5rem;
    margin-top: .5rem;
  }

  /* Каждая превью — квадрат через "intrinsic ratio" (без фикс. width/height) */
  .product-thumbs .thumb-item {
    position: relative;
    display: block;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100%;             /* делает квадрат */
    border-radius: .375rem;
    overflow: hidden;
    flex: 0 0 auto;                   /* на всякий случай, если где-то flex */
  }

  /* Картинка растягивается на весь квадрат */
  .product-thumbs .thumb-item img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    max-width: none !important;
    max-height: none !important;
  }
   .card-image-overlay p {font-size: 9px; line-height: 1.4; margin: 0;}
}

/* Контейнер списка */
.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Элемент результата */
.search-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,.075); /* как у .border-bottom */
}

/* Мини-картинка */
.search-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: .5rem;            /* .rounded-3 vibe */
  overflow: hidden;
  background: #f8f9fa;             /* $gray-100 */
  border: 1px solid rgba(0,0,0,.05);
}
.search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Контент справа */
.search-body {
  min-width: 0;                    /* чтобы текст корректно переносился */
  flex: 1 1 auto;
}

/* Заголовок */
.search-title {
  display: inline-block;
  font-weight: 600;                /* ~ .fw-semibold */
  color: var(--bs-body-color);
  text-decoration: none;
}
.search-title:hover,
.search-title:focus {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Фрагмент текста */
.search-extract {
  margin-top: .25rem;
  color: var(--bs-secondary-color, #6c757d);
  font-size: .9375rem;             /* между body и small */
  line-height: 1.4;
}

/* Подсветка совпадений */
.search-hit {
  background: rgba(var(--bs-warning-rgb, 255,193,7), .35);
  padding: .05rem .2rem;
  border-radius: .25rem;
}

/* Метаданные (цена, релевантность) */
.search-meta {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
}
.search-meta .price {
  font-weight: 700;
  color: var(--bs-success);
}
.search-meta .weight {
  color: var(--bs-tertiary-color, #adb5bd);
  font-size: .875rem;
}

/* Ховеры/акцент всей строки (опционально) */
.search-item:hover {
  background: rgba(var(--bs-primary-rgb, 13,110,253), .03);
}

/* Мобильная адаптация */
@media (max-width: 576px) {
  .search-item {
    gap: .75rem;
  }
  .search-thumb {
    width: 72px;
    height: 72px;
  }
}

a.extralink img {width: 18px; height: 18px}
.alert .alert-link{  text-decoration: underline; color:var(--primary-color) }
.alert .alert-link:hover { color:var(--secondary-color) }
.alert .btn-mini{ display: block; font-weight: bold; text-decoration: underline; color:var(--primary-color) }
.alert .btn-mini:hover { color:var(--secondary-color) }
.cases p.info{ border: 1px solid #e6e6e6; background-color: #efefef; padding: 10px 10px; margin: 5px 0;}
.cases p.info:before { content:'✵'; color:var(--secondary-color); font-size: 18px}