/*
Theme Name: Metmasheng
Theme URI: https://www.metmashengineering.ru/
Description: Тема сайта ООО «МЕТАЛЛУРГМАШ Инжиниринг». Перенос дизайна с Bitrix-шаблона metmasheng_rus без jQuery и таблиц.
Version: 1.0.0
Author: metmashengineering.ru
Text Domain: metmasheng
*/

/* ---------- base (ported from template_styles.css) ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
    background: #aeaeae;
    color: #000;
}
p {
    font-size: 9pt;
    text-align: justify;
    margin: 0 8pt 9pt 8pt;
    color: #000;
    line-height: 1.6;
}
ul, ol {
    font-size: 9pt;
    color: #000;
    line-height: 1.6;
    text-align: left;
    margin: 0 15px 10px 25px;
    padding: 0;
    list-style-type: none;
    list-style-image: url(assets/img/list_mark_orange.png);
}
li { margin: 0; padding: 0 0 10px 0; }
h1, h2 {
    border-radius: 10px 10px 0 0;
    background: #aeaeae;
    margin: 0 0 10px 0;
    padding: 0 10px;
    font-size: 10pt;
    font-weight: bold;
    color: #fff;
    text-align: left;
    line-height: 1.6;
}
h3 {
    font-size: 10pt;
    color: #f7881f;
    text-align: left;
    padding: 0 10px 10px 10px;
    margin: 0;
}
img { border-style: none; max-width: 100%; height: auto; }
strong { color: rgba(247, 136, 31, 0.70); }
img.management { border-right: 1px solid #9c9e9f; border-bottom: 1px solid #9c9e9f; }
img.service_list { border: 1px solid #cfcfcf; border-radius: 10px; }
table {
    font-size: 9pt;
    line-height: 1.6;
    color: #000;
    border-collapse: collapse;
    padding: 0;
    margin: 0;
}
table.reference { background: #fbfbe3; }
table.decisions { background: #fbfbe3; margin: 0 10px; }
table.decisions_features, table.decisions_prefeng { margin: 0 10px; }
table.foundry { background: #fbfbe3; margin: 0 10px; text-align: center; }
table.foundry td.white { background: #fff; width: 4px; height: 141px; }
table.foundry tr.equipment {
    font-size: 11pt; font-weight: bold; background: #f7881f; color: #fff;
    text-transform: uppercase; height: 40px;
}
tr.reference_head {
    background: rgba(247, 136, 31, 0.50); color: #fffffb; font-weight: bold; text-transform: uppercase;
}
tr.decisions_head {
    background: rgba(247, 136, 31, 0.50); color: #fffffb; font-weight: bold;
    text-transform: uppercase; text-align: center;
}
tr.decisions_line1 { background: #fbfbe3; }
table.decisions h3 { font-size: 12pt; color: #f7881f; text-align: center; text-transform: uppercase; padding: 0; margin: 0; }
table.decisions_features h3 { font-size: 12pt; color: #f7881f; text-transform: uppercase; padding: 0; margin: 0; }
table.decisions_prefeng h3 { font-size: 9pt; color: #f7881f; padding: 0; margin: 0; }
table.decisions div.head { font-size: 10pt; color: #f7881f; padding: 0 10px 10px 10px; margin: 0; text-align: center; }
td.minimills { background: #ededd5; }
ul.orange { margin: 0 15px 5px 15px; padding: 0; list-style-type: none; list-style-image: url(assets/img/list_mark_orange.png); }
span.orange { color: rgba(247, 136, 31, 0.70); font-weight: bold; }
a { color: #3b549f; text-decoration: none; }
a:hover { color: #3b549f; text-decoration: underline; }
a.topmenu { color: inherit; text-decoration: none; font-weight: bold; }
a.mainpage_service, a.mainpage_service:hover { color: inherit; text-decoration: none; }
dd { margin: 0; padding: 0; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- layout (998px, as in the original) ---------- */
.site { width: 998px; margin: 0 auto; }

.site-header {
    position: relative;
    height: 210px;
    background: url(assets/img/header.jpg) no-repeat;
}
.header-icons {
    position: absolute; left: 850px; top: 2px; font-size: 9pt; color: #000; line-height: 1;
}
.header-icons a { color: #000; margin-right: 10px; vertical-align: middle; }
.header-icons img { vertical-align: middle; }
.site-logo { position: absolute; left: 49px; top: 15px; }
.site-logo img { width: 190px; height: 190px; }
.site-search { position: absolute; left: 20px; top: 178px; z-index: 5; }
.site-search form { display: flex; align-items: center; gap: 4px; margin: 0; }
.site-search input[type="search"] {
    width: 150px; font-size: 7pt; padding: 2px 3px; border: 1px solid #d9d9d9; background: #fff;
}
.site-search button { border: 0; padding: 0; background: none; cursor: pointer; line-height: 0; }

/* top navigation (ported from stylemenu.css) */
.topnav { position: absolute; left: 280px; top: 165px; font-size: 9pt; color: #fffffb; }
#nav { float: left; list-style: none; margin: 0; padding: 0; z-index: 300; }
#nav li { float: left; margin: 0; padding: 0; position: relative; display: block; font-size: 10pt; z-index: 300; }
#nav > li + li { padding-left: 12px; background: url(assets/img/menu_line.png) no-repeat 5px 15px; }
#nav li a { display: block; margin: 13px 4px 0 4px; color: #fff; text-decoration: none; font-weight: bold; text-transform: lowercase; }
#nav li a:hover { color: #234189; }
#nav ul {
    list-style: none; position: absolute; left: -9999px; opacity: 0; margin: 0; padding: 0;
    transition: 0.25s linear opacity;
}
#nav ul li { float: none; padding: 0; background: none; }
#nav ul a {
    white-space: nowrap; font-size: 8pt; display: block; padding: 3px 17px 3px 7px; margin: 0;
    background: #f7881f; font-weight: normal; text-transform: none;
}
#nav ul a::before { content: ""; display: inline-block; width: 5px; height: 7px; margin-right: 4px; background: url(assets/img/pic_yellow.gif) no-repeat; }
#nav li:hover ul, #nav li:focus-within ul, #nav li.open ul { padding-top: 13px; left: -26px; opacity: 1; }
#nav > li + li:hover ul, #nav > li + li:focus-within ul, #nav > li + li.open ul { left: -14px; }
#nav li:hover > a, #nav li:focus-within > a { background: rgba(247, 136, 31, 0.95); text-decoration: none; }
#nav li:hover ul a { text-decoration: none; }
#nav li:hover ul li a:hover { color: #234189; background: rgba(247, 136, 31, 0.95); text-decoration: none; }

/* body */
.site-body { display: flex; align-items: stretch; background: url(assets/img/bg_wrap.jpg) repeat-y; }
.site-aside { width: 215px; flex: 0 0 215px; box-sizing: border-box; }
.site-main { flex: 1 1 auto; min-width: 0; }
div.leftmenu { margin: 15px 10px 10px 10px; }
div.content { margin: 20px; }
div.content > h1:first-child { margin-top: 0; }

div.roundborder { border: 1px solid #cfcfcf; border-radius: 10px; padding: 3px; margin-top: 10px; }
div.roundborder_inline { background: #cfcfcf; border-radius: 10px; padding: 0; margin: 0; }
div.roundborder_inline p { padding: 0 10px; margin: 0; font-size: 8pt; text-align: left; }
div.roundborder_inline div.news_main { padding: 0 10px; margin: 0; font-size: 8pt; text-align: left; }
div.roundborder_inline div.news_main div.date { font-size: 6pt; font-weight: bold; }
div.roundborder_inline div.news_main div.text { padding: 0 0 15px 0; }
div.roundborder_inline div.news_main a, div.roundborder_inline div.news_main a:hover { color: #000; }
ul.left-menu { margin: 0 10px 10px 10px; padding: 0; list-style: none; font-size: 8pt; }
ul.left-menu li { padding: 0 0 8px 0; }
ul.left-menu a { color: #000; }
ul.left-menu a.selected { color: #f7881f; font-weight: bold; }
.associations { text-align: center; }
.associations img { margin: 4px 0; }

div.inline_block { padding: 10px; margin: 0; }
div.inline_block p { margin: 0; padding: 0 0 9pt 0; }
div.services a, div.services a:hover { color: #f7881f; text-decoration: none; }
div.rnd_list { margin: 0; padding: 10px; text-align: justify; }
div.rnd_list a, div.rnd_list a:hover { font-style: italic; text-decoration: none; }
div.rnd_detail h2 { background: #fff; text-align: justify; font-size: 10pt; font-weight: bold; color: #aeaeae; padding: 0 10px 20px 10px; margin: 0; }
div.decisions { padding-left: 10px; }
div.decisions a, div.decisions a:hover { color: #f7881f; text-decoration: none; }
div.decisions_detail h2 { background: #fff; font-size: 10pt; color: #f7881f; text-align: left; padding: 0 10px 10px 10px; margin: 0; }
div.articles { padding-left: 0; }
div.articles a, div.articles a:hover { color: #f7881f; text-decoration: none; }
div.articles div.preview { padding-bottom: 10px; }
div.specialist { font-size: 14pt; color: #aeaeae; text-align: center; padding: 10px 0 0 0; }
div.phone { font-size: 22pt; color: #f7881f; text-align: center; }
div.foundry { width: 354px; border: 1px solid #cfcfcf; border-radius: 10px; padding: 10px 0 0 0; margin: 0 0 0 10px; float: left; text-align: center; }
div.foundry div.head { border: 1px solid #cfcfcf; border-radius: 0 0 7px 7px; background: #cfcfcf; font-size: 12pt; color: #fff; text-transform: uppercase; font-weight: bold; }
div.news { margin-left: 10px; }
div.news div.date { font-size: 6pt; color: #f7881f; }
div.news div.text { margin: 0 0 10px 0; }
div.news_detail div.news_copyright { font-size: 8pt; text-align: right; padding: 10px 10px 0 0; font-style: italic; color: #aeaeae; }
div.news_detail div.date { font-size: 7pt; margin-right: 10px; text-align: right; color: #aeaeae; }
div.news_detail div.backlist, div.articles_detail div.backlist { margin: 10px; }
div.news_detail div.backlist a, div.articles_detail div.backlist a { font-size: 7pt; color: #f7881f; }
div.articles_detail div.authors { font-size: 7pt; margin: 0 10px 10px 10px; text-align: left; color: #aeaeae; }
div.articles_detail div.source { font-size: 8pt; text-align: right; padding: 10px 10px 0 0; font-style: italic; color: #aeaeae; }
.hr-gray { background: url(assets/img/pic_gray.gif) repeat-x; height: 1px; margin: 10px 10px 10px 0; }
.service-list-item { display: flex; gap: 10px; align-items: flex-start; }
.service-list-item .pic { flex: 0 0 auto; }
.service-list-item .pic img { width: 90px; height: 90px; object-fit: cover; }
.service-list-item .pic img.w70 { width: 70px; height: 70px; }
.service-list-item .txt { flex: 1 1 auto; min-width: 0; }
.list-arrow { display: inline-block; width: 9px; height: 9px; background: url(assets/img/arrow_orange.gif) no-repeat; vertical-align: baseline; }
.back-arrow { display: inline-block; width: 9px; height: 9px; background: url(assets/img/arrow_orange_back.gif) no-repeat; vertical-align: baseline; }

/* pagination */
.pagination { font-size: 8pt; margin: 10px; }
.pagination .page-numbers { display: inline-block; padding: 2px 6px; margin-right: 3px; border: 1px solid #cfcfcf; border-radius: 4px; color: #3b549f; }
.pagination .page-numbers.current { background: #f7881f; color: #fff; border-color: #f7881f; }
.pagination .page-numbers.dots { border: 0; }

/* search results */
.search-results-list .search-item { margin: 0 8pt 12px 8pt; font-size: 9pt; line-height: 1.6; }
.search-results-list .search-item .where { font-size: 7pt; color: #aeaeae; }

/* accordion (ported from accordeon.css; JS in assets/js/main.js) */
.accordeon { margin: 0 auto; }
.accordeon-caption {
    background: rgba(247, 136, 31, 0.80); color: #fffffb; cursor: pointer; font-size: 14px; margin: 5px 0;
    padding: 5px 20px; position: relative; border-radius: 10px; text-align: left; user-select: none;
}
.accordeon-caption::before { content: '\25BC'; position: absolute; right: 5px; }
.accordeon-caption span { border-bottom: 1px dotted #000; }
.accordeon-content { overflow: hidden; }
.accordeon-content[hidden] { display: none; }

/* lightbox for a.group / a.lightbox (replaces fancybox) */
.mmi-lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out; }
.mmi-lightbox figure { margin: 0; background: #fff; padding: 10px; border-radius: 6px; max-width: 92vw; max-height: 92vh; box-shadow: 0 0 20px rgba(0, 0, 0, 0.6); position: relative; }
.mmi-lightbox img { max-width: 90vw; max-height: 80vh; display: block; }
.mmi-lightbox figcaption { font-size: 9pt; padding: 8px 0 0; text-align: center; color: #333; }
.mmi-lightbox .close { position: absolute; top: -15px; right: -15px; width: 30px; height: 30px; background: url(assets/img/fancy_closebox.png) no-repeat; border: 0; cursor: pointer; }

/* footer */
.site-copyright { display: flex; height: 50px; background: url(assets/img/copyright.jpg); font-size: 7pt; color: #fffffb; }
.site-copyright .left { width: 230px; padding: 10px 0 0 15px; text-align: left; }
.site-copyright .left div + div { padding-left: 40px; }
.site-copyright .right { flex: 1; text-align: right; padding: 4px 30px 0 0; }
.site-footer { position: relative; height: 18px; background: url(assets/img/footer.jpg) no-repeat; }
.site-footer .social { position: absolute; right: 30px; bottom: 7px; display: flex; gap: 6px; align-items: center; }
.site-footer .social img { width: 20px; height: 20px; }
.site-footer .lines { position: absolute; right: 80px; bottom: 5px; }
.site-footer .lines div { background: url(assets/img/pic_gray.gif) repeat-x; height: 2px; margin: 0 0 5px 0; margin-left: auto; }
.site-footer .lines div:nth-child(1) { width: 620px; }
.site-footer .lines div:nth-child(2) { width: 650px; }
.site-footer .lines div:nth-child(3) { width: 680px; margin-bottom: 0; }

/* front page blocks reuse original inline markup; keep the overlay cards readable */
.front-tiles td { vertical-align: top; }

/* narrow screens: the original was fixed 998px; keep it usable on phones */
@media (max-width: 1020px) {
    .site { width: 100%; }
    .site-header { background-size: cover; }
    .site-body { flex-direction: column; background: #fff; }
    .site-aside { width: auto; flex-basis: auto; }
    .topnav { left: 200px; }
    .header-icons { left: auto; right: 10px; }
    .site-copyright { flex-direction: column; height: auto; padding-bottom: 6px; }
    .site-copyright .right { text-align: left; padding: 4px 15px; }
    div.content table, div.content img { max-width: 100%; }
}
