*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --bg: #121414;
  --bg-alt: #1a1c1b;
  --bg-card: #1f2221;
  --text: #f2f4f7;
  --text-muted: #a8b0ac;
  --border: #2e3331;

  --page-bg: var(--bg);
  --page-bg-alt: var(--bg-alt);
  --page-ink: var(--text);
  --page-muted: var(--text-muted);

  --yellow: #e5b80b;
  --yellow-bright: #f4d03f;
  --yellow-soft: #e5b80b;
  --yellow-deep: #c9a009;
  --yellow-glow: rgba(244, 208, 63, 0.16);
  --yellow-border: rgba(244, 208, 63, 0.38);
  --warm-spot: rgba(244, 208, 63, 0.1);
  --warm-deep: rgba(0, 0, 0, 0.35);

  --ink: #000000;
  --ink-soft: #0a0a0a;
  --ink-muted: #c8ced6;

  --blue: #8a96a0;
  --blue-bright: #a8b4bc;
  --blue-soft: #7a8a96;
  --blue-deep: #5a6b78;
  --blue-glow: rgba(168, 180, 188, 0.1);
  --blue-border: rgba(168, 180, 188, 0.25);

  --green: #7e8a82;
  --green-bright: #9aa69e;
  --green-soft: #7e8a82;
  --green-deep: #5f6b64;
  --green-glow: rgba(154, 166, 158, 0.1);
  --green-border: rgba(154, 166, 158, 0.22);

  --black: #000000;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-color: #f4d03f #0a0a0a;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: #000000;
  border-left: 1px solid rgba(244, 208, 63, 0.12);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(
      180deg,
      #f7dc6f 0%,
      #f4d03f 35%,
      #e5b80b 70%,
      #c9a009 100%
    );
  border: 2px solid #000000;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(244, 208, 63, 0.2);
  min-height: 48px;
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      #ffe89a 0%,
      #f4d03f 40%,
      #f4d03f 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 10px rgba(244, 208, 63, 0.28);
}

::-webkit-scrollbar-thumb:active {
  background:
    linear-gradient(
      180deg,
      #e5b80b 0%,
      #c9a009 100%
    );
}

::-webkit-scrollbar-corner {
  background: #000000;
  border-left: 1px solid rgba(244, 208, 63, 0.12);
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background-color: #071012;
  background-image: none;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

/* Фон сайта: соты */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #071012;
  background-image: url('../assets/brand/site-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Лёгкая вуаль, чтобы текст читался */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 12, 0.28) 0%, rgba(5, 10, 12, 0.16) 45%, rgba(5, 10, 12, 0.36) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  animation: none;
}

@media (max-width: 767px) {
  body::before {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}

/* —— Splash / заставка —— */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 9999;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(232, 195, 90, 0.12), transparent 60%),
    #f2f4f7;
  transition: opacity 1s ease, visibility 1s ease;
}

.splash__inner {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 1.5rem;
}

.splash__brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  animation: splash-rise 0.9s ease both;
}

.splash__tag {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 232, 0.62);
  animation: splash-rise 0.9s ease 0.08s both;
}

.splash.is-leaving .splash__brand,
.splash.is-leaving .splash__tag {
  animation: splash-dissolve 1s ease forwards;
}

.splash.is-leaving .splash__brand {
  animation-delay: 0.04s;
}

.splash.is-leaving .splash__tag {
  animation-delay: 0.08s;
}

.splash.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes splash-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-dissolve {
  to {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash__brand,
  .splash__tag {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .splash.is-leaving .splash__brand,
  .splash.is-leaving .splash__tag {
    animation: none;
    opacity: 0;
  }

  .splash {
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1400px, 100% - 2rem);
  margin-inline: auto;
}

#header {
  position: relative;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(10, 10, 10, 0.92) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244, 208, 63, 0.18);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.header-brand {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(10, 10, 10, 0.2);
  background:
    linear-gradient(180deg, #f4d03f 0%, var(--yellow-bright) 45%, var(--yellow-soft) 100%);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.16);
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-switch {
  --lang-pad: 0.2rem;
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: var(--lang-pad);
  border: 1px solid rgba(244, 208, 63, 0.28);
  background: #0a0a0a;
  box-shadow: none;
  backdrop-filter: none;
}

.lang-switch__glider {
  position: absolute;
  top: var(--lang-pad);
  bottom: var(--lang-pad);
  left: var(--lang-pad);
  width: calc(50% - var(--lang-pad));
  background: rgba(244, 208, 63, 0.14);
  border: 1px solid rgba(244, 208, 63, 0.4);
  box-shadow: none;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.lang-switch:has([data-lang='kk'].is-active) .lang-switch__glider {
  transform: translateX(100%);
}

.lang-switch__btn {
  position: relative;
  z-index: 1;
  min-width: 2.85rem;
  padding: 0.42rem 0.7rem;
  border: 0;
  background: transparent;
  color: #8a9290;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
}

.lang-switch__btn:hover {
  color: #f2f4f7;
}

.lang-switch__btn.is-active {
  color: var(--yellow-bright);
  text-shadow: none;
}

.lang-switch__btn:focus-visible {
  outline: 1px solid var(--yellow-soft);
  outline-offset: 2px;
}

#navToggle,
.nav-toggle {
  display: none;
  place-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, 0.18);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--yellow-bright);
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#navLinks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navLinks a {
  position: relative;
  text-decoration: none;
  color: #c8ced6;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

#navLinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--yellow-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#navLinks a:hover {
  color: var(--yellow-bright);
  text-decoration: none;
}

#navLinks a:hover::after {
  transform: scaleX(1);
}

section {
  padding-block: 3.75rem;
  scroll-margin-top: 1rem;
  position: relative;
}

section:nth-child(even) {
  background: linear-gradient(180deg, rgba(7, 16, 18, 0.22), rgba(7, 16, 18, 0.1));
}

#services {
  background: transparent;
}

#portfolio {
  position: relative;
  background: transparent;
}

#about {
  background: transparent;
  position: relative;
  overflow: hidden;
}

#about::before {
  content: 'UpGrade';
  position: absolute;
  right: 3.5rem;
  top: -0.5rem;
  z-index: 0;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229, 184, 11, 0.28);
  text-shadow: 0 0 40px rgba(244, 208, 63, 0.12);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transform: rotate(-8deg);
  transform-origin: right top;
}

.about-layout {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.25rem;
    align-items: start;
  }
}

.about-visual {
  position: relative;
  max-width: 28rem;
}

.about-visual__frame {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--yellow-border);
  background: #1f2221;
}

.about-visual__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(44, 48, 46, 0.55) 100%),
    linear-gradient(90deg, rgba(44, 48, 46, 0.2), transparent 40%);
  pointer-events: none;
}

.about-visual__frame img,
.about-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  transform: scale(1.01);
  transform-origin: center top;
  transition: transform 0.7s ease;
}

.about-visual:hover .about-visual__frame img,
.about-visual:hover .about-visual__img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .about-visual__frame img,
  .about-visual__img {
    transition: none;
  }
}

.about-visual__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-bright);
  border: 1px solid var(--yellow-border);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.about-plaque {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  max-width: 15rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(229, 184, 11, 0.45);
  background:
    linear-gradient(155deg, rgba(244, 208, 63, 0.16), transparent 55%),
    rgba(0, 0, 0, 0.72);
  box-shadow: 0 18px 40px rgba(44, 48, 46, 0.12);
  backdrop-filter: blur(8px);
  text-align: center;
}

.about-plaque__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.about-plaque__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  color: #f2f4f7;
}

.about-plaque__name {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-kicker {
  margin: 0 0 0.45rem !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-soft) !important;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.about-lead {
  font-size: 1.05rem;
  color: #5f6662 !important;
}

.about-copy > p {
  margin: 0 0 0.9rem;
  max-width: 38rem;
}

.about-points {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.about-points__num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue-bright);
  line-height: 1.4;
}

.about-points strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f2f4f7;
}

.about-points span {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

#contact {
  background: transparent;
  overflow: hidden;
}

#process {
  background: transparent;
}

#hero {
  padding: 0.85rem 0.85rem 1.35rem;
  overflow: visible;
  background: transparent;
}

#hero::before,
#hero::after {
  display: none;
}

.hero-stage {
  position: relative;
  height: var(--hero-h, calc(62svh - 2rem));
  min-height: var(--hero-h, calc(62svh - 2rem));
  max-height: var(--hero-h, calc(62svh - 2rem));
  border-radius: clamp(1.5rem, 3.5vw, 2.5rem);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  box-shadow:
    0 24px 60px rgba(24, 27, 32, 0.14),
    0 0 0 1px rgba(24, 27, 32, 0.04);
}

.hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-stage__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 48%;
  transform: none;
  filter: none;
  transition: none;
}

.hero-stage:hover .hero-stage__img {
  transform: none;
}

@media (hover: none), (pointer: coarse) {
  .hero-stage__img {
    transform: none;
    transition: none;
  }

  .hero-stage:hover .hero-stage__img {
    transform: none;
  }
}

.hero-stage__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 38% 32%, rgba(8, 8, 10, 0.42), transparent 68%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.14) 0%, transparent 30%, transparent 72%, rgba(8, 8, 10, 0.26) 100%);
}

.hero-stage__ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  text-align: left;
}

.hero-center {
  max-width: 38rem;
  width: 100%;
  margin-inline: auto;
  margin-top: -18%;
  padding-bottom: 0;
  transform: translateX(-6%);
}

.hero-brand {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-bright);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

#hero h1 {
  max-width: 16ch;
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5.2vw, 3.1rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(44, 48, 46, 0.12);
}

.hero-lead {
  margin: 0 0 0.55rem;
  max-width: 32ch;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.hero-trust {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(240, 208, 120, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem 1.35rem;
  margin-top: 1.35rem;
}

.hero-cta,
button[type="submit"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0.95rem 1.5rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(180deg, #f4d03f 0%, var(--yellow-bright) 45%, var(--yellow-soft) 100%);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(10, 10, 10, 0.18);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.12);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-cta:hover,
button[type="submit"]:hover,
.btn:hover {
  background:
    linear-gradient(180deg, #f7dc6f 0%, #f4d03f 50%, var(--yellow-bright) 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(229, 184, 11, 0.35);
}

.hero-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.hero-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(44, 48, 46, 0.1);
  transition: transform 0.15s, box-shadow 0.2s;
}

.wa-float svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero-center {
    transition: none;
  }
}

@media (max-width: 960px) {
  .hero-stage__ui {
    padding: 1.15rem;
  }
}

h1,
h2 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: #ffffff;
  font-weight: 600;
}

h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: #f2f4f7;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .services-grid {
    gap: 1rem;
  }
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.45rem 1.4rem 1.35rem;
  border: 1px solid rgba(244, 208, 63, 0.18);
  background:
    linear-gradient(145deg, rgba(244, 208, 63, 0.08) 0%, transparent 42%),
    linear-gradient(160deg, #1f2221 0%, var(--bg-card) 100%);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--yellow-border);
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(44, 48, 46, 0.12),
    0 0 0 1px rgba(244, 208, 63, 0.12);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  color: var(--yellow-bright);
  background: radial-gradient(circle at 30% 30%, rgba(255, 216, 77, 0.12), transparent 65%);
  border: none;
  box-shadow: none;
  transition: transform 0.25s;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
}

.service-card__body {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.service-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.service-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-card__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: 0.55rem 0 0;
}

.service-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--yellow-bright);
  letter-spacing: 0.01em;
}

.service-card__term {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.service-card--wide {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.service-card--wide .service-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}

.service-card--photo {
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.service-card__media {
  position: relative;
  aspect-ratio: 16 / 11;
  max-height: 11rem;
  overflow: hidden;
  background: #1f2221;
}

.service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
  transition: transform 0.45s ease;
}

.service-card__media--sofa img {
  object-position: 48% 72%;
}

.service-card__media--chair img {
  object-position: 50% 45%;
}

.service-card__media--stool {
  aspect-ratio: 4 / 3;
  max-height: 13.5rem;
}

.service-card__media--stool img {
  object-position: 52% 72%;
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: 52% 72%;
}

.service-card__media--bed img {
  object-position: 18% 58%;
}

.service-card--photo:hover .service-card__media img {
  transform: scale(1.04);
}

.service-card--photo:hover .service-card__media--stool img {
  transform: scale(1.16);
}

.service-card--photo .service-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.2rem 1.15rem;
}

.service-card--photo h3 {
  font-size: 1.15rem;
}

@media (max-width: 639px) {
  .service-card__media--stool {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .service-card__media--stool img {
    object-position: 50% 78%;
    transform: scale(1.2);
    transform-origin: 50% 78%;
  }

  .service-card--photo:hover .service-card__media--stool img {
    transform: scale(1.24);
  }

  .service-card {
    padding: 0.85rem 0.75rem 0.9rem;
    gap: 0.55rem;
  }

  .service-card__icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .service-card h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .service-card__text {
    font-size: 0.75rem;
  }

  .service-card__price {
    font-size: 0.95rem;
  }

  .service-card__term {
    font-size: 0.72rem;
  }

  .service-card__offer {
    gap: 0.25rem 0.5rem;
    margin-top: 0.35rem;
  }

  .service-card__media {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .service-card--photo .service-card__body {
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .service-card--photo h3 {
    font-size: 0.92rem;
  }

  .service-card--wide {
    flex-direction: row;
    align-items: center;
    padding: 0.95rem 1rem;
  }

  .service-card--wide .service-card__icon {
    width: 2.85rem;
    height: 2.85rem;
  }

  .service-card--wide h3 {
    font-size: 1.05rem;
  }
}

.services-lead {
  margin: -0.85rem 0 1.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.services-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  max-width: 36rem;
  opacity: 0.85;
}

.bulk {
  position: relative;
}

.bulk__panel {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.6rem) clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--yellow-border);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(244, 208, 63, 0.18), transparent 55%),
    linear-gradient(165deg, #1f2221 0%, var(--bg-card) 100%);
}

.bulk__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.bulk h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
}

.bulk__pay {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.35rem;
}

.bulk__pay-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.kaspi-badge {
  display: inline-flex;
  line-height: 0;
}

.kaspi-badge svg {
  display: block;
  height: 1.75rem;
  width: auto;
}

.bulk__pay-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f2f4f7;
}

.bulk__lead {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.bulk__audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.35rem;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

.bulk__audience li {
  position: relative;
  padding-left: 0.95rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.bulk__audience li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--yellow-bright);
}

.bulk__deal {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  padding-block: 1.1rem;
  border-block: 1px solid rgba(229, 184, 11, 0.28);
}

.bulk__deal-num {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--yellow-bright);
}

.bulk__deal-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bulk__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.45rem;
  border: 1px solid rgba(10, 10, 10, 0.22);
  background:
    linear-gradient(180deg, #f4d03f 0%, #f4d03f 45%, var(--yellow) 100%);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.bulk__cta:hover {
  background:
    linear-gradient(180deg, #f7dc6f 0%, #f4d03f 50%, var(--yellow-bright) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(232, 195, 90, 0.28);
}

.fabrics-note {
  margin-top: 1.75rem;
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(244, 208, 63, 0.12), transparent 35%),
    linear-gradient(160deg, #1f2221 0%, var(--bg-card) 100%);
  position: relative;
}

.fabrics-note__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #f2f4f7;
}

.fabrics-note__title,
.visit-note__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.note-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue-bright);
}

.note-icon svg {
  width: 100%;
  height: 100%;
}

.fabrics-note__lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.fabrics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fabrics-list li {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.fabrics-list li:hover {
  border-color: var(--yellow-border);
  color: var(--yellow-bright);
  transform: translateY(-1px);
}

.process-step__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  color: var(--yellow-bright);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 216, 77, 0.22), transparent 55%),
    rgba(255, 216, 77, 0.08);
  border: 1px solid var(--yellow-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s, background 0.25s;
}

.process-step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.process-step:hover .process-step__icon {
  transform: scale(1.05);
  background:
    radial-gradient(circle at 30% 20%, rgba(107, 143, 184, 0.24), transparent 55%),
    rgba(255, 216, 77, 0.08);
  border-color: var(--blue-border);
  color: var(--blue-bright);
}

.process-step__icon svg {
  overflow: visible;
}

/* Camera: shutter + flash */
@keyframes camera-shutter {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(0.72); }
  55% { transform: scale(1.08); }
}

@keyframes camera-flash {
  0%, 100% {
    opacity: 0;
    transform: scale(0.2);
  }
  18% {
    opacity: 0.9;
    transform: scale(1.15);
  }
  40% {
    opacity: 0.25;
    transform: scale(1.45);
  }
  65%, 100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

@keyframes camera-flash-dot {
  0%, 100% { opacity: 1; }
  15%, 40% { opacity: 0.15; }
}

.icon-camera__flash {
  opacity: 0;
  transform-origin: 12px 13.5px;
  transform-box: fill-box;
  pointer-events: none;
}

.process-step--camera:hover .icon-camera__lens {
  transform-origin: 12px 13.5px;
  animation: camera-shutter 0.9s ease-in-out infinite;
}

.process-step--camera:hover .icon-camera__flash {
  animation: camera-flash 0.9s ease-out infinite;
}

.process-step--camera:hover .icon-camera__flash-dot {
  animation: camera-flash-dot 0.9s ease-in-out infinite;
}

/* Document: pencil writing + lines appearing */
@keyframes doc-pen-write {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-1.2px, 1.4px) rotate(-6deg); }
  50% { transform: translate(0.8px, -0.6px) rotate(4deg); }
  75% { transform: translate(-0.9px, 1px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes doc-line-draw {
  0% { stroke-dashoffset: 12; opacity: 0.25; }
  40%, 100% { stroke-dashoffset: 0; opacity: 1; }
}

.icon-doc__line {
  stroke-dasharray: 12;
  stroke-dashoffset: 0;
}

.process-step--doc:hover .icon-doc__pen {
  transform-origin: 18px 16px;
  animation: doc-pen-write 0.85s ease-in-out infinite;
}

.process-step--doc:hover .icon-doc__line--1 {
  animation: doc-line-draw 0.85s ease-out infinite;
}

.process-step--doc:hover .icon-doc__line--2 {
  animation: doc-line-draw 0.85s ease-out 0.12s infinite;
}

/* Scissors: cut in place */
@keyframes scissors-top {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-18deg); }
}

@keyframes scissors-bot {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(18deg); }
}

.icon-scissors__blade--top,
.icon-scissors__blade--bot {
  transform-box: fill-box;
  transform-origin: center;
}

.process-step--scissors:hover .icon-scissors__blade--top {
  transform-origin: 6px 12px;
  animation: scissors-top 0.55s ease-in-out infinite;
}

.process-step--scissors:hover .icon-scissors__blade--bot {
  transform-origin: 6px 12px;
  animation: scissors-bot 0.55s ease-in-out infinite;
}

/* Truck: drive + wheels */
@keyframes truck-drive {
  0% { transform: translateX(-2px); }
  50% { transform: translateX(3px); }
  100% { transform: translateX(-2px); }
}

@keyframes truck-wheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.process-step--truck:hover .icon-truck {
  animation: truck-drive 0.7s ease-in-out infinite;
}

.process-step--truck:hover .icon-truck__wheel {
  transform-origin: center;
  transform-box: fill-box;
  animation: truck-wheel 0.55s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .process-step--camera:hover .icon-camera__lens,
  .process-step--camera:hover .icon-camera__flash,
  .process-step--camera:hover .icon-camera__flash-dot,
  .process-step--doc:hover .icon-doc__pen,
  .process-step--doc:hover .icon-doc__line--1,
  .process-step--doc:hover .icon-doc__line--2,
  .process-step--scissors:hover .icon-scissors__blade--top,
  .process-step--scissors:hover .icon-scissors__blade--bot,
  .process-step--truck:hover .icon-truck,
  .process-step--truck:hover .icon-truck__wheel {
    animation: none;
  }
}

#about p,
.portfolio-lead,
.contact-lead {
  color: var(--text-muted);
}

.finished {
  margin: 2.4rem 0 1.5rem;
}

.finished__intro {
  max-width: 28rem;
  margin: 0 0 1.35rem;
}

.finished__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.finished__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.finished-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  grid-auto-flow: dense;
}

.finished-grid .finished-shot--hero {
  grid-column: 1 / -1;
}

@media (min-width: 820px) {
  .finished-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 12rem;
    gap: 0.85rem;
    align-items: stretch;
  }

  .finished-grid .finished-shot--hero {
    grid-column: span 4;
    grid-row: span 2;
  }

  .finished-grid .finished-shot:not(.finished-shot--hero):not(.finished-shot--wide) {
    grid-column: span 2;
  }

  .finished-grid .finished-shot--wide {
    grid-column: span 3;
  }

  .finished-grid .finished-shot--wide-lg {
    grid-column: span 4;
  }
}

.finished-shot {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background:
    linear-gradient(155deg, rgba(244, 208, 63, 0.26) 0%, rgba(244, 208, 63, 0.07) 38%, #161a18 100%);
  border: 1px solid rgba(244, 208, 63, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(244, 208, 63, 0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.finished-shot:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 14px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(244, 208, 63, 0.18);
}

.finished-shot__btn {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
  color: inherit;
  font: inherit;
}

.finished-shot__btn:focus-visible {
  outline: 2px solid var(--yellow-bright);
  outline-offset: 3px;
}

.finished-shot::before {
  content: '';
  position: absolute;
  inset: 0.24rem;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(244, 208, 63, 0.26);
  box-shadow: inset 0 0 0 1px rgba(10, 12, 11, 0.5);
}

.finished-shot__mat {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #101312;
}

@media (min-width: 820px) {
  .finished-shot__mat {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (max-width: 819px) {
  .finished-grid .finished-shot--hero .finished-shot__mat {
    aspect-ratio: 16 / 10;
  }
}

.finished-shot__mat::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 12, 11, 0.3) 100%);
}

.finished-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.05) brightness(0.95);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.finished-shot:hover img {
  transform: scale(1.04);
  filter: saturate(0.98) contrast(1.08) brightness(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .finished-shot,
  .finished-shot img {
    transition: none;
  }

  .finished-shot:hover {
    transform: none;
  }

  .finished-shot:hover img {
    transform: none;
  }
}

.finished-grid .finished-shot:nth-child(1) img { object-position: 50% 58%; }
.finished-grid .finished-shot:nth-child(2) img { object-position: 45% 55%; }
.finished-grid .finished-shot:nth-child(3) img { object-position: 50% 45%; }
.finished-grid .finished-shot:nth-child(4) img { object-position: 50% 48%; }
.finished-grid .finished-shot:nth-child(5) img { object-position: 50% 42%; }
.finished-grid .finished-shot:nth-child(6) img { object-position: 55% 48%; }
.finished-grid .finished-shot:nth-child(7) img { object-position: 48% 40%; }
.finished-grid .finished-shot:nth-child(8) img { object-position: 35% 45%; }
.finished-grid .finished-shot:nth-child(9) img { object-position: 58% 45%; }
.finished-grid .finished-shot:nth-child(10) img { object-position: 50% 40%; }

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(6, 8, 7, 0.9);
  cursor: zoom-out;
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 0.75rem 0.5rem;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

.lightbox__frame {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.4rem;
  line-height: 0;
  background:
    linear-gradient(145deg, rgba(244, 208, 63, 0.24) 0%, rgba(244, 208, 63, 0.07) 42%, #151816 100%),
    #1a1d1b;
  border: 1px solid rgba(244, 208, 63, 0.48);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.lightbox__img {
  display: block;
  width: 100%;
  max-width: min(100%, 1000px);
  height: auto;
  max-height: min(78vh, 820px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 208, 63, 0.4);
  background: rgba(18, 21, 20, 0.92);
  color: #f4d03f;
  cursor: pointer;
}

.lightbox__close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lightbox__close:hover {
  background: rgba(244, 208, 63, 0.14);
}

.lightbox__nav {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 208, 63, 0.38);
  background: rgba(18, 21, 20, 0.9);
  color: #f4d03f;
  cursor: pointer;
  grid-row: 1;
  flex-shrink: 0;
}

.lightbox__nav svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lightbox__nav--prev {
  grid-column: 1;
}

.lightbox__nav--next {
  grid-column: 3;
}

.lightbox__nav:hover {
  background: rgba(244, 208, 63, 0.14);
}

.lightbox__counter {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(242, 244, 247, 0.72);
  text-align: center;
}

body.lightbox-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 700px) {
  .lightbox {
    place-items: center;
    align-content: center;
  }

  .lightbox__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "frame frame"
      "prev next"
      "count count";
    width: 100%;
    max-width: 100%;
    gap: 0.7rem 0.85rem;
    margin: 0;
  }

  .lightbox__frame {
    grid-area: frame;
    width: 100%;
    max-width: 100%;
    padding: 0.3rem;
  }

  .lightbox__img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(58dvh, 58vh);
    object-fit: contain;
    background: transparent;
  }

  .lightbox__nav--prev {
    grid-area: prev;
    justify-self: start;
  }

  .lightbox__nav--next {
    grid-area: next;
    justify-self: end;
  }

  .lightbox__counter {
    grid-area: count;
  }

  .lightbox__close {
    position: fixed;
    top: max(0.65rem, env(safe-area-inset-top, 0px));
    right: max(0.65rem, env(safe-area-inset-right, 0px));
  }
}

.visit-note {
  margin-top: 0.75rem;
  padding: 1.65rem 1.7rem 1.55rem 1.55rem;
  border: 1px solid var(--yellow-border);
  border-left: 3px solid var(--yellow-soft);
  background: linear-gradient(165deg, #1f2221 0%, #171a19 100%);
  position: relative;
  z-index: 1;
}

.visit-note__title {
  margin: 0 0 0.7rem !important;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #f2f4f7 !important;
}

.visit-note__title .note-icon {
  width: 2rem;
  height: 2rem;
  color: var(--yellow-bright);
  border: 1px solid var(--yellow-border);
  background: rgba(244, 208, 63, 0.12);
}

.visit-note__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 48rem;
  font-size: 0.98rem;
}

.visit-note__cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.15rem;
  padding: 0.65rem 1.1rem;
  color: #f2f4f7;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 236, 170, 0.45);
  background:
    linear-gradient(180deg, #f4d03f 0%, var(--yellow-bright) 45%, var(--yellow-soft) 100%);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.visit-note__cta:hover {
  background:
    linear-gradient(180deg, #f7dc6f 0%, #f4d03f 50%, var(--yellow-bright) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(240, 200, 70, 0.18);
  color: #f2f4f7;
  border-bottom-color: rgba(255, 236, 170, 0.45);
}

.portfolio-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.portfolio-lead {
  margin: -0.5rem 0 0;
  color: var(--text-muted);
}

.portfolio-head {
  margin-bottom: 1.5rem;
}

.portfolio-head h2 {
  margin-bottom: 0.75rem;
}

.portfolio-layout {
  display: grid;
  gap: 1.25rem;
}

.portfolio-aside {
  padding: 1.45rem 1.4rem 1.5rem;
  border: 1px solid var(--yellow-border);
  background:
    linear-gradient(160deg, rgba(240, 200, 70, 0.1) 0%, transparent 45%),
    linear-gradient(160deg, #1f2221 0%, #171a19 100%);
  align-self: start;
}

.portfolio-aside__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.portfolio-aside__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #f2f4f7;
}

.portfolio-aside__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .portfolio-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 1.35rem;
  }

  .portfolio-aside {
    position: sticky;
    top: 1.25rem;
  }
}

.ba-card {
  display: grid;
  grid-template-columns: 1fr;
  height: auto;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(244, 208, 63, 0.08), transparent 30%),
    var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

@media (min-width: 700px) {
  .ba-card {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.85fr);
    align-items: stretch;
  }
}

.ba-card:hover {
  border-color: var(--yellow-border);
  box-shadow: 0 16px 40px rgba(44, 48, 46, 0.1);
  transform: translateY(-2px);
}

.ba-card + .ba-card {
  margin-top: 0;
}

.ba-compare {
  --pos: 50%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  background: #111;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  -webkit-user-select: none;
}

@media (min-width: 700px) {
  .ba-compare {
    aspect-ratio: auto;
    min-height: 280px;
    height: 100%;
  }
}

.ba-compare.is-dragging,
.ba-compare.is-dragging * {
  cursor: ew-resize !important;
}

.ba-card:has(.ba-compare.is-dragging) {
  transform: none;
  transition: none;
}

.ba-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-compare__before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: var(--pos);
  overflow: hidden;
  pointer-events: none;
}

.ba-compare__before .ba-compare__img {
  inset: auto;
  top: 0;
  left: 0;
  width: 100cqw;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Большой диван: «после» дальше от камеры — чуть увеличиваем и поднимаем */
.ba-compare__img.ba-align--sectional-after {
  object-position: 58% 48%;
  transform: scale(1.22);
  transform-origin: 55% 42%;
}

.ba-compare__before .ba-compare__img.ba-align--sectional-before {
  object-position: 46% 50%;
  top: 0;
  height: 100%;
  transform: none;
}

/* Диван-2: лёгкая подгонка горизонта */
.ba-compare__img[src*="after-sofa-2"] {
  object-position: 50% 52%;
}

.ba-compare__before .ba-compare__img[src*="before-sofa-2"] {
  object-position: 50% 45%;
}

.ba-label {
  position: absolute;
  top: 0.65rem;
  z-index: 3;
  padding: 0.22rem 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  pointer-events: none;
}

.ba-label--before {
  left: 0.65rem;
  background: rgba(10, 10, 10, 0.78);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ba-label--after {
  right: 0.65rem;
  left: auto;
  background: rgba(10, 10, 10, 0.78);
  border-color: var(--blue-border);
  color: var(--blue-bright);
}

.ba-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 44px;
  margin-left: -22px;
  display: grid;
  place-items: center;
  outline: none;
  touch-action: none;
  cursor: ew-resize;
}

.ba-compare__handle::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}

.ba-compare__knob {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(44, 48, 46, 0.1);
}

.ba-compare__knob svg {
  width: 12px;
  height: 12px;
}

.ba-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

@media (min-width: 700px) {
  .ba-info {
    padding: 1.5rem 1.45rem;
  }
}

.ba-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.ba-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .ba-compare {
    aspect-ratio: auto;
    height: 200px;
    max-height: none;
  }

  .ba-label {
    top: 0.4rem;
    font-size: 0.55rem;
    padding: 0.18rem 0.4rem;
  }

  .ba-label--before {
    left: 0.4rem;
  }

  .ba-label--after {
    right: 0.4rem;
  }

  .ba-compare__knob {
    width: 24px;
    height: 24px;
  }

  .ba-compare__knob svg {
    width: 10px;
    height: 10px;
  }

  .ba-info {
    padding: 0.9rem 1rem 1.05rem;
  }
}

.process-steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.process-step {
  position: relative;
  padding: 1.55rem 1.3rem 1.35rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(165deg, rgba(240, 200, 70, 0.06), transparent 40%),
    linear-gradient(160deg, #1f2221 0%, var(--bg-card) 100%);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 216, 77, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.process-step:hover {
  border-color: var(--yellow-border);
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.process-step:hover::before {
  opacity: 1;
}

.process-step__icon {
  margin-bottom: 1rem;
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--yellow-border);
  background: rgba(240, 200, 70, 0.06);
  color: var(--yellow-bright);
}

.process-step__num {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue-soft);
}

.process-step h3 {
  margin-bottom: 0.65rem;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.contact-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-soft);
}

.contact-head h2 {
  margin-bottom: 0.7rem;
}

.contact-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.contact-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 1.35rem;
  }
}

.contact-map {
  display: grid;
  gap: 0;
  min-width: 0;
}

.contact-map__frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 90, 0.28);
  background: #111;
  isolation: isolate;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.contact-map__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(8, 7, 5, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 7, 5, 0.2), transparent 35%);
  pointer-events: none;
  z-index: 1;
}

.contact-map__frame:hover {
  border-color: rgba(232, 195, 90, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.contact-map__frame img {
  width: 100%;
  height: auto;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s ease;
}

.contact-map__frame:hover img {
  transform: scale(1.04);
}

.contact-map__badge,
.contact-map__hint {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.contact-map__badge {
  top: 1rem;
  left: 1rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: var(--yellow-bright);
  box-shadow: 0 0 0 1px rgba(61, 95, 138, 0.45);
}

.contact-map__hint {
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: #f2f4f7;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(6px);
}

.contact-map__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid rgba(244, 208, 63, 0.22);
  border-top: 0;
  background: #0a0a0a;
}

.contact-map__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-bright);
}

.contact-map__address {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.contact-map__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  color: #0a0a0a;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--yellow-bright);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.contact-map__link:hover {
  background: #ffffff;
  color: #0a0a0a;
  transform: translateY(-1px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.55rem 1.45rem 1.4rem;
  border: 1px solid rgba(212, 180, 90, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 195, 90, 0.14), transparent 45%),
    linear-gradient(165deg, #1f2221 0%, #171a19 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border-top: 1px solid rgba(232, 195, 90, 0.35);
  border-right: 1px solid rgba(232, 195, 90, 0.35);
  pointer-events: none;
}

.contact-card__eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--yellow-bright);
}

.contact-card__phone {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
}

.contact-card__phone a {
  color: #f2f4f7;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card__phone a:hover {
  color: var(--yellow-deep);
}

.contact-facts {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-facts li {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(232, 195, 90, 0.16);
}

.contact-facts__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-facts__value {
  color: #f2f4f7;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

a.contact-facts__value:hover {
  color: var(--yellow-bright);
}

.contact-sofa {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  margin: 0.35rem 0 0.9rem;
  pointer-events: none;
}

.contact-sofa__svg {
  width: min(100%, 17.5rem);
  height: auto;
  overflow: visible;
}

.contact-sofa__body {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: sofa-breathe 3.8s ease-in-out infinite;
}

.contact-sofa__shadow {
  transform-box: fill-box;
  transform-origin: center;
  animation: sofa-shadow 3.8s ease-in-out infinite;
}

@keyframes sofa-breathe {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.04, 1.055) translateY(-3px);
  }
}

@keyframes sofa-shadow {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.42;
  }
  50% {
    transform: scaleX(1.1);
    opacity: 0.24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-sofa__body,
  .contact-sofa__shadow {
    animation: none;
  }
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.85rem 0.85rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.action-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.action-btn--wa,
.action-btn--call,
.action-btn--ig {
  background: transparent;
  color: var(--yellow-bright);
  border: 1px solid var(--yellow-border);
}

.action-btn--wa:hover,
.action-btn--call:hover,
.action-btn--ig:hover {
  background: rgba(244, 208, 63, 0.16);
  color: #f2f4f7;
  border-color: var(--yellow-bright);
  transform: translateY(-1px);
}

footer {
  padding: 2.75rem 0 2.25rem;
  text-align: center;
  background: #000000;
  border-top: 1px solid rgba(244, 208, 63, 0.16);
  position: relative;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}

.footer-thanks {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--yellow-bright);
}

.footer-copy {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #777;
}

@media (max-width: 767px) {
  html {
    font-size: 106.25%;
  }

  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
  }

  #header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  #header .container,
  .header-bar {
    position: relative;
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }

  .header-tools {
    margin-left: auto;
  }

  main {
    padding-top: 0;
  }

  section {
    padding-block: 1.75rem;
    scroll-margin-top: 1rem;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
  }

  h3 {
    font-size: 1.1rem;
  }

  #services .container {
    padding-inline: 0.65rem;
  }

  #process .container,
  #portfolio .container {
    padding-inline: 0;
  }

  #services h2,
  #services .services-lead,
  #process h2,
  #portfolio h2,
  #about h2,
  #contact h2,
  #about p,
  .portfolio-head,
  .portfolio-aside,
  .contact-head,
  .contact-card {
    padding-inline: 1rem;
  }

  #services h2 {
    padding-inline: 0.35rem;
  }

  .services-grid {
    gap: 0.55rem;
  }

  .service-card {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
  }

  .services-grid .service-card:first-child {
    border-top: 1px solid var(--border);
  }

  #hero {
    padding: 0.55rem 0.55rem 1rem;
  }

  .hero-stage {
    height: var(--hero-h, 54svh);
    min-height: var(--hero-h, 54svh);
    max-height: var(--hero-h, 54svh);
    border-radius: 1.35rem;
  }

  .hero-stage__ui {
    padding: 1rem;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .hero-center {
    margin-top: -8%;
    transform: none;
    text-align: center;
  }

  .hero-brand {
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
  }

  #hero h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    max-width: 14ch;
    margin-inline: auto;
  }

  .hero-lead {
    font-size: 0.95rem;
    max-width: 28ch;
    margin-inline: auto;
  }

  .hero-trust {
    font-size: 0.78rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.15rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
  }

  .hero-link {
    text-align: center;
  }

  .wa-float span {
    display: none;
  }

  .wa-float {
    width: 3.35rem;
    height: 3.35rem;
    min-height: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .services-grid,
  .process-steps,
  .portfolio-grid {
    gap: 0.65rem;
  }

  #services .services-grid {
    gap: 0.55rem;
  }

  .service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.85rem 0.75rem 0.9rem;
    background:
      linear-gradient(145deg, rgba(240, 200, 70, 0.07) 0%, transparent 42%),
      linear-gradient(160deg, #1f2221 0%, var(--bg-card) 100%);
  }

  .service-card--photo {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .service-card--wide {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(90deg, rgba(244, 208, 63, 0.1) 0%, var(--bg-card) 28%);
  }

  .service-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }

  .service-card h3 {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .service-card__text {
    font-size: 0.75rem;
  }

  .service-card__price {
    font-size: 0.95rem;
  }

  .service-card__offer {
    margin-top: 0.3rem;
  }

  .services-note {
    padding-inline: 0.35rem;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding-inline: 0.65rem;
  }

  .process-step {
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
  }

  .process-step__icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.65rem;
    border-radius: 0.75rem;
  }

  .process-step__icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .process-step__num {
    font-size: 0.62rem;
    margin-bottom: 0.35rem;
  }

  .process-step h3 {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
  }

  .process-step p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  #about p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .about-visual {
    max-width: none;
  }

  .about-visual__frame {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .about-visual__img {
    object-position: 50% 22%;
  }

  .about-plaque {
    position: static;
    right: auto;
    top: auto;
    max-width: none;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .about-plaque__brand {
    font-size: 1.25rem;
    margin-bottom: 0.45rem;
  }

  .about-plaque__eyebrow {
    margin-bottom: 0.35rem;
  }

  .about-points strong {
    font-size: 0.98rem;
  }

  .visit-note {
    margin-inline: 1rem;
  }

  .portfolio-lead {
    padding-inline: 1rem;
  }

  .contact-map__meta,
  .contact-card {
    margin-inline: 0;
  }

  .contact-card {
    padding: 1.25rem 1.1rem 1.15rem;
  }

  .contact-actions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .action-btn {
    width: 100%;
    min-height: 3.4rem;
    font-size: 1rem;
  }

  .action-btn svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .contact-actions .btn,
  .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.95rem 0.65rem;
    font-size: 0.9rem;
  }

  #navToggle,
  .nav-toggle {
    display: grid;
    position: relative;
    z-index: 2;
  }

  #navLinks {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid var(--border);
  }

  #navLinks.is-open {
    display: block;
  }

  #navLinks ul {
    flex-direction: column;
    gap: 0;
  }

  #navLinks li {
    border-bottom: 1px solid var(--border);
  }

  #navLinks li:last-child {
    border-bottom: none;
  }

  #navLinks a {
    display: block;
    padding: 0.95rem 0.15rem;
    font-size: 1.05rem;
    color: #f0f0f0;
  }

  #navLinks a:active {
    color: var(--yellow-bright);
  }

  body.nav-open {
    overflow: hidden;
  }

  .portfolio-head .portfolio-lead {
    font-size: 0.92rem;
    margin-bottom: 0.85rem;
  }

  footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-thanks {
    font-size: 1.2rem;
  }

  .footer-brand {
    font-size: 1.55rem;
  }
}

@media (min-width: 768px) {
  #navToggle,
  .nav-toggle {
    display: none;
  }

  #navLinks {
    display: block;
    width: auto;
  }

  #navLinks ul {
    flex-direction: row;
    gap: 1rem;
  }

  #navLinks li {
    border-bottom: none;
  }

  #navLinks a {
    display: inline;
    padding: 0;
    font-size: inherit;
  }
}

/* —— Scroll reveal: слева → направо, с повтором при каждом появлении —— */
@keyframes reveal-from-left {
  from {
    opacity: 0;
    translate: -4.5rem 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.reveal:not(.is-in) {
  opacity: 0;
  translate: -4.5rem 0;
}

.reveal.is-in {
  animation: reveal-from-left 1.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal--hero:not(.is-in) {
  translate: -6rem 0;
}

.reveal--hero.is-in {
  animation-duration: 1.8s;
}

.services-grid .service-card:nth-child(1),
.process-steps .process-step:nth-child(1),
.portfolio-grid .ba-card:nth-child(1) {
  --reveal-delay: 0ms;
}

.services-grid .service-card:nth-child(2),
.process-steps .process-step:nth-child(2),
.portfolio-grid .ba-card:nth-child(2) {
  --reveal-delay: 140ms;
}

.services-grid .service-card:nth-child(3),
.process-steps .process-step:nth-child(3),
.portfolio-grid .ba-card:nth-child(3) {
  --reveal-delay: 280ms;
}

.services-grid .service-card:nth-child(4),
.process-steps .process-step:nth-child(4) {
  --reveal-delay: 420ms;
}

.services-grid .service-card:nth-child(5) {
  --reveal-delay: 560ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal:not(.is-in),
  .reveal.is-in,
  .reveal--hero:not(.is-in),
  .reveal--hero.is-in {
    opacity: 1;
    translate: none;
    animation: none;
  }
}

