/*
Theme Name: Shpilka1 Corporate
Theme URI: https://shpilka1.ru/
Author: shpilka1.ru
Description: Корпоративная WordPress-тема для производства резьбовых шпилек: строгий B2B-дизайн, верхнее и нижнее меню, адаптивная верстка, SEO-страницы.
Version: 7.0.0
License: GPLv2 or later
Text Domain: shpilka1
*/
:root{--bg:#f3f5f7;--card:#fff;--text:#111827;--muted:#4b5563;--navy:#071426;--teal:#0f766e;--teal2:#0b615b;--line:#d9dee6;--soft:#ecfdf5}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.62}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:1180px;margin:0 auto;padding:0 28px}
.site-header{background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:50;box-shadow:0 2px 18px rgba(8,20,38,.04)}.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}.logo{font-size:26px;letter-spacing:.5px;font-weight:800;color:#0f4f4b}.menu{display:flex;gap:28px;align-items:center;list-style:none;margin:0;padding:0;font-size:15px;font-weight:700}.menu a{color:#111827}
.hero{background:linear-gradient(90deg,rgba(6,25,43,.97) 0%,rgba(8,37,50,.94) 42%,rgba(7,20,38,.62) 68%),url('assets/hero-studs.jpg') right center/cover no-repeat;color:#fff;padding:96px 0 72px}.hero h1{font-size:52px;line-height:1.05;margin:0 0 18px;font-weight:800}.hero p{font-size:21px;max-width:650px;color:#dbeafe;margin:0 0 28px}.btn{display:inline-flex;align-items:center;gap:12px;background:var(--teal);color:#fff!important;border-radius:7px;padding:14px 23px;font-weight:800;border:1px solid rgba(255,255,255,.1);box-shadow:0 10px 26px rgba(15,118,110,.22)}.btn:hover{background:var(--teal2);text-decoration:none}
.hero-features{margin-top:70px;display:grid;grid-template-columns:repeat(3,1fr);gap:32px;max-width:1080px}.hero-features div{display:flex;gap:16px;align-items:flex-start;color:#d7f5f2}.hero-features b{display:block;color:#fff;font-size:17px}.feature-icon{font-size:26px;line-height:1;color:#7dd3fc}
.main{padding:54px 0}.content{background:var(--card);border:1px solid #e2e7ee;border-radius:20px;box-shadow:0 20px 50px rgba(7,20,38,.08);padding:42px;overflow:hidden}.content h1{font-size:42px;line-height:1.14;margin:6px 0 20px}.content h2{font-size:28px;line-height:1.2;margin:34px 0 14px}.content h3{font-size:18px;margin:0 0 8px}.content p,.content li{font-size:18px;color:#2f3a4a}.content ul{padding-left:26px}.content li{margin:5px 0}.featured-photo{margin:0 0 34px}.featured-photo img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover;border-radius:4px;box-shadow:0 16px 35px rgba(7,20,38,.12)}
.section-lined{border-top:1px solid var(--line);margin-top:34px;padding-top:26px}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin-top:18px}.product-card{padding-right:10px}.product-card svg{display:block;margin-bottom:12px}.line-icon{display:block;font-size:34px;color:var(--teal);margin-bottom:12px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:18px}.steps div{display:flex;gap:13px;align-items:flex-start}.steps b{display:flex;align-items:center;justify-content:center;min-width:36px;width:36px;height:36px;border:1px solid var(--teal);border-radius:999px;color:var(--teal)}
.benefit-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;margin-top:18px}.benefit-grid div{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:start}.benefit-grid span{grid-row:1/3;font-size:34px;color:var(--teal)}
.cta{margin:38px 0 6px;padding:24px 28px;border:1px solid #b7eadf;background:linear-gradient(90deg,#eefdf7,#f8fffd);border-radius:10px;display:flex;justify-content:space-between;gap:28px;align-items:center}.cta h2{margin:0 0 6px!important;font-size:24px}.cta p{margin:0;font-size:16px;color:#374151}
.site-footer{background:var(--navy);color:#d7dee9;padding:44px 0;margin-top:20px}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:36px;align-items:start}.site-footer .logo{display:block;color:#5eead4;margin-bottom:8px}.site-footer .menu{display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}.site-footer .menu a{color:#dff8f3}.contacts{display:grid;gap:10px}.contacts span{color:#5eead4;margin-right:8px}.numbered{counter-reset:item;list-style:none;padding-left:0!important}.numbered li{counter-increment:item;margin:12px 0;padding-left:52px;position:relative}.numbered li:before{content:counter(item);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;border:1px solid var(--teal);display:flex;align-items:center;justify-content:center;color:var(--teal);font-weight:800}
@media(max-width:880px){.wrap{padding:0 20px}.header-inner{height:auto;min-height:68px;display:block;padding-top:18px;padding-bottom:16px}.menu{display:flex;flex-wrap:wrap;gap:12px 18px;margin-top:10px}.hero{padding:66px 0 46px;background:linear-gradient(90deg,rgba(6,25,43,.99),rgba(7,20,38,.88))}.hero h1{font-size:42px}.hero p{font-size:20px}.hero-features{display:none}.main{padding:36px 0}.content{padding:24px 18px;border-radius:18px}.content h1{font-size:32px}.content h2{font-size:25px}.content p,.content li{font-size:17px}.featured-photo img{border-radius:7px;max-height:370px}.product-grid,.steps,.benefit-grid,.footer-grid{grid-template-columns:1fr}.cta{display:block;padding:22px 20px}.cta .btn{margin-top:16px;width:100%;justify-content:center}.site-footer .menu{grid-template-columns:1fr 1fr}}

.catalog-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.catalog-list a{display:block;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#0f172a;font-weight:700}@media(max-width:880px){.catalog-list{grid-template-columns:1fr}}


/* v3 additions */
.site-header .menu{position:relative}
.site-header .menu li{position:relative}
.site-header .menu .sub-menu{display:none;position:absolute;top:100%;left:0;width:320px;background:#fff;border:1px solid #e5e7eb;box-shadow:0 18px 36px rgba(7,20,38,.14);border-radius:10px;padding:12px;margin:12px 0 0;z-index:80;list-style:none}
.site-header .menu li:hover>.sub-menu{display:grid;gap:4px}
.site-header .menu .sub-menu a{display:block;padding:9px 10px;border-radius:7px;font-size:14px;font-weight:700;color:#111827}
.site-header .menu .sub-menu a:hover{background:#f1f8f7;text-decoration:none;color:var(--teal)}
.product-card svg{display:block;margin-bottom:12px}
.catalog-grid-wp{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.catalog-grid-wp a{display:block;background:#fff;border:1px solid #dfe5ec;border-radius:9px;padding:13px 15px;color:#0f172a;font-weight:700}
.catalog-grid-wp a:hover{border-color:#99f6e4;background:#f6fffc;text-decoration:none;color:#0f766e}
.contacts a{color:#dff8f3}
@media(max-width:880px){
  .site-header .menu .sub-menu{position:static;display:grid;width:100%;box-shadow:none;border:0;margin:6px 0 0;padding-left:12px;background:#f8fafc}
  .catalog-grid-wp{grid-template-columns:1fr}
}


/* v6 visible sections */
.price-table-wrap{overflow-x:auto;margin:18px 0 24px}
.price-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe5ec;border-radius:10px;overflow:hidden}
.price-table th,.price-table td{border:1px solid #dfe5ec;padding:13px 14px;text-align:left;vertical-align:top}
.price-table th{background:#0b1e33;color:#fff;font-weight:800}
.price-table tbody tr:nth-child(even){background:#f8fafc}
.catalog-grid-wp{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 24px}
.catalog-grid-wp a{display:block;background:#fff;border:1px solid #dfe5ec;border-radius:9px;padding:13px 15px;color:#0f172a;font-weight:700}
.catalog-grid-wp a:hover{border-color:#99f6e4;background:#f6fffc;text-decoration:none;color:#0f766e}
@media(max-width:880px){.catalog-grid-wp{grid-template-columns:1fr}.price-table th,.price-table td{font-size:14px;padding:10px}}
