/*
Theme Name: Mcomplex Archive
Theme URI: https://mcomplex.ru/
Author: Mcomplex
Description: Восстановленная тема ООО «Металлокомплекс» по архивной версии 2022 года.
Version: 1.5.0
Text Domain: mcomplex
*/

:root { --mcx-blue:#243b72; --mcx-red:#d52b31; --mcx-dark:#17223d; --mcx-light:#f4f6fa; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:#333; background:#fff; font-family:Arial,Helvetica,sans-serif; line-height:1.55; }
a { color:var(--mcx-blue); text-decoration:none; }
a:hover { color:var(--mcx-red); }
img { max-width:100%; height:auto; }
.container { width:min(1140px,calc(100% - 32px)); margin-inline:auto; }
.site-header { position:sticky; top:0; z-index:50; color:#fff; background:rgba(26,46,91,.98); box-shadow:0 2px 10px rgba(0,0,0,.3); }
.topline { border-bottom:1px solid rgba(255,255,255,.16); font-size:13px; }
.topline .container { display:flex; justify-content:flex-end; gap:22px; padding:7px 0; }
.topline a { color:#fff; }
.nav-row { min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand img { display:block; width:205px; max-height:62px; object-fit:contain; }
.main-nav ul { display:flex; align-items:center; gap:2px; margin:0; padding:0; list-style:none; }
.main-nav a { display:block; padding:28px 12px; color:#fff; font-size:15px; text-transform:uppercase; }
.main-nav a:hover { color:#fff; background:var(--mcx-red); }
.menu-toggle { display:none; color:#fff; border:1px solid rgba(255,255,255,.5); background:none; padding:9px 12px; }
.hero { position:relative; height:400px; overflow:hidden; color:#fff; background:#111; }
.hero-slide { position:absolute; inset:0; opacity:0; background-position:center; background-size:cover; transition:opacity .7s; }
.hero-slide.active { opacity:1; }
.hero-slide::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,15,30,.72) 0%,rgba(8,15,30,.38) 58%,rgba(8,15,30,.16) 100%); }
.hero-copy { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; height:100%; padding-left:38px; padding-right:90px; }
.hero h2 { max-width:720px; margin:0 0 18px; color:#fff; font-size:44px; font-weight:600; line-height:1.12; letter-spacing:-.02em; text-shadow:0 2px 14px rgba(0,0,0,.55); }
.hero p { max-width:680px; margin:0; color:rgba(255,255,255,.94); font-size:20px; line-height:1.5; text-shadow:0 1px 5px rgba(0,0,0,.65); }
.hero-arrow { position:absolute; z-index:3; top:50%; width:44px; height:68px; padding:0; color:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.14); border-radius:3px; background:rgba(5,12,25,.12); font:300 48px/58px Arial,sans-serif; opacity:.56; transform:translateY(-50%); transition:opacity .2s,background .2s; }
.hero-arrow:hover,.hero-arrow:focus-visible { color:#fff; background:rgba(5,12,25,.3); opacity:1; }
.hero-prev { left:18px; }
.hero-next { right:18px; }
.hero-dots { position:absolute; z-index:2; bottom:18px; left:50%; display:flex; gap:8px; transform:translateX(-50%); }
.hero-dot { width:11px; height:11px; padding:0; border:1px solid #fff; border-radius:50%; background:transparent; }
.hero-dot.active { background:#fff; }
.section { padding:55px 0; }
.section.alt { background:var(--mcx-light); }
h1,h2,h3,h4 { color:#2d3444; line-height:1.25; }
h1 { margin:0 0 28px; font-size:34px; font-weight:500; }
h2 { margin:0 0 24px; font-size:29px; font-weight:500; }
.title-line::after { content:""; display:block; width:74px; height:3px; margin-top:12px; background:var(--mcx-red); }
.about-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:42px; align-items:center; }
.about-visual { min-height:280px; border-radius:3px; background:url('assets/images/slider/slide1.jpg') center/cover; box-shadow:0 4px 18px rgba(0,0,0,.22); }
.btn-mcx { display:inline-block; margin-top:15px; padding:11px 21px; color:#fff; border-radius:2px; background:var(--mcx-red); }
.btn-mcx:hover { color:#fff; background:#b31f25; }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.product-card { overflow:hidden; min-height:100%; background:#fff; border:1px solid #dfe3ea; border-radius:3px; box-shadow:0 2px 9px rgba(0,0,0,.08); }
.product-card img { display:block; width:100%; height:220px; object-fit:cover; }
.product-card-body { width:88%; max-width:440px; margin:0 auto; padding:30px 0 36px; }
.product-card h3 { margin:0 0 18px; padding:0; font-size:21px; line-height:1.3; text-align:center; }
.product-card h3 a { color:var(--mcx-blue); }
.product-card p { margin:0; color:#4b4f58; font-size:15px; line-height:1.7; text-align:left; }
.news-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.news-card { padding:24px; border-top:4px solid var(--mcx-blue); background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.08); }
.news-date { color:#777; font-size:14px; }
.contacts { display:grid; grid-template-columns:1fr 1fr; gap:45px; }
.contact-box { padding:30px; color:#fff; background:var(--mcx-blue); }
.contact-box h2,.contact-box a { color:#fff; }
.site-footer { padding:38px 0 22px; color:#dbe2f2; background:#16254a; }
.footer-grid { display:grid; grid-template-columns:1.3fr .8fr .9fr; gap:35px; }
.site-footer h3 { color:#fff; }
.site-footer a { color:#fff; }
.copyright { margin-top:28px; padding-top:20px; border-top:1px solid rgba(255,255,255,.14); font-size:13px; }
.cookie-settings-link { padding:0; color:#c8d1e5; border:0; border-bottom:1px dotted currentColor; background:none; font:inherit; cursor:pointer; }
.cookie-banner { position:fixed; z-index:10000; right:22px; bottom:22px; left:22px; display:none; }
.cookie-banner.is-visible { display:block; }
.cookie-banner-inner { display:flex; align-items:center; justify-content:space-between; gap:26px; width:min(1120px,100%); margin:0 auto; padding:22px 24px; color:#f6f8fc; border:1px solid rgba(255,255,255,.12); border-radius:8px; background:rgba(23,34,61,.97); box-shadow:0 12px 38px rgba(0,0,0,.3); }
.cookie-copy { max-width:720px; }
.cookie-copy strong { display:block; margin-bottom:6px; color:#fff; font-size:18px; }
.cookie-copy p { margin:0; color:#dce2ef; font-size:14px; line-height:1.55; }
.cookie-copy a { color:#fff; text-decoration:underline; text-underline-offset:3px; }
.cookie-actions { display:flex; flex-shrink:0; gap:10px; }
.cookie-btn { min-height:42px; padding:10px 17px; border:1px solid rgba(255,255,255,.42); border-radius:4px; background:transparent; color:#fff; font-weight:600; cursor:pointer; }
.cookie-btn-primary { border-color:var(--mcx-red); background:var(--mcx-red); }
.cookie-btn:hover,.cookie-btn:focus-visible { border-color:#fff; outline:2px solid rgba(255,255,255,.35); outline-offset:2px; }
.content-wrap { min-height:55vh; padding:50px 0; }
.entry-content { max-width:880px; font-size:17px; }
.entry-content img { border-radius:3px; }
.entry-content .row { display:flex; flex-wrap:wrap; gap:24px 0; margin:0 -12px; }
.entry-content [class*="col-"] { width:100%; padding:0 12px; }
.entry-content .card { height:100%; overflow:hidden; border:1px solid #dfe3ea; border-radius:3px; background:#fff; box-shadow:0 2px 9px rgba(0,0,0,.08); }
.entry-content .card-body,.entry-content .card-header,.entry-content .card-footer { padding:16px; }
.entry-content .card-img-top { display:block; width:100%; }
.entry-content table { width:100%; border-collapse:collapse; }
.entry-content td,.entry-content th { padding:9px 12px; border:1px solid #dfe3ea; }
@media (min-width:700px) { .entry-content .col-md-4,.entry-content .col-lg-4 { width:33.333%; } .entry-content .col-md-6,.entry-content .col-lg-6 { width:50%; } }
@media (max-width:900px) {
  .menu-toggle { display:block; }
  .main-nav { display:none; position:absolute; top:100%; right:0; left:0; background:var(--mcx-blue); }
  .main-nav.open { display:block; }
  .main-nav ul { display:block; }
  .main-nav a { padding:14px 20px; border-top:1px solid rgba(255,255,255,.1); }
  .about-grid,.contacts { grid-template-columns:1fr; }
  .cards { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .topline { display:none; }
  .nav-row { min-height:67px; }
  .brand img { width:160px; }
  .hero { height:330px; }
  .hero-copy { padding:0 58px; }
  .hero h2 { font-size:29px; }
  .hero p { font-size:16px; }
  .hero-arrow { width:34px; height:56px; font-size:38px; line-height:48px; }
  .hero-prev { left:8px; }
  .hero-next { right:8px; }
  .section { padding:40px 0; }
  .cards,.news-grid { grid-template-columns:1fr; }
  .cookie-banner { right:10px; bottom:10px; left:10px; }
  .cookie-banner-inner { display:block; padding:18px; }
  .cookie-actions { display:grid; margin-top:15px; }
}
