:root {
  --ink: #15131b;
  --muted: #686475;
  --purple: #5b21b6;
  --purple-dark: #361174;
  --purple-light: #7c3aed;
  --soft: #f7f6fa;
  --line: #e8e5ee;
  --white: #fff;
  --shadow: 0 18px 50px rgba(30, 15, 55, .10);
  --container: 1180px;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(232,229,238,.85);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.nav a { position: relative; padding: 25px 0 22px; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 15px; height: 2px;
  background: var(--purple); transition: right .2s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.lang {
  min-width: 72px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 700; cursor: default;
}
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background:#fff; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content:""; display:block; width:19px; height:2px; background:var(--ink); margin:4px auto;
}

.hero { overflow: hidden; background: #fff; }
.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: .88fr 1.35fr;
  align-items: stretch;
}
.hero-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 42px 64px 0;
}
.kicker {
  margin: 0 0 15px; color: var(--purple); font-size: 12px; font-weight: 850;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 560px; font-size: clamp(44px, 5.6vw, 70px); line-height: .99;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--purple); }
.hero-lead { max-width: 510px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content:center; gap:10px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 800;
  font-size: 13px; text-transform: uppercase; letter-spacing: .015em; cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color:#fff; background:linear-gradient(135deg,var(--purple),var(--purple-light)); box-shadow:0 12px 26px rgba(91,33,182,.22); }
.button-outline { border-color:#a98bd6; color:var(--purple); background:#fff; }

.hero-visual {
  min-height: 520px; position: relative;
  background: #111 url("../img/hero.webp") center/cover no-repeat;
}
.hero-visual::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 5%, rgba(255,255,255,.15) 34%, transparent 58%);
}
.hero-visual::after {
  content:""; position:absolute; inset:0;
  box-shadow: inset 0 -50px 70px rgba(15, 8, 31, .12);
}

.section { padding: 68px 0; }
.section-soft { background:linear-gradient(180deg,#faf9fc,#f5f3f8); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin:0; font-size:clamp(30px,4vw,44px); line-height:1.08; letter-spacing:-.035em; }
.section-heading p:last-child { max-width:670px; color:var(--muted); margin:12px 0 0; }

.tech-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.tech-card {
  overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:#fff;
  box-shadow:0 8px 26px rgba(30,15,55,.045);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tech-card:hover { transform:translateY(-6px); box-shadow:var(--shadow); }
.card-image { position:relative; aspect-ratio: 4/2.55; overflow:hidden; background:#ddd; }
.card-image img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.tech-card:hover .card-image img { transform:scale(1.035); }
.card-icon {
  position:absolute; left:15px; bottom:-20px; z-index:2; width:44px; height:44px;
  display:grid; place-items:center; border:3px solid #fff; border-radius:9px;
  color:#fff; background:linear-gradient(135deg,var(--purple),var(--purple-light));
  box-shadow:0 8px 20px rgba(65,22,128,.24);
}
.card-icon svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.7; }
.card-copy { padding:30px 17px 19px; }
.card-copy h3 { margin:0; color:var(--purple); font-size:15px; line-height:1.25; text-transform:uppercase; letter-spacing:.01em; }
.card-copy p { margin:10px 0 0; color:#45414d; font-size:14px; }

.process {
  position:relative; overflow:hidden; padding:54px 0 58px; color:#fff;
  background:
    radial-gradient(circle at 16% 20%, rgba(161,112,255,.42), transparent 32%),
    linear-gradient(115deg,#2f0c68 0%,#5322a2 52%,#321071 100%);
}
.process::before, .process::after {
  content:""; position:absolute; width:260px; height:260px; opacity:.16;
  background:
    linear-gradient(90deg,transparent 49%,#fff 50%,transparent 51%),
    linear-gradient(transparent 49%,#fff 50%,transparent 51%);
  background-size:28px 28px; transform:rotate(18deg);
}
.process::before { left:-120px; bottom:-100px; }
.process::after { right:-100px; top:-120px; }
.process .kicker { color:#d8c7ff; }
.process h2 { margin:0; font-size:clamp(29px,4vw,42px); letter-spacing:-.035em; }
.process-grid { position:relative; z-index:2; display:grid; grid-template-columns:repeat(5,1fr); gap:20px; margin-top:32px; }
.step { position:relative; padding-top:62px; }
.step::before {
  content:""; position:absolute; left:0; right:-20px; top:25px; height:1px; background:rgba(255,255,255,.56);
}
.step:last-child::before { right:50%; }
.step-number {
  position:absolute; top:0; left:0; width:50px; height:50px; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.85); border-radius:50%; background:#4b1997;
  font-weight:850; box-shadow:0 0 0 7px rgba(76,25,151,.8);
}
.step h3 { margin:0; font-size:13px; text-transform:uppercase; letter-spacing:.01em; }
.step p { margin:8px 0 0; max-width:185px; color:#e6dcf8; font-size:13px; line-height:1.4; }

.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.about-image { min-height:430px; border-radius:18px; background:url("../img/cad-cam.webp") center/cover; box-shadow:var(--shadow); }
.about-copy h2 { margin:0; font-size:clamp(32px,4.4vw,52px); line-height:1.03; letter-spacing:-.045em; }
.about-copy p { color:var(--muted); font-size:17px; }
.check-list { display:grid; gap:12px; margin:25px 0 0; padding:0; list-style:none; }
.check-list li { display:flex; gap:11px; align-items:flex-start; }
.check-list li::before { content:"✓"; display:grid; place-items:center; flex:0 0 22px; height:22px; border-radius:50%; color:#fff; background:var(--purple); font-size:12px; font-weight:900; }

.contact-section { padding:60px 0 72px; background:#fff; }
.contact-grid { display:grid; grid-template-columns:.95fr .82fr 1.35fr; gap:42px; align-items:start; }
.contact-cta h2 { margin:0; font-size:clamp(30px,4vw,44px); line-height:1.05; letter-spacing:-.035em; }
.contact-cta h2 span { color:var(--purple); }
.contact-column { padding-left:36px; border-left:1px solid var(--line); }
.contact-column h3, .form-wrap h3 { margin:0 0 16px; color:var(--purple); font-size:13px; text-transform:uppercase; }
.contact-list { display:grid; gap:14px; }
.contact-row { display:grid; grid-template-columns:24px 1fr; gap:10px; color:#383440; font-size:14px; }
.contact-row svg { width:19px; height:19px; stroke:var(--purple); fill:none; stroke-width:1.9; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.form-grid .full { grid-column:1/-1; }
input, textarea {
  width:100%; border:1px solid #ddd9e4; border-radius:5px; outline:none; background:#fff;
  padding:10px 12px; color:var(--ink); font-size:13px; transition:border-color .2s, box-shadow .2s;
}
input { height:42px; }
textarea { min-height:82px; resize:vertical; }
input:focus, textarea:focus { border-color:#7c3aed; box-shadow:0 0 0 3px rgba(124,58,237,.1); }
.form-wrap .button { width:100%; margin-top:9px; }
.form-status { min-height:22px; margin:8px 0 0; color:var(--muted); font-size:12px; }
.site-footer { padding:22px 0; color:#85808e; border-top:1px solid var(--line); font-size:12px; }
.footer-inner { display:flex; justify-content:space-between; gap:20px; }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns:1fr; }
  .hero-copy { padding:58px 0 38px; }
  .hero-visual { min-height:440px; order:-1; }
  .hero-visual::before { background:linear-gradient(0deg,#fff 0%,rgba(255,255,255,.08) 38%,transparent 62%); }
  .tech-grid { grid-template-columns:repeat(2,1fr); }
  .process-grid { grid-template-columns:repeat(3,1fr); row-gap:34px; }
  .step:nth-child(3)::before { right:50%; }
  .step:nth-child(4)::before { right:-20px; }
  .about-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr 1fr; }
  .form-wrap { grid-column:1/-1; }
}
@media (max-width: 760px) {
  .container { width:min(calc(100% - 28px),var(--container)); }
  .menu-toggle { display:block; }
  .lang { display:none; }
  .nav {
    position:absolute; left:14px; right:14px; top:61px; display:none; flex-direction:column; align-items:stretch;
    gap:0; padding:10px 18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow);
  }
  .nav.open { display:flex; }
  .nav a { padding:13px 0; }
  .nav a::after { display:none; }
  .hero h1 { font-size:clamp(42px,13vw,62px); }
  .hero-visual { min-height:330px; background-position:60% center; }
  .section { padding:54px 0; }
  .process-grid { grid-template-columns:1fr; gap:18px; }
  .step { padding:0 0 0 66px; min-height:52px; }
  .step::before { left:25px; right:auto; top:50px; bottom:-20px; width:1px; height:auto; }
  .step:last-child::before { display:none; }
  .step-number { left:0; }
  .step p { max-width:none; }
  .contact-grid { grid-template-columns:1fr; gap:30px; }
  .contact-column { padding:26px 0 0; border-left:0; border-top:1px solid var(--line); }
}
@media (max-width: 560px) {
  .tech-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:260px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full { grid-column:auto; }
  .actions { display:grid; }
  .button { width:100%; }
  .footer-inner { flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; }
  .reveal { opacity:1; transform:none; }
}
