/* ============================================================
   Детали Трубопроводов — detalitrubi.ru
   Static rebuild (no WordPress). Design matches the original
   Revo/Elementor theme: orange #FF6405, Roboto/Raleway/Arial.
   ============================================================ */

:root {
  --orange: #ff6405;
  --orange-dark: #e55a00;
  --dark: #222;
  --text: #555;
  --light: #f2f2f2;
  --border: #e5e5e5;
  --card-shadow: 0 0 10px rgba(111, 110, 110, .5);
  --radius: 10px;
  --container: 1170px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: 'Roboto', 'Open Sans', Arial, sans-serif; font-weight: 500; line-height: 1.3; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 15px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--orange);
  cursor: pointer;
  text-align: center;
  transition: all .25s;
  line-height: 1;
}
.btn-solid { background: var(--orange); color: #fff; }
.btn-solid:hover { background: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- topbar ---------- */
.topbar { background: var(--light); padding: 8px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-note { color: var(--orange); font-weight: bold; text-transform: uppercase; font-size: 12px; letter-spacing: .3px; }

/* ---------- header ---------- */
.site-header { background: #fff; padding: 18px 0; position: relative; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-left { flex: 0 0 auto; }
.logo { display: block; }
.logo img { width: 220px; height: auto; }
.header-contact { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dark); }
.header-contact .hc-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--orange); display: flex; align-items: center; justify-content: center;
}
.header-contact .hc-icon svg { width: 22px; height: 22px; fill: var(--orange); }
.header-contact .hc-lines { line-height: 1.5; }
.header-contact a.phone { color: var(--orange); font-weight: bold; }
.header-contact a.mail { color: var(--dark); }
.header-contact a.mail:hover, .header-contact a.phone:hover { color: var(--orange-dark); }

.header-contact a.wa-inline {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid #25d366;
  border-radius: 99px;
  color: #1da851;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.5;
  vertical-align: 1px;
}
.header-contact a.wa-inline:hover { background: #25d366; color: #fff; }

/* clipboard confirmation for email links */
.copy-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(12px);
  z-index: 200; background: var(--dark); color: #fff;
  padding: 11px 20px; border-radius: 6px; font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.copy-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* products dropdown */
.nav-products { position: relative; }
.nav-toggle {
  display: flex; align-items: center; gap: 40px;
  background: var(--orange); color: #fff; border: 0; cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif; font-size: 14px; font-weight: 500;
  text-transform: uppercase; padding: 14px 20px; border-radius: 6px; min-width: 210px;
}
.nav-toggle:hover { background: var(--orange-dark); }
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; margin-right: 12px; }
.nav-toggle .bars span { display: block; width: 18px; height: 2px; background: #fff; }
.nav-toggle .caret { margin-left: auto; transition: transform .2s; }
.nav-products.open .nav-toggle .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
  background: #fff; min-width: 340px; max-height: 70vh; overflow: auto;
  border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.nav-products.open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a {
  display: block; padding: 10px 18px; color: var(--dark); font-size: 13px;
  border-bottom: 1px solid #f3f3f3;
}
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:hover { background: #fff4ec; color: var(--orange); padding-left: 24px; }

/* ---------- hero slider ---------- */
.hero { position: relative; overflow: hidden; background: #1a1a1a; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; z-index: 1;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; position: relative; z-index: 2; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 90px 15px; text-align: center; }
.hero-pre {
  color: #fff; font-family: 'Roboto', Arial, sans-serif; font-size: 20px;
  letter-spacing: 2px; margin-bottom: 18px; text-transform: uppercase;
}
.hero-title {
  color: #fff; font-family: 'Raleway', 'Roboto', Arial, sans-serif; font-weight: 800;
  font-size: 52px; line-height: 1.15; letter-spacing: 5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-sub {
  color: #fff; font-family: 'Roboto', Arial, sans-serif; font-size: 24px;
  letter-spacing: 1px; margin-bottom: 30px;
}
.hero .btn { font-size: 15px; padding: 14px 34px; }
.hero-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--orange); border-color: var(--orange); }

/* ---------- feature boxes (direct supply / retail) ---------- */
.features { padding: 34px 0 10px; }
.features .container { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.feature-box {
  flex: 1 1 340px; max-width: 480px; background: #fff; border-radius: 4px;
  box-shadow: var(--card-shadow); padding: 22px 28px; text-align: center;
}
.feature-box svg { width: 34px; height: 34px; fill: var(--orange); margin-bottom: 10px; }
.feature-box h3 {
  font-size: 13px; font-weight: 700; color: var(--dark);
  text-transform: uppercase; letter-spacing: .4px;
}

/* ---------- generic sections ---------- */
.section { padding: 34px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head .st1 {
  color: var(--orange); font-size: 28px; font-weight: 500; text-transform: uppercase;
  margin-bottom: 6px;
}
.section-head .st2 { color: var(--orange); font-size: 24px; font-weight: 500; }
.intro-text { padding: 26px 0 4px; }
.intro-text p { text-align: justify; margin-bottom: 14px; }
.intro-text strong { color: var(--dark); }

/* ---------- product cards ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.card {
  flex: 0 1 262px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 18px 14px; text-align: center;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(111,110,110,.55); }
.card-img { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-img img { max-height: 150px; width: auto; max-width: 100%; }
.card-title {
  display: block; color: var(--orange); font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px; font-weight: 700; text-transform: uppercase; line-height: 1.35;
  margin-bottom: 10px; min-height: 38px;
}
a.card-title:hover { color: var(--orange-dark); }
.card-specs { flex: 1 1 auto; font-size: 13px; color: var(--text); margin-bottom: 14px; }
.card-specs .lbl { display: block; color: var(--dark); font-weight: bold; margin-top: 8px; }
.card-specs .val { display: block; }
.card .btn { align-self: center; }

/* ---------- about ---------- */
.about { padding: 40px 0 10px; }
.about h2 { color: var(--orange); font-size: 30px; font-weight: 400; text-transform: uppercase; margin-bottom: 18px; }
.about-grid { display: flex; gap: 40px; align-items: flex-start; }
.about-col-text { flex: 1 1 55%; }
.about-col-side { flex: 1 1 45%; }
.about p { text-align: justify; margin-bottom: 14px; }
.about strong { color: var(--dark); }
.about h3.sub { color: var(--orange); font-size: 18px; font-weight: 500; text-transform: uppercase; margin: 18px 0 10px; }
.about h3.sub-sm { color: var(--orange); font-size: 16px; font-weight: 500; text-transform: uppercase; margin: 16px 0 10px; }
.about ul { margin: 0 0 14px; }
.about ul li { margin-bottom: 10px; padding-left: 16px; position: relative; text-align: justify; }
.about ul li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.about-col-side img { border-radius: 4px; width: 100%; }

/* ---------- advantages ---------- */
.advantages { padding: 30px 0 40px; }
.advantages h2 { color: var(--orange); font-size: 22px; font-weight: 500; text-transform: uppercase; margin-bottom: 24px; }
.adv-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.adv-box {
  flex: 1 1 220px; background: #fff; border-radius: 4px; border: 1px solid var(--border);
  box-shadow: 0 0 8px rgba(111,110,110,.25); padding: 26px 20px; text-align: center;
}
.adv-box .adv-icon { height: 92px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.adv-box .adv-icon svg, .adv-box .adv-icon img { width: 84px; height: 84px; }
.adv-box h3 { color: var(--orange); font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.adv-box p { font-size: 13px; }

/* ---------- cooperation ---------- */
.coop { padding: 6px 0 40px; }
.coop h2 { color: var(--orange); font-size: 22px; font-weight: 500; text-transform: uppercase; margin-bottom: 16px; }
.coop p { text-align: justify; margin-bottom: 12px; }
.coop strong { color: var(--dark); }

/* ---------- orange strip (КУПИТЬ ЛЕГКО) ---------- */
.buy-easy { background: var(--orange); color: #fff; padding: 30px 0; }
.buy-easy .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.buy-easy .be-title { font-weight: bold; text-transform: uppercase; font-size: 15px; letter-spacing: .5px; flex: 0 0 auto; margin-right: auto; }
.be-items { display: flex; gap: 34px; flex-wrap: wrap; }
.be-item { display: flex; align-items: center; gap: 12px; }
.be-item .be-icon {
  width: 40px; height: 40px; border: 0; display: flex; align-items: center; justify-content: center;
}
.be-item .be-icon svg { width: 30px; height: 30px; fill: #fff; }
.be-item .be-label { font-size: 12px; font-weight: bold; text-transform: uppercase; line-height: 1.4; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; color: #ccc;
  background: #141414 url('../img/footer-flancy.webp') center/cover no-repeat;
}
.site-footer::before { content: ''; position: absolute; inset: 0; background: rgba(8,8,8,.82); }
.footer-inner { position: relative; z-index: 1; padding: 46px 0 40px; }
.footer-inner .container { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-contacts { flex: 1 1 380px; }
.footer-contacts h3 { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 22px; }
.fc-row { display: flex; gap: 14px; margin-bottom: 16px; font-size: 13px; }
.fc-ico {
  flex: 0 0 30px; width: 30px; height: 30px; background: #2b2b2b; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.fc-ico svg { width: 14px; height: 14px; fill: #fff; }
.fc-row a { color: var(--orange); }
.footer-map { flex: 1 1 420px; min-width: 300px; }
.footer-map iframe { width: 100%; height: 240px; border: 0; border-radius: 6px; display: block; }
.footer-copy {
  position: relative; z-index: 1; background: rgba(0,0,0,.55);
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; padding: 14px 10px; font-size: 12px; color: #9a9a9a;
}
.footer-copy a { color: var(--orange); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding: 26px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #999; }
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs .sep { margin: 0 8px; color: #bbb; }
.breadcrumbs .current { color: var(--dark); font-weight: bold; }

/* ---------- category page ---------- */
.page-title { color: var(--orange); font-size: 28px; font-weight: 500; margin: 10px 0 22px; }
.prod-layout { display: flex; gap: 44px; align-items: flex-start; margin-bottom: 8px; }
.prod-main { flex: 1 1 58%; }
.prod-side { flex: 1 1 42%; text-align: center; position: sticky; top: 20px; }
.prod-side img { max-height: 340px; width: auto; max-width: 100%; margin-bottom: 24px; }
.prod-side .btn { min-width: 220px; }
.content-block p { text-align: justify; margin-bottom: 14px; }
.content-block strong { color: var(--dark); }
.content-block h2 { color: var(--orange); font-size: 19px; font-weight: 500; margin: 22px 0 12px; }
.icon-list { margin: 4px 0 16px; }
.icon-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--text); }
.icon-list li svg { width: 14px; height: 14px; fill: var(--orange); flex: 0 0 14px; }

/* spec table + filters */
.spec-section { margin: 30px 0 10px; }
.spec-section > h2 { color: var(--orange); font-size: 24px; font-weight: 500; margin-bottom: 18px; }
.filters { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; align-items: center; }
.filters label { color: var(--dark); font-weight: bold; }
.filters select {
  margin-left: 6px; padding: 5px 8px; font-size: 13px; color: var(--text);
  border: 1px solid #ccc; border-radius: 4px; background: #fff;
}
.spec-table-wrap { overflow-x: auto; margin-bottom: 24px; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 9px 14px; text-align: left; }
.spec-table th { background: #f5f5f5; color: var(--dark); font-weight: bold; }
.spec-table tbody tr:hover { background: #fff7f1; }
.spec-cta { text-align: center; margin: 6px 0 30px; }

/* ---------- back to top ---------- */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--orange); color: #fff; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
#toTop.show { display: flex; }
#toTop svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .site-header .container { flex-wrap: wrap; justify-content: center; }
  .hero-title { font-size: 36px; letter-spacing: 3px; }
  .hero-inner { padding: 60px 15px; }
  .about-grid { flex-direction: column; }
  .prod-layout { flex-direction: column-reverse; }
  .prod-side { position: static; width: 100%; }
  .buy-easy .be-title { margin-right: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 26px; letter-spacing: 2px; }
  .hero-pre { font-size: 14px; }
  .hero-sub { font-size: 16px; }
  .hero-inner { padding: 48px 15px; }
  .topbar .container { justify-content: center; text-align: center; }
  .section-head .st1 { font-size: 22px; }
  .section-head .st2 { font-size: 17px; }
  .page-title { font-size: 22px; }
  .card { flex-basis: 100%; max-width: 320px; }
  .nav-toggle { min-width: 0; }
  .nav-menu { min-width: 280px; }
  .footer-map iframe { height: 200px; }
}
