/*
Theme Name: SVARKANN Industrial
Theme URI: https://svarkann.ru
Author: OpenAI
Author URI: https://openai.com
Description: Кастомная тема WordPress для производственной компании: детали, узлы, импортозамещение, восстановление.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: svarkann-industrial
*/

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-dark: #1f2933;
  --text: #18212b;
  --muted: #596574;
  --border: #d8dee5;
  --accent: #1f5fae;
  --accent-dark: #174c8c;
  --max: 1240px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { color: var(--accent-dark); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section { padding: 72px 0; }

.section--dark {
  background: var(--surface-dark);
  color: #fff;
}

.section--white { background: var(--surface); }

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card--dark {
  background: #273240;
  border-color: rgba(255,255,255,.08);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(24,33,43,.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.branding a {
  color: var(--text);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .02em;
}

.branding span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-contact {
  white-space: nowrap;
  font-weight: 600;
}

.hero {
  padding: 84px 0 56px;
  background: linear-gradient(180deg, #eef3f8 0%, #f4f6f8 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31,95,174,.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 760px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #1b2530 0%, #314050 100%);
  box-shadow: var(--shadow);
}

.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

.hero__visual::before {
  width: 240px;
  height: 240px;
  top: -40px;
  right: -20px;
}

.hero__visual::after {
  width: 180px;
  height: 180px;
  bottom: -30px;
  left: -20px;
}

.hero__panel {
  position: absolute;
  inset: auto 24px 24px 24px;
  display: grid;
  gap: 12px;
  z-index: 10;
}

.metric {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

.metric strong {
  display: block;
  font-size: 22px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

.card h3 { margin-bottom: 10px; }

.card p {
  margin: 0;
  color: var(--muted);
}

.section--dark .card p,
.section--dark .lead {
  color: rgba(255,255,255,.78);
}

.industry-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
}

.case-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__content {
  padding: 0 20px 20px;
  color: var(--muted);
}

.page-hero { padding: 64px 0 24px; }

.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-content { padding-bottom: 72px; }

.site-footer {
  background: #141b22;
  color: rgba(255,255,255,.78);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-menu,
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li { margin-bottom: 8px; }

.footer-menu a,
.site-footer a {
  color: rgba(255,255,255,.9);
}

.site-footer a:hover { color: #fff; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  width: min(100%, 900px);
  margin: 0 auto;
  background: #18212b;
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
}

.contacts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contacts-list strong { display: block; }

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 18px;
}

.post-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.case-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.case-card--link:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}

.case-card--link h3,
.case-card--link p {
  color: inherit;
}

.case-card--link img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

@media (max-width: 1024px) {
  .hero__inner,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner { min-height: 70px; }

  .main-nav { display: none; }

  .hero { padding-top: 56px; }

  .hero__inner,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual { min-height: 320px; }

  .section { padding: 56px 0; }

  .card { padding: 20px; }

  .branding a { font-size: 20px; }
}
.metric--link {
  display: block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.metric--link:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
}

.metric--link:visited {
  color: #fff;
}

.metric--link strong {
  color: #fff;
}