/* Дополнения к стилям прототипа под реальные данные сайта. Сами стили прототипа не меняются. */

/* У товаров бывает больше 3 фото — ряд миниатюр прокручивается и не растягивает страницу. */
.product-hero > * { min-width: 0; }
.thumbnails { overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumbnail { flex: none; }

/* Подзаголовки серий, когда в категории несколько таблиц сравнения. */
.section > h3 { margin: 22px 0 10px; }

/* Таблица сравнения в карточке — как на текущем сайте: оранжевая шапка с иконками столбцов (иконки из старой темы). */
.old-compare > h2 { text-align: center; font-size: 34px; margin-bottom: 30px; }
.old-compare .table-wrap { border: 0; border-radius: 0; }
table.old-tech { border-collapse: collapse; border: 1px solid #f27507; width: 100%; white-space: normal; font-size: 12px; line-height: 1.5; color: #7e8288; }
.old-tech thead { background: #f27507; }
.old-tech th { color: #fff; font-size: 13px; font-weight: 400; text-align: center; vertical-align: top; border: 1px solid #fff; padding: 12px 6px; background-repeat: no-repeat; background-position: 50% 12px; }
.old-tech thead tr:first-child th { padding-top: 56px; }
.old-tech thead tr:first-child th:not([class]) { padding-top: 12px; }
.old-tech td { text-align: center; vertical-align: middle; border: 1px solid #f27507; padding: 14px 10px; background: #fff; white-space: nowrap; }
.old-tech td:first-child, .old-tech th:first-child { min-width: 0; text-align: center; }
.old-tech tbody tr:nth-child(even) { background: none; }
.old-tech td a { color: #666; font-weight: 700; text-decoration: underline; }
.old-tech td strong { color: #f27507; }
.old-tech .quad, .old-tech .squre { background-repeat: no-repeat; background-position: 25% 40%; }
.old-tech .model{background-image:url(../old_theme/godsman/css/img/model.png)}
.old-tech .sz{background-image:url(../old_theme/godsman/css/img/size.png)}
.old-tech .mass{background-image:url(../old_theme/godsman/css/img/mass.png)}
.old-tech .main_eng{background-image:url(../old_theme/godsman/css/img/elengine.png)}
.old-tech .knife_angle{background-image:url(../old_theme/godsman/css/img/knife_angle.png)}
.old-tech .knife_pef{background-image:url(../old_theme/godsman/css/img/rez_minute.png)}
.old-tech .max_power{background-image:url(../old_theme/godsman/css/img/max_power.png)}
.old-tech .stand_distance{background-image:url(../old_theme/godsman/css/img/stand_distance.png)}
.old-tech .table_size{background-image:url(../old_theme/godsman/css/img/table_size.png)}
.old-tech .slider_step{background-image:url(../old_theme/godsman/css/img/slider_step.png)}
.old-tech .list_cut{background-image:url(../old_theme/godsman/css/img/list_cut.png)}
.old-tech .max_list_backwidth{background-image:url(../old_theme/godsman/css/img/max_list_width.png)}
.old-tech .pull_clamp{background-image:url(../old_theme/godsman/css/img/pull_clamp.png)}
.old-tech .power_knife{background-image:url(../old_theme/godsman/css/img/power_knife.png)}
.old-tech .blade_quan{background-image:url(../old_theme/godsman/css/img/blade_quan.png)}
.old-tech .field_muff{background-image:url(../old_theme/godsman/css/img/field_muff.png)}
.old-tech .pusher_step{background-image:url(../old_theme/godsman/css/img/pusher_step.png)}
.old-tech .list_wid{background-image:url(../old_theme/godsman/css/img/list_wid.png)}
.old-tech .pump_perf{background-image:url(../old_theme/godsman/css/img/pump_perf.png)}
.old-tech .rules_work{background-image:url(../old_theme/godsman/css/img/rules_work.png)}
.old-tech .slider_table_dist{background-image:url(../old_theme/godsman/css/img/slider_table_dist.png)}
.old-tech .stand_stock_dist{background-image:url(../old_theme/godsman/css/img/stand_stock_dist.png)}
.old-tech .model_crank{background-image:url(../old_theme/godsman/css/img/model_crank.png)}
.old-tech .slider_stand_dist{background-image:url(../old_theme/godsman/css/img/slider_stand_dist.png)}
.old-tech .stand_corner{background-image:url(../old_theme/godsman/css/img/stand_corner.png)}
.old-tech .model_pressbender{background-image:url(../old_theme/godsman/css/img/model_pressbender.png)}
.old-tech .max_slider_step{background-image:url(../old_theme/godsman/css/img/max_slider_step.png)}
.old-tech .table_and_stand_dist{background-image:url(../old_theme/godsman/css/img/table_and_stand_dist.png)}
.old-tech .table_width{background-image:url(../old_theme/godsman/css/img/table_width.png)}
.old-tech .max_back_stand_dist{background-image:url(../old_theme/godsman/css/img/max_back_stand_dist.png)}
.old-tech .model_hydravpress{background-image:url(../old_theme/godsman/css/img/model_hydravpress.png)}
.old-tech .model_presscissors{background-image:url(../old_theme/godsman/css/img/model_presscissors.png)}
.old-tech .rolled{background-image:url(../old_theme/godsman/css/img/rolled.png)}
.old-tech .corner_cut{background-image:url(../old_theme/godsman/css/img/corner_cut.png)}
.old-tech .hole{background-image:url(../old_theme/godsman/css/img/hole.png)}
.old-tech .groove{background-image:url(../old_theme/godsman/css/img/groove.png)}
.old-tech .profile_num{background-image:url(../old_theme/godsman/css/img/profile_num.png)}
.old-tech .slider_freq{background-image:url(../old_theme/godsman/css/img/slider_freq.png)}
.old-tech .model_lisbender3{background-image:url(../old_theme/godsman/css/img/bender_speed.png)}
.old-tech .bender_list_width{background-image:url(../old_theme/godsman/css/img/bender_list_width.png)}
.old-tech .bender_list_thick{background-image:url(../old_theme/godsman/css/img/bender_list_thick.png)}
.old-tech .bender_rad{background-image:url(../old_theme/godsman/css/img/bender_rad.png)}
.old-tech .diam_top_roll{background-image:url(../old_theme/godsman/css/img/diam_top_roll.png)}
.old-tech .bender_speed{background-image:url(../old_theme/godsman/css/img/bender_speed.png)}
.old-tech .model_plastique{background-image:url(../old_theme/godsman/css/img/model_plastique.png)}
.old-tech .pusher_power{background-image:url(../old_theme/godsman/css/img/pusher_power.png)}
.old-tech .model_pnevmohammer{background-image:url(../old_theme/godsman/css/img/model_pnevmohammer.png)}
.old-tech .fallen_mass{background-image:url(../old_theme/godsman/css/img/fallen_mass.png)}
.old-tech .impact_freq{background-image:url(../old_theme/godsman/css/img/impact_freq.png)}
.old-tech .fallen_energy{background-image:url(../old_theme/godsman/css/img/fallen_energy.png)}
.old-tech .optim_section{background-image:url(../old_theme/godsman/css/img/optim_section.png)}
.old-tech .model_straightcut{background-image:url(../old_theme/godsman/css/img/model_straightcut.png)}
.old-tech .diam_stick{background-image:url(../old_theme/godsman/css/img/diam_stick.png)}
.old-tech .speed_give{background-image:url(../old_theme/godsman/css/img/speed_give.png)}
.old-tech .lenth_stick{background-image:url(../old_theme/godsman/css/img/lenth_stick.png)}
.old-tech .mass_plus{background-image:url(../old_theme/godsman/css/img/mass_plus.png)}
.old-tech .nom_power{background-image:url(../old_theme/godsman/css/img/nom_power.png)}
.old-tech .max_stock_step{background-image:url(../old_theme/godsman/css/img/max_stock_step.png)}
.old-tech .open_height{background-image:url(../old_theme/godsman/css/img/open_height.png)}
.old-tech .hor_work{background-image:url(../old_theme/godsman/css/img/hor_work.png)}
.old-tech .stock_speed{background-image:url(../old_theme/godsman/css/img/stock_speed.png)}
.old-tech .el_power{background-image:url(../old_theme/godsman/css/img/el_power.png)}
.old-tech .rule{background-image:url(../old_theme/godsman/css/img/rule.png)}
.old-tech .quad{background-image:url(../old_theme/godsman/css/img/quad.png)}
.old-tech .squre{background-image:url(../old_theme/godsman/css/img/squre.png)}

/* «Нам доверяют» — как на текущем сайте: 4 логотипа в ряд, бледные, при наведении логотип «прокручивается» и становится ярким. */
.old-partners { text-align: center; }
.old-partners-top { display: block; color: #f27507; font-size: 14px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; margin-bottom: 6px; }
.old-partners h2 { font-size: 34px; margin-bottom: 8px; }
.old-partners > p { color: #7e8288; font-size: 18px; margin-bottom: 44px; }
.old-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 30px; align-items: center; }
.old-logo { position: relative; display: flex; justify-content: center; align-items: center; height: 96px; overflow: hidden; }
.old-logo img { width: 245px; max-width: 100%; max-height: 96px; object-fit: contain; opacity: .5; transition: .4s ease-in-out; }
.old-logo img + img { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); opacity: 0; }
a.old-logo:hover img:first-child { transform: translateY(-100%); opacity: 0; }
a.old-logo:hover img + img { top: 50%; transform: translate(-50%, -50%); opacity: 1; }
@media (max-width: 650px) {
  .old-partners h2 { font-size: 26px; }
  .old-partners > p { font-size: 15px; margin-bottom: 26px; }
  .old-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .old-logo { height: 72px; }
  .old-logo img { max-height: 72px; }
}

/* Форма заявки — как на странице «Контакты» текущего сайта: фото цеха с затемнением, адрес слева, форма справа. */
.old-contact { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 110px 100px; margin-top: 42px; background-size: cover; background-position: 50% 0; border-radius: 2px; color: #fff; }
.old-contact::before { content: ""; position: absolute; inset: 0; background: #1e2228; opacity: .7; border-radius: inherit; }
.old-contact > * { position: relative; }
.old-contact-top { display: block; font-size: 14px; font-weight: 600; letter-spacing: 2.1px; text-transform: uppercase; margin-bottom: 22px; }
.old-contact h2 { color: #fff; font-size: 36px; line-height: 1.33; margin: 0 0 24px; max-width: 12em; }
.old-contact-text { color: #e3e5e8; font-size: 17px; line-height: 1.6; max-width: 30em; margin: 0; }
.old-contact-call { color: #fff; font-weight: 600; text-decoration: none; }
.old-contact-call:hover { color: #ffb65d; }
.old-contact-form { display: flex; flex-direction: column; gap: 30px; }
.old-contact-form input:not([type=checkbox]):not([type=file]), .old-contact-form textarea { background: transparent; border: 2px solid #8c8f92; border-radius: 2px; color: #fff; font-size: 15px; padding: 0 0 0 30px; height: 60px; }
.old-contact-form textarea { height: 100px; min-height: 100px; padding-top: 16px; resize: vertical; }
.old-contact-form ::placeholder { color: #fff; opacity: 1; }
.old-contact-form input:focus, .old-contact-form textarea:focus { border-color: #fff; outline: none; }
.old-contact-form .attachment { margin: -12px 0 -14px; font-size: 13px; color: #d7d9dc; }
.old-contact-form .attachment summary { cursor: pointer; }
.old-contact-form .attachment input { display: block; margin-top: 6px; font-size: 12px; color: #d7d9dc; }
.old-consent { font-size: 13px; line-height: 1.5; color: #b9bcc0; display: block; margin-top: -8px; }
.old-consent input { margin: 0 6px 0 0; vertical-align: -2px; }
.old-consent a { color: #5aa9ff; text-decoration: none; }
.old-contact-form button { background: #f27507; color: #fff; border: 0; border-radius: 3px; font-size: 16px; font-weight: 600; padding: 13px 20px; min-height: 58px; }
.old-contact-form button:hover { background: #e06a00; }
.old-contact-form .notice { color: #fff; margin: -16px 0 0; }
@media (max-width: 900px) {
  .old-contact { grid-template-columns: 1fr; gap: 26px; padding: 40px 20px; }
  .old-contact h2 { font-size: 26px; margin-bottom: 16px; }
  .old-contact-form { gap: 18px; }
  .old-contact-form input:not([type=checkbox]):not([type=file]), .old-contact-form textarea { padding-left: 18px; font-size: 16px; }
}

/* ---------- Версия 4 (правки Ильи 26.10) ---------- */
[id] { scroll-margin-top: 16px; }

/* Сервисные плитки (тексты с текущего сайта): справа от характеристик / текста категории или одной строкой. */
.service-stack { display: grid; gap: 14px; align-content: start; }
.service-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.service-card { background: #fff; border: 1px solid #e3e5e8; border-top: 3px solid #f58200; padding: 18px 22px 20px; }
.service-card strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.service-card p { font-size: 15px; line-height: 1.55; color: #5d6168; margin: 0 0 10px; }
.service-card a { color: #e36f00; font-size: 15px; text-decoration: underline dotted; text-underline-offset: 4px; }
.service-card a:hover { color: #a24e00; }

/* Карточка: кнопки перехода к разделам. */
.page-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 14px; background: #f6f7f8; border: 1px solid #e0e3e7; border-radius: 4px; }
.page-nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-nav-links a { background: #fff; border: 1px solid #d8dce0; border-radius: 3px; padding: 10px 12px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.page-nav-links a:hover { border-color: #f58200; background: #fff5e8; color: inherit; }
.page-nav > .btn { margin-left: auto; white-space: nowrap; padding: 12px 18px; font-size: 14px; }

/* Карточка: характеристики слева, сервисные плитки справа. Короткая колонка «едет» при прокрутке. */
.tech-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tech-layout > * { position: sticky; top: 16px; }
#technical .table-wrap { background: #fff; }
.technical th:first-child { width: auto; }

/* Карточка: комплектация и описание в одной рамке. */
.duo-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 36px; padding: 26px 28px; background: #f6f7f8; border: 1px solid #e0e3e7; border-radius: 4px; }
.duo-panel.single { grid-template-columns: 1fr; }
.duo-col + .duo-col { border-left: 1px solid #dfe2e6; padding-left: 36px; }
.duo-col h2 { font-size: 27px; }
.duo-col h3 { font-size: 18px; margin-bottom: 8px; }
.duo-col ul { padding-left: 21px; margin: 0; }
.duo-col li { margin: 8px 0; color: #41454a; }
#equipment ul + h3 { border-top: 1px solid #dfe2e6; padding-top: 24px; margin-top: 26px; }
.duo-col.reading { max-width: none; }

/* Карточка: видео модели — компактные плитки по 4 в ряд, открываются во всплывающем окне. */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-tile { display: block; padding: 0; text-align: left; background: #fff; border: 1px solid #e0e3e7; border-radius: 3px; overflow: hidden; color: inherit; }
.video-frame { position: relative; display: block; aspect-ratio: 16 / 10; background: #1e2228; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.video-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #f58200; box-shadow: 0 4px 14px #0004; }
.video-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.video-tile:hover .video-play { background: #e06a00; }
.video-caption { display: block; padding: 14px 16px; font-size: 15px; font-weight: 700; line-height: 1.35; }
#video-dialog { width: min(960px, calc(100% - 32px)); }
#video-dialog video { display: block; width: 100%; max-height: 75vh; background: #000; margin-top: 10px; }

/* Категория: подкатегории вкладками. */
.subcats { margin-bottom: 26px; }
.subcat-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; position: relative; }
.subcat-tabs button { background: #f6f7f8; border: 1px solid #dfe2e6; border-bottom: 0; border-radius: 4px 4px 0 0; padding: 10px 26px; font-size: 14px; color: #6b6f76; }
.subcat-tabs button[aria-selected=true] { background: #f1f2f4; color: #202124; font-weight: 700; }
.subcat-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; background: #f1f2f4; border: 1px solid #dfe2e6; border-radius: 0 4px 4px 4px; }
.subcat-panel .tag { background: #fff; border-color: #d8dce0; padding: 9px 18px; }
.subcat-more { background: none; border: 0; padding: 6px 4px; color: #6b6f76; font-size: 14px; text-decoration: underline dotted; text-underline-offset: 4px; white-space: nowrap; }
.subcat-more::after { content: " ⌄"; }
.subcat-more[aria-expanded=true]::after { content: " ⌃"; }

/* Категория: заголовок каталога, число моделей и сортировка в одной строке. */
.catalog-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.catalog-head h3 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.4px; }
#count { color: #6b6f76; font-size: 14px; white-space: nowrap; }
.catalog-head .sort { margin-left: auto; align-self: center; color: #6b6f76; }
.catalog-head .sort select { width: 200px; min-height: 40px; padding: 8px 10px; }

/* Категория: фильтры одной строкой, название внутри поля, значения — в выпадающем списке. */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 20px; }
.dd { position: relative; flex: 0 1 215px; min-width: 0; }
.dd-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 45px; padding: 10px 36px 10px 14px; background: #fff; border: 1px solid #cdd1d6; border-radius: 3px; text-align: left; font-size: 14px; position: relative; }
.dd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid #555; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.dd-btn[aria-expanded=true]::after { transform: rotate(-135deg); margin-top: -2px; }
.dd-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 340px; overflow: auto; padding: 6px; background: #fff; border: 1px solid #d8dce0; border-radius: 3px; box-shadow: 0 10px 24px #0002; }
.dd-list label { display: flex; align-items: center; gap: 9px; padding: 7px 8px; font-size: 14px; white-space: nowrap; cursor: pointer; border-radius: 2px; }
.dd-list label:hover { background: #fff5e8; }
.dd-list input { width: 16px; height: 16px; margin: 0; accent-color: #b65f00; }
.dd-extra { display: none; }
.filters.show-extra .dd-extra { display: block; }
.more-toggle, .filter-reset { font-size: 14px; color: #e36f00; text-decoration: underline dotted; text-underline-offset: 4px; white-space: nowrap; }
.more-toggle::after { content: " ⌄"; }
.more-toggle[aria-expanded=true]::after { content: " ⌃"; }
.filter-apply { padding: 11px 26px; }

/* Категория, вариант ?list=3: плитки по 3 в ряд, фото крупно — почти квадрат на всю ширину плитки. */
#products .photo { height: 0; padding-bottom: 100%; position: relative; padding-top: 0; padding-left: 0; padding-right: 0; }
#products .photo a { position: absolute; inset: 14px 14px 14px 14px; display: flex; align-items: center; justify-content: center; }

/* Категория: листинг по две карточки — название сверху, фото слева, ярлык и характеристики справа. */
.grid.rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-row { padding: 18px 20px 20px; }
.product-row h3 { font-size: 20px; line-height: 1.3; min-height: 0; margin: 0 0 14px; }
.row-main { display: grid; grid-template-columns: 40% minmax(0, 1fr); gap: 20px; flex: 1; }
.row-photo { display: flex; align-items: center; justify-content: center; height: 230px; }
.row-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.row-side { display: flex; flex-direction: column; min-width: 0; }
.row-side .badge { position: static; align-self: flex-start; margin-bottom: 8px; }
.row-side .specs { margin-bottom: 14px; }
.row-side .specs dd { white-space: normal; }
.row-price { font-size: 19px; font-weight: 700; }
.row-side .product-actions .btn { padding: 11px 24px; }
.row-side .price { color: #e36f00; }

/* Категория: текст и сервисные плитки в одном блоке. */
.text-services { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; padding: 30px; background: #f6f7f8; border: 1px solid #e0e3e7; border-radius: 4px; }
.text-services .editorial { margin: 0; max-width: none; }
.text-services .editorial > :first-child { margin-top: 0; }

@media (max-width: 1000px) {
  .text-services { grid-template-columns: 1fr; }
  .text-services .service-stack, .service-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.rows { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .tech-layout { grid-template-columns: 1fr; }
  .tech-layout > * { position: static; }
  .service-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .duo-panel { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; }
  .duo-col + .duo-col { border-left: 0; padding-left: 0; border-top: 1px solid #dfe2e6; padding-top: 22px; }
  .page-nav { flex-wrap: wrap; }
  .page-nav-links { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
  .page-nav > .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 650px) {
  .service-stack, .service-row, .text-services .service-stack { grid-template-columns: 1fr; }
  .service-card { padding: 16px; }
  .service-card strong { font-size: 17px; }
  .service-card p, .service-card a { font-size: 14px; }
  .text-services { padding: 20px 16px; }
  .subcat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .subcat-tabs button { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
  .subcat-panel { padding: 10px; gap: 8px; }
  .subcat-panel .tag { padding: 7px 12px; }
  .catalog-head { flex-wrap: wrap; row-gap: 8px; }
  .catalog-head h3 { font-size: 22px; }
  .catalog-head .sort { margin-left: 0; width: 100%; justify-content: space-between; font-size: 13px; }
  .catalog-head .sort select { width: auto; flex: 1; }
  .filters { gap: 8px; padding: 10px; }
  .dd { flex: 1 1 calc(50% - 4px); position: static; }
  .filters { position: relative; }
  .dd-btn { font-size: 13px; min-height: 42px; padding-left: 10px; padding-right: 28px; }
  .dd-btn::after { right: 11px; }
  .dd-list { left: 0; right: 0; top: calc(100% + 4px); min-width: 0; }
  .product-row { padding: 16px; }
  .product-row h3 { font-size: 18px; }
  .row-main { grid-template-columns: 1fr; gap: 12px; }
  .row-photo { height: 210px; }
  .video-grid { gap: 12px; }
  .video-caption { font-size: 13px; padding: 10px 12px; }
  .video-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .video-play::after { left: 18px; top: 13px; border-width: 10px 0 10px 15px; }
}

/* ---------- Версия 5 (макеты Ильи, конец октября) ---------- */

/* Плашка «Все категории» слева: висит при прокрутке, по наведению/нажатию выезжает дерево категорий. */
.allcat { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; align-items: center; }
.allcat-tab { display: flex; align-items: center; gap: 6px; writing-mode: vertical-rl; border: 0; border-radius: 0 6px 6px 0; background: #f58200; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 18px 9px; box-shadow: 2px 0 10px #0002; }
.allcat-tab:hover { background: #e06a00; color: #fff; }
.allcat-tab i { font-style: normal; transform: rotate(90deg); }
.allcat-panel { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: 340px; max-height: min(560px, 74vh); display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e3e7; border-radius: 6px; box-shadow: 0 14px 40px #0003; }
.allcat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #eceef0; }
.allcat-head strong { font-size: 16px; }
.allcat-close { border: 0; background: #f0f0f0; width: 30px; height: 30px; border-radius: 50%; font-size: 20px; line-height: 1; color: #555; }
.allcat-tree { overflow-y: auto; padding: 10px 12px 14px; }
.allcat-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.allcat-item:hover { background: #fff5e8; }
.allcat-item.current { background: #ffe9cf; color: #202124; font-weight: 700; }
.allcat-arrow { color: #b56a00; font-size: 17px; line-height: 1; padding: 2px 6px; border-radius: 3px; }
.allcat-arrow:hover { background: #ffe9cf; }
.allcat-group.open > .allcat-arrow { transform: rotate(90deg); }
.allcat-kids { padding: 2px 0 6px 16px; }
.allcat-kids a { display: block; padding: 7px 10px 7px 16px; border-left: 2px solid #f0d9bd; font-size: 13px; text-decoration: none; color: #555; }
.allcat-kids a:hover { background: #fff5e8; color: #202124; }
.allcat-kids a.current { border-left-color: #f58200; background: #ffe9cf; color: #202124; font-weight: 700; }

/* Категория: подписи над блоками и заливка подкатегорий и фильтрации. */
.block-caption { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.subcats { background: #fdf6ec; border: 1px solid #f1e3cd; border-radius: 4px; padding: 14px; }
.subcat-tabs { margin-bottom: 10px; }
.subcat-tabs button { background: #fff; }
.subcat-tabs button[aria-selected=true] { background: #f58200; border-color: #f58200; color: #fff; }
.subcat-panel { background: transparent; border: 0; padding: 0; }
.subcat-panel .tag { background: #fff; border-color: #ead9bd; }
.filters { background: #fdf6ec; border: 1px solid #f1e3cd; }

/* Категория: плитки компактные по высоте, фото крупное. Листинг по 3 в ряд — основной вариант. */
#products .photo { aspect-ratio: 1; padding: 40px 14px 14px; }
#products .product h3 { min-height: 0; font-size: 17px; margin-bottom: 10px; }
#products .product-body { padding: 14px 16px 16px; }
#products .specs { font-size: 12.5px; margin-bottom: 14px; }
#products .specs div { padding: 3.5px 0; }
#products .product-actions .btn { padding: 10px 18px; }
#products.grid { gap: 18px; }

/* Карточка: фото максимально крупно слева, справа — плотная колонка с параметрами. */
.product-hero { grid-template-columns: 1.12fr 1fr; gap: 34px; margin-top: 8px; }
.gallery-main { height: 470px; }
.hero-title { font-size: 25px; line-height: 1.25; letter-spacing: -.3px; margin: 0 0 8px; }
.hero-info .badge { margin-bottom: 10px; }
.hero-specs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.hero-specs-head h2 { font-size: 16px; margin: 0; }
.hero-specs-head .textbtn { font-size: 12.5px; white-space: nowrap; }
.hero-info .specs { font-size: 13.5px; margin: 8px 0 0; }
.hero-info .specs div { padding: 4px 0; }
.hero-package { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: #41454a; }
.hero-package li { margin: 4px 0; }
.hero-actions { margin-top: 18px; }
.hero-actions .btn { flex: 1; padding: 12px 10px; font-size: 13.5px; }
.hero-contact { margin-top: 14px; }
.hero-mods { margin-top: 20px; }
.hero-mods .modifications { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.hero-mods .modification { padding: 7px 6px; }
.hero-mods .modification strong { font-size: 14px; }
.hero-mods .modification span { font-size: 11px; }
.hero-type { margin-top: 20px; }
.hero-type h2 { font-size: 16px; margin: 0 0 8px; }
.type-chain a { display: block; font-size: 13.5px; color: #b56a00; text-decoration: underline dotted; text-underline-offset: 3px; margin: 4px 0; }
.type-chain a:hover { color: #804600; }

/* Карточка и категория на планшете и телефоне: карточка компактная, фото по ширине. */
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 20px; }
  .gallery-main { height: 300px; padding: 12px 40px; }
  .hero-title { font-size: 22px; }
  .hero-mods .modifications { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .allcat-panel { position: fixed; left: 0; right: auto; top: 0; transform: none; width: min(340px, 88vw); max-height: 86vh; border-radius: 0 6px 6px 0; }
}
@media (max-width: 650px) {
  .hero-mods .modifications { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-main { height: 250px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .allcat-tab { font-size: 11px; padding: 14px 7px; }
}

/* ---------- Версия 6 (2026-11-01) ---------- */

/* ---------- Версия 7 (2026-11-01): новая шапка и подвал — правки 26, 28, 33, 34 ---------- */

/* Шапка: липкая, полная компоновка у начала страницы, компактная шторка при прокрутке. */
[id] { scroll-margin-top: 100px; }
.site-head { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid #eceef0; }
.hf-row1 { display: flex; align-items: center; gap: 26px; padding: 14px 0 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 118px; height: 56px; object-fit: contain; }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.3; color: #202124; max-width: 13em; }
.hf-side { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.hf-mail a { font-size: 20px; font-weight: 700; color: #f58200; text-decoration: none; }
.hf-mail a:hover { color: #c96a00; }
.hf-phone a { font-size: 20px; font-weight: 700; color: #202124; text-decoration: none; }
.hf-phone a:hover { color: #f58200; }
.hf-mail small, .hf-phone small { display: block; font-size: 12.5px; color: #6b6f76; margin-top: 2px; }
.header-cta { white-space: nowrap; }

.hf-row2 { display: flex; align-items: center; gap: 16px; padding: 10px 0 14px; border-top: 1px solid #f0f1f3; }
.hf-row2 .nav-dropdown, .head-compact .nav-dropdown { position: relative; }
.cat-btn { list-style: none; display: inline-flex; align-items: center; gap: 11px; background: #f58200; color: #fff; font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.cat-btn::-webkit-details-marker { display: none; }
.cat-btn:hover { background: #e97700; color: #fff; }
.cat-dd[open] > .cat-btn { background: #e06a00; }
.cat-burger { position: relative; width: 16px; height: 12px; display: inline-block; }
.cat-burger::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); }
.cat-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 400px; max-width: calc(100vw - 32px); max-height: min(600px, 74vh); overflow: auto; padding: 10px 14px 16px; background: #fff; border: 1px solid #e0e3e7; border-radius: 6px; box-shadow: 0 16px 44px #0003; z-index: 70; }
.cat-tree { display: block; }
.cat-group { margin: 2px 0; }
.cat-root { display: block; padding: 9px 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; border-radius: 4px; color: #202124; }
.cat-root:hover { background: #fff5e8; color: #202124; }
.cat-root.current { background: #ffe9cf; }
.cat-kids { padding: 0 0 8px 12px; }
.cat-kids a { display: block; padding: 6px 10px 6px 14px; font-size: 13.5px; color: #55595f; text-decoration: none; border-left: 2px solid #f0e3d0; }
.cat-kids a:hover { background: #fff5e8; color: #202124; }
.cat-kids a.current { border-left-color: #f58200; background: #ffe9cf; color: #202124; font-weight: 700; }

.hf-search { position: relative; flex: 1 1 320px; max-width: 480px; min-width: 0; display: flex; }
.hf-search input { width: 100%; height: 48px; padding: 0 46px 0 42px; border: 1px solid #dfe2e6; border-radius: 4px; background: #f5f6f7; font-size: 15px; }
.hf-search input:focus { outline: none; border-color: #f58200; background: #fff; }
.hf-search::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a8e94' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") no-repeat 50% 50%; }
.hf-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #8a8e94; cursor: pointer; }
.hf-search button:hover { color: #f58200; }

.hf-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 14.5px; }
.hf-nav > a { text-decoration: none; white-space: nowrap; color: #202124; }
.hf-nav > a:hover { color: #f58200; }
.hf-nav .nav-dropdown summary { list-style: none; cursor: pointer; white-space: nowrap; }
.hf-nav .nav-dropdown summary::-webkit-details-marker { display: none; }
.hf-nav .nav-dropdown summary::after { content: '⌄'; font-size: 12px; margin-left: 5px; color: #9c6700; }
.hf-nav .nav-dropdown[open] > summary { color: #965000; }
.hf-nav .dropdown-panel { left: 50%; transform: translateX(-50%); min-width: 230px; padding: 10px; background: #fff; border: 1px solid #e0e3e7; border-radius: 6px; box-shadow: 0 10px 26px #0002; }
.hf-nav .dropdown-panel a { display: block; padding: 8px 10px; font-size: 14px; text-decoration: none; border-radius: 3px; }
.hf-nav .dropdown-panel a:hover { background: #fff5e8; }

.head-compact { display: none; align-items: center; gap: 20px; padding: 9px 0; }
.site-head.scrolled .head-full { display: none; }
.site-head.scrolled .head-compact { display: flex; }
.hc-logo img { width: 92px; height: 42px; object-fit: contain; }
.head-compact .cat-btn { padding: 11px 18px; font-size: 14px; }
.head-compact .hf-search { flex: 0 1 340px; }
.head-compact .header-cta { margin-left: auto; }
.hc-phone, .hc-mail { font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; color: #202124; }
.hc-mail { color: #f58200; }

/* ТЗ 28: Компактная закреплённая шапка для десктопа */
@media (min-width: 901px) {
  .site-head.scrolled { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .site-head.scrolled .head-compact { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
  .site-head.scrolled .hc-logo { flex: 0 0 auto; }
  .site-head.scrolled .cat-dd { flex: 0 0 auto; }
  .site-head.scrolled .hf-search { flex: 1 1 340px; max-width: 480px; }
  .site-head.scrolled .hc-phone { flex: 0 0 auto; margin-left: 20px; }
  .site-head.scrolled .hc-mail { flex: 0 0 auto; }
  .site-head.scrolled .header-cta { flex: 0 0 auto; }
}

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 10px; border: 1px solid #dfe2e6; border-radius: 4px; background: #fff; cursor: pointer; flex: none; }
.burger span { display: block; height: 2px; background: #202124; border-radius: 2px; }

.m-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 88vw); background: #fff; z-index: 120; box-shadow: -12px 0 34px #0003; padding: 16px 20px 24px; overflow: auto; }
.m-nav-overlay { position: fixed; inset: 0; background: #0006; z-index: 110; }
.m-nav-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #eceef0; margin-bottom: 8px; }
.m-nav-head strong { font-size: 18px; }
.m-nav-close { border: 0; background: #f0f0f0; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: #555; }
.m-nav nav a { display: block; padding: 12px 6px; font-size: 16px; text-decoration: none; border-bottom: 1px solid #f3f4f6; color: #202124; }
.m-nav nav a:hover { color: #f58200; }
.m-nav-contacts { margin-top: 18px; display: grid; gap: 8px; }
.m-nav-contacts a { font-weight: 700; font-size: 17px; text-decoration: none; color: #202124; }
.m-nav-contacts span { font-size: 13px; color: #6b6f76; }

/* Подвал (правка 26). */
.site-footer { background: #f5f6f7; border-top: 1px solid #e3e5e8; margin-top: 56px; padding: 46px 0 0; color: #55595f; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.05fr 1fr; gap: 40px; padding-bottom: 38px; }
.f-brand img { width: 128px; height: auto; }
.f-brand strong { display: block; font-size: 17px; color: #202124; margin: 12px 0 10px; line-height: 1.3; }
.f-brand p { margin: 0 0 10px; line-height: 1.55; }
.f-hours { color: #6b6f76; }
.f-brand .btn { margin-top: 10px; }
.f-col h3 { font-size: 16px; color: #202124; margin: 0 0 14px; }
.f-col a { display: block; padding: 4.5px 0; color: #55595f; text-decoration: none; line-height: 1.4; }
.f-col a:hover { color: #f58200; }
.f-contact .f-phone { font-size: 17px; font-weight: 700; color: #202124; }
.f-contact .f-phone:hover { color: #f58200; }
.f-contact .f-mail { color: #f58200; font-weight: 600; font-size: 15px; margin-top: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; padding: 18px 0 22px; border-top: 1px solid #e3e5e8; font-size: 13px; }
.footer-bottom a { color: #6b6f76; text-decoration: none; }
.footer-bottom a:hover { color: #f58200; }
.footer-copy { margin-left: auto; color: #94979d; }

@media (max-width: 1100px) {
  .hf-side { gap: 20px; }
  .hf-mail a, .hf-phone a { font-size: 17px; }
  .hf-nav { gap: 12px; font-size: 13.5px; }
}

@media (max-width: 900px) {
  [id] { scroll-margin-top: 80px; }
  
  /* Скрываем десктопную шапку, показываем мобильную в две строки (Grid) */
  .head-full { display: none; }
  .head-compact {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo phone cta"
      "cat search burger";
    gap: 10px 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eceef0;
  }
  
  /* Первая строка: логотип, телефон, кнопка "Оставить заявку" */
  .head-compact .hc-logo { grid-area: logo; }
  .head-compact .hc-logo img { width: 70px; height: 32px; }
  .head-compact .hc-phone { grid-area: phone; text-align: center; font-size: 13px; font-weight: 700; text-decoration: none; color: #202124; white-space: nowrap; }
  .head-compact .hc-mail { display: none; } /* Скрываем email */
  .head-compact .header-cta { grid-area: cta; padding: 9px 10px; font-size: 12px; }
  
  /* Вторая строка: Каталог, Поиск, Бургер */
  .head-compact .cat-dd { grid-area: cat; }
  .head-compact .hf-search { grid-area: search; max-width: none; min-width: 0; }
  .head-compact .burger { grid-area: burger; display: flex; }
  
  /* Стили для кнопок */
  .head-compact .cat-btn { padding: 11px 14px; font-size: 13.5px; }
  
  /* При прокрутке: первая строка скрывается, шапка становится sticky */
  .site-head.scrolled { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  .site-head.scrolled .head-compact {
    grid-template-areas: "cat search burger";
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 0;
    border-bottom: 0;
  }
  .site-head.scrolled .head-compact .hc-logo,
  .site-head.scrolled .head-compact .hc-phone,
  .site-head.scrolled .head-compact .header-cta { display: none; }
  
  .cat-panel { position: fixed; left: 12px; right: 12px; top: 118px; width: auto; max-width: none; max-height: calc(100vh - 140px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 650px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { gap: 8px 20px; }
  .footer-copy { margin-left: 0; width: 100%; }
}

/* ---------- Версия 8 (2026-11-01): плитки, фоны, сравнение — правки 23, 27, 24 ---------- */

/* ТЗ 23: компактные плитки — название сверху, фото на всю ширину без боковых отступов,
   параметры одной колонкой с оранжевым маркером (название полужирное + двоеточие + значение рядом),
   убрать рамку и добавить мягкую тень. */
#products .product { border: none; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05); }
#products .product:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08); }
#products .product h3 { order: -1; padding: 16px 16px 0; margin: 0 0 12px; font-size: 16.5px; line-height: 1.35; min-height: 0; }
#products .photo { height: auto; padding: 0; padding-bottom: 0; margin: 0 14px; aspect-ratio: 1; position: relative; }
#products .badge { top: 12px; left: 12px; }
#products .product-body { padding: 0 16px 16px; }
#products .specs { margin-bottom: 12px; font-size: 13px; }
#products .specs div { display: flex; gap: 6px; align-items: baseline; grid-template-columns: none; border: none; padding: 5px 0; }
#products .specs dt { position: relative; padding-left: 12px; font-weight: 700; color: #202124; }
#products .specs dt::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #f58200; }
#products .specs dt::after { content: ":"; }
#products .specs dd { margin: 0; text-align: left; white-space: normal; color: #55595f; }
#products .example-price { font-size: 13px; color: #6b6f76; margin-bottom: 10px; }
#products .product-actions { margin-top: auto; }
#products .product-actions .btn { padding: 10px 16px; font-size: 13.5px; min-width: 0; }

/* ТЗ 27: разные фоны подкатегорий (#F5F6F7) и фильтров (#FFF6EA). */
.subcats { background: #F5F6F7 !important; border-color: #e3e5e8 !important; }
.filters { background: #FFF6EA !important; border-color: #f1e3cd !important; }

@media (max-width: 700px) {
  #products .product h3 { font-size: 15.5px; padding: 14px 14px 0; }
  #products .photo { margin: 0 10px; }
  #products .product-body { padding: 0 14px 14px; }
  #products .specs { font-size: 12.5px; }
  #products .product-actions .btn { padding: 9px 14px; font-size: 13px; }
}

/* ТЗ 32: цвета кнопок и ссылок. Оранжевые кнопки — белый текст, обводочные — оранжевый текст #F58200.
   Текстовые ссылки (.textbtn: «Посмотреть все характеристики», «Полное описание», «Показать отличия») — оранжевые. */
.btn { color: #fff; }
.btn.outline, button.outline { color: #f58200; border-color: #f58200; }
.textbtn, a.textbtn { color: #f58200; }
.textbtn:hover, a.textbtn:hover { color: #e06a00; }
button.price { color: #f58200; }

/* Фото в плитках каталога: абсолютное позиционирование ссылки и картинки внутри .photo */
#products .photo a { 
  position: absolute; 
  inset: 14px; 
  display: block;
}
#products .photo img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

/* ТЗ 31: Компактное похожее оборудование — те же стили, что в каталоге */
#similar .photo a { 
  position: absolute; 
  inset: 14px; 
  display: block;
}
#similar .photo img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

/* Компактные характеристики и плитки в блоке "Похожее оборудование" */
#similar .product { 
  display: flex; 
  flex-direction: column; 
}
#similar .photo { 
  position: relative; 
  aspect-ratio: 4/3; 
  background: #fafbfc; 
  border-radius: 8px; 
  overflow: hidden; 
  margin-bottom: 12px;
}
#similar .specs { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  font-size: 13px; 
  line-height: 1.4; 
  margin-bottom: 12px;
}
#similar .specs > div { 
  display: flex; 
  justify-content: space-between; 
  gap: 8px;
}
#similar .specs dt { 
  color: #5d6168; 
  font-weight: 400;
}
#similar .specs dd { 
  color: #202124; 
  font-weight: 600; 
  margin: 0;
}

/* ---------- Версия 8 (2026-11-01): компактная форма заявки — ТЗ 25 ---------- */

/* Компактная форма: светлый фон, слева контакты + текст, справа поля формы. */
.compact-contact { background: #f5f6f7; padding: 42px 0; margin-top: 42px; }
.contact-grid { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 50px; align-items: start; }
.contact-info h2 { font-size: 28px; line-height: 1.3; margin: 0 0 16px; color: #202124; }
.contact-info > p { font-size: 15px; line-height: 1.6; color: #5d6168; margin: 0 0 24px; }
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.contact-item svg { flex: none; }
.contact-item a { color: #202124; font-size: 16px; font-weight: 600; text-decoration: none; }
.contact-item a:hover { color: #f58200; }
.compact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compact-form input:not([type=checkbox]):not([type=file]), .compact-form textarea { background: #fff; border: 1px solid #dfe2e6; border-radius: 4px; color: #202124; font-size: 14px; padding: 0 16px; height: 48px; }
.compact-form textarea { grid-column: 1 / -1; height: 80px; min-height: 80px; padding: 12px 16px; resize: vertical; }
.compact-form ::placeholder { color: #9ea3a9; }
.compact-form input:focus, .compact-form textarea:focus { border-color: #f58200; outline: none; }
.compact-form .attachment { grid-column: 1 / -1; font-size: 13px; color: #5d6168; margin: -4px 0; }
.compact-form .attachment summary { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.compact-form .attachment input { display: block; margin-top: 8px; font-size: 12px; }
.compact-consent { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: #5d6168; display: block; margin-top: 2px; }
.compact-consent input { margin: 0 6px 0 0; vertical-align: -2px; }
.compact-consent a { color: #f58200; text-decoration: none; }
.compact-consent a:hover { text-decoration: underline; }
.compact-form button { grid-column: 1 / -1; background: #f58200; color: #fff; border: 0; border-radius: 4px; font-size: 15px; font-weight: 600; padding: 13px 20px; min-height: 48px; cursor: pointer; }
.compact-form button:hover { background: #e06a00; }
.compact-form .notice { grid-column: 1 / -1; margin: -4px 0 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-info h2 { font-size: 24px; }
  .compact-form { grid-template-columns: 1fr; gap: 12px; }
  .compact-form input:not([type=checkbox]):not([type=file]), .compact-form textarea { font-size: 15px; }
}
/* Плавное переключение шапки при прокрутке */
.site-head { transition: all 0.25s ease; }
.head-full, .head-compact { transition: opacity 0.2s ease; }

/* Исправление обрезанного фото в плитках категории */
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
}

/* Сдвиг лупы в поиске правее */
.header-search button[type="submit"] {
    right: 10px !important;
}

/* Убрать левую лупу (оставить только правую) */
.header-search button[type="submit"]:first-of-type,
.header-search .search-icon:first-child {
    display: none !important;
}

/* Убрать левую лупу в шапке */
.navright .search > a i.icon-bikini60s_search {
    display: none !important;
}
/* ТЗ 29: Липкая галерея и компактный первый экран */

/* 1. Липкая галерея слева */
.card-gallery {
    position: sticky;
    top: 80px; /* под закреплённую шапку */
    align-self: flex-start;
}

/* 2. Бейдж "Под заказ" поверх фото */
.card-badge-custom-order {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f58200;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* Убрать отдельную строку бейджа справа */
.card-info .custom-order-separate {
    display: none;
}

/* 3. Основные характеристики — оранжевый маркер, без промежутков */
.card-specs li::before {
    content: "●";
    color: #f58200;
    font-weight: bold;
    display: inline-block;
    width: 12px;
    margin-right: 8px;
}

.card-specs li {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.card-specs .spec-name {
    font-weight: 600;
    margin-right: 0;
}

.card-specs .spec-name::after {
    content: ": ";
}

.card-specs .spec-value {
    text-align: left;
    flex: 1;
    word-wrap: break-word;
}

/* 4. Модификации компактные */
.card-modifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.card-modification {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.card-modification:not(.active) {
    background: #F5F6F7;
    color: #333;
}

.card-modification.active {
    background: #fff3e6;
    border: 2px solid #f58200;
    color: #f58200;
    font-weight: 600;
}

/* 5. Тип оборудования — ссылки в строку */
.equipment-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.equipment-types a {
    white-space: nowrap;
}

/* 6. Таблица характеристик — светло-серая заливка */
.card-specs-table tbody tr:nth-child(even) {
    background: #f5f6f7;
}

.card-specs-table {
    border-collapse: collapse;
    width: 100%;
}

.card-specs-table th,
.card-specs-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

/* 7. Скачать каталог — только если есть */
.download-catalog-btn[data-has-catalog="false"] {
    display: none;
}

/* Мобильная версия — отключить липкую галерею */
@media (max-width: 768px) {
    .card-gallery {
        position: relative;
        top: auto;
    }
}

/* Verified selectors for the current v3 templates, 2026-11-03. */
.hf-search::before { content: none; display: none; }
.hf-search input { padding-left: 14px; padding-right: 52px; }
#products .photo { width: calc(100% - 28px); height: 300px; aspect-ratio: auto; margin: 0 14px; }
#products .photo a { inset: 0; display: flex; align-items: center; justify-content: center; }
#products .photo img { width: 300px; max-width: 100%; height: 300px; object-fit: contain; object-position: center; }
#products .photo .badge { position: absolute; z-index: 2; top: 10px; left: 10px; }
.catalog-head .sort { white-space: nowrap; min-width: 0; }
.catalog-head .sort select { width: 260px; max-width: 100%; appearance: none; background-image: none; padding-right: 12px; text-overflow: ellipsis; }
.hero-title { text-align: center; font-weight: 600; }
.gallery-main { position: relative; padding-inline: 24px; }
.gallery-main img { object-fit: contain; object-position: center; max-width: 100%; }
.gallery-main .badge-over-photo { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hero-info .specs-with-marker > div { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 6px; border: 0; padding: 4px 0; }
.hero-info .specs-with-marker dt { position: relative; padding-left: 13px; font-weight: 600; color: #202124; }
.hero-info .specs-with-marker dt::before { content: ''; position: absolute; top: .55em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #E9A568; }
.hero-info .specs-with-marker dt::after { content: ':'; }
.hero-info .specs-with-marker dd { margin: 0; font-weight: 400; text-align: left; white-space: normal; }
.hero-package li::marker { color: #E9A568; }
.modifications-compact { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.modifications-compact .card-modification { display: flex; flex-direction: column; align-items: center; border: 1px solid #e0e3e7; padding: 7px 10px; }
.modifications-compact .card-modification.active { border-color: #f58200; }
.modifications-compact .card-modification span { font-size: 12px; }
@media (min-width: 901px) {
  #site-head:not(.scrolled) > .head-compact { display: none !important; }
  #site-head.scrolled > .head-compact { display: flex !important; }
  #site-head.scrolled > .head-full { display: none !important; }
  .sticky-gallery { position: sticky; top: 96px; align-self: start; }
}
@media (max-width: 900px) {
  #site-head > .head-full { display: none !important; }
  #site-head > .head-compact { display: grid !important; }
  .sticky-gallery { position: static; }
  .catalog-head .sort select { width: auto; min-width: 0; }
}

/* Final review: stable header, catalog and technical specification typography. */
#site-head, #site-head .head-full, #site-head .head-compact { transition: none; }
#site-head .cat-btn::after { content: none; display: none; }
#site-head .cat-btn { padding-right: 18px; }
#products .product > h3 { min-height: 44px; margin-bottom: 12px; }
#products .photo { box-sizing: border-box; overflow: hidden; }
#products .photo .badge { top: auto; bottom: 10px; left: 10px; }
#technical .card-specs-table tbody th { font-weight: 600; text-align: left; }
#technical .card-specs-table tbody td { font-weight: 400; text-align: left; }
#technical .card-specs-table thead th { text-align: left; }
.hero-info .specs-with-marker dt::before { background: #f58200; }
.modifications-compact .card-modification { min-width: 106px; gap: 4px; line-height: 1.45; text-align: center; }
.catalog-head { flex-wrap: wrap; }
.catalog-head .sort { max-width: 100%; flex-wrap: wrap; }
.catalog-head .sort select { width: auto; max-width: 100%; text-overflow: clip; padding: 10px 14px; }
@media (max-width: 600px) {
  .catalog-head .sort { width: 100%; }
  .catalog-head .sort select { width: 100%; font-size: 12px; }
}

#products .product > h3 { box-sizing: border-box; min-height: 80px; }

/* Company navigation: aligned chevron and comfortable dropdown. */
.hf-nav .nav-dropdown:not(.cat-dd)>summary{display:flex;align-items:center;gap:8px;padding:12px 0;}
.hf-nav .nav-dropdown:not(.cat-dd)>summary::after{content:'';display:block;width:6px;height:6px;margin:0 2px 3px 0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:inherit;transform:rotate(45deg);transition:transform .16s ease;}
.hf-nav .nav-dropdown:not(.cat-dd)[open]>summary::after{transform:translateY(3px) rotate(225deg);}
.hf-nav .nav-dropdown:not(.cat-dd)>.dropdown-panel{top:100%;margin-top:0;min-width:250px;padding:8px;border:1px solid #e9e9eb;border-radius:10px;box-shadow:0 12px 32px rgba(24,32,42,.12);z-index:50;}
.hf-nav .nav-dropdown:not(.cat-dd)>.dropdown-panel a{padding:11px 12px;border-radius:6px;line-height:1.4;transition:background .15s,color .15s;}
.hf-nav .nav-dropdown:not(.cat-dd)>.dropdown-panel a:hover,.hf-nav .nav-dropdown:not(.cat-dd)>.dropdown-panel a:focus-visible{background:#fff4e5;color:#c66a00;}
@media(prefers-reduced-motion:reduce){.hf-nav .nav-dropdown>summary::after,.hf-nav .dropdown-panel a{transition:none;}}

/* Reserve only the title height actually needed by each visible row. */
#products:not(.rows) .product > h3 { min-height:0; margin-bottom:12px; }

/* Full-width, equally sized catalog previews. */
#products:not(.rows) .photo {
  width:calc(100% - 24px);
  height:auto;
  aspect-ratio:1 / 1;
  margin:0 12px;
  padding:0;
  flex-shrink:0;
}
#products:not(.rows) .photo a {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
#products:not(.rows) .photo img {display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;}

/* Compact parameter lists in catalog tiles. */
#products:not(.rows) .specs { gap:4px; row-gap:4px; margin-top:0; margin-bottom:12px; }
#products:not(.rows) .specs > div { margin:0; padding-top:0; padding-bottom:0; line-height:1.4; }
#products:not(.rows) .specs dt,
#products:not(.rows) .specs dd { margin-top:0; margin-bottom:0; line-height:1.4; }

/* Comfortable compact spacing between parameters. */
#products:not(.rows) .specs > div { padding-top:2px; padding-bottom:2px; }

/* Fit each row to its actual image proportions; square previews stay square. */
#products:not(.rows) .photo { aspect-ratio:var(--listing-photo-ratio, 1); }
#products:not(.rows) .photo img { object-position:center top; }

/* Breathing room between catalog photos and specifications. */
#products:not(.rows) .product-body { padding-top:10px; }

/* Quiet specification typography; product titles retain emphasis. */
#products:not(.rows) .specs dt { font-weight:400; color:#6b6f76; }
#products:not(.rows) .specs dd { font-weight:400; color:#454950; }

/* Recommendations use the same tile presentation as category listings. */
#similar .product {display:flex;flex-direction:column;border:0;border-radius:8px;box-shadow:0 2px 12px #00000014,0 1px 3px #0000000d;overflow:hidden;background:#fff;}
#similar .product>h3 {order:-1;box-sizing:border-box;padding:16px 16px 0;margin:0 0 12px;min-height:0;font-size:16.5px;line-height:1.35;}
#similar .photo {position:relative;box-sizing:border-box;width:calc(100% - 24px);height:auto;aspect-ratio:var(--listing-photo-ratio,1);margin:0 12px;padding:0;background:#fff;flex-shrink:0;overflow:hidden;border-radius:0;}
#similar .photo a {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;}
#similar .photo img {display:block;width:100%;max-width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center top;}
#similar .photo .badge {position:absolute;z-index:2;top:auto;bottom:10px;left:10px;}
#similar .product-body {display:flex;flex-direction:column;flex:1;padding:10px 16px 16px;}
#similar .specs {display:block;margin:0 0 12px;font-size:13px;line-height:1.4;}
#similar .specs>div {display:flex;justify-content:flex-start;align-items:baseline;gap:6px;border:0;margin:0;padding:2px 0;line-height:1.4;}
#similar .specs dt {position:relative;padding-left:12px;margin:0;font-weight:400;color:#6b6f76;line-height:1.4;}
#similar .specs dt::before {content:'';position:absolute;left:0;top:8px;width:5px;height:5px;border-radius:50%;background:#f58200;}
#similar .specs dt::after {content:':';}
#similar .specs dd {margin:0;font-weight:400;color:#454950;text-align:left;white-space:normal;line-height:1.4;}
#similar .product-actions {margin-top:auto;}
#similar .product-actions .btn {padding:10px 16px;font-size:13.5px;min-width:0;}
#similar .carousel-track {padding:6px 2px 12px;}
@media(max-width:600px){#similar .product>h3{font-size:15.5px;padding:14px 14px 0;}#similar .product-body{padding:10px 14px 14px;}#similar .specs{font-size:12.5px;}}

/* Reserve the final recommendation photo geometry before lazy images load. */
#similar .photo { aspect-ratio:4 / 3; }
#similar .photo img { object-position:center center; }

/* ------------------------------------------------------------------
   Публикация v3 на обычных страницах: каркас новый, старые страницы
   сохраняют свою вёрстку, но компенсации под фиксированную шапку и
   дубли хлебных крошек убираем — их теперь даёт общая шапка.
   ------------------------------------------------------------------ */
.yv3-legacy-shell .breadcrumb_area { display: none !important; }
.yv3-legacy-shell .body_wrapper > br { display: none; }
.yv3-legacy-shell .yumz-contact-intro { padding-top: 32px !important; }
body:not(.home).yv3-legacy-shell .pt_200 { padding-top: 40px !important; }
@media (max-width: 767px) {
  .yv3-legacy-shell .yumz-contact-intro { padding-top: 18px !important; }
  body:not(.home).yv3-legacy-shell .pt_200 { padding-top: 26px !important; }
}


/* Старый прелоадер Pace рисовал вторую полоску поверх новой плашки загрузки. */
.pace { display: none !important; }

/* Старый аккордеон главной: bootstrap-кнопка .btn-link не должна
   наследовать оранжевый .btn из category.css (только старые страницы). */
.yv3-legacy-shell .btn-link {
  display: inline-block !important;
  justify-content: flex-start !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Шапка и подвал нового каркаса свёрстаны под Arial; старые страницы
   используют Montserrat, и на телефоне шапка из-за него расползалась. */
.site-head, .m-nav, .site-footer, .site-footer input, .site-head button, .site-head input,
.site-head a, .m-nav a, .site-footer a { font-family: Arial, Helvetica, sans-serif; }
