/* МеталлКонструкт — современный индустриальный стиль */
:root {
  --bg: #0f172a;
  --bg-elevated: #1e293b;
  --fg: #f8fafc;
  --fg-muted: #94a3b8;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: #334155;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--fg);
}

.nav a.btn-accent {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg-elevated);
  color: var(--fg);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle::before {
  content: '';
  width: 20px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(15,23,42,0.97) 35%, rgba(15,23,42,0.4) 65%, rgba(15,23,42,0.1) 100%),
    url('photo/BACK.jpeg') right center/cover no-repeat;
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--fg-muted);
  margin: 0 0 2rem;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.7;
}

.hero-scroll span::after {
  content: ' ↓';
  opacity: 0.6;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0 0 3rem;
  max-width: 600px;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-card-img {
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  margin: -0.5rem -0.5rem 1rem -0.5rem;
  background: var(--border);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}

.products-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.85)), url('photo/razrab.jpg') center/cover no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.products-cta p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #fff;
}

/* Process */
.process-visual {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.process-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.process-step {
  position: relative;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.5;
}

/* Painting */
.painting {
  background: var(--bg-elevated);
  position: relative;
}

.painting-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  max-width: 560px;
  height: 100%;
  overflow: hidden;
}

.painting-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.painting .container {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.painting-content {
  max-width: 640px;
}

.painting-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.painting-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.painting-list li {
  padding: 0.5rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}

/* CTA */
.cta .container {
  max-width: 560px;
}

.cta-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.cta-text {
  color: var(--fg-muted);
  margin: 0 0 2rem;
}

/* PocketCRM button text */
.pocketcrm-form label,
.pocketcrm-form .form-label,
.pocketcrm-form [class*="label"] {
  color: #fff !important;
}

.pocketcrm-form button,
.pocketcrm-form [type="submit"],
.pocketcrm-form input[type="submit"] {
  color: #0f172a !important;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-card a,
.contact-card p {
  color: var(--fg);
  text-decoration: none;
  margin: 0;
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--fg);
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.footer-col p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--fg-muted);
}

.footer-col p:last-child {
  margin-bottom: 0;
}

.footer-col strong {
  display: block;
  margin-bottom: 0;
  color: var(--fg);
}

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

.footer-col a:hover {
  color: var(--accent-hover);
}

.footer-copy {
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer p:last-child {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .footer-contacts {
    grid-template-columns: 1fr;
  }
}

.footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--accent-hover);
}

.cookie-banner-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-btn {
    width: 100%;
  }
}

/* Страница политики */
.page-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  color: var(--fg);
}

.page-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  color: var(--fg-muted);
}

.page-content p {
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
}

.page-content a {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid var(--border);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 101;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .process-visual {
    max-height: 220px;
  }

  .painting-visual {
    position: relative;
    width: 100%;
    max-width: none;
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .painting-visual img {
    opacity: 0.5;
  }
}
