/* === Общие стили для новых секций (мастера, отзывы и пр.) ====== */
:root {
	--sm-blue: #0a6cb4;
	--sm-blue-dark: #07568f;
	--sm-accent: #ff6b00;
	--sm-text: #1c2530;
	--sm-muted: #6b7785;
	--sm-bg-soft: #f5f8fb;
	--sm-border: #e3e8ef;
}

.sm-section { padding: 60px 0; }
.sm-section--alt { background: var(--sm-bg-soft); }
.sm-section-title { text-align: center; margin-bottom: 36px; font-weight: 700; }
.sm-section-title small { display: block; color: var(--sm-blue); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

.sm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sm-grid { display: grid; gap: 20px; }
.sm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
	.sm-grid--2, .sm-grid--3, .sm-grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.sm-grid--2, .sm-grid--3, .sm-grid--4 { grid-template-columns: 1fr; }
}

/* Карточки */
.sm-card {
	background: #fff;
	border: 1px solid var(--sm-border);
	border-radius: 12px;
	padding: 22px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sm-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 40, 70, .08); }

/* === 6 ситуаций "Когда нужен мастер" === */
.sm-situations .sm-card { text-align: center; }
.sm-situations .sm-icon-wrap {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: rgba(10, 108, 180, .1);
	color: var(--sm-blue);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 14px;
}
.sm-situations h3 { font-size: 17px; margin: 0 0 8px; }
.sm-situations p { color: var(--sm-muted); font-size: 14px; margin: 0; }

/* === Мастера === */
.sm-masters .sm-master-card { text-align: center; padding: 0; overflow: hidden; }
.sm-masters .sm-master-photo-wrap { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--sm-bg-soft); }
.sm-masters .sm-master-photo-wrap img.sm-avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .35s ease; }
.sm-masters .sm-master-card:hover img.sm-avatar { transform: scale(1.05); }
.sm-master-badge { position: absolute; bottom: 12px; left: 12px; background: rgba(10,108,180,.94); color: #fff; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.sm-masters .sm-master-name { font-weight: 700; font-size: 17px; margin: 14px 12px 0; }
.sm-masters .sm-master-exp  { color: var(--sm-blue); font-size: 13px; font-weight: 600; margin: 4px 12px; }
.sm-masters .sm-master-spec { color: var(--sm-muted); font-size: 14px; margin: 0 12px 18px; line-height: 1.4; }

/* === Оборудование === */
.sm-equipment .sm-tool-card { text-align: center; padding: 0; overflow: hidden; }
.sm-equipment .sm-tool-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sm-bg-soft); }
.sm-equipment .sm-tool-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.sm-equipment .sm-tool-card:hover .sm-tool-photo img { transform: scale(1.07); }
.sm-equipment .sm-eq-title { font-size: 14px; font-weight: 600; margin: 14px 8px 16px; color: var(--sm-text); }

/* === Отзывы === */
.sm-reviews-summary { display: flex; gap: 30px; align-items: center; justify-content: center; flex-wrap: wrap; margin: -10px auto 30px; max-width: 800px; background: #fff; padding: 24px 28px; border-radius: 16px; border: 1px solid var(--sm-border); box-shadow: 0 4px 14px rgba(20,40,70,.04); }
.sm-rating-big { display: flex; align-items: center; gap: 14px; }
.sm-rating-num { font-size: 48px; font-weight: 800; color: var(--sm-text); line-height: 1; }
.sm-rating-stars { color: #f5a623; letter-spacing: 4px; font-size: 22px; }
.sm-rating-cnt { color: var(--sm-muted); font-size: 13px; margin-top: 4px; }
.sm-rating-sources { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--sm-muted); }
.sm-source-chip { display: inline-block; background: var(--sm-bg-soft); padding: 6px 12px; border-radius: 100px; text-decoration: none; color: var(--sm-text); font-weight: 600; font-size: 12px; }
.sm-source-chip:hover { background: var(--sm-blue); color: #fff; }

.sm-reviews .sm-review-card { padding: 24px; position: relative; }
.sm-review-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sm-review-head .sm-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; }
.sm-review-name { font-weight: 700; margin: 0; font-size: 15px; }
.sm-review-meta { color: var(--sm-muted); font-size: 12px; margin: 2px 0 0; }
.sm-review-quote { margin-left: auto; color: rgba(10,108,180,.18); flex: 0 0 32px; }
.sm-review-stars { color: #f5a623; letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.sm-review-tag {
	display: inline-block;
	background: rgba(10, 108, 180, .08);
	color: var(--sm-blue);
	padding: 3px 10px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 10px;
}
.sm-review-text { color: var(--sm-text); font-size: 14px; line-height: 1.55; margin: 0; }

/* === Видеоотзывы === */
.sm-videos .sm-video-card {
	position: relative;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sm-videos .sm-video-card:hover { transform: scale(1.02); box-shadow: 0 12px 28px rgba(20,40,70,.18); }
.sm-video-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 45%, transparent 60%);
}
.sm-video-play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 72px; height: 72px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	display: flex; align-items: center; justify-content: center;
	color: var(--sm-blue);
	box-shadow: 0 8px 22px rgba(0,0,0,.3);
	transition: transform .2s ease, background .2s ease;
}
.sm-video-card:hover .sm-video-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.sm-video-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 16px 18px;
	color: #fff;
	z-index: 1;
}
.sm-video-caption strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.sm-video-caption span { display: block; font-size: 12px; opacity: .85; }

/* === Сертификаты === */
.sm-certs .sm-cert-card {
	background: #fff;
	border: 1px solid var(--sm-border);
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.sm-certs .sm-cert-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 40, 70, .14); }
.sm-cert-photo {
	position: relative;
	aspect-ratio: 1 / 1.3;
	background: var(--sm-bg-soft);
	overflow: hidden;
}
.sm-cert-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; display: block; }
.sm-cert-card:hover .sm-cert-photo img { transform: scale(1.05); }
.sm-cert-zoom {
	position: absolute;
	top: 10px; right: 10px;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	display: flex; align-items: center; justify-content: center;
	color: var(--sm-blue);
	opacity: 0;
	transition: opacity .2s ease;
}
.sm-cert-card:hover .sm-cert-zoom { opacity: 1; }
.sm-cert-name { font-size: 14px; font-weight: 700; margin: 14px 16px 4px; color: var(--sm-text); }
.sm-cert-num  { font-size: 12px; color: var(--sm-muted); margin: 0 16px 16px; }

/* === Зоны обслуживания === */
.sm-zones { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 768px) { .sm-zones { grid-template-columns: 1fr; } }
.sm-zones-map {
	border-radius: 12px;
	border: 1px solid var(--sm-border);
	overflow: hidden;
	min-height: 420px;
	position: relative;
	background: var(--sm-bg-soft);
}
.sm-yandex-map, .sm-yandex-iframe { width: 100%; height: 420px; display: block; border: 0; }
@media (max-width: 768px) { .sm-yandex-map, .sm-yandex-iframe { height: 360px; } }
/* Старая статичная карта-фон (на случай если кто-то откатит — оставляем стили) */
.sm-zones-photo-wrap { position: relative; aspect-ratio: 400 / 320; background: var(--sm-bg-soft); }
.sm-zones-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.85); }
.sm-zones-overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sm-zones-list { list-style: none; padding: 0; margin: 0; }
.sm-zones-list li {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--sm-border);
	font-size: 15px;
}
.sm-zones-list li:last-child { border-bottom: none; }
.sm-zone-dot {
	flex: 0 0 14px;
	width: 14px; height: 14px;
	border-radius: 50%;
	margin-top: 5px;
}
.sm-zone-name { font-weight: 700; }
.sm-zone-time { color: var(--sm-muted); font-size: 13px; }

/* === FAQ === */
.sm-faq { max-width: 800px; margin: 0 auto; }
.sm-faq-item {
	border: 1px solid var(--sm-border);
	border-radius: 8px;
	margin-bottom: 10px;
	background: #fff;
	overflow: hidden;
}
.sm-faq-q {
	width: 100%;
	background: none;
	border: none;
	padding: 16px 50px 16px 20px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sm-text);
	text-align: left;
	cursor: pointer;
	position: relative;
}
.sm-faq-q::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: var(--sm-blue);
	transition: transform .2s ease;
}
.sm-faq-item.is-open .sm-faq-q::after { transform: translateY(-50%) rotate(45deg); }
.sm-faq-a {
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height .3s ease, padding .3s ease;
	color: var(--sm-muted);
	font-size: 15px;
	line-height: 1.6;
}
.sm-faq-item.is-open .sm-faq-a { padding: 0 20px 18px; max-height: 500px; }

/* === Прайс-аккордеон === */
.sm-price-accordion { max-width: 900px; margin: 0 auto; }
.sm-price-section {
	border: 1px solid var(--sm-border);
	border-radius: 8px;
	margin-bottom: 10px;
	background: #fff;
	overflow: hidden;
}
.sm-price-header {
	width: 100%;
	background: var(--sm-bg-soft);
	border: none;
	padding: 14px 50px 14px 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--sm-text);
	text-align: left;
	cursor: pointer;
	position: relative;
}
.sm-price-header::after {
	content: "▼";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sm-blue);
	font-size: 10px;
	transition: transform .2s ease;
}
.sm-price-section.is-open .sm-price-header::after { transform: translateY(-50%) rotate(180deg); }
.sm-price-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
}
.sm-price-section.is-open .sm-price-body { max-height: 2400px; }
.sm-price-table { width: 100%; border-collapse: collapse; }
.sm-price-table th, .sm-price-table td {
	padding: 10px 20px;
	text-align: left;
	border-bottom: 1px solid var(--sm-border);
	font-size: 14px;
}
.sm-price-table th { background: #fafbfc; font-weight: 600; }
.sm-price-table td:last-child { text-align: right; font-weight: 700; color: var(--sm-text); white-space: nowrap; }

/* === CTA-блок === */
.sm-cta-block {
	background: linear-gradient(135deg, var(--sm-blue), var(--sm-blue-dark));
	color: #fff;
	padding: 50px 30px;
	border-radius: 16px;
	text-align: center;
}
.sm-cta-block h2 { color: #fff; margin: 0 0 12px; }
.sm-cta-block p { opacity: .92; margin: 0 0 24px; font-size: 17px; }
.sm-cta-form { display: flex; gap: 10px; max-width: 600px; margin: 0 auto; flex-wrap: wrap; }
.sm-cta-form input {
	flex: 1 1 200px;
	padding: 14px 16px;
	border-radius: 8px;
	border: none;
	font-size: 16px;
	min-height: 50px;
}
.sm-cta-form button {
	background: var(--sm-accent);
	color: #fff;
	border: none;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	min-height: 50px;
}
.sm-cta-form button:hover { background: #e25e00; }

/* === Маркер плейсхолдеров (для удобства поиска при замене на прод) === */
.is-placeholder { outline: 1px dashed transparent; }
.is-placeholder[data-show-marker="1"] { outline-color: rgba(255, 107, 0, .5); }

/* === Видео-модалка === */
.sm-video-modal { position: fixed; inset: 0; background: rgba(10,18,28,.9); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; }
.sm-video-modal.is-open { display: flex; }
.sm-video-modal-inner { position: relative; width: 100%; max-width: 900px; }
.sm-video-modal video { width: 100%; max-height: 80vh; border-radius: 12px; background: #000; display: block; }
.sm-video-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; border-radius: 50%; cursor: pointer; }
.sm-video-close:hover { background: rgba(255,255,255,.3); }

/* SVG-заглушка сертификата заполняет карточку */
.sm-cert-photo .sm-cert-doc-svg { width: 100%; height: 100%; object-fit: contain; display: block; padding: 18px; background: #fff; }

/* =================================================================
   СТРАНИЦЫ УСЛУГ (мини-лендинги)
   ================================================================= */
.sm-svc-hero { background-size: cover; background-position: center; color: #fff; padding: 70px 20px; border-radius: var(--sm-radius-lg); margin-bottom: 10px; }
.sm-svc-hero-inner { max-width: 760px; }
.sm-svc-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sm-accent); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 100px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.sm-svc-hero h1 { color: #fff; font-size: 40px; line-height: 1.12; margin: 0 0 16px; font-weight: 800; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.sm-svc-hero h1 span { color: var(--sm-gold); }
@media (max-width: 600px) { .sm-svc-hero h1 { font-size: 27px; } .sm-svc-hero { padding: 48px 18px; } }
.sm-svc-lead { font-size: 18px; line-height: 1.5; opacity: .95; margin: 0 0 26px; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.sm-svc-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sm-svc-meta-item { background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); border-radius: var(--sm-radius); padding: 12px 18px; }
.sm-svc-meta-item b { display: block; font-size: 20px; font-weight: 800; color: var(--sm-gold); font-family: var(--sm-font-head); }
.sm-svc-meta-item span { font-size: 12px; opacity: .85; }
.sm-svc-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sm-svc-phone { display: inline-flex; align-items: center; background: var(--sm-accent); color: #fff; padding: 15px 28px; border-radius: var(--sm-radius); font-weight: 800; font-size: 21px; text-decoration: none; box-shadow: 0 12px 28px rgba(255,107,0,.45); }
.sm-svc-phone:hover { color: #fff; transform: translateY(-2px); }
.sm-svc-callback { display: inline-block; background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4); color: #fff; padding: 13px 24px; border-radius: var(--sm-radius); font-weight: 700; text-decoration: none; }
.sm-svc-callback:hover { background: rgba(255,255,255,.25); color: #fff; }

.sm-svc-includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; max-width: 900px; margin: 0 auto; }
@media (max-width: 600px) { .sm-svc-includes { grid-template-columns: 1fr; } }
.sm-svc-inc-item { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.sm-svc-inc-item svg { color: #1aa260; flex: 0 0 22px; margin-top: 2px; }

.sm-svc-step { text-align: center; position: relative; }
.sm-svc-step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--sm-blue); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-family: var(--sm-font-head); }
.sm-svc-step h3 { font-size: 17px; margin: 0 0 8px; }
.sm-svc-step p { color: var(--sm-muted); font-size: 14px; margin: 0; }

.sm-svc-gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--sm-radius); background: var(--sm-bg-soft); cursor: zoom-in; }
.sm-svc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sm-svc-gallery-item:hover img { transform: scale(1.07); }
