/*
 * Адаптивная вёрстка шаблона gold-silver-2016 (вместо отдельного мобильного шаблона mobile-2019).
 * Подключается в header.php после $APPLICATION->ShowHead(), поэтому перекрывает template_styles.css и стили компонентов.
 *  > 1019px  - прежний десктоп (ничего не меняется, мобильная панель скрыта)
 *  <= 1019px - одна колонка; верхнее меню и левое меню каталога открываются кнопками «Меню» / «Каталог»
 *  <= 600px  - телефонные упрощения
 * Скрипт кнопок и прокрутки широких таблиц: js/responsive.js
 */

.rwd_bar { display: none; }

/* Заголовочный блок главной («Первая честная скупка…») */
.home_hero { margin: 20px 0; padding: 22px 24px; border-left: 5px solid #d87252; border-radius: 0 8px 8px 0; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.home_hero h1 { margin: 0 0 10px; padding: 0; font-size: 17px; line-height: 1.3; font-weight: 700; text-transform: uppercase; color: #7d7163; }
.home_hero .home_hero_lead { margin: 0; font-size: 28px; line-height: 1.25; color: #333; }
.home_hero .home_hero_lead b { color: #d87252; }
@media screen and (max-width: 600px) {
	.home_hero { margin: 14px 0; padding: 14px 16px; }
	.home_hero h1 { margin-bottom: 8px; font-size: 13px; letter-spacing: .02em; }
	.home_hero .home_hero_lead { font-size: 21px; }
}

@media screen and (max-width: 1019px) {

	/* ---------- каркас ---------- */
	html, .wrapper, header, footer { min-width: 0 !important; }
	body { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	.width_wrapper, .header_container, .content_contaner, .footer_container,
	.bottom_menu_block, .help_block, .help_content {
		width: auto !important; max-width: 100%;
	}
	.content_contaner { margin: 12px 12px 0; }
	.container { padding-bottom: 0; }
	.center_contaner, .directory_center_contaner {
		float: none !important; width: auto !important; margin: 0 0 30px !important;
	}
	.homepage .center_contaner { margin-bottom: 0 !important; }
	img, video, iframe, embed, object { max-width: 100%; }
	.center_contaner img, .directory_center_contaner img, .content_contaner img { height: auto; }
	.rwd_scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

	/* строка «Род деятельности» (стили у неё инлайновые) */
	.content_contaner > .rwd_note {
		padding: 12px 14px !important; margin-bottom: 14px !important; font-size: 15px !important; line-height: 1.35;
	}

	/* поля форм не шире экрана; 16px - чтобы iOS не увеличивал страницу при вводе */
	.content_contaner input[type="text"], .content_contaner input[type="email"], .content_contaner input[type="tel"],
	.content_contaner input[type="password"], .content_contaner input[type="search"], .content_contaner textarea, .content_contaner select {
		max-width: 100%; box-sizing: border-box;
	}
	.content_contaner input[type="text"], .content_contaner input[type="email"],
	.content_contaner input[type="tel"], .content_contaner textarea { font-size: 16px; }

	/* ---------- шапка ---------- */
	header { height: auto; }
	.header_container {
		display: flex; align-items: center; justify-content: space-between;
		padding: 6px 12px; box-sizing: border-box; min-height: 70px;
	}
	a.logo {
		flex: 0 0 auto; top: 0; width: 120px; height: 80px;
		background-size: 164px auto; background-position: -22px center;
	}
	.top_contact_l { position: static; width: auto; flex: 1 1 auto; text-align: center; padding: 0 10px; }
	.top_contact_l img { max-width: 100%; height: auto; }
	.top_contact_r { position: static; right: auto; top: auto; flex: 0 0 auto; text-align: right; }
	.top_contact_r > div { float: none !important; }
	.top_contact_r .contact_icon, #fav_link, .contact_bookmark, .user_autorized_expand_container { display: none !important; }
	.phone_container { margin: 0 !important; }
	.phone {
		display: flex; flex-direction: column; align-items: flex-end; overflow: visible;
		font-size: 17px; line-height: 26px; white-space: nowrap;
	}
	.phone > br { display: none; }
	.phone .icon_whatsapp { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
	.phone .icon_whatsapp a { float: none; margin: 0; }
	.user_autorized { position: static; display: inline-block; margin-top: 4px; }

	/* ---------- мобильная панель: Меню / Каталог / Позвонить ---------- */
	.rwd_bar {
		display: flex; position: -webkit-sticky; position: sticky; top: 0; z-index: 1000;
		background: #d87252; box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
	}
	.rwd_btn {
		flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 10px;
		min-height: 50px; margin: 0; padding: 0 10px; border: 0; border-right: 1px solid rgba(255, 255, 255, .35);
		background: transparent; font: inherit; font-size: 16px; text-transform: uppercase;
		cursor: pointer; -webkit-tap-highlight-color: transparent;
	}
	.rwd_bar .rwd_btn, .rwd_bar a.rwd_btn:link, .rwd_bar a.rwd_btn:visited, .rwd_bar a.rwd_btn:hover { color: #fff; text-decoration: none; }
	.rwd_btn:last-child { border-right: 0; }
	.rwd_bar .rwd_btn[aria-expanded="true"] { background: #fff; color: #333; }
	.rwd_btn.rwd_call { flex: 0 0 64px; padding: 0; }
	.rwd_btn svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
	.rwd_burger, .rwd_burger:before, .rwd_burger:after {
		display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
	}
	.rwd_burger:before, .rwd_burger:after { content: ""; position: absolute; left: 0; }
	.rwd_burger:before { top: -7px; }
	.rwd_burger:after { top: 7px; }
	.rwd_btn[aria-expanded="true"] .rwd_burger { background: transparent; }
	.rwd_btn[aria-expanded="true"] .rwd_burger:before { top: 0; transform: rotate(45deg); }
	.rwd_btn[aria-expanded="true"] .rwd_burger:after { top: 0; transform: rotate(-45deg); }

	/* выпадающие панели: верхнее меню и левая колонка (открываются под мобильной панелью) */
	#topmenu, .left_contaner { display: none; }
	.rwd-menu-open #topmenu, .rwd-cat-open .left_contaner {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--rwd-bar-bottom, 50px);
		z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
		width: auto !important; height: auto !important; margin: 0 !important; padding: 0 0 30px; float: none !important;
	}

	/* верхнее меню списком, подпункты раскрыты */
	#topmenu { background: #fff; }
	#topmenu .width_wrapper, #topmenu .top_menu { width: auto !important; }
	#topmenu li { float: none; height: auto; }
	#topmenu a {
		height: auto; line-height: 1.3; padding: 14px 18px; color: #333; font-size: 16px;
		border-bottom: 1px solid #e6e1d9; background: none;
	}
	#topmenu a.selected, #topmenu a:hover { background: #f3eee7; color: #d87252; }
	#topmenu ul li ul, #topmenu ul li:hover ul { display: block; position: static; min-width: 0; border: 0; }
	#topmenu .submenu li { padding: 0; }
	#topmenu .submenu a, #topmenu .submenu li:hover a {
		padding: 11px 18px 11px 36px; font-size: 15px; background: #faf8f5; color: #555; border-top: 0; border-bottom: 1px solid #eee;
	}

	/* левая колонка в панели «Каталог»: меню и баннеры, без формы предложений и «бандита» */
	.rwd-cat-open .left_contaner { padding: 10px 12px 30px; box-sizing: border-box; }
	.left_contaner .left_menu { width: auto !important; }
	.left_contaner .bandito_body, .left_contaner form, .left_contaner > div { display: none; }
	.left_contaner > a { display: inline-block; margin: 10px 10px 0 0; vertical-align: top; }
	.left_contaner > a img { margin: 0 !important; max-width: 160px; height: auto; }

	/* ---------- общие блоки ---------- */
	#search { margin-bottom: 12px; }
	#search #title-searchs-input { width: 80%; font-size: 16px; }
	#breadcrumb { line-height: 1.4; padding: 8px 12px; margin: 0 0 14px; }
	.tab_form_container, .work_time_block, .tabs { width: auto !important; max-width: 100%; }
	/* нижние баннеры «Условия доставки» / «Контакты» собраны из наложенных картинок и на телефоне разваливаются в тонкие полоски */
	.banners_bottom_contaner,
	.banners_contaner:has(img[src*="delivery_panel"]), .banners_contaner:has(img[src*="delivery_gif"]), .banners_contaner:has(img[src*="contact_panel"]) { display: none !important; }
	.related_product_gallery { width: auto !important; }

	/* «Преимущества» - по два в ряд */
	.banners_contaner { display: flex; flex-wrap: wrap; justify-content: center; width: auto !important; max-width: 100%; }
	.banners_contaner:before, .banners_contaner:after { display: none !important; }
	.banners_contaner .banner { float: none; flex: 0 0 50%; margin: 0 0 6px; text-align: center; }
	.banners_contaner .banner > a { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
	.banners_contaner .banner img { display: block; max-width: 100%; margin: 0 auto; }

	/* слайдер на главной */
	#flexslider, #flexslider .slides, #flexslider .slides li { height: auto !important; }
	#flexslider .slides img { width: 100% !important; height: auto !important; }
	#flexslider p.text {
		top: auto !important; bottom: 0; height: auto !important; box-sizing: border-box;
		font-size: 18px; line-height: 1.25; padding: 8px 10px 30px !important;
	}
	.flex-direction-nav a { transform: scale(.7); }

	/* вкладки «Книга жалоб / Оценить менеджера» */
	.tab_form_container { margin-top: 20px; display: flex; flex-wrap: wrap; }
	.tab_form_container > .title_tab, .tab_form_container > .title_tab.active {
		position: relative; top: 0; margin: 0 4px -1px 0 !important; height: auto; padding: 10px 12px 10px 42px;
		font-size: 13px; line-height: 18px; flex: 1 1 auto; box-sizing: border-box;
	}
	.tab_form_container > .title_tab img { top: 7px; }
	.tab_form_container > .tab_form { flex: 0 0 100%; box-sizing: border-box; padding: 12px; }
	.tab_form input, .comment_wrapper input[type="text"] { margin: 8px 0; width: 100% !important; }
	.tab_submit input, .tab_submit a.button { float: none; width: 100%; margin-top: 8px; }

	/* ---------- страницы доставки: «Отправить почтой» и подобные ---------- */
	.info_text_block { overflow-x: hidden; }
	.info_text_block iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; margin: 14px 0; border-radius: 8px; }
	.rwd_fit { overflow: hidden; width: 100%; max-width: 100%; margin: 10px 0; }
	/* анимация «Карта отправки»: её картинки на сервере не загружаются (пустая область) - на телефоне не показываем */
	#Stage_air, .rwd_fit:has(> #Stage_air) { display: none !important; }
	.info_text_block h2.icon { text-align: left !important; }
	.info_text_block h4 { margin: 14px 0; line-height: 1.4; }
	.info_text_block hr { display: none; }

	.delivery_banner { min-height: 0; padding: 0; display: block; overflow: hidden; border-radius: 8px; }
	.delivery_banner img { position: static; display: block; width: 100%; height: 140px; object-fit: cover; }
	.delivery_banner .banner_decription {
		position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: auto; display: block;
		padding: 10px 14px; font-size: 18px; line-height: 1.25; background: rgba(0, 0, 0, .55);
	}

	/* пошаговые правила */
	.info_text_block ol { list-style: none; counter-reset: step; margin: 14px 0; padding: 0; }
	.info_text_block ol > li {
		counter-increment: step; position: relative; margin: 0 0 12px; padding: 14px 14px 14px 56px !important;
		background: #fff; border: 0 !important; border-radius: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	}
	.info_text_block ol > li:before {
		content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
		background: #d87252; color: #fff; font-weight: bold; line-height: 30px; text-align: center;
	}
	.info_text_block ol > li h3 { margin: 6px 0; font-size: 14px; line-height: 1.35; }
	.info_text_block ol > li p { padding-bottom: 6px; }

	/* «Наши преимущества» - плитки по две в ряд */
	.advantages_block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
	.advantages_block:after { display: none; }
	.advantages_item {
		float: none; width: auto; height: auto; padding: 14px 10px 12px; background: #fff; border-radius: 10px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 13px; line-height: 1.4;
	}
	.advantage_img { display: block; width: auto; height: 70px; margin: 0 auto 6px; }
	.advantage_img img { max-height: 70px; width: auto; }
	.advantage_description { padding-top: 6px; }
	.advantages_item:last-child:nth-child(odd) { grid-column: 1 / -1; }

	/* упаковка и бланк описи */
	.packing_block { margin: 16px 0; }
	.packing_head { padding: 0 14px 0 50px; font-size: 15px; line-height: 1.3; min-height: 45px; display: flex; align-items: center; }
	.packing_body { margin: 0; padding: 12px; }
	.packing_description { font-size: 14px; }
	.packing_image img { width: 100%; height: auto; }
	.blank, .blank.packing_image { float: none; width: auto; padding: 12px 0 0; }
	.packing_image a { display: block; }
	.blank img { margin-right: 0; }
	.blank .word { margin-right: 10px; }
	.blank p { margin: 0 0 12px; }
	.blank a:link, .blank a:visited { line-height: 1.3; font-size: 14px; }
	.blank .word { height: 40px; margin-right: 10px; }
	.blank p:after { content: ""; display: block; clear: both; }

	/* вопросы и ответы */
	.faq_block h2 { margin-bottom: 12px; }
	.faq_item { padding: 0; margin: 0 0 16px; }
	.faq_item .question, .faq_item .answer { padding: 12px 14px; font-size: 14px; line-height: 1.45; border-radius: 10px; border-bottom-width: 0; margin: 0 0 6px; }
	.faq_item .question { background: #fff; font-weight: bold; color: #333; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); margin-right: 24px; }
	.faq_item .answer { background: #d87252; margin-left: 24px; }
	.faq_item .question:after, .faq_item .answer:after { display: none; }

	/* «Оплата»: способы перевода карточками-плитками */
	.delivery_pay_block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 0 0 !important; margin: 0 0 24px; }
	.delivery_pay_block:after { display: none; }
	.delivery_pay_block .delivery_pay_item {
		float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0;
		background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); overflow: hidden; box-sizing: border-box; text-align: center;
	}
	.delivery_pay_block .delivery_pay_item > a { display: block; color: inherit; text-decoration: none; }
	.delivery_pay_block .delivery_pay_item_image {
		display: flex; align-items: center; justify-content: center; width: auto !important; height: 84px !important;
		margin: 0 !important; padding: 10px; background: #fff; border: 0 !important; box-sizing: border-box;
	}
	.delivery_pay_block .delivery_pay_item_image img { display: block; width: auto !important; height: auto !important; max-width: 100%; max-height: 64px; object-fit: contain; }
	.delivery_pay_block .delivery_pay_item_name {
		width: auto !important; height: auto !important; margin: 0 !important; padding: 9px 8px 11px; border-top: 1px solid #eee;
		font-size: 14px; font-weight: bold; line-height: 1.25; color: #333; background: #faf8f5;
	}
	.delivery_pay_block .delivery_pay_item_name_info { display: none !important; }

	/* «Полезная информация»: статьи карточками с отступами */
	.help_contaner { padding: 0 12px; box-sizing: border-box; }
	.help_block .h3 { margin: 22px 0 14px; font-size: 20px; line-height: 1.25; text-transform: uppercase; }
	.help_content { display: block; }
	.help_content .help_item {
		float: none !important; width: auto !important; margin: 0 0 16px !important; padding: 0 0 16px;
		background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); overflow: hidden;
		font-size: 14px; line-height: 1.45; color: #444; box-sizing: border-box;
	}
	.help_content .help_item > a:first-child { display: block; }
	.help_content .articles-preview-picture { height: auto !important; margin: 0 0 12px; text-align: center; background: #f3eee7; }
	.help_content .articles-preview-picture img { width: 100%; height: auto; max-height: 200px; object-fit: cover; display: block; }
	.help_content .help_item .h3 { margin: 0 14px 8px; padding: 0; font-size: 16px; line-height: 1.3; text-transform: none; color: #222; }
	.help_content .help_item > a:last-child { font-weight: bold; }
	.help_content .help_item { padding-left: 14px; padding-right: 14px; }
	.help_content .help_item > a:first-child, .help_content .help_item .h3 { margin-left: -14px; margin-right: -14px; }
	.help_content .help_item .h3 { padding: 0 14px; }

	/* фото-отзывы на главной - лента с прокруткой пальцем */
	.main_client_gallery { width: auto !important; height: auto !important; padding: 0 12px; }
	.main_client_gallery .button_left, .main_client_gallery .button_right { display: none !important; }
	.main_client_block {
		width: auto !important; height: auto !important; margin: 0 !important;
		overflow-x: auto !important; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
	}
	.main_client_container {
		position: static !important; left: auto !important; transform: none !important;
		display: flex; width: max-content !important; padding-bottom: 8px;
	}
	.main_client_gallery .client_item { width: 160px; height: 160px; margin-right: 12px; flex: 0 0 auto; scroll-snap-align: start; }
	.main_client_gallery .item_text { display: block; width: 100%; min-height: 0; padding: 30px 10px 10px; font-size: 12px; }

	/* ---------- каталог ---------- */
	.catalog_block, .section_galary { width: auto !important; margin-left: 0 !important; }
	.category_sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: auto !important; }
	.category_sort .sort_element { float: none !important; margin: 0 !important; }
	.category_sort .actual_date {
		position: static !important; width: 100% !important; order: -1; margin: 0 0 6px !important; box-sizing: border-box;
	}
	.catalog_block.section_gallary { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
	.catalog_block.section_gallary:after { display: none; }
	.catalog_block.section_gallary > .catalog_item {
		float: none; width: auto !important; height: auto !important; margin: 0 !important; box-sizing: border-box;
	}
	.catalog_item .img { width: 100% !important; }
	.catalog_item .text { width: auto !important; }
	.catalog_item .price { white-space: nowrap; }

	/* ---------- «Условия работы» ---------- */
	.delivery_group_block { margin-bottom: 0; }
	.delivery_group_block:after { margin-bottom: 0; }
	.delivery_group_block .delivery_item {
		width: auto !important; height: auto !important; float: none !important; margin: 0 0 12px !important; padding: 0;
		background: #fff; border: 0; border-left: 4px solid #d87252; border-radius: 0 8px 8px 0;
		box-shadow: 0 1px 4px rgba(0, 0, 0, .12); overflow: hidden;
	}
	.delivery_group_block .delivery_item:hover { background: #fff; border-color: #b64e2d; }
	.delivery_group_block .delivery_item a { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; color: #333; }
	.delivery_group_block .delivery_image_block { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 6px; overflow: hidden; background: #f3eee7; }
	.delivery_group_block .delivery_image_block img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.delivery_group_block .delivery_item_text { flex: 1 1 auto; height: auto; min-width: 0; overflow: visible; }
	.delivery_group_block .delivery_item_title { margin: 0 0 4px; text-align: left; font-size: 14px; line-height: 1.3; color: #222; }
	.delivery_group_block .delivery_item_description { padding: 0; font-size: 13px; line-height: 1.4; color: #666; }
	.delivery_group_block .delivery_item_description:empty { display: none; }
	.delivery_group_block .delivery_item_text:after { content: "Подробнее ›"; display: block; margin-top: 6px; font-size: 13px; font-weight: bold; color: #d87252; }
	.delivery_group_block.delivery_condition .delivery_item a { align-items: flex-start; }
	/* декоративный баннер «Условия доставки» из наложенных картинок - на телефоне налезает на текст */
	.center_contaner > a > .banner[style*="margin-bottom: 40px"] { display: none; }

	/* ---------- контакты ---------- */
	.semaphore, .train_block { display: none !important; }
	.contacts_columns.clear, .contacts_address, .delivery_information_block, .contacts_address_description {
		width: auto !important; float: none !important; box-sizing: border-box;
	}
	.contacts_clear .column, .contacts_columns .column { float: none !important; width: auto !important; }
	.contacts_address { margin: 20px 0; }
	.contacts_address .adress_block { width: auto !important; }
	.contacts_address_description { margin: 15px 0 0 !important; }
	.contacts_address_description:before { display: none; }
	.contacts_top_phone a { font-size: 20px; }
	.contact_tabs .tabs, .mytabs-container, #tabs-container { width: auto !important; max-width: 100%; }

	/* ---------- подвал ---------- */
	footer { margin: 0 !important; height: auto !important; }
	.footer_container { padding: 10px 12px 20px !important; }
	.footer_container .fl, .footer_container [style*="width"] {
		float: none !important; width: auto !important; margin-right: 0 !important;
	}
	.footer_container .contact_icon { float: none; }
	.contact_icon.bordered.clearfix + div { text-align: left; }
	img.tic { float: none; }
}

@media screen and (max-width: 600px) {
	.top_contact_l { display: none; }
	.header_container { min-height: 60px; }
	a.logo { width: 96px; height: 64px; background-size: 132px auto; background-position: -18px center; }
	.icon_call { padding-left: 0; background: none; }
	.phone { font-size: 16px; line-height: 24px; }
	.phone .icon_whatsapp a[href^="tel:"]:not(.whatsapp):not(.viber) { display: none; } /* номер, иконки мессенджеров оставляем */
	.rwd_btn { font-size: 15px; }
	.content_contaner { margin: 10px 10px 0; }
	h1 { font-size: 20px; line-height: 1.25; }
	h2 { line-height: 1.25; }
	.center_contaner b[style*="xx-large"], .center_contaner font[size="5"], .center_contaner font[size="6"] { font-size: 24px !important; }
}

/* ---------- /vip/: карточки — картинка сверху на всю ширину, текст под ней ---------- */
@media screen and (max-width: 767px) {
	.news-list.vip { display: block; }
	.news-list.vip .news-item {
		margin: 0 0 18px; padding: 0; border: 0; overflow: hidden;
		background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
		display: flex; flex-direction: column;
	}
	.news-list.vip .news-item h3 { order: 2; margin: 0; padding: 14px 16px 6px; font-size: 18px; line-height: 1.3; color: #222; }
	.news-list.vip .news-item > img {
		order: 1; float: none; display: block; width: 100%; max-width: 100%; height: auto; margin: 0;
	}
	.news-list.vip .news-item > div { order: 3; padding: 0 16px 16px; font-size: 15px; line-height: 1.5; color: #444; }
	.news-list.vip .news-item > div p { margin: 0; padding: 0; }
}

/* ---------- /directory/: справочник металлов — вводный блок и карточки в одну колонку ---------- */
@media screen and (max-width: 767px) {
	.directory_center_contaner { overflow: visible; }
	.directory_text_block { padding-bottom: 8px; }
	.directory_text_block img {
		float: none; display: block; width: 100%; max-width: 260px; margin: 0 auto 14px;
	}
	.directory_text_block .directory_text { font-size: 15px; line-height: 1.5; color: #444; }
	.directory_text_block .directory_text p { margin: 0 0 12px; padding: 0; }
	.directory_text_block .directory_text ul {
		margin: 0 0 14px; padding: 12px 14px; list-style: none; background: #fff; border-radius: 10px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, .12); display: flex; flex-wrap: wrap; gap: 6px;
	}
	.directory_text_block .directory_text ul li {
		list-style: none; margin: 0; padding: 5px 12px; border-radius: 16px;
		background: #f3eee7; color: #7d4a37; font-size: 14px; line-height: 1.3;
	}
	.directory_h1 { margin: 16px 0 14px; font-size: 22px; }

	.dictionary_line_ul { margin: 0; padding: 0; overflow: visible; }
	.dictionary_line_ul li.big_directory,
	.dictionary_line_ul li.big_directory:nth-child(2n) {
		float: none; width: auto; height: auto; margin: 0 0 16px; border: 0; border-radius: 12px;
		overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	}
	.dictionary_line_ul li.big_directory:after { display: none; }
	.dictionary_line_ul li.big_directory .big_directory_block { overflow: hidden; }
	.dictionary_line_ul li.big_directory .bx_dictionary_line_img {
		float: none; width: 100%; height: 200px; border: 0; background-size: cover; background-position: center;
	}
	.big_directory .catalog_decription_wrapper {
		position: static; width: auto; padding: 14px 16px 16px; border: 0; background: #fff;
	}
	.bx_big_directoy_line_title { text-align: left; }
	.bx_big_directoy_line_title a { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
	.bx_big_directoy_line_title span { display: block; font-size: 14px; line-height: 1.45; color: #666; }
	.bx_big_directoy_line_title span br { display: none; }
	.bx_big_directoy_line_title > span:after { content: "Открыть ›"; display: block; margin-top: 8px; font-weight: bold; color: #d87252; }
}

/* /directory/<раздел>/: список позиций — карточки в одну колонку (фото слева, название справа) */
@media screen and (max-width: 767px) {
	.dictionary_line_ul li:not(.big_directory) {
		float: none; width: auto; height: auto; margin: 0 0 12px !important; overflow: hidden;
		display: flex; align-items: stretch; background: #fff; border-radius: 10px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, .15);
	}
	.dictionary_line_ul li:not(.big_directory) > div[style*="clear"] { display: none; }
	.dictionary_line_ul li:not(.big_directory) .bx_dictionary_line_img {
		float: none; flex: 0 0 110px; width: 110px; height: auto; min-height: 96px; border: 0;
		background-size: contain; background-color: #fff;
	}
	.dictionary_line_ul li:not(.big_directory) .catalog_decription_wrapper {
		flex: 1 1 auto; min-width: 0; height: auto; margin: 0; padding: 12px 14px; border: 0; border-left: 1px solid #eee;
		display: flex; flex-direction: column; justify-content: center;
	}
	.dictionary_line_ul li:not(.big_directory) .bx_dictionary_line_title { display: block; height: auto; font-size: 15px; line-height: 1.3; }
	.dictionary_line_ul li:not(.big_directory) .bx_dictionary_line_title a { display: block; font-weight: bold; }
	.dictionary_line_ul li:not(.big_directory) .catalog_decription_wrapper:after {
		content: "Открыть ›"; margin-top: 6px; font-size: 13px; font-weight: bold; color: #d87252;
	}
	.dictionary_block .literral { margin: 18px 0 14px; }
}

/* /directory/<раздел>/ — таблица позиций карточками; /directory/<раздел>/<id>/ — таблица металлов */
@media screen and (max-width: 767px) {
	.directory_search, .on_sect_filter_form_bottom { width: auto; float: none; margin: 0 0 10px; }
	#search.directory_search #title-searchs-input { width: 80%; }
	.sect_metals_sort { line-height: 1.4; }
	.sect_metals_sort select, .sect_metals_sort option { position: static; display: block; width: 100%; margin: 6px 0 0; padding: 0 8px; box-sizing: border-box; height: 38px; font-size: 16px; color: #333; }
	.directory_block { margin-top: 20px; }

	div.directory_item { display: none; } /* шапка таблицы; подписи ниже у каждой карточки */
	a.directory_item {
		display: grid; grid-template-columns: 64px repeat(4, 1fr); gap: 0 6px; align-items: center;
		margin: 0 0 12px; padding: 12px; border: 0 !important; border-radius: 10px; overflow: hidden;
		background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .15); font-size: 14px;
	}
	a.directory_item:hover { background: #fff; border: 0; }
	a.directory_item .text, a.directory_item .metal_column, a.directory_item .price_column, a.directory_item .photo_column {
		float: none; width: auto; padding: 0; border: 0; text-align: left;
	}
	a.directory_item .text { grid-column: 2 / -1; grid-row: 1; padding: 0 0 8px; font-size: 16px; font-weight: bold; line-height: 1.3; }
	a.directory_item .photo_column { grid-column: 1; grid-row: 1 / 3; align-self: start; text-align: center; }
	a.directory_item .photo_column img { position: static; display: block; max-width: 56px; max-height: 56px; margin: 0 auto; }
	a.directory_item .metal_column { grid-row: 2; text-align: center; padding: 6px 2px; background: #faf8f5; border-radius: 6px; font-weight: bold; position: static; }
	a.directory_item .metal_column:before { display: block; font-size: 11px; font-weight: normal; color: #888; }
	a.directory_item .metal_column:nth-child(3):before { content: "Au, г"; }
	a.directory_item .metal_column:nth-child(4):before { content: "Ag, г"; }
	a.directory_item .metal_column:nth-child(5):before { content: "Pt, г"; }
	a.directory_item .metal_column:nth-child(6):before { content: "Pd, г"; }
	a.directory_item .price_column { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eee; font-size: 16px; font-weight: bold; color: #d87252; text-align: right; }
	a.directory_item .price_column:before { content: "Стоимость: "; font-weight: normal; color: #666; font-size: 14px; }
	a.directory_item .price_column:after { content: " руб."; font-size: 14px; }

	/* внутренняя страница позиции */
	.directory_text_block .directory_item_detail { font-size: 15px; line-height: 1.5; color: #444; }
	.detail_metal_table, .detail_directory_description { float: none; width: auto; padding: 0; }
	.detail_metal_table .metal_block { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr; margin: 0 0 8px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
	.detail_metal_table .metal_block div, .metal_block div {
		float: none; width: auto; height: auto; padding: 12px 8px; border: 0; background: #fff; text-align: center;
		display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; word-break: break-word;
	}
	.detail_metal_table .metal_block div:first-child { padding: 12px 8px; background: #faf8f5; }
	.detail_metal_table .metal_block div:first-child img { position: static; max-height: 28px; width: auto; margin-bottom: 4px; }
	.metal_block div span { margin: 0; font-size: 13px; }
	.metal_block:last-child { background: #d87252; color: #fff; }
	.metal_block:last-child div, .detail_metal_table .metal_block:last-child div:first-child { background: transparent; padding: 14px 8px; font-size: 14px; }
	.metal_block:last-child div:first-child { font-size: 16px; }
	.detail_directory_description { margin-top: 16px; }
	.detail_directory_description .button_block a, .detail_directory_description .button_block a:first-child, .detail_directory_description .button_block a:nth-child(2) {
		float: none; display: block; width: 100%; margin: 0 0 10px; text-align: center; box-sizing: border-box;
	}
}

/* ---------- каталог: разделы (карточки с фото и кратким описанием) и товары ---------- */
@media screen and (max-width: 767px) {
	.bx_catalog_line .bx_catalog_line_ul { padding: 0; }
	.bx_catalog_line .bx_catalog_line_ul li,
	.bx_catalog_line .bx_catalog_line_ul li:nth-child(2n) {
		float: none; width: auto; height: auto; margin: 0 0 14px; border: 0; border-radius: 12px; overflow: hidden;
		background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); list-style: none;
	}
	.bx_catalog_line .bx_catalog_line_ul li:hover { background: #fff; border: 0; }
	.bx_catalog_line .bx_catalog_line_img {
		display: block; float: none; width: 100%; height: 170px; background-size: cover; background-position: center; background-repeat: no-repeat;
	}
	.bx_catalog_line .catalog_decription_wrapper { height: auto; margin: 0; padding: 12px 16px 14px; overflow: visible; }
	.bx_catalog_line li:hover .bx_catalog_line_img { position: relative; left: 0; top: 0; width: 100%; height: 170px; }
	.bx_catalog_line .bx_catalog_line_title { display: block; font-size: 18px; line-height: 1.25; }
	.bx_catalog_line .bx_catalog_line_title a { margin: 0 0 6px; font-weight: bold; font-size: 18px; color: #222; text-decoration: none; }
	.bx_catalog_line .bx_catalog_line_ul li:hover .bx_catalog_line_title a { font-size: 18px; }
	.bx_catalog_line a.description_a { height: auto; margin: 0; }
	.bx_catalog_line .catalog_description {
		display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
		max-height: none; margin: 0; font-family: inherit; font-size: 14px; line-height: 1.45; color: #555;
	}
	.bx_catalog_line .catalog_description:after { display: none; }
	.bx_catalog_line .catalog_description > *:not(:first-child) { display: none; }
	.bx_catalog_line .catalog_decription_wrapper:after { content: "Подробнее ›"; display: block; margin-top: 10px; font-weight: bold; font-size: 14px; color: #d87252; }

	/* карточки товаров: две колонки, квадратное фото, крупная цена */
	.catalog_block.section_gallary { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog_block.section_gallary > .catalog_item {
		display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden;
		box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	}
	.catalog_item .img {
		display: block; height: auto; aspect-ratio: 1 / 1; border: 0; background: #f3eee7; z-index: auto;
	}
	.catalog_item .img a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
	.catalog_item .img img { width: 100% !important; height: 100% !important; object-fit: cover; }
	.catalog_item .text { display: flex; flex-direction: column; flex: 1 1 auto; margin: 0; padding: 10px 10px 12px; box-shadow: none; }
	.catalog_item .text > a { height: auto; max-height: 2.7em; margin-bottom: 8px; font-size: 14px; line-height: 1.35; color: #222; text-decoration: none; text-align: left; }
	.catalog_item .text table { margin: auto 0 0; width: 100%; }
	.catalog_item .text table tr { display: flex; flex-direction: column; }
	.catalog_item .text table td { display: block; width: auto; padding: 0; font-size: 12px; color: #888; text-align: left !important; }
	.catalog_item .text table td.price { font-size: 17px; font-weight: bold; color: #d87252; white-space: normal; }
	.catalog_item .text .button, .catalog_item .text input[type="button"] { margin-top: 8px; }
	.category_sort .sort_element { font-size: 13px; }
}

/* ---------- главная: «Новые добавления в каталог товаров» — лента карточек со свайпом ---------- */
@media screen and (max-width: 767px) {
	.related_product { margin: 0 0 20px; padding: 0 12px; }
	.related_product h3 { margin: 18px 0 12px; font-size: 18px; line-height: 1.25; }
	.related_product h3 a { text-decoration: none; }
	.related_product > .button_left, .related_product > .button_right { display: none !important; }
	.center_contaner .related_product_gallery, .related_product_gallery, .related_product_gallery.new_catalog {
		width: auto !important; height: auto !important; margin: 0 -12px !important; padding: 0 12px 6px;
		overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory; scroll-padding-left: 12px;
	}
	.related_product_container {
		position: static !important; left: auto !important; transform: none !important;
		display: flex; gap: 12px; width: max-content !important; padding-right: 12px;
	}
	.related_product_gallery .catalog_item {
		display: flex; flex-direction: column; flex: 0 0 160px; width: 160px; height: auto; margin: 0; float: none;
		background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); scroll-snap-align: start;
	}
	.related_product_gallery .catalog_item .img { display: block; height: auto; aspect-ratio: 1 / 1; border: 0; background: #f3eee7; }
	.related_product_gallery .catalog_item .img a { display: block; width: 100%; height: 100%; }
	.related_product_gallery .catalog_item .img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
	.related_product_gallery .catalog_item .text { margin: 0; padding: 10px; box-shadow: none; display: flex; flex-direction: column; flex: 1 1 auto; }
	.related_product_gallery .catalog_item .text > a { height: auto; max-height: 2.7em; margin-bottom: 8px; font-size: 14px; line-height: 1.35; color: #222; text-decoration: none; text-align: left; }
	.related_product_gallery .catalog_item .text table { margin: auto 0 0; width: 100%; }
	.related_product_gallery .catalog_item .text table tr { display: flex; flex-direction: column; }
	.related_product_gallery .catalog_item .text table td { display: block; padding: 0; font-size: 12px; color: #888; text-align: left !important; }
	.related_product_gallery .catalog_item .text table td.price { font-size: 15px; font-weight: bold; color: #d87252; }
}

/* ---------- блог /useful-information/articles/: на телефоне одна колонка ---------- */
@media screen and (max-width: 767px) {
	.blog-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px; }
	.news-list.articles { margin-left: 0 !important; margin-right: 0 !important; }
}

/* ---------- /regions/: карта только на десктопе, список городов ---------- */
@media screen and (max-width: 1019px) {
	.region_list li { height: auto; min-height: 110px; overflow: hidden; }
	.region_list li span.h2 { display: block; margin: 0 0 4px; padding: 2px 0 0; font-size: 16px; }
	/* краткое описание — первые 3 строки, без обрезки посередине строки */
	.region_list .region_description { max-height: none; margin-bottom: 0; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
	.region_list .region_description p { margin: 0; padding: 0; }
}
@media screen and (max-width: 767px) {
	.regions_map_block { display: none; }
}
@media screen and (max-width: 600px) {
	.region_list { margin: 10px 0 0; padding: 0; }
	.region_list li { float: none; width: auto; min-height: 0; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #ddd; }
	.region_list li:last-child { border-bottom: 0; }
	.region_list li img { max-width: 64px; max-height: 80px; margin-right: 14px; }
}
