:root {
  --bg: #0d0d0d;
  --panel: #191919;
  --silver: #c0c0c0;
  --orange: #f5a623;
  --line: #ffffff22;
  --light: #e8e5de;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--silver);
  font: 14px/1.6 Inter, Arial, sans-serif;
}

::selection { background: #f5a62355; color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #2e2e2e; border: 2px solid #0d0d0d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

.noise {
  position: fixed; inset: 0; z-index: 9;
  pointer-events: none; opacity: .045;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 5px 5px;
}

/* ---------- header ---------- */

header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  height: 80px; display: flex; align-items: center;
  padding: 0 8vw; border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .4s, backdrop-filter .4s;
}
header.scrolled {
  background: #0d0d0de8;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: #fff; text-decoration: none;
  letter-spacing: -1px; font-size: 24px; line-height: 1;
  text-transform: none; white-space: nowrap;
}
/* надпись «АлМИз» одним цветом, не ссылка; слева место под картинку-логотип */
.brand-logo { height: 40px; width: 40px; display: block; flex: none; }
footer > .brand { text-transform: none; color: #fff; }

nav { display: flex; margin: auto; gap: 28px; }

nav a {
  position: relative;
  font-size: 10px; text-transform: uppercase; letter-spacing: .7px;
  text-decoration: none; color: #ccc; padding: 4px 0;
  transition: color .3s;
}
nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1);
}
nav a:hover { color: #fff; }
nav a:hover::after { transform: scaleX(1); transform-origin: left; }
/* активный пункт меню - на всех страницах, включая главную (раньше только .inner-page в pages.css) */
nav a.active { color: var(--orange); }

/* ---------- buttons / links ---------- */

.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; justify-content: center; align-items: center; gap: 22px;
  padding: 16px 30px; background: var(--panel); color: #fff;
  text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  font-family: Inter, sans-serif;
  font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .4px;
  transition: color .35s;
}
.button::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--orange);
  transform: scaleX(.035); transform-origin: left;
  transition: transform .5s cubic-bezier(.19, 1, .22, 1);
}
.button:hover { color: #111; }
.button:hover::before { transform: scaleX(1); }
.button:active { transform: scale(.98); }
.button.sent { color: #111; pointer-events: none; }
.button.sent::before { transform: scaleX(1); }
.small { padding: 12px 24px; }

.arr { width: 14px; height: 14px; flex: none; transition: transform .35s cubic-bezier(.19, 1, .22, 1); }
.button:hover .arr, .text-link:hover .arr, .catalog-list a:hover .arr, .link:hover .arr { transform: translate(3px, -3px); }

.text-link {
  display: inline-flex; align-items: center; gap: 15px;
  color: inherit; text-decoration: none; text-transform: uppercase;
  font-size: 10px; font-weight: bold; letter-spacing: .5px;
  border-bottom: 1px solid currentColor; padding-bottom: 5px;
  transition: color .3s;
}
.text-link:hover { color: var(--orange); }
.text-link .arr, .link .arr { color: var(--orange); }

.menu { display: none; }

/* ---------- hero ---------- */

.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }

.hero-bg {
  position: absolute; inset: -12% 0; z-index: -2;
  background: #0d0d0d url('img/hero-poster.webp') center/cover;
  filter: grayscale(1) contrast(1.15);
  will-change: transform;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d0d0df0 9%, #0d0d0d91 52%, #0d0d0d48);
}
@media (max-width: 780px) {
  .brand-logo { height: 34px; width: 34px; }
  .hero-bg { background-image: url('img/hero-poster-800.webp'); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, transparent 49.9%, #ffffff1c 50%, transparent 50.1%);
  background-size: 20% 100%;
  mask-image: linear-gradient(90deg, #000a, #0000);
}

.hero-copy { margin: 90px 8vw 230px; max-width: 980px; }

.eyebrow, .section-id {
  color: var(--orange); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.4px;
}

h1, h2, h3 { font-family: var(--head); font-weight: 500; text-transform: uppercase; }

.hero h1 {
  font-size: clamp(58px, 8.2vw, 128px);
  line-height: 1.1; letter-spacing: .5px;
  color: #fff; margin: 22px 0 25px;
  font-weight: 600;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; will-change: transform; }
.hero h1 em, h2 em { font-style: normal; color: var(--orange); }

.hero p { font-size: 15px; max-width: 440px; margin: 0 0 32px; }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 25px 8vw; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #0d0d0ddd; border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.hero-stats article { display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--line); padding-left: 25px; }
.hero-stats article:first-child { padding-left: 0; }
.hero-stats article:last-child { border: 0; }
.hero-stats b { font: 500 42px/1 var(--head); color: #fff; }
.hero-stats b::after { content: '+'; color: var(--orange); font-size: 22px; }
.hero-stats article:nth-child(3) b::after { content: ' м²'; font-size: 15px; }
.hero-stats article:nth-child(4) b::after { content: ' ч'; font-size: 15px; }
.hero-stats span { font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .6px; }
/* hero-stats без цифр (факты из КП): без суффиксов +, м², ч */
/* подпись в две строки - нижней строкой на линию крупного слова (просьба заказчика 13.10); где подпись переносится в 3-4 строки - по центру */
@media (min-width: 1280px) { .hero-stats article { align-items: flex-end; align-items: last baseline; } }
.hero-stats.facts article b::after { content: none; }

/* ---------- sections ---------- */

.section-id span { color: #777; }

.intro {
  padding: 125px 8vw; display: grid;
  grid-template-columns: 20% 1fr .65fr; gap: 30px;
  background: var(--light); color: #191919;
}

.intro h2, .benefit-copy h2, .production h2, .process h2, .contact h2 {
  font-size: clamp(48px, 5.4vw, 86px);
  line-height: 1.1; letter-spacing: .4px; margin: 0;
}

.intro p { max-width: 330px; margin: 7px 0 25px; }

.catalog, .projects { padding: 115px 8vw; }

.section-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 43px; }
.section-top p { margin: 0; font-size: 12px; }

.catalog-list { border-top: 1px solid var(--line); }

.catalog-list a {
  position: relative;
  color: #fff; display: grid;
  grid-template-columns: 9% 1fr 28% 30px;
  align-items: center; gap: 15px; min-height: 118px;
  text-decoration: none; border-bottom: 1px solid var(--line);
  transition: padding .35s cubic-bezier(.19, 1, .22, 1), background .35s;
}
.catalog-list a::before {
  content: ''; position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 2px; background: var(--orange);
  transform: scaleY(0); transition: transform .35s cubic-bezier(.19, 1, .22, 1);
}
.catalog-list a:hover { background: #1b1b1b; padding-left: 24px; }
.catalog-list a:hover::before { transform: scaleY(1); }
.catalog-list span, .catalog-list small { font-size: 10px; letter-spacing: .7px; text-transform: uppercase; color: #aaa; }
.catalog-list a:hover span { color: var(--orange); }
.catalog-list h3 { font-size: clamp(28px, 3.1vw, 48px); line-height: 1; margin: 0; font-weight: 500; }
.catalog-list .arr { color: var(--orange); width: 22px; height: 22px; }

/* ---------- benefits ---------- */

.benefits { display: grid; grid-template-columns: 1fr 1fr; background: #171717; }

.benefit-photo { min-height: 680px; position: relative; overflow: hidden; }
.benefit-photo-img {
  position: absolute; inset: -12% 0;
  background:
    linear-gradient(#0d0d0d20, #0d0d0dbe),
    url('img/laser-operator-1.webp') center/cover;
  filter: grayscale(1);
  will-change: transform;
}

.benefit-copy { padding: 110px 8vw; }
.benefit-copy h2 { margin: 55px 0; }

.benefit-list article { display: grid; grid-template-columns: 35px 1fr; gap: 15px; border-top: 1px solid var(--line); padding: 18px 0; }
.benefit-list b { font-size: 10px; color: var(--orange); }
.benefit-list h3 { font-size: 24px; line-height: 1; color: #fff; margin: 0 0 9px; }
.benefit-list p { margin: 0; color: #aaa; font-size: 12px; }

/* ---------- production ---------- */

.production { padding: 120px 8vw; display: grid; grid-template-columns: 1fr 1fr; gap: 7vw; }
.production h2 { margin: 52px 0 27px; }
.production > div > p { max-width: 370px; }

.circle-button {
  margin-top: 35px; display: grid; place-content: center; justify-items: center;
  width: 118px; height: 118px;
  border: 1px solid var(--orange); border-radius: 50%;
  color: #fff; text-decoration: none; text-align: center;
  text-transform: uppercase; font-size: 10px; line-height: 1.2;
  transition: background .4s, color .4s;
  will-change: transform;
}
.circle-button:hover { background: var(--orange); color: #111; }
.circle-button .arr { color: inherit; margin-top: 6px; width: 16px; height: 16px; }

.production-photo { position: relative; min-height: 500px; overflow: hidden; }
.production-photo-img {
  position: absolute; inset: -12% 0;
  background:
    linear-gradient(#0d0d0d18, #0d0d0d7b),
    url('img/paint-booth-1.webp') center/cover;
  filter: saturate(.9) contrast(1.05);
  will-change: transform;
}
.production-photo span { position: absolute; bottom: 20px; left: 20px; color: #fff; text-transform: uppercase; font-size: 9px; letter-spacing: .6px; line-height: 1.4; }
.production-photo b { position: absolute; right: 24px; top: 13px; color: var(--orange); font: 500 44px/1 var(--head); }

/* ---------- process ---------- */

.process { padding: 112px 8vw; background: var(--light); color: #191919; }
.process h2 { margin: 43px 0 70px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6vw; }
.steps article { border-top: 1px solid #3334; padding-top: 20px; }
.steps b { color: var(--orange); font-size: 11px; }
.steps h3 { font-size: 32px; line-height: 1; margin: 37px 0 14px; }
.steps p { font-size: 12px; max-width: 230px; }

/* ---------- projects ---------- */

.project-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 10px; }

.project div {
  height: 390px;
  background-size: cover !important;
  background-position: center !important;
  filter: saturate(.95) brightness(.92);
  transition: filter .5s, transform .6s cubic-bezier(.19, 1, .22, 1);
}
.project { overflow: hidden; }
.project:hover div { filter: saturate(1.05) brightness(1); transform: scale(1.04); }

.big div { background: url('img/project-kalkaman-1.webp'); }
.second div { background: url('img/project-dial-2.webp'); }
.third div { background: url('img/project-vivapark-3.webp'); }
a.project { display: block; text-decoration: none; color: inherit; }
a.project:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ---------- workshop (цех в работе) ---------- */

.workshop { padding: 115px 8vw; border-top: 1px solid var(--line); }
.workshop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.workshop figure { margin: 0; }
.workshop figure a { display: block; overflow: hidden; background: #191919; }
.workshop img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
.workshop figure a:hover img { transform: scale(1.04); }
.workshop figure a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.workshop figcaption {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 0 6px;
  color: #fff; font: 500 20px/1.1 var(--head); text-transform: uppercase;
}
.workshop figcaption b { color: var(--orange); font: 600 10px Inter, sans-serif; letter-spacing: .5px; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed; inset: 0; z-index: 30;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 60px 72px 20px; background: #0d0d0df2;
}
.lb[hidden] { display: none; }
.lb figure { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; display: block; }
.lb figcaption { margin-top: 14px; color: #ddd; font-size: 12px; text-align: center; }
.lb figcaption b { color: var(--orange); font-weight: 600; margin-right: 10px; }
.lb button {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 0;
  background: #191919; color: #fff; font: 500 26px/1 var(--head); cursor: pointer;
  transition: background .3s, color .3s;
}
.lb button:hover, .lb button:focus-visible { background: var(--orange); color: #111; outline: 0; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb button[hidden] { display: none; }
html.lb-open { overflow: hidden; }

.project h3 { font-size: 24px; line-height: 1; color: #fff; margin: 18px 0 5px; }
.project span { font-size: 9px; color: #aaa; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- contact ---------- */

.contact { padding: 120px 8vw; display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; }
.contact h2 { margin: 24px 0; }
.contact > div > p { max-width: 340px; }

.contact-data { display: flex; flex-direction: column; gap: 6px; margin-top: 35px; }
.contact-data a { color: #fff; text-decoration: none; font-size: 15px; transition: color .3s; }
.contact-data a:hover { color: var(--orange); }
.contact-data span { color: #aaa; font-size: 13px; margin-top: 6px; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

label { color: #888; font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }

input, select, textarea {
  display: block; width: 100%; padding: 12px 0;
  background: transparent; border: 0; border-bottom: 1px solid #555;
  color: #fff; font: 13px Inter; outline: 0; border-radius: 0;
  transition: border-color .3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); }

select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%23f5a623' stroke-width='1.5'/%3E%3C/svg%3E") right center no-repeat;
}
select option { background: #191919; color: #fff; }

textarea { height: 65px; resize: none; }

/* поле прикрепления файлов: кнопка в стиле «скос» */
input[type="file"] { padding: 10px 0 12px; color: #aaa; font-size: 12px; cursor: pointer; }
input[type="file"]::file-selector-button {
  margin-right: 16px; padding: 10px 20px; border: 0; cursor: pointer;
  background: var(--panel); color: #fff;
  font: 700 10px Inter, sans-serif; text-transform: uppercase; letter-spacing: .4px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .3s, color .3s;
}
input[type="file"]::file-selector-button:hover { background: var(--orange); color: #111; }

/* ---------- клиенты ---------- */

.clients { padding: 115px 8vw; border-top: 1px solid var(--line); }
.clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.client-card {
  display: grid; place-items: center; gap: 12px; min-height: 130px; padding: 22px 18px;
  background: var(--panel); text-align: center;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.client-card img { display: block; max-width: 70%; max-height: 52px; object-fit: contain; }
.client-card span { font: 500 clamp(20px, 2vw, 28px)/1.05 var(--head); text-transform: uppercase; letter-spacing: .5px; color: #fff; }
.wide { grid-column: 1 / -1; }
form small { font-size: 8px; color: #777; }

/* ---------- whatsapp / footer ---------- */

.whatsapp {
  position: fixed; z-index: 7; right: 24px; bottom: 24px;
  display: grid; place-items: center; width: 50px; height: 50px;
  background: #25d366; border-radius: 50%; color: #fff;
  text-decoration: none; box-shadow: 0 6px 20px #0008;
  transition: transform .3s cubic-bezier(.19, 1, .22, 1), box-shadow .3s;
}
.whatsapp:hover { transform: scale(1.1); box-shadow: 0 10px 28px #25d36655; }
.whatsapp svg { width: 26px; height: 26px; }

footer {
  padding: 27px 8vw; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); color: #777; font-size: 9px;
}
footer > a:last-child { color: #fff; text-decoration: none; text-transform: uppercase; }
footer > a:last-child:hover { color: var(--orange); }

/* ---------- mobile nav ---------- */

.mobile-nav {
  position: fixed; inset: 0; z-index: 15;
  background: #0d0d0df5; backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 0 9vw;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.77, 0, .18, 1), visibility 0s .55s;
}
.mobile-nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .55s cubic-bezier(.77, 0, .18, 1); }
.mobile-nav nav { display: flex; flex-direction: column; margin: 0; gap: 8px; }
.mobile-nav nav a {
  font-family: var(--head); font-weight: 500; text-transform: uppercase;
  font-size: 40px; letter-spacing: 1px; color: #fff; padding: 6px 0;
}
.mobile-nav nav a::after { display: none; }
.mobile-nav .button { align-self: flex-start; }

.menu span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: transform .35s, opacity .35s; }
.menu.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (min-width: 781px) and (max-width: 1100px) {
  .workshop-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- motion safety ---------- */

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

/* ---------- mobile ---------- */

@media (max-width: 780px) {
  header { height: 65px; padding: 0 7vw; }
  header nav, header .small { display: none; }
  .menu { display: block; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; position: relative; z-index: 21; }

  .hero-copy { margin: 90px 7vw 250px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 64px); }
  .hero-copy { margin-bottom: 320px; }
  /* нижняя полоса под плавающую кнопку WhatsApp (24px + 50px), чтобы она не закрывала подписи */
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 12px 7vw 80px; column-gap: 12px; }
  .hero-stats article { padding: 13px 0 !important; border-right: 0; }
  .hero-stats b { font-size: 34px; }

  .intro, .production, .contact { display: block; padding: 80px 7vw; }
  .intro > div:nth-child(2) { margin: 38px 0; }
  .catalog, .projects, .process { padding: 80px 7vw; }
  .section-top { display: block; }
  .section-top p { margin-top: 20px; }

  .catalog-list a { grid-template-columns: 36px 1fr 25px; min-height: 105px; }
  .catalog-list small { display: none; }
  .catalog-list h3 { font-size: 26px; }

  .benefits { display: block; }
  .benefit-photo { min-height: 350px; }
  .benefit-photo-img { background-image: linear-gradient(#0d0d0d20, #0d0d0dbe), url('img/laser-operator-1-800.webp'); }
  .production-photo-img { background-image: linear-gradient(#0d0d0d18, #0d0d0d7b), url('img/project-kalkaman-hero-800.webp') !important; }
  .big div { background-image: url('img/project-kalkaman-1-800.webp') !important; }
  .second div { background-image: url('img/project-dial-2-800.webp') !important; }
  .third div { background-image: url('img/project-vivapark-3-800.webp') !important; }
  .benefit-copy { padding: 75px 7vw; }

  .production-photo { margin-top: 46px; min-height: 340px; }

  .steps, .project-grid { grid-template-columns: 1fr; gap: 28px; }
  .workshop { padding: 80px 7vw; }
  .workshop-grid { grid-template-columns: 1fr; gap: 18px; }
  .lb { padding: 64px 12px 16px; }
  .lb img { max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .lb figcaption { padding: 0 56px; }
  .steps h3 { margin-top: 25px; }
  .project div { height: 280px; }

  .clients { padding: 80px 7vw; }
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .client-card span { font-size: 17px; }
  .clients-grid .client-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .client-card { min-height: 100px; }

  .contact form { margin-top: 43px; grid-template-columns: 1fr; }
  .wide { grid-column: auto; }

  footer { gap: 16px; flex-wrap: wrap; padding: 25px 7vw; }
}
