/* АТ «ЗНВКІФ «ЛАМБЕРТ» — lambert.org.ua */

:root {
  --ink: #1b1c1e;
  --ink-soft: #2c2d30;
  --graphite: #58595b;
  --muted: #6b6b67;
  --paper: #f4f2ed;
  --surface: #ffffff;
  --line: #dedad1;
  --brass: #c9a35c;
  --brass-dark: #7a5c22;

  --sidebar: 304px;
  --gutter: clamp(20px, 5vw, 76px);
  --measure: 980px;

  --font-text: "Arsenal", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-text);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

p,
dl,
dd,
h1,
h2 {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 44px;
  height: 1px;
  background: currentColor;
}

.eyebrow--dark {
  color: var(--brass-dark);
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 40px 32px 32px;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  width: 150px;
  margin-bottom: 44px;
  text-decoration: none;
}

.brand__name {
  display: none;
}

.nav-toggle {
  display: none;
}

.nav {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.nav__list,
.nav__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: block;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__sub .nav__link {
  padding: 7px 0 7px 34px;
  font-weight: 400;
}

.nav__link:hover {
  color: var(--ink);
  border-left-color: var(--graphite);
}

.nav__link[aria-current="true"] {
  color: var(--ink);
  border-left-color: var(--brass);
}

.sidebar__contact {
  margin-top: auto;
  padding-top: 36px;
}

.sidebar__contact .label {
  margin-bottom: 4px;
  color: var(--muted);
}

.sidebar__contact a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar__contact a:hover {
  color: var(--brass-dark);
}

/* ---------- Main ---------- */

.main {
  margin-left: var(--sidebar);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100vh, 920px);
  padding: clamp(56px, 8.5vh, 104px) var(--gutter) clamp(44px, 7vh, 80px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(90% 70% at 0% 0%, rgba(201, 163, 92, 0.13), transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -190px;
  z-index: -1;
  width: min(780px, 92vw);
  aspect-ratio: 1;
  background: url("../img/mark-white.png") center / contain no-repeat;
  opacity: 0.035;
}

.hero__inner {
  width: 100%;
  max-width: var(--measure);
  container-type: inline-size;
}

.hero__title {
  margin-top: 30px;
  font-weight: 400;
}

.hero__form {
  display: block;
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.82);
}

.hero__brand {
  display: block;
  margin: 0.14em 0 0 -0.04em;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7.5vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

/* Size the name to the column it sits in, so it always fits on one line */
@supports (font-size: 1cqi) {
  .hero__brand {
    font-size: clamp(2.25rem, 14.5cqi, 8rem);
  }
}

.hero__en {
  max-width: 62ch;
  margin-top: 26px;
  font-size: 0.9rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(34px, 5.5vh, 60px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.facts__item {
  display: flex;
  flex-direction: column;
  padding: 24px 28px 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.facts__item:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.facts dt span {
  display: block;
  margin-top: 3px;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.52);
}

.facts dd {
  margin-top: auto;
  padding-top: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

.facts dd.num {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 700;
}

.facts a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.facts a:hover {
  color: var(--brass);
  text-decoration-color: currentColor;
}

/* ---------- KUA section ---------- */

.section {
  padding: clamp(60px, 10vh, 112px) var(--gutter) clamp(44px, 7vh, 72px);
}

.section__inner {
  max-width: var(--measure);
}

.section__title {
  max-width: 24ch;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.1vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.spec {
  margin-top: clamp(32px, 5vh, 52px);
  border-top: 2px solid var(--ink);
}

.spec__row {
  display: grid;
  grid-template-columns: minmax(170px, 270px) minmax(0, 1fr);
  gap: 8px 44px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.spec dt {
  padding-top: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

.spec dd {
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.6;
}

.spec dd.num {
  font-size: 1.55rem;
  font-weight: 700;
}

.spec__note {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.spec__value {
  margin-top: 10px;
  font-weight: 700;
}

.spec a {
  font-weight: 700;
  white-space: nowrap;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
}

.spec a:hover {
  color: var(--brass-dark);
}

.spec__row:target dt {
  color: var(--ink);
}

.spec__row:target {
  animation: row-flash 1.6s ease-out;
}

@keyframes row-flash {
  from {
    background: rgba(201, 163, 92, 0.2);
  }
  to {
    background: transparent;
  }
}

/* ---------- Statement ---------- */

.statement {
  padding: 0 var(--gutter) clamp(64px, 10vh, 112px);
}

.statement__card {
  position: relative;
  max-width: var(--measure);
  padding: clamp(26px, 4.4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
}

.statement p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.statement strong {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px var(--gutter) 28px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.9fr;
  gap: 32px 44px;
  max-width: var(--measure);
}

.footer__brand img {
  width: 54px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-weight: 700;
  color: #fff;
}

.footer .label {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.56);
}

.footer a {
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer a:hover {
  color: var(--brass);
  text-decoration-color: currentColor;
}

.footer a[href^="tel"] {
  white-space: nowrap;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--measure);
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.to-top {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__inner > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__inner > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero__inner > :nth-child(4) {
    animation-delay: 0.26s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spec__row:target {
    animation: none;
  }
}

/* ---------- Tablet and mobile ---------- */

@media (max-width: 1023px) {
  html {
    scroll-padding-top: 76px;
  }

  .sidebar {
    position: sticky;
    inset: 0 0 auto 0;
    display: block;
    width: auto;
    padding: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 8px 12px 8px 20px;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
    margin: 0;
    color: var(--ink);
  }

  .brand img {
    width: auto;
    height: 50px;
  }

  .brand__name {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s ease, background-color 0.2s ease;
  }

  .nav-toggle__icon {
    position: relative;
  }

  .nav-toggle__icon::before,
  .nav-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle__icon::before {
    top: -7px;
  }

  .nav-toggle__icon::after {
    top: 7px;
  }

  .is-open .nav-toggle__icon {
    background: transparent;
  }

  .is-open .nav-toggle__icon::before {
    transform: translateY(7px) rotate(45deg);
  }

  .is-open .nav-toggle__icon::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: block;
    max-height: calc(100vh - 69px);
    max-height: calc(100dvh - 69px);
    padding: 8px 20px 24px;
    overflow-y: auto;
    border-top: 1px solid var(--line);
  }

  .js .nav {
    display: none;
  }

  .js .is-open .nav {
    display: block;
  }

  .nav__link {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.9rem;
  }

  .nav__sub .nav__link {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .sidebar__contact {
    padding-top: 22px;
  }

  .main {
    margin-left: 0;
  }

  .hero {
    min-height: 0;
  }

  .spec__row {
    scroll-margin-top: 8px;
  }
}

@media (max-width: 719px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts__item,
  .facts__item:nth-child(even) {
    padding: 20px 0 22px;
    border-left: 0;
  }

  .spec__row {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .spec dt {
    padding-top: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    right: -34vw;
    bottom: -26vw;
  }
}

@media (max-width: 379px) {
  .brand__name {
    font-size: 0.78rem;
  }
}

/* ---------- Print ---------- */

@media print {
  .sidebar,
  .skip-link,
  .to-top {
    display: none;
  }

  .main {
    margin: 0;
  }

  body,
  .hero,
  .footer,
  .statement__card {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: 0;
    padding-top: 0;
  }

  .hero::before,
  .hero::after,
  .footer__brand img {
    display: none;
  }

  .hero__inner > * {
    animation: none;
  }

  .eyebrow,
  .hero__form,
  .hero__en,
  .facts dt,
  .facts dt span,
  .spec dt,
  .footer,
  .footer .label,
  .footer__bottom {
    color: #000;
  }

  .facts,
  .facts__item,
  .facts__item:nth-child(even),
  .footer__bottom {
    border-color: #999;
  }
}
