:root {
  --red: #ff3b30;
  --red-dark: #df2c24;
  --ink: #080808;
  --ink-soft: #36302f;
  --muted: #716a67;
  --line: #e7e1df;
  --paper: #ffffff;
  --warm: #f7f2ef;
  --soft: #fff7f5;
  --max: 1180px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  background: var(--ink);
  color: var(--paper);
  left: 1rem;
  padding: .7rem 1rem;
  position: absolute;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: var(--max);
  padding: .85rem 1.2rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: .85rem;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: min(15rem, 52vw);
  width: 15rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.3rem;
  justify-content: center;
}

.nav a {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: .8rem;
  justify-content: flex-end;
}

.phone {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: .45rem;
  white-space: nowrap;
}

.phone-dot {
  background: var(--red);
  display: inline-block;
  height: .72rem;
  width: .72rem;
}

.lang-switch {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
}

.lang-switch a {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  padding: .38rem .55rem;
}

.lang-switch a.active {
  background: var(--red);
  color: var(--paper);
}

.menu-toggle {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  height: 2.45rem;
  justify-content: center;
  width: 2.45rem;
}

.menu-toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  position: relative;
  width: 1.15rem;
}

.menu-toggle span::before,
.menu-toggle span::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 1.15rem;
}

.menu-toggle span::before {
  top: -.38rem;
}

.menu-toggle span::after {
  top: .38rem;
}

.hero {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .92), rgba(8, 8, 8, .72)),
    url("potissimus-dark.jpeg") center bottom / cover no-repeat;
  color: var(--paper);
  min-height: 720px;
  position: relative;
}

.hero::after {
  background: var(--red);
  bottom: 0;
  content: "";
  height: .42rem;
  left: 0;
  position: absolute;
  right: 0;
}

.hero-inner {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, .85fr) minmax(22rem, 1fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(4rem, 8vw, 7rem) 1.2rem 4.5rem;
}

.hero-inner > * {
  min-width: 0;
}

.hero-copy {
  align-content: center;
  display: grid;
  gap: 1.3rem;
}

.eyebrow {
  align-items: center;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: .55rem;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--red);
  content: "";
  display: inline-block;
  height: .68rem;
  width: .68rem;
}

h1,
h2,
h3 {
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  max-width: 9.5ch;
}

html[lang="lt-LT"] .hero h1 {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.hero-lead {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.6;
  margin: 0;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 3.15rem;
  padding: .85rem 1rem;
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
}

.signal-board {
  align-self: center;
  background: rgba(8, 8, 8, .66);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  gap: .9rem;
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.signal-board::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 2.4rem 2.4rem;
  content: "";
  inset: 0;
  position: absolute;
}

.signal-board > * {
  position: relative;
}

.track-tabs {
  display: grid;
  gap: .55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.track-tab {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--paper);
  font-weight: 800;
  min-height: 2.75rem;
  padding: .55rem .4rem;
}

.track-tab[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
}

.map-wrap {
  aspect-ratio: 1.76;
  min-width: 0;
  min-height: 17rem;
}

.map-wrap svg {
  display: block;
  height: 100%;
  width: 100%;
}

.flow-line {
  fill: none;
  opacity: .16;
  stroke: rgba(255, 255, 255, .7);
  stroke-linecap: round;
  stroke-width: 2;
  transition: opacity .2s ease, stroke .2s ease, stroke-width .2s ease;
}

.flow-line.is-active {
  opacity: 1;
  stroke: var(--red);
  stroke-width: 3.8;
}

.flow-node rect,
.flow-node circle {
  fill: #141414;
  opacity: .74;
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 1.6;
  transition: fill .2s ease, opacity .2s ease, stroke .2s ease;
}

.flow-node.is-active rect,
.flow-node.is-active circle {
  fill: color-mix(in srgb, var(--red) 22%, #141414);
  opacity: 1;
  stroke: var(--red);
}

.flow-node text {
  fill: var(--paper);
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
}

.flow-node .sub {
  fill: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 600;
}

.signal-status {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  padding: .85rem;
}

.signal-status strong {
  color: var(--paper);
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 1.2rem;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
}

.section-head {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
  margin-bottom: 2rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: .65rem;
  min-height: 13rem;
  padding: 1rem;
  text-align: left;
}

.service-card.is-active {
  background: var(--soft);
  border-color: var(--red);
}

.service-card .index {
  color: var(--red);
  font-size: .86rem;
  font-weight: 900;
}

.service-card strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.service-card span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.service-details {
  border-top: 1px solid var(--line);
}

.service-detail {
  border-bottom: 1px solid var(--line);
}

.service-summary {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  font-size: 1.25rem;
  font-weight: 850;
  justify-content: space-between;
  min-height: 4.2rem;
  padding: 1rem 0;
  text-align: left;
  width: 100%;
}

.service-summary::after {
  color: var(--red);
  content: "+";
  font-size: 2rem;
  line-height: 1;
}

.service-detail.is-open .service-summary::after {
  content: "−";
}

.service-content {
  color: var(--ink-soft);
  display: none;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 60rem;
  padding: 0 0 1.5rem;
}

.service-detail.is-open .service-content {
  display: block;
}

.story {
  background: var(--warm);
}

.story-layout {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.1fr);
}

.story-copy {
  display: grid;
  gap: 1rem;
}

.story-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}

.signature {
  color: var(--ink);
  font-weight: 850;
  margin-top: 1rem;
  text-align: right;
}

.process {
  background: var(--ink);
  color: var(--paper);
}

.process .section-head p {
  color: rgba(255, 255, 255, .72);
}

.process-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-step {
  background: #121212;
  display: grid;
  gap: 1.2rem;
  min-height: 16rem;
  padding: 1.4rem;
}

.process-step .num {
  align-items: center;
  background: var(--red);
  display: inline-flex;
  font-weight: 900;
  height: 2.6rem;
  justify-content: center;
  width: 2.6rem;
}

.process-step p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
  margin: 0;
}

.contact {
  background: var(--red);
  color: var(--paper);
  padding-bottom: 0;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
}

.contact-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 1rem 0 0;
}

.contact-form {
  display: grid;
  gap: .9rem;
  position: relative;
}

.form-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  font-weight: 750;
  gap: .28rem;
}

input,
textarea {
  background: var(--paper);
  border: 0;
  color: var(--ink);
  min-height: 3rem;
  padding: .8rem .9rem;
  width: 100%;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.span-2 {
  grid-column: 1 / -1;
}

.contact-form .btn {
  border-color: var(--paper);
  justify-self: start;
}

.contact-form .btn:disabled {
  cursor: progress;
  opacity: .72;
}

.honeypot {
  height: 1px;
  left: -9999px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.captcha-holder {
  min-height: 1px;
}

.form-status {
  border-left: 3px solid rgba(255, 255, 255, .42);
  color: var(--paper);
  display: none;
  font-weight: 750;
  line-height: 1.45;
  margin: 0;
  padding-left: .85rem;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-left-color: #21d07a;
}

.form-status.is-error {
  border-left-color: var(--red);
}

.form-note {
  color: rgba(255, 255, 255, .76);
  line-height: 1.55;
  margin: 0;
}

.map {
  margin-top: 4rem;
}

.map iframe {
  border: 0;
  display: block;
  filter: grayscale(.12);
  height: 420px;
  width: 100%;
}

.footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
  padding: 3rem 1.2rem;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: .8rem;
}

.footer ul {
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .58);
  margin: 0 auto;
  max-width: var(--max);
  padding: 1.2rem;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 1rem 0 0;
  }

  .nav.is-open {
    display: flex;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner,
  .section-head,
  .story-layout,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .header-inner {
    gap: .7rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: .75rem .9rem;
  }

  .brand {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .28rem .55rem;
  }

  .brand-logo {
    max-width: min(12.75rem, 66vw);
    width: 12.75rem;
  }

  .tagline {
    font-size: .88rem;
    width: 100%;
  }

  .header-actions {
    gap: .5rem;
  }

  .phone {
    font-size: 1rem;
  }

  .menu-toggle {
    height: 2.6rem;
    margin-left: auto;
    width: 2.6rem;
  }

  .hero-inner {
    gap: 1.6rem;
    padding: 2.25rem .9rem 3rem;
  }

  .section {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .service-grid,
  .process-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .signal-board {
    gap: .75rem;
    padding: .75rem;
    width: 100%;
  }

  .track-tabs {
    gap: .45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-tab {
    min-height: 2.55rem;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .map-wrap {
    aspect-ratio: 1.42;
    min-height: 18rem;
  }

  .signal-status {
    font-size: .95rem;
    padding: .75rem;
  }
}
