/*
Theme Name: Polestar Tech
Version: 1.3.1
Text Domain: polestar
*/
:root {
  color-scheme: dark;
  --base: #0d0f0e;
  --panel: #171a17;
  --line: #353a33;
  --green: #b3e94e;
  --white: #f2f4ed;
  --muted: #b7bdb3;
  --mono: "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--white); font: 16px/1.65 "Segoe UI", "Microsoft YaHei", sans-serif; }
header, main, footer { width: min(1320px, 92%); margin-inline: auto; }
header { display: flex; align-items: center; gap: 3vw; padding: 21px 0; border-bottom: 1px solid var(--line); }
a { color: inherit; text-underline-offset: 5px; }
header a,.grid a,.product-entry { text-decoration: none; }
.brand { font: 800 clamp(15px,1.5vw,23px)/1.2 var(--mono); letter-spacing: -.045em; color: var(--green); margin-right: auto; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
nav:last-child { gap: 2px; padding: 2px; border: 1px solid var(--line); }
nav:last-child a { padding: 2px 9px; }
nav a[aria-current] { background: var(--green); color: #151a0d; }
main { padding-bottom: 60px; min-height: 75vh; }
.company-intro { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(410px,38vw,570px); padding: 45px 0; }
.company-intro::after { content: ""; position: absolute; z-index:-1; right: -1%; width: 49%; height: 100%; top: 0; background: url("assets/field.png") center / contain no-repeat, radial-gradient(ellipse at center, #26321988, transparent 68%); animation: orbit 12s ease-in-out infinite alternate; }
@keyframes orbit { to { transform: translateY(-5px) rotate(3deg); } }
.company-intro>div { max-width: 56%; }
.kicker { color: var(--green); font: 600 13px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .15em; }
.kicker::before { content: ""; display: inline-block; width: 30px; height: 2px; margin: 0 10px 4px 0; background: var(--green); }
h1,h2,h3 { margin: 0; line-height: 1.12; font-weight: 750; text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(40px,5.2vw,80px); }
html:lang(ru) h1 { font-size: clamp(34px,4.1vw,66px); overflow-wrap: anywhere; }
p { color: var(--muted); max-width: 68ch; }
.company-intro>div>a, button { display: inline-block; background: var(--green); color: #18200d; font-weight: 700; text-decoration: none; padding: 9px 18px; }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.tile { position: relative; display: flex; flex-direction: column; padding: clamp(20px,2.2vw,34px); border: 1px solid var(--line); background: linear-gradient(135deg,#1c201b,#111412); transition: border-color .2s,transform .2s; }
.tile::before { content: ""; width: 31px; border-top: 3px solid var(--green); margin-bottom: 23px; }
.tile h2 { font-size: clamp(19px,1.9vw,29px); }
.tile p { margin: 13px 0; }
.arrow { align-self: end; margin-top: auto; color: var(--green); font: 25px/1 var(--mono); }
.tile:hover,.product-entry:hover { border-color: var(--green); transform: translateY(-2px); }
.article { padding: clamp(42px,6vw,80px) 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article h1 { max-width: 1050px; }
.article p { font-size: clamp(16px,1.5vw,21px); }
.product-entry { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 5%; border: 1px solid var(--line); background: var(--panel); padding: clamp(15px,3vw,40px); }
.product-entry img { display: block; width: 100%; max-height: 450px; object-fit: contain; }
.product-entry h2,.form h2 { font-size: clamp(25px,3vw,44px); }
.product-entry strong { color: var(--green); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 18px; }
figure { margin: 0; background: var(--panel); border: 1px solid var(--line); }
.gallery img { display: block; width: 100%; }
figcaption { padding: 8px 15px; color: var(--muted); }
.form { margin: 40px auto 0; max-width: 880px; padding: clamp(20px,4vw,45px); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--green); }
.form h2 { margin-bottom: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 14px; }
input,textarea { display: block; width: 100%; padding: 10px; background: var(--base); color: var(--white); font: inherit; border: 1px solid #70766c; }
button { font-size: 16px; border: 0; cursor: pointer; }
footer { padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font: 13px/1.6 var(--mono); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media(max-width:760px) {
  header { flex-wrap: wrap; gap: 9px 16px; padding: 15px 0; }
  nav { gap: 10px; font-size: 13px; }
  .company-intro { min-height: auto; padding: 28px 0 14px; }
  .company-intro>div { max-width: 100%; }
  .company-intro::after { position: relative; inset: auto; justify-self: center; width: 100%; height: clamp(155px,41vw,230px); }
  .grid,.product-entry,.fields { grid-template-columns: 1fr; }
  .tile { padding: 20px; }
  .tile::before { margin-bottom: 13px; }
  .product-entry { gap: 20px; }
}
@media(prefers-reduced-motion:reduce) {
  .company-intro::after { animation: none; }
  .tile,.product-entry { transition: none; }
}

.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.consent{display:flex;gap:10px;align-items:flex-start;font-size:14px}.consent input{width:18px;height:18px;flex:0 0 18px;margin-top:4px}
.brand {display:flex;align-items:center;gap:9px}
.nav-logo {width:34px;height:34px}
.brand-hero {padding:42px 0 48px;text-align:center;background:radial-gradient(ellipse at 50% 20%,#293a173d,transparent 65%)}
.hero-logo {width:112px;height:112px;display:block;margin:0 auto 14px}
.brand-hero h1 {font-size:clamp(32px,4.3vw,64px);line-height:1.22;max-width:1100px;margin:16px auto 24px}
.brand-hero .kicker::before {display:none}
.company-description {max-width:800px;margin:0 auto 25px;font-size:17px}
.hero-links {display:flex;align-items:center;justify-content:center;gap:24px}
.cta {background:var(--green);color:var(--base);padding:10px 20px;text-decoration:none;font-weight:700}
.business>h2 {font-size:24px;margin:0 0 20px}
.business .tile h3 {font-size:24px}
@media(max-width:760px){.brand-hero{padding:28px 0}.hero-logo{width:86px;height:86px}.company-description{font-size:15px}.brand-hero h1{font-size:32px}}
