/*
Theme Name: ВСП 76
Theme URI: https://vsp76.ru
Author: ВСП 76
Description: Металлоизделия и конструкции на заказ.
Version: 3.0.0
Text Domain: vsp76
*/

@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&display=swap");

:root {
  --steel: #252b2d;
  --sheet: #eef0ed;
  --oxide: #315a67;
  --white: #fff;
  --muted: #697172;
  --line: #cbd0cd;
  --dark-line: #4c5253;
  --content: 1260px;
  --header: 76px;
  --font: "Geologica", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sheet); color: var(--steel);
  font: 400 17px/1.58 var(--font); -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--oxide); outline-offset: 4px; }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky; z-index: 50; top: 0; height: var(--header);
  background: rgba(238,240,237,.96); box-shadow: 0 1px rgba(37,43,45,.18);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { display: block; width: 208px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--oxide); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: var(--steel); }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 24px; height: 1px; margin: 6px auto; background: currentColor; content: ""; }

.button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid var(--oxide); border-radius: 2px;
  background: var(--oxide); color: #fff; font-size: 14px; font-weight: 600;
  line-height: 1; text-decoration: none; cursor: pointer;
  transition-property: background-color, border-color, transform; transition-duration: .18s;
}
.button:hover { border-color: var(--steel); background: var(--steel); }
.button:active { transform: scale(.96); }
.button-ghost { border-color: currentColor; background: transparent; color: inherit; }
.text-link { font-size: 14px; font-weight: 600; text-underline-offset: 5px; }

.eyebrow {
  margin: 0 0 22px; color: var(--oxide); font-size: 11px;
  font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
}

.hero { min-height: calc(100svh - var(--header)); background: var(--sheet); }
.hero-grid {
  display: grid; width: min(calc(100% - 48px), var(--content)); min-height: calc(100svh - var(--header));
  margin-inline: auto; grid-template-columns: minmax(0,.9fr) minmax(440px,1.1fr); gap: clamp(48px,7vw,110px);
  align-items: center;
}
.hero-copy { padding: 70px 0; }
h1 { max-width: 650px; font-size: clamp(50px,5.2vw,76px); font-weight: 600; letter-spacing: -.045em; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: #454b4c; font-size: clamp(18px,1.45vw,21px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 46px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-meta li { color: #4d5556; font-size: 11px; font-weight: 500; }
.hero-meta li::before { margin-right: 8px; color: var(--oxide); content: "—"; }
.hero-visual { position: relative; height: min(72vh,720px); min-height: 570px; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0,0,0,.1); }
.product-passport {
  position: absolute; right: -1px; bottom: -1px; width: min(390px,88%);
  padding: 22px 24px; background: var(--white); box-shadow: 0 12px 35px rgba(37,43,45,.12);
}
.product-passport > span { color: var(--oxide); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.product-passport > strong { display: block; margin-top: 7px; font-size: 18px; }
.product-passport dl { margin: 17px 0 0; }
.product-passport dl div { display: grid; grid-template-columns: 100px 1fr; padding-top: 8px; border-top: 1px solid var(--line); gap: 12px; }
.product-passport dt, .product-passport dd { margin: 0; font-size: 11px; }
.product-passport dt { color: var(--muted); }
.product-passport dd { font-weight: 500; }

.section { padding: clamp(85px,9vw,130px) 0; box-shadow: inset 0 1px var(--line); }
.section-dark { background: var(--steel); color: var(--white); box-shadow: none; }
.section-head { display: grid; grid-template-columns: minmax(0,.68fr) minmax(280px,.32fr); align-items: end; gap: 60px; margin-bottom: 52px; }
.section h2 { max-width: 860px; font-size: clamp(38px,4.4vw,62px); font-weight: 600; letter-spacing: -.035em; }
.section-intro { margin: 0; color: var(--muted); font-size: 15px; }
.section-dark .section-intro { color: #b7bcba; }

.routes { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: 0 10px 35px rgba(37,43,45,.06); }
.route { min-height: 410px; padding: 40px; }
.route + .route { box-shadow: inset 1px 0 var(--line); }
.route-label { color: var(--oxide); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.route h3 { max-width: 470px; margin-top: 74px; font-size: clamp(30px,3vw,44px); font-weight: 600; letter-spacing: -.025em; }
.route p { max-width: 500px; margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.route ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 0; padding: 0; list-style: none; }
.route li { padding: 6px 9px; background: var(--sheet); color: #4e5556; font-size: 10px; font-weight: 500; }

.works-grid { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 1fr 1fr; gap: 14px; height: min(76vw,880px); }
.work-card { position: relative; overflow: hidden; background: #1b1f20; }
.work-card:first-child { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,0,0,1); outline: 1px solid rgba(255,255,255,.1); }
.work-card:hover img { transform: scale(1.02); }
.work-info { position: absolute; right: 0; bottom: 0; left: 0; padding: 50px 22px 20px; background: linear-gradient(transparent,rgba(20,24,25,.9)); }
.work-info span { color: #c2c6c4; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.work-info h3 { margin-top: 7px; font: 500 19px/1.3 var(--font); }

.capabilities { display: grid; grid-template-columns: repeat(4,1fr); box-shadow: inset 1px 1px var(--dark-line); }
.capability { min-height: 225px; padding: 24px; box-shadow: inset -1px -1px var(--dark-line); }
.capability span { color: #8da6ad; font-size: 11px; font-variant-numeric: tabular-nums; }
.capability h3 { margin-top: 54px; font: 500 18px/1.25 var(--font); }
.capability p { margin: 11px 0 0; color: #b7bcba; font-size: 13px; }

.production { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px,7vw,95px); }
.production-copy { align-self: center; }
.production-copy p { color: var(--muted); }
.production-list { margin: 34px 0 0; padding: 0; list-style: none; }
.production-list li { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; box-shadow: inset 0 1px var(--line); font-size: 14px; font-weight: 500; }
.production-list span { color: var(--oxide); font-variant-numeric: tabular-nums; }
.production-image { min-height: 620px; }
.production-image img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0,0,0,.1); }

.process { counter-reset: step; box-shadow: inset 0 1px var(--dark-line); }
.process-step { display: grid; grid-template-columns: 70px minmax(220px,.42fr) 1fr; gap: 25px; padding: 26px 0; box-shadow: inset 0 -1px var(--dark-line); }
.process-step::before { color: #8da6ad; content: "0" counter(step); counter-increment: step; font-size: 11px; font-variant-numeric: tabular-nums; }
.process-step h3 { font: 500 20px/1.3 var(--font); }
.process-step p { margin: 0; color: #b7bcba; font-size: 14px; }

.estimate { background: #dfe5e2; }
.estimate-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; }
.estimate-copy p { max-width: 500px; margin: 22px 0 0; color: #4e5657; }
.estimate-contact { display: inline-block; margin-top: 34px; font-size: clamp(28px,3vw,42px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.estimate-form { display: grid; gap: 18px; padding: 38px; background: var(--white); box-shadow: 0 12px 40px rgba(37,43,45,.08); }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #7e8585; border-radius: 0; background: transparent; color: var(--steel); }
.field input { height: 46px; }
.field textarea { min-height: 90px; padding-top: 11px; resize: vertical; }
.field input[type=file] { height: auto; padding: 14px 0; border: 1px dashed #9da3a1; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; }
.consent input { margin-top: 3px; }
.form-status { min-height: 22px; margin: 0; font-size: 13px; font-weight: 500; }

.site-footer { padding: 68px 0 96px; background: var(--steel); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 46px; }
.footer-title { margin-bottom: 16px; color: #aeb4b2; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-phone { font-size: clamp(25px,2.5vw,36px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.footer-note, .site-footer p { color: #bec3c1; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 58px; padding-top: 18px; box-shadow: inset 0 1px var(--dark-line); color: #929998; font-size: 11px; }
.mobile-max { display: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr .9fr; gap: 36px; }
  .capabilities { grid-template-columns: repeat(2,1fr); }
  .production { gap: 42px; }
}

@media (max-width: 760px) {
  :root { --header: 68px; }
  body { padding-bottom: 64px; font-size: 16px; }
  .container { width: min(calc(100% - 28px),var(--content)); }
  .brand { width: 170px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header); right: 0; left: 0; display: none;
    align-items: stretch; padding: 22px 20px 30px; background: var(--sheet);
    box-shadow: 0 1px rgba(37,43,45,.18); flex-direction: column;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.button) { padding: 8px 0; font-size: 17px; }
  .hero { min-height: 0; }
  .hero-grid { display: flex; width: 100%; min-height: 0; flex-direction: column; gap: 0; }
  .hero-copy { padding: 58px 20px 44px; }
  h1 { font-size: clamp(42px,12vw,56px); }
  .hero-lead { margin-top: 22px; font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .text-link { text-align: center; }
  .hero-meta { margin-top: 34px; }
  .hero-visual { width: calc(100% - 28px); height: 510px; min-height: 0; margin: 0 auto 42px; }
  .product-passport { right: 0; width: calc(100% - 22px); padding: 18px; }
  .section { padding: 76px 0; }
  .section-head, .estimate-grid, .production { grid-template-columns: 1fr; gap: 28px; }
  .section h2 { font-size: clamp(35px,10vw,47px); }
  .routes { grid-template-columns: 1fr; }
  .route { min-height: auto; padding: 30px 22px; }
  .route + .route { box-shadow: inset 0 1px var(--line); }
  .route h3 { margin-top: 52px; font-size: 32px; }
  .works-grid { height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .work-card, .work-card:first-child { min-height: 420px; grid-row: auto; }
  .capabilities { grid-template-columns: 1fr; }
  .capability { min-height: 180px; }
  .capability h3 { margin-top: 35px; }
  .production-image { min-height: 480px; order: -1; }
  .process-step { grid-template-columns: 44px 1fr; }
  .process-step p { grid-column: 2; }
  .estimate-form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .mobile-max {
    position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; display: flex;
    height: 64px; align-items: center; justify-content: center;
    background: var(--oxide); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Intentional motion: one entrance sequence and quiet scroll reveals. */
@keyframes vsp-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vsp-image-open {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.025); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); }
}

@keyframes vsp-passport-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy > * {
  opacity: 0;
  animation: vsp-rise .7s cubic-bezier(.2,0,0,1) forwards;
}
.hero-copy .eyebrow { animation-delay: .08s; }
.hero-copy h1 { animation-delay: .16s; }
.hero-copy .hero-lead { animation-delay: .24s; }
.hero-copy .hero-actions { animation-delay: .32s; }
.hero-copy .hero-meta { animation-delay: .4s; }
.hero-visual img {
  animation: vsp-image-open .9s .16s cubic-bezier(.2,0,0,1) both;
}
.product-passport {
  animation: vsp-passport-in .65s .72s cubic-bezier(.2,0,0,1) both;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition-property: opacity, transform;
  transition-duration: .7s;
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.route {
  transition-property: background-color, transform, box-shadow;
  transition-duration: .24s;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.route:hover { z-index: 1; background: #f8f9f7; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,43,45,.1); }
.work-card {
  transition-property: transform, box-shadow;
  transition-duration: .28s;
  transition-timing-function: cubic-bezier(.2,0,0,1);
}
.work-card:hover { z-index: 2; transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.text-link::after { display: inline-block; margin-left: 8px; content: "→"; transition: transform .18s cubic-bezier(.2,0,0,1); }
.text-link:hover::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual img, .product-passport, .reveal {
    opacity: 1;
    animation: none !important;
    transform: none;
    clip-path: none;
  }
}
