/* =========================================================
   КВАЗАР ТЕХНИКС — visual system
   ========================================================= */

:root {
  --ink: #1b2320;
  --ink-2: #202a25;
  --paper: #e9ebe4;
  --porcelain: #f4f4ee;
  --mint: #8fcab4;
  --mint-deep: #2f5d4c;
  --signal: #e8d66e;
  --muted: #58615b;
  --muted-dark: #a8b1a9;

  --line: rgba(27, 35, 32, 0.15);
  --line-dark: rgba(233, 235, 228, 0.16);

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", -apple-system, "Segoe UI", sans-serif;

  --header-h: 80px;
  --maxw: 1360px;
  --gutter: clamp(20px, 4vw, 64px);
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 4.6vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.05rem, 3.25vw, 3.25rem);
  line-height: 1.07;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.section--dark :focus-visible,
.lamp :focus-visible {
  outline-color: var(--signal);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section {
  padding-block: clamp(84px, 10vw, 150px);
}

.section--tint {
  background: var(--porcelain);
}

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

/* =========================================================
   Utilities
   ========================================================= */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

/* scroll reveal */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready h1,
  .reveal-ready h2,
  .reveal-ready h3 {
    opacity: 0;
    translate: 0 26px;
    transition: opacity 0.75s var(--ease), translate 0.75s var(--ease);
  }

  .reveal-ready h1.is-in,
  .reveal-ready h2.is-in,
  .reveal-ready h3.is-in {
    opacity: 1;
    translate: 0 0;
  }

  .reveal-ready .nav__link {
    opacity: 0;
    translate: 0 -7px;
    transition: opacity 0.55s var(--ease), translate 0.55s var(--ease),
      color 0.2s var(--ease), transform 0.25s var(--ease);
  }

  .reveal-ready .nav__link.is-in {
    opacity: 1;
    translate: 0 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

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

.btn--primary:hover {
  background: var(--mint-deep);
  color: #fff;
}

.btn--sm {
  padding: 11px 16px;
  font-size: 13px;
}

.text-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 4px;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.text-link:hover::after {
  transform: scaleX(0);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(233, 235, 228, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(233, 235, 228, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
}

.brand__logo {
  display: block;
  width: auto;
  height: 64px;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  margin-left: auto;
}

.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--ind-w, 0px);
  height: 3px;
  border-radius: 2px;
  background: var(--signal);
  opacity: 0;
  transform: translate3d(var(--ind-x, 0px), 0, 0);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease),
    opacity 0.3s ease;
  pointer-events: none;
}

.nav.has-active .nav__indicator {
  opacity: 1;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

.nav__link:hover {
  color: var(--mint-deep);
  transform: translateY(-1px);
}

.nav__mobile-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: clamp(18px, 2.5vw, 36px);
}

.header-phone {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--mint-deep);
}

.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
}

.nav-toggle__line {
  position: absolute;
  right: 11px;
  left: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: top 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-toggle__line:first-child {
  top: 17px;
}

.nav-toggle__line:last-child {
  top: 26px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */

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

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  min-height: calc(100svh - var(--header-h));
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 9vh, 104px) clamp(32px, 5vw, 80px)
    clamp(56px, 9vh, 104px) var(--edge);
}

.hero__title {
  max-width: 16ch;
}

.hero__location {
  margin-top: clamp(24px, 3.2vh, 36px);
  color: var(--mint-deep);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.hero__lead {
  max-width: 42ch;
  margin-top: 12px;
  font-size: clamp(1.02rem, 1.2vw, 1.125rem);
  line-height: 1.62;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: clamp(28px, 4vh, 40px);
}

.hero__panel {
  min-width: 0;
  background: var(--ink);
  color: var(--paper);
}

.lamp {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-height: 0;
  padding: 0;
}

.lamp-stage {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* --- lamp -------------------------------------------------- */

.lamp__glow {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.lamp-stage.is-on .lamp__glow {
  opacity: 1;
}

.lamp__halo {
  transform-box: fill-box;
  transform-origin: center;
}

.lamp-stage.is-on .lamp__halo {
  animation: lamp-ignite 0.85s ease-out both, lamp-breathe 7s ease-in-out 1.4s infinite;
}

@keyframes lamp-ignite {
  0% { opacity: 0; }
  9% { opacity: 0.92; }
  17% { opacity: 0.4; }
  27% { opacity: 0.98; }
  43% { opacity: 0.72; }
  100% { opacity: 1; }
}

@keyframes lamp-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.lamp__warm,
.lamp__core {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.lamp-stage.is-on .lamp__warm {
  opacity: 1;
}

.lamp-stage.is-on .lamp__core {
  opacity: 1;
  animation: lamp-core 0.9s ease-out both;
}

@keyframes lamp-core {
  0% { opacity: 0; }
  22% { opacity: 0.55; }
  38% { opacity: 0.3; }
  100% { opacity: 1; }
}

.lamp__filament {
  transition: stroke 0.4s ease;
}

.lamp-stage.is-on .lamp__filament {
  stroke: #FFE0AE;
}

.lamp__filament-glow {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.lamp-stage.is-on .lamp__filament-glow {
  opacity: 0.9;
}

.lamp__glass {
  transition: stroke 0.5s ease;
}

.lamp-stage.is-on .lamp__glass {
  stroke: rgba(255, 220, 168, 0.4);
}

/* hint */

.lamp-hint {
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.lamp-stage.hint-off .lamp-hint,
.lamp-stage.hint-done .lamp-hint,
.lamp-stage.is-on .lamp-hint {
  opacity: 0;
}

.hint__label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  fill: #E9EBE4;
  opacity: 0;
  animation: hint-label 0.9s var(--ease) 1.2s both;
}

@keyframes hint-label {
  from {
    opacity: 0;
    transform: translateX(-7px);
  }
  to {
    opacity: 0.62;
    transform: translateX(0);
  }
}

.hint__line {
  fill: none;
  stroke: rgba(232, 214, 110, 0.34);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0;
  animation: hint-line 5.6s ease-in-out 2.4s infinite;
}

@keyframes hint-line {
  0%, 100% {
    opacity: 0;
  }
  8%, 20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
}

.hint__dot {
  fill: var(--signal);
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(232, 214, 110, 0.75));
  animation: hint-dot 5.6s ease-in-out 2.4s infinite;
}

@keyframes hint-dot {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  6% {
    opacity: 1;
  }
  17% {
    opacity: 1;
    transform: translateX(24px);
  }
  22% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

.hint__ring {
  fill: none;
  stroke: rgba(232, 214, 110, 0.72);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hint-ring 5.6s ease-out 2.4s infinite;
}

@keyframes hint-ring {
  0%, 16% {
    opacity: 0;
    transform: scale(1);
  }
  20% {
    opacity: 0.62;
    transform: scale(1.008);
  }
  36% {
    opacity: 0;
    transform: scale(1.045);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* room lighting */

.room,
.pendant,
.room__dust,
.room__light {
  pointer-events: none;
}

.lamp-hint {
  pointer-events: none;
}

.room__light {
  opacity: 0;
  transition: opacity 0.9s ease;
  mix-blend-mode: screen;
}

.lamp-stage.is-on .room__light {
  opacity: 1;
  animation: lamp-ignite 0.9s ease-out both;
}

.mote {
  fill: #FFE3B8;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.lamp-stage.is-on .mote {
  opacity: 0.5;
  animation: mote-float 18s ease-in-out infinite;
}

.lamp-stage.is-on .mote:nth-child(2) {
  animation-duration: 23s;
  animation-delay: -5s;
}

.lamp-stage.is-on .mote:nth-child(3) {
  animation-duration: 20s;
  animation-delay: -9s;
}

.lamp-stage.is-on .mote:nth-child(4) {
  animation-duration: 26s;
  animation-delay: -3s;
}

.lamp-stage.is-on .mote:nth-child(5) {
  animation-duration: 21s;
  animation-delay: -12s;
}

.lamp-stage.is-on .mote:nth-child(6) {
  animation-duration: 24s;
  animation-delay: -7s;
}

.lamp-stage.is-on .mote:nth-child(7) {
  animation-duration: 19s;
  animation-delay: -14s;
}

.lamp-stage.is-on .mote:nth-child(8) {
  animation-duration: 25s;
  animation-delay: -2s;
}

@keyframes mote-float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(7px, -16px);
  }
}

/* switch */

.lamp-switch {
  cursor: pointer;
  outline: none;
}

.switch__plate {
  transition: stroke 0.2s var(--ease);
}

.lamp-switch:hover .switch__plate,
.lamp-switch:focus-visible .switch__plate {
  stroke: rgba(232, 214, 110, 0.75);
}

.lamp-switch:focus-visible .switch__slot {
  stroke: var(--signal);
  stroke-width: 1.6;
}

.switch__lever {
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.lamp-stage.is-on .switch__lever {
  transform: translateY(-36px);
}

.lamp-switch:active .switch__lever {
  transition-duration: 0.12s;
}

.switch__led {
  fill: #47534B;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.lamp-stage.is-on .switch__led {
  fill: #FFC97E;
  filter: drop-shadow(0 0 5px rgba(255, 201, 126, 0.85));
}

.switch__spill {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.lamp-stage.is-on .switch__spill {
  opacity: 0.3;
}

/* --- facts strip ------------------------------------------ */

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

.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-block: 24px;
}

.fact {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}

.fact::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.52em;
  background: var(--mint-deep);
}

/* =========================================================
   About
   ========================================================= */

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.about__title {
  grid-column: 1 / span 3;
  font-size: clamp(2.3rem, 3.4vw, 3.4rem);
}

.about__lead {
  grid-column: 4 / span 9;
  max-width: 30ch;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

.about__body {
  display: grid;
  grid-column: 4 / span 6;
  gap: 18px;
  max-width: 62ch;
  margin-top: clamp(48px, 6vw, 76px);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about__figure {
  grid-column: 10 / span 3;
  max-width: 313px;
  margin-top: clamp(48px, 6vw, 76px);
  justify-self: end;
}

.shot__media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 60 / 52;
}

.shot__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.98);
}

.shot__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.4;
  pointer-events: none;
}

.shot figcaption {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* =========================================================
   Features
   ========================================================= */

.features__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.features__aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  grid-column: 1 / span 4;
  align-self: start;
}

.features__title {
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  line-height: 1.12;
}

.features__list {
  grid-column: 6 / span 7;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 30px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.feature:last-of-type {
  border-bottom: 1px solid var(--line);
}

.feature__title {
  font-size: clamp(1.1rem, 1.45vw, 1.32rem);
  line-height: 1.3;
}

.feature__body p {
  font-size: 1rem;
  line-height: 1.6;
}

.benefits {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.benefits li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.benefits li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--mint-deep);
}

.features__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* =========================================================
   Steps
   ========================================================= */

.steps__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}

.steps__title {
  grid-column: 1 / span 7;
  font-size: clamp(1.95rem, 3vw, 3rem);
  line-height: 1.08;
}

.steps__intro {
  grid-column: 9 / span 4;
  max-width: 32ch;
  padding-bottom: 6px;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.6;
}

.steps-list {
  max-width: 1020px;
  margin-top: clamp(48px, 6vw, 80px);
}

.step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
}

.step__marker {
  position: relative;
  padding-right: 28px;
  border-right: 1px solid var(--line-dark);
}

.step__marker::after {
  content: "";
  position: absolute;
  top: 9px;
  right: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--ink);
}

.step__number {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.step__body {
  max-width: 900px;
  padding: 0 0 56px 40px;
}

.step__body h3 {
  max-width: 30ch;
  font-size: clamp(1.18rem, 1.55vw, 1.5rem);
  line-height: 1.32;
  letter-spacing: -0.022em;
}

.step:last-child .step__body {
  padding-bottom: 0;
}

.substeps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 36px;
  margin-top: 24px;
}

.substeps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted-dark);
  font-size: 0.90625rem;
  line-height: 1.58;
}

.substep__num {
  padding-top: 2px;
  color: var(--mint);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Evidence
   ========================================================= */

.evidence {
  padding-block: clamp(72px, 8vw, 112px);
}

.evidence__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.evidence__grid .shot {
  grid-column: span 4;
}

.evidence__note {
  grid-column: 1 / -1;
  max-width: 42ch;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid var(--mint-deep);
  font-size: 1rem;
  line-height: 1.55;
}

/* =========================================================
   Contacts
   ========================================================= */

.contacts {
  padding-block: clamp(84px, 10vw, 150px);
}

.contacts__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.contacts__info {
  grid-column: 1 / span 6;
}

.contacts__info h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.35rem);
}

.contacts__sub {
  margin-top: 18px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
}

.contacts__company {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-block {
  margin-top: 32px;
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.contact-phone {
  display: inline-block;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease);
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-phone:hover,
.contact-email:hover,
.contact-messengers a:hover {
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}

.contact-messengers {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-messengers a {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contacts__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  max-width: 400px;
  grid-column: 8 / span 5;
  justify-self: end;
  text-align: right;
}

.quasar {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.quasar__area {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding-block: 26px;
  border-top: 1px solid var(--line);
  background: var(--porcelain);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12.5px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 500;
}

.footer-up {
  border-bottom: 1px solid var(--line);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-up:hover {
  color: var(--mint-deep);
  border-color: var(--mint-deep);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero__copy {
    padding: clamp(64px, 10vh, 96px) var(--gutter) 56px;
  }

  .hero__title {
    max-width: 18ch;
  }

  .hero__lead {
    max-width: 52ch;
  }

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

  .lamp {
    height: auto;
    padding: 0;
  }

  .lamp-stage {
    width: 100%;
    height: auto;
    max-width: 560px;
    margin-inline: auto;
  }

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

  .features__aside {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: 40px;
  }

  .features__title {
    max-width: 24ch;
  }

  .features__list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .about__title {
    grid-column: 1 / -1;
  }

  .about__lead {
    grid-column: 1 / -1;
    margin-top: 20px;
    max-width: 34ch;
  }

  .about__body {
    grid-column: 1 / span 7;
  }

  .about__figure {
    grid-column: 9 / span 4;
    max-width: none;
    justify-self: stretch;
  }

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

  .steps__title {
    grid-column: 1 / -1;
  }

  .steps__intro {
    grid-column: 1 / -1;
    max-width: 40ch;
    margin-top: 20px;
  }

  .contacts__info {
    grid-column: 1 / span 7;
  }

  .contacts__mark {
    grid-column: 9 / span 4;
    max-width: none;
  }

  .contact-phone {
    font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .header-inner {
    gap: 0;
  }

  .brand__logo {
    height: 52px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .header-actions {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 44px -36px rgba(27, 35, 32, 0.5);
  }

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

  .nav__indicator {
    display: none;
  }

  .nav__link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav__link.is-active {
    color: var(--mint-deep);
  }

  .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin-top: 20px;
  }

  .nav__phone {
    font-size: 18px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
  }

  .hero__title {
    font-size: clamp(2.55rem, 7.4vw, 3.8rem);
  }

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

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding-block: 26px;
  }

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

  .step {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .step__marker {
    padding-right: 20px;
  }

  .step__number {
    font-size: 22px;
  }

  .step__body {
    padding-left: 28px;
  }

  .substeps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .evidence__grid .shot {
    grid-column: span 4;
  }

  .evidence__note {
    grid-column: 1 / -1;
    max-width: 42ch;
    margin-top: 8px;
  }

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

  .contacts__info {
    grid-column: 1 / -1;
  }

  .contacts__mark {
    grid-column: 1 / -1;
    align-items: flex-start;
    max-width: 400px;
    margin-top: 56px;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .hero__copy {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .hero__lead {
    max-width: 40ch;
  }

  .hero__actions {
    gap: 20px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 20px;
  }

  .about__body {
    grid-column: 1 / -1;
  }

  .about__figure {
    grid-column: 1 / -1;
    max-width: 360px;
    margin-top: 32px;
    justify-self: start;
  }

  .evidence__grid .shot {
    grid-column: span 6;
  }

  .evidence__note {
    grid-column: 1 / -1;
    max-width: 42ch;
    margin-top: 8px;
  }

  .footer-inner {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .footer-area {
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .hint__label {
    font-size: 17px;
  }

  .hint__dot {
    r: 3.4px;
  }

  .hint__line {
    stroke-width: 1.6;
  }

  .hero__title {
    font-size: clamp(1.7rem, 8.9vw, 2.7rem);
  }

  .hero__location {
    margin-top: 22px;
  }

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

  .features__figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .step {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .step__marker {
    padding-right: 14px;
  }

  .step__number {
    font-size: 18px;
  }

  .step__body {
    padding-left: 20px;
    padding-bottom: 40px;
  }

  .step__body h3 {
    font-size: 1.1rem;
  }

  .substeps li {
    grid-template-columns: 28px minmax(0, 1fr);
    font-size: 0.875rem;
  }

  .evidence__grid .shot,
  .evidence__note {
    grid-column: 1 / -1;
  }

  .evidence__note {
    margin-top: 8px;
  }

  .contacts__info h2 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .contact-phone {
    font-size: 1.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lamp-stage.is-on .lamp__halo,
  .lamp-stage.is-on .lamp__core,
  .lamp-stage.is-on .room__light,
  .lamp-stage.is-on .mote {
    animation: none;
  }

  .lamp-stage.is-on .mote {
    opacity: 0.35;
  }
}
