/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

/* Главный экран */
.b-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100svh; /* Поддержка мобильных браузеров */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фоновая картинка */
.b-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top; /* Важно: центрируем по верху, чтобы не обрезалось небо/кухня */
    z-index: 1;
}

/* Затемнение */
.b-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 2;
}

/* Контент */
.b-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
    padding: 0px 24px;
    text-align: center;
}

.hero-zagolovokh1 {
    color: #f1f5f9;
    font-size: 36px;
    font-weight: 400;
    line-height: 62px;
    margin: 0px 0px 20px 0px;
    text-shadow: 0px 2px 12px rgba(0, 0, 0, 0.3), 0px 0px 24px rgba(255, 255, 255, 0.55);
}

.b-hero__subtitle {
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    color: #f1f5f9;
    margin: 0px;
    text-wrap: balance;
    text-shadow: 0px 1px 8px rgba(0, 0, 0, 0.3);
}

/* Планшет */
@media (max-width: 991px) {
    .hero-zagolovokh1 { font-size: 40px; line-height: 50px; }
    .b-hero__subtitle { font-size: 20px; line-height: 28px; }
}

/* Мобильный */
@media (max-width: 767px) {
    .b-hero {
        height: 100svh;
        min-height: 100svh;
    }
    .b-hero__bg {
        width: auto; /* Разрешаем картинке масштабироваться по высоте */
        height: auto;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center top; /* Ключевое: важная часть картинки будет сверху */
    }
    .b-hero__content { padding: 0 16px; }
    .hero-zagolovokh1 { font-size: 30px; line-height: 38px; margin-bottom: 14px; }
    .b-hero__subtitle { font-size: 17px; line-height: 24px; }
}

/* Заголовок h1 */
.zagolovokh1 {
    max-width: 100%;
    font-size: 38px;
    font-weight: 500;
    line-height: 56px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    text-wrap: balance;
    hyphens: auto;
    word-break: break-word;
    text-align: center;
    width: 100%;
}

@media (max-width: 767px) {
    .zagolovokh1 { font-size: 28px; line-height: 34px; margin-bottom: 14px; }
}

/* Заголовок h2 */
.zagolovokh2 {
    max-width: 100%;
    font-size: 28px;
    font-weight: 400;
    line-height: 56px;
    color: var(--e-global-color-text, #1a1a1a);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    text-wrap: balance;
    hyphens: auto;
    word-break: break-word;
    text-align: center;
    width: 100%;
}

@media (max-width: 767px) {
    .zagolovokh2 { font-size: 22px; line-height: 34px; margin-bottom: 14px; }
}

/* Чек лист */
.b-checklist {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.b-checklist__item 
{ display: flex; 
	align-items: flex-start; 
	gap: 14px; 
}
.b-checklist__icon 
{ 
	flex-shrink: 0; 
	font-size: 22px; 
	line-height: 26px; 
	margin-top: 2px; 
}
.b-checklist__content 
{ 
	flex: 1; 
	min-width: 0; 
}
.b-checklist__title { font-size: 18px; font-weight: 500; line-height: 24px; color: #1a1a1a; margin: 0 0 4px 0; }
.b-checklist__desc { font-size: 16px; font-weight: 400; line-height: 22px; color: #555555; margin: 0; }

@media (max-width: 767px) {
    .b-checklist { padding: 20px 16px; gap: 16px; }
    .b-checklist__title { font-size: 16px; line-height: 22px; }
    .b-checklist__desc { font-size: 14px; line-height: 20px; }
    .b-checklist__icon { font-size: 20px; line-height: 24px; }
}

/* Таблицы сравнения */
.b-compare-wrapper {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0px 0px 12px 0px;
}

.b-compare-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0px;
    font-family: inherit;
    font-size: 15px;
    line-height: 22px;
    color: #1a1a1a;
    min-width: 100%;
}

.b-compare-table th { padding: 16px 12px; text-align: center; font-weight: 500; background: #f4f6f8; border-bottom: 2px solid #dde1e6; }
.b-compare-table td { padding: 14px 12px; border-bottom: 1px solid #e5e7eb; text-align: center; transition: background-color 0.2s ease; }
.b-compare-table td:first-child, .b-compare-table th:first-child { text-align: left; padding-left: 16px; }

.b-compare-table th:nth-child(2) { background: #f0fdf4; color: #1a1a1a; border-top: 3px solid #27AE60; border-bottom: 2px solid #27AE60; }
.b-compare-table td:nth-child(2) { background: #f0fdf4; color: #1a1a1a; font-weight: 500; position: relative; z-index: 2; box-shadow: -2px 0px 0px 0px #27AE60, 2px 0px 0px 0px #27AE60; }
.b-compare-table td:nth-child(3) { color: #6b7280; }

.b-compare-table tbody tr:hover td { background-color: #f9fafb; }
.b-compare-table tbody tr:hover td:nth-child(2) { background-color: #e6f7ed; }

@media (max-width: 767px) {
    .b-compare-table { font-size: 13px; line-height: 20px; min-width: 100%; }
    .b-compare-table th, .b-compare-table td { padding: 12px 8px; }
    .b-compare-table td:first-child, .b-compare-table th:first-child { padding-left: 10px; }
}

/* Подсказка для листания таблицы */
.b-scroll-hint {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 0px 12px 0px;
    font-size: 13px;
    line-height: 18px;
    color: #6b7280;
    opacity: 0.85;
}

.b-scroll-hint__icon { display: inline-flex; align-items: center; gap: 3px; animation: b-hint-move 2s ease-in-out infinite; }
.b-scroll-hint__icon span { font-size: 14px; }

@keyframes b-hint-move { 0%, 100% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }

@media (min-width: 768px) { .b-scroll-hint { display: none; } }

/* Карточки чем можно дополнить */
.b-cards-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }

.b-cards-grid { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.b-card {
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.b-card:hover { box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.b-card__icon { font-size: 32px; line-height: 1; color: #27AE60; margin-bottom: 16px; }
.b-card__title { font-size: 20px; font-weight: 500; line-height: 26px; color: #1a1a1a; margin: 0 0 16px 0; }
.b-card__list { list-style: none; padding: 0px; margin: 0 0 20px 0; }
.b-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; color: #374151; margin-bottom: 12px; }
.b-card__list li span { flex-shrink: 0; font-size: 14px; line-height: 22px; }
.b-card__note { font-size: 14px; line-height: 20px; color: #4b5563; background: #f0fdf4; padding: 12px; border-radius: 8px; margin: 0 0 16px 0; }
.b-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; line-height: 20px; color: #27AE60; text-decoration: none; padding: 0px; margin: 0 0 20px 0; transition: gap 0.2s ease, color 0.2s ease; }
.b-card__cta:hover { gap: 10px; color: #1e8a4a; }
.b-card__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.b-card__gallery-thumb { width: 100%; height: 80px; background: #f3f4f6; border-radius: 6px; border: 1px dashed #d1d5db; cursor: pointer; transition: background-color 0.2s ease; }
.b-card__gallery-thumb:hover { background: #e5e7eb; }
.b-cards-footer { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.b-cards__label { font-size: 14px; font-weight: 500; line-height: 20px; color: #6b7280; }
.b-cards-logos { display: flex; align-items: center; gap: 40px; }
.b-logo { font-size: 18px; font-weight: 500; color: #9ca3af; letter-spacing: 0.5px; }

/* Адаптив: мобильный */
@media (max-width: 767px) {
    .b-cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 16px;
    }
    .b-card { flex: 0 0 300px; min-width: 300px; scroll-snap-align: center; padding: 20px 16px; }
    .b-card__title { font-size: 18px; line-height: 24px; }
    .b-card__list li { font-size: 14px; line-height: 20px; margin-bottom: 10px; }
    .b-card__note { font-size: 13px; line-height: 18px; padding: 10px; }
    .b-card__gallery-thumb { height: 60px; }
    .b-cards-logos { gap: 24px; }
}

/* Карточки для материалов */
.b-materials-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-materials-grid { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.b-material-card { width: 100%; box-sizing: border-box; position: relative; padding: 24px; border-radius: 12px; border: 1px solid #e5e7eb; background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); overflow: hidden; }
.b-material-card__icon { position: absolute; top: 16px; right: 16px; font-size: 28px; line-height: 1; opacity: 0.6; pointer-events: none; }
.b-material-card__title { font-size: 20px; font-weight: 500; line-height: 26px; color: #1a1a1a; margin: 0 0 16px 0; padding-right: 40px; }
.b-material-card__list { list-style: none; padding: 0px; margin: 0 0 20px 0; }
.b-material-card__list li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font-size: 15px; line-height: 20px; color: #4b5563; }
.b-material-card__label { font-weight: 500; color: #1a1a1a; }
.b-bold { font-weight: 500; color: #111827; }
.b-material-card__details { width: 100%; box-sizing: border-box; border-top: 1px solid #e5e7eb; padding-top: 14px; }
.b-material-card__summary { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; line-height: 20px; color: #27AE60; cursor: pointer; list-style: none; background: none; border: none; padding: 0px; margin: 0 0 8px 0; }
.b-material-card__summary::-webkit-details-marker { display: none; }
.b-material-card__summary::after { content: '+'; font-size: 18px; line-height: 1; transition: transform 0.2s ease; margin-left: auto; }
.b-material-card__details[open] .b-material-card__summary::after { content: '−'; }
.b-material-card__content { padding: 0px 0px 4px 0px; font-size: 14px; line-height: 20px; color: #4b5563; margin: 0; }

@media (max-width: 767px) {
    .b-materials-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 16px; }
    .b-material-card { flex: 0 0 85%; min-width: 280px; scroll-snap-align: center; padding: 20px 16px; }
    .b-material-card__title { font-size: 18px; line-height: 24px; }
    .b-material-card__list li { font-size: 14px; line-height: 18px; margin-bottom: 10px; }
}

/* Виджет ДО/ПОСЛЕ */
.ba-widget { position: relative; height: 100%; width: 100%; max-width: 100%; margin: 0 auto 32px; overflow: hidden; user-select: none; -webkit-user-select: none; cursor: col-resize; font-size: 0; }
.ba-widget img { display: block; width: 100%; height: auto; vertical-align: top; }
.ba-before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; clip-path: inset(0 50% 0 0); z-index: 2; }
.ba-after { z-index: 1; }
.ba-slider { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: rgba(255,255,255,0.9); box-shadow: 0 0 6px rgba(0,0,0,0.3); z-index: 3; cursor: col-resize; transform: translateX(-50%); }
.ba-slider::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0,0,0,0.25); background-repeat: no-repeat; background-position: center; background-size: 20px; }
.ba-label { position: absolute; top: 12px; padding: 4px 10px; background: rgba(0,0,0,0.6); color: #fff; font-size: 14px; border-radius: 4px; z-index: 4; pointer-events: none; font-family: system-ui, -apple-system, sans-serif; }
.ba-label.before { left: 12px; }
.ba-label.after { right: 12px; }

/* Расчет стоимости кухни */
.b-calc-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-visual-wrapper { width: 100%; box-sizing: border-box; margin-bottom: 24px; }
.b-visual-img { width: 100%; height: auto; display: block; border-radius: 12px; object-fit: cover; }
.b-savings-banner { width: 100%; box-sizing: border-box; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 16px 20px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.b-savings-text { font-size: 16px; line-height: 22px; color: #1a1a1a; }
.b-savings-amount { font-size: 20px; font-weight: 800; color: #27AE60; }
.b-calc-desktop { width: 100%; box-sizing: border-box; border-collapse: collapse; margin-bottom: 24px; }
.b-calc-desktop th { text-align: left; padding: 12px 16px; background: #f9fafb; border-bottom: 2px solid #e5e7eb; font-weight: 700; font-size: 15px; line-height: 20px; color: #374151; }
.b-calc-desktop td { padding: 14px 16px; border-bottom: 1px solid #e5e7eb; font-size: 15px; line-height: 20px; color: #4b5563; vertical-align: top; }
.b-calc-desktop td:last-child { font-weight: 700; color: #1a1a1a; white-space: nowrap; text-align: right; }
.b-calc-desktop tfoot td { border-top: 2px solid #e5e7eb; font-size: 18px; font-weight: 800; color: #27AE60; padding-top: 16px; }
.b-calc-mobile { display: none; width: 100%; box-sizing: border-box; }
.b-calc-item { width: 100%; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; overflow: hidden; background: #ffffff; }
.b-calc-item summary { padding: 14px 16px; font-weight: 700; font-size: 16px; line-height: 22px; color: #1a1a1a; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.b-calc-item summary::-webkit-details-marker { display: none; }
.b-calc-item summary::after { content: '↓'; font-size: 14px; line-height: 1; transition: transform 0.2s; }
.b-calc-item[open] summary::after { transform: rotate(180deg); }
.b-calc-item .b-price { font-weight: 800; color: #1a1a1a; }
.b-calc-detail { padding: 0px 16px 14px 16px; font-size: 14px; line-height: 20px; color: #6b7280; border-top: 1px solid #f3f4f6; }
.b-calc-total { width: 100%; box-sizing: border-box; padding: 16px; background: #f0fdf4; border-radius: 8px; font-size: 18px; font-weight: 800; color: #27AE60; text-align: right; margin-top: 8px; }
.b-exclusions { width: 100%; box-sizing: border-box; margin-top: 24px; padding: 20px; background: #fef2f2; border-radius: 10px; border: 1px solid #fecaca; }
.b-exclusions-title { font-size: 16px; font-weight: 700; color: #991b1b; margin: 0 0 12px 0; }
.b-exclusions ul { list-style: none; padding: 0px; margin: 0px; }
.b-exclusions li { font-size: 14px; line-height: 20px; color: #7f1d1d; margin-bottom: 6px; display: flex; gap: 8px; }
.b-calc-footer { width: 100%; box-sizing: border-box; margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e7eb; font-size: 13px; line-height: 18px; color: #6b7280; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 767px) {
    .b-calc-desktop { display: none; }
    .b-calc-mobile { display: block; }
    .b-savings-banner { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Как происходит замена фасадов 5 шагов */
.b-process-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-process-grid { width: 100%; box-sizing: border-box; display: flex; flex-direction: row; position: relative; }
.b-process-grid::before { content: ''; position: absolute; top: 120px; left: 6%; right: 6%; height: 2px; background: #e5e7eb; z-index: 0; }
.b-process-step { flex: 1 1 0; box-sizing: border-box; padding: 0px 10px; position: relative; z-index: 1; text-align: center; }
.b-process-step__icon { width: 250px; height: 250px; margin: 0px auto 20px; background: #ffffff; border: 2px solid #e5e7eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05); overflow: hidden; }
.b-process-step__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b-process-step__content { flex: 1; }
.b-process-step__title { font-size: 18px; font-weight: 700; line-height: 24px; color: #1a1a1a; margin: 0px 0px 12px 0px; }
.b-process-step__list { list-style: none; padding: 0px; margin: 0px; text-align: left; }
.b-process-step__list li { font-size: 15px; line-height: 22px; color: #4b5563; margin-bottom: 8px; position: relative; padding-left: 18px; }
.b-process-step__list li::before { content: '•'; position: absolute; left: 0px; color: #27AE60; font-weight: 700; }

@media (max-width: 767px) {
    .b-process-grid { flex-direction: column; gap: 0px; }
    .b-process-grid::before { top: 44px; bottom: 44px; left: 44px; width: 2px; height: auto; right: auto; }
    .b-process-step { display: flex; flex-direction: row; gap: 20px; padding: 0px 0px 24px 0px; text-align: left; }
    .b-process-step:last-child { padding-bottom: 0px; }
    .b-process-step__icon { 
		flex-shrink: 0;
		width: 80px; 
		height: 80px;
		margin: 0px; 
	}
    .b-process-step__title { margin-bottom: 8px; }
}

/* Что мы можем предложить, на примере до/после */
.b-cases-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-cases-grid { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.b-case-card { width: 100%; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #ffffff; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.b-case-card:hover { box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08); transform: translateY(-2px); }
.b-case-photos { 
	width: auto; 
	box-sizing: border-box; 
	display: flex; 
	height: auto;
	position: relative; 
	overflow-x: auto; 
	scroll-snap-type: 
		x mandatory; 
	-webkit-overflow-scrolling: touch; 
	gap: 2px; 
}
.b-case-photo { flex: 0 0 50%; width: 50%; height: 100%; object-fit: cover; display: block; scroll-snap-align: center; }
.b-case-photo--before { border-right: 2px solid #ffffff; }
.b-case-info { padding: 20px; }
.b-case-meta { margin: 0px 0px 12px 0px; font-size: 16px; line-height: 22px; color: #111827; font-weight: 600; }
.b-case-work { margin: 0px 0px 16px 0px; font-size: 15px; line-height: 22px; color: #4b5563; }
.b-case-stats { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 20px; color: #374151; flex-wrap: wrap; }
.b-case-stats strong { color: #1a1a1a; font-weight: 700; }
.b-case-economy { color: #27AE60; font-weight: 800; background: #f0fdf4; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.b-case-divider { color: #d1d5db; margin: 0px 4px; }
.b-case-swipe-hint { display: none; text-align: center; font-size: 12px; color: #9ca3af; margin-top: 8px; padding: 4px 0px; }

@media (max-width: 767px) {
    .b-cases-grid { grid-template-columns: 1fr; gap: 20px; }
    .b-case-photos { height: 220px; }
    .b-case-photo { flex: 0 0 100%; width: 100%; border-right: none; }
    .b-case-info { padding: 16px; }
    .b-case-stats { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 20px; }
    .b-case-economy { width: 100%; text-align: center; padding: 6px 0px; margin-top: 4px; background: #dcfce7; }
    .b-case-swipe-hint { display: block; }
}

/* Карточки категорий */
.b-catalog-wrapper 
{ 
	width: 100%; 
	box-sizing: border-box; 
	padding: 40px 0px 0px 0px; 
}
.b-catalog-grid 
{ width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-catalog-card { width: 100%; box-sizing: border-box; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #ffffff; transition: box-shadow 0.3s ease, transform 0.3s ease; text-decoration: none; display: block; }
.b-catalog-card:hover { box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.1); transform: translateY(-4px); }
.b-catalog-card__image-wrapper { width: 100%; box-sizing: border-box; height: 280px; overflow: hidden; position: relative; }
.b-catalog-card__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.b-catalog-card:hover .b-catalog-card__image { transform: scale(1.05); }
.b-catalog-card__content { padding: 20px; text-align: center; }
.b-catalog-card__title { font-size: 20px; font-weight: 700; line-height: 26px; color: #1a1a1a; margin: 0px 0px 16px 0px; }
.b-catalog-card__btn { display: inline-block; padding: 12px 24px; background: #27AE60; color: #ffffff; font-size: 15px; font-weight: 600; line-height: 20px; border-radius: 8px; text-decoration: none; transition: background-color 0.2s ease, transform 0.2s ease; border: none; cursor: pointer; }
.b-catalog-card__btn:hover { background: #1e8a4a; transform: translateY(-2px); }
.b-catalog-card__btn:active { transform: translateY(0px); }

@media (max-width: 991px) { .b-catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
    .b-catalog-grid { grid-template-columns: 1fr; gap: 20px; }
    .b-catalog-card__image-wrapper { height: 240px; }
    .b-catalog-card__title { font-size: 18px; line-height: 24px; }
    .b-catalog-card__btn { padding: 10px 20px; font-size: 14px; line-height: 18px; }
}

/* Каталог фрезеровок */
.b-milling-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-milling-grid { width: 100%; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.b-milling-card { flex-basis: calc(16.666% - 14px); max-width: calc(16.666% - 14px); box-sizing: border-box; cursor: pointer; transition: opacity 0.3s ease; }
.b-milling-card.hidden { display: none; }
.b-milling-card__image-wrapper { width: 100%; box-sizing: border-box; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; border: 2px solid #e5e7eb; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.b-milling-card:hover .b-milling-card__image-wrapper { border-color: #27AE60; box-shadow: 0px 4px 12px rgba(39, 174, 96, 0.2); }
.b-milling-card__image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.b-milling-card:hover .b-milling-card__image { transform: scale(1.05); }
.b-milling-card__title { font-size: 14px; font-weight: 600; line-height: 18px; color: #1a1a1a; margin: 10px 0px 0px 0px; text-align: center; }
.b-milling-buttons { width: 100%; box-sizing: border-box; display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }
.b-btn { padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 20px; cursor: pointer; transition: all 0.2s ease; border: 2px solid transparent; text-align: center; }
.b-btn--show { background: #27AE60; color: #ffffff; border-color: #27AE60; }
.b-btn--show:hover { background: #1e8a4a; border-color: #1e8a4a; }
.b-btn--hide { background: #ffffff; color: #27AE60; border-color: #27AE60; display: none; }
.b-btn--hide:hover { background: #f0fdf4; }
.b-lightbox { display: none; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.92); z-index: 99999; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; }
.b-lightbox.active { display: flex; }
.b-lightbox__img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.b-lightbox__close { position: absolute; top: 20px; right: 30px; font-size: 40px; color: #ffffff; cursor: pointer; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.15); border-radius: 50%; line-height: 1; }

/* Адаптив: мобильный — ЕДИНСТВЕННЫЙ медиа-запрос для .b-milling */
@media (max-width: 767px) {
    .b-milling-card { flex-basis: calc(33.333% - 11px); max-width: calc(33.333% - 11px); }
    .b-milling-card__title { font-size: 12px; }
    .b-lightbox { display: none !important; }
}

/* Возможности производства */
.b-production-wrapper { width: 100%; box-sizing: border-box; padding: 40px 0px 0px 0px; }
.b-production-grid { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.b-production-card { width: 100%; box-sizing: border-box; padding: 24px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; text-align: center; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.b-production-card:hover { box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.08); transform: translateY(-4px); }
.b-production-card__icon { width: 64px; height: 64px; margin: 0px auto 16px; display: flex; align-items: center; justify-content: center; }
.b-production-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.b-production-card__title { font-size: 18px; font-weight: 700; line-height: 24px; color: #1a1a1a; margin: 0px 0px 10px 0px; }
.b-production-card__desc { font-size: 15px; line-height: 22px; color: #4b5563; margin: 0px; }

/* Адаптив: мобильный — ЕДИНСТВЕННЫЙ медиа-запрос для .b-production */
@media (max-width: 767px) {
    .b-production-grid { grid-template-columns: 1fr; gap: 20px; }
    .b-production-card { padding: 20px 16px; }
}

/* Плитка тегов */
.b-cities-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 0px 0px 0px;
}

.b-cities-grid {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Сброс стандартных отступов h3, чтобы не ломать сетку */
.b-city-tag {
    margin: 0px;
    display: inline;
}

.b-city-tag a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.b-city-tag a:hover {
    background: #f0fdf4;
    border-color: #27AE60;
    color: #27AE60;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(39, 174, 96, 0.15);
}

.b-city-tag a:active {
    transform: translateY(0px);
}

.b-city-tag__icon {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 767px) {
    .b-city-tag a {
        padding: 8px 14px;
        font-size: 14px;
        line-height: 18px;
    }
    .b-cities-grid {
        gap: 8px;
    }
}

/* Плитка тегов */

/* Всплывашка для плитки тегов */

/* Контейнер */
.b-cities-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 0px 0px 0px;
}

.b-cities-grid {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Тег-кнопка (открывает попап) */
.b-city-tag--popup {
    margin: 0px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.b-city-tag--popup:hover {
    background: #f0fdf4;
    border-color: #27AE60;
    color: #27AE60;
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px rgba(39, 174, 96, 0.15);
}

.b-city-tag--popup:active {
    transform: translateY(0px);
}

/* Иконка внутри тега */
.b-city-tag__icon {
    font-size: 14px;
    line-height: 1;
}

/* === Попап === */
.b-city-popup {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.b-city-popup.active {
    display: flex;
}

.b-city-popup__content {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.2);
}

.b-city-popup__title {
    font-size: 22px;
    font-weight: 700;
    line-height: 28px;
    color: #1a1a1a;
    margin: 0px 0px 16px 0px;
}

.b-city-popup__text {
    font-size: 16px;
    line-height: 24px;
    color: #4b5563;
    margin: 0px;
}

.b-city-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    transition: background-color 0.2s ease;
}

.b-city-popup__close:hover {
    background: #e5e7eb;
}

/* === Адаптив: мобильный === */
@media (max-width: 767px) {
    .b-city-tag--popup {
        padding: 8px 14px;
        font-size: 14px;
        line-height: 18px;
    }
    .b-cities-grid {
        gap: 8px;
    }
    .b-city-popup__content {
        padding: 24px 20px;
    }
    .b-city-popup__title {
        font-size: 20px;
        line-height: 26px;
    }
    .b-city-popup__text {
        font-size: 15px;
        line-height: 22px;
    }
}
/* Всплывашка для плитки тегов */

/* Единичная картинка */
.b-single-img {
    width: 100%;
    max-width: 600px !important;
    display: block;
    margin: 0 auto;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
/* Единичная картинка */
