:root {
  --paper: #FFFCFC;
  --navy: #0A1653;
  --navy-2: #1c2a72;
  --muted: #4d5478;
  --line: #e6e4ee;
  --glass-1: #eef1fa;
  --glass-2: #c9d1ea;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--paper); color: var(--navy); font-family: "Open Sans", system-ui, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
h1, h2, h3 { font-family: "Open Sans", system-ui, sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }

/* Navigācija */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,252,252,.45); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
header.scrolled { background: rgba(255,252,252,.6); border-color: rgba(10,22,83,.08); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { header { background: rgba(255,252,252,.94); } }
nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 30px; width: auto; }
nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; padding: 0; font-weight: 500; font-size: .98rem; }
nav ul a { text-decoration: none; color: var(--muted); transition: color .15s; }
nav ul a:hover { color: var(--navy); }
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--navy); transition: background .15s, color .15s, transform .15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn.solid { background: var(--navy); color: var(--paper); }
.btn.solid:hover { background: var(--navy-2); }
.btn.line { background: transparent; color: var(--navy); }
.btn.line:hover { background: var(--navy); color: var(--paper); }
nav .btn { padding: .55rem 1.15rem; color: var(--paper) !important; }
@media (max-width: 700px) { nav ul li:not(:last-child) { display: none; } }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero .logo-big { width: min(260px, 60vw); margin-bottom: 1.6rem; }
.wip { display: inline-flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; color: var(--navy); background: #eef0f8; border: 1px solid #dfe2f0; padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.4rem; }
.wip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #e0a400; box-shadow: 0 0 0 3px rgba(224,164,0,.2); }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); margin-bottom: 1.2rem; max-width: 14ch; }
.hero .lead { color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.15rem); max-width: 46ch; margin-bottom: 2.2rem; }
.cta { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .logo-big, .hero h1, .hero .lead { margin-inline: auto; }
  .cta { justify-content: center; }
  .mirror-stage { order: -1; }
}

/* Spogulis: rāmis + atspīdums. Animējas tikai transform. */
.mirror-stage { display: grid; place-items: center; }
.mirror { position: relative; width: min(420px, 78vw); aspect-ratio: 1; border-radius: 50%; padding: clamp(14px, 3.2vw, 22px); background: var(--navy); box-shadow: 0 40px 80px -40px rgba(10,22,83,.55); }
.mirror::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(255,252,252,.14); pointer-events: none; }
.glass { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, var(--glass-1) 28%, var(--glass-2) 78%, #b2bce0 100%); }
.glass::after { content: ""; position: absolute; top: -20%; left: -60%; width: 45%; height: 140%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
  transform: translateX(0) rotate(18deg); will-change: transform; animation: sheen 6.5s ease-in-out infinite; }
.glass .reflect { position: absolute; inset: 0; display: grid; place-items: center; }
.glass .reflect img { width: 50%; opacity: .55; }
@keyframes sheen { 0%, 25% { transform: translateX(0) rotate(18deg); } 70%, 100% { transform: translateX(420%) rotate(18deg); } }
.paused .glass::after { animation-play-state: paused; }

/* Sekcijas */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.tint { background: #f6f5fa; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin-bottom: .9rem; max-width: 20ch; }
.sub { color: var(--muted); max-width: 58ch; margin-bottom: 2.6rem; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about p + p { margin-top: 1rem; }
.about .text { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem; transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-3px); border-color: #c9cde2; }
.thumb { aspect-ratio: 4 / 3; border-radius: 14px; background: #f3f2f8; display: grid; place-items: center; }
.thumb .mini.big { width: 62%; }
.thumb .mini { width: 46%; aspect-ratio: 1; border-radius: 50%; padding: 7%; background: var(--navy); }
.thumb .mini span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--glass-1) 30%, var(--glass-2)); }
.thumb.soon .mini { background: transparent; border: 2px dashed #b9bed6; }
.thumb.soon .mini span { background: none; }
.product h3 { font-size: 1.3rem; }
.product p { color: var(--muted); font-size: .96rem; }
.specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.specs li { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: #eef0f8; color: var(--navy); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: s; }
.step { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.step::before { counter-increment: s; content: counter(s); font-weight: 700; font-size: 1.6rem; }
.step h3 { font-size: 1.15rem; margin: .4rem 0; }
.step p { color: var(--muted); font-size: .96rem; }

/* Forma */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { color: var(--muted); margin-bottom: 1.4rem; }
.contact-info a.mail { font-weight: 600; font-size: 1.2rem; text-decoration: none; border-bottom: 2px solid var(--navy); }
form.apply { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1.15rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--navy); background: #faf9fc; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(10,22,83,.12); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .3rem; accent-color: var(--navy); width: 1.05rem; height: 1.05rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.apply button { justify-self: start; }
form.apply button[disabled] { opacity: .6; cursor: wait; }
.status { display: none; border-radius: 14px; padding: 1rem 1.2rem; font-size: .95rem; }
.status.err { display: block; background: #fdf1f1; border: 1px solid #f2c4c6; color: #8a1f25; }
.done { text-align: center; padding: 2rem 1rem; }
.done h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.done p { color: var(--muted); margin-bottom: 1.5rem; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

footer { background: var(--navy); color: #b9bfdc; padding: 3rem 0 2rem; font-size: .92rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer img { height: 56px; width: auto; }
.partner { display: inline-block; opacity: .85; transition: opacity .15s; }
.partner:hover { opacity: 1; }
.partner img { height: 46px; width: auto; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
@media (max-width: 600px) { .foot-right { align-items: flex-start; } }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
.legal { margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #8f96bd; }

@media (prefers-reduced-motion: reduce) { .glass::after { animation: none; opacity: 0; } html { scroll-behavior: auto; } * { transition: none !important; } }
