/* SCANDIKA — one-page company card */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  color: #f4f1ea;
  background: #0c1624;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(224, 192, 137, 0.28);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid #e0c089;
  outline-offset: 4px;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  overflow: hidden;
}

.stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stage__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 38%;
}

.stage__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(8, 16, 28, 0.82) 0%,
      rgba(8, 16, 28, 0.58) 34%,
      rgba(8, 16, 28, 0.18) 58%,
      rgba(8, 16, 28, 0.42) 100%
    ),
    linear-gradient(to top, rgba(8, 16, 28, 0.35) 0%, transparent 28%);
}

.masthead {
  position: absolute;
  top: max(1.15rem, env(safe-area-inset-top, 0px));
  left: max(1.5rem, env(safe-area-inset-left, 0px));
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  z-index: 2;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead__logo {
  display: block;
  width: min(240px, 42vw);
  max-width: min(240px, 42vw);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}

.masthead__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.masthead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.15rem;
}

.lang-switch__sep {
  color: rgba(244, 241, 234, 0.4);
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}

.lang-switch__btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 234, 0.5);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-switch__btn:hover,
.lang-switch__btn:focus-visible {
  color: #f4f1ea;
  text-decoration: none;
}

.lang-switch__btn--active {
  color: #e0c089;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid #e0c089;
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn--primary {
  color: #0c1624;
  background: #e0c089;
  border-color: #e0c089;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #0c1624;
  background: #f0d4a4;
  border-color: #f0d4a4;
}

.btn--ghost {
  color: #f4f1ea;
  background: rgba(8, 16, 28, 0.35);
  border-color: rgba(244, 241, 234, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: #f4f1ea;
  background: rgba(8, 16, 28, 0.55);
  border-color: #e0c089;
}

.sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  max-width: 40rem;
  padding:
    max(6.5rem, calc(env(safe-area-inset-top, 0px) + 5.5rem))
    1.5rem
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1.5rem, env(safe-area-inset-left, 0px));
}

.sheet__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e0c089;
}

.sheet__title {
  margin: 0 0 2.25rem;
  font-weight: 500;
  line-height: 0.95;
}

.sheet__brand {
  display: block;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.sheet__legal {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(244, 241, 234, 0.78);
}

.facts {
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid rgba(224, 192, 137, 0.38);
  display: grid;
  gap: 1.2rem;
}

.facts__item {
  margin: 0;
}

.facts dt {
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.58);
}

.facts dd {
  margin: 0;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 400;
}

.facts__break {
  display: block;
}

.facts__link {
  display: inline-block;
}

@media (max-width: 720px) {
  .stage__image {
    object-position: 82% 32%;
  }

  .stage__veil {
    background:
      linear-gradient(
        180deg,
        rgba(8, 16, 28, 0.55) 0%,
        rgba(8, 16, 28, 0.72) 38%,
        rgba(8, 16, 28, 0.78) 100%
      );
  }

  .masthead {
    align-items: flex-start;
  }

  .masthead__logo {
    width: min(148px, 38vw);
    max-width: min(148px, 38vw);
  }

  .btn {
    min-height: 2.15rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .sheet {
    justify-content: flex-end;
    padding-bottom: max(2.4rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .masthead__tools {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .masthead__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .btn {
    width: 100%;
  }

  .sheet__brand {
    letter-spacing: 0.05em;
  }

  .facts dd {
    word-break: break-word;
  }
}

@media (min-width: 1100px) {
  .sheet {
    padding-left: clamp(2.5rem, 6vw, 5.5rem);
  }

  .masthead {
    top: max(1.6rem, env(safe-area-inset-top, 0px));
    left: clamp(2.5rem, 6vw, 5.5rem);
    right: clamp(1.8rem, 4vw, 3rem);
  }

  .masthead__logo {
    width: 260px;
    max-width: 260px;
  }

  .btn {
    min-height: 2.55rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .stage__media {
    display: none;
  }

  .masthead__logo {
    filter: invert(1);
  }

  .sheet {
    min-height: 0;
    padding: 2rem;
    color: #111;
  }

  .sheet__kicker,
  .sheet__legal,
  .facts dt {
    color: #444;
  }

  a {
    text-decoration: none;
  }
}
