:root {
  --bg: #0d1117;
  --paper: #131922;
  --paper-soft: #1a2330;
  --line: #2b3a4d;
  --text: #eef3fa;
  --muted: #b8c4d4;
  --accent: #ffb457;
  --accent-2: #ffd78d;
  --motion-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --motion-snappy: cubic-bezier(0.2, 0.9, 0.25, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #4e6b90 rgba(16, 23, 33, 0.75);
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(11, 17, 24, 0.92);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5a79a4, #3a516f);
  border: 3px solid rgba(11, 17, 24, 0.92);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d8dbd, #47628a);
}

body {
  background:
    radial-gradient(circle at 92% -42%, rgba(255, 180, 87, 0.13), transparent 42%),
    radial-gradient(circle at -14% 8%, rgba(94, 146, 255, 0.1), transparent 36%),
    var(--bg);
  background-size: 110% 110%, 105% 105%, auto;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.5;
  animation: ambient-bg-drift 22s ease-in-out infinite alternate;
}

#promo-ribbon-root:empty {
  display: none;
}

.promo-ribbon {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid #3f5570;
  background:
    linear-gradient(120deg, rgba(255, 180, 87, 0.14), rgba(255, 215, 141, 0.06)),
    rgba(15, 23, 33, 0.94);
  backdrop-filter: blur(6px);
  animation: ribbon-slide 260ms ease both;
}

.promo-ribbon-inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  min-height: 52px;
  padding: 0.52rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.promo-ribbon-text {
  display: grid;
  gap: 0.08rem;
}

.promo-ribbon-text strong {
  color: #ffe1b2;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.promo-ribbon-text span {
  color: #f2f7ff;
  font-size: 0.88rem;
}

.promo-ribbon-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.promo-ribbon-link {
  text-decoration: none;
  color: #f4f8ff;
  border: 1px solid #4e6988;
  border-radius: 999px;
  padding: 0.32rem 0.66rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-ribbon-link:hover {
  transform: translateY(-1px);
  border-color: #6a89ae;
}

.promo-ribbon-close {
  border: 1px solid #4b607e;
  background: rgba(23, 34, 48, 0.86);
  color: #dbe8fb;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.promo-ribbon-close:hover {
  border-color: #6a89ae;
}

a,
button,
.btn,
.mini-btn,
.card,
.panel,
.service-card,
.work-shot-image,
.contact-links a,
.map-link {
  transition:
    transform 280ms var(--motion-smooth),
    border-color 240ms var(--motion-smooth),
    box-shadow 320ms var(--motion-smooth),
    background-color 240ms var(--motion-smooth),
    color 240ms var(--motion-smooth),
    opacity 260ms var(--motion-smooth);
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 640ms var(--motion-smooth),
    transform 720ms var(--motion-smooth),
    filter 620ms var(--motion-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.topbar,
.section {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}

.top-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, #87aee0 20%, #87aee0 80%, transparent);
  transition: transform 280ms var(--motion-snappy);
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.mini-btn {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
}

.mini-btn:hover {
  transform: translateY(-1px);
  border-color: #4f6887;
  box-shadow: 0 8px 18px rgba(6, 10, 16, 0.35);
}

.mini-btn-telegram {
  border-color: #2c648f;
  background: linear-gradient(180deg, rgba(34, 70, 100, 0.24), rgba(24, 43, 63, 0.24));
}

.mini-btn-vk {
  border-color: #466da4;
  background: linear-gradient(180deg, rgba(52, 72, 112, 0.24), rgba(28, 41, 66, 0.24));
}

.section {
  margin-top: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.9rem;
  min-height: 540px;
}

.hero-bg {
  border-radius: 22px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 11, 15, 0.25), rgba(8, 11, 15, 0.65)),
    url("/hero-bg.jpg") center/cover no-repeat;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    112deg,
    transparent 34%,
    rgba(255, 196, 122, 0.16) 47%,
    rgba(170, 208, 255, 0.14) 54%,
    transparent 68%
  );
  transform: translateX(-55%) rotate(8deg);
  animation: hero-sheen-pass 8.6s var(--motion-smooth) infinite;
  pointer-events: none;
}

.panel,
.card {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--paper), var(--paper-soft));
  padding: clamp(1rem, 2.4vw, 1.4rem);
}

.panel:hover,
.card:hover {
  transform: translateY(-4px);
  border-color: #375071;
  box-shadow: 0 20px 42px rgba(5, 10, 17, 0.42);
}

.hero-content {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.badge,
.kicker {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  background: rgba(255, 180, 87, 0.18);
  border: 1px solid rgba(255, 180, 87, 0.42);
  border-radius: 999px;
  padding: 0.26rem 0.64rem;
  font-size: 0.72rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

h3 {
  font-size: 1rem;
}

p,
ul,
ol {
  margin: 0;
}

.lead,
.lead-small,
p,
li {
  color: var(--muted);
}

.lead-small {
  max-width: 70ch;
}

.hero-requests {
  border: 1px solid rgba(114, 148, 192, 0.36);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 28, 42, 0.78), rgba(18, 25, 38, 0.72));
  padding: 0.78rem 0.84rem;
  display: grid;
  gap: 0.62rem;
}

.hero-requests-title {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dbe9fb;
  font-weight: 700;
}

.hero-requests-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.44rem;
}

.hero-requests-list li {
  border: 1px solid #334b68;
  border-radius: 10px;
  padding: 0.42rem 0.56rem;
  color: #d2e1f3;
  background: rgba(17, 27, 40, 0.72);
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.74rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 12, 20, 0.4);
}

.btn::after {
  content: "";
  position: absolute;
  top: -140%;
  left: -32%;
  width: 42%;
  height: 380%;
  transform: rotate(22deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}

.btn:hover::after {
  opacity: 1;
  animation: btn-sheen 840ms var(--motion-smooth);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #2b1a06;
  border-color: transparent;
}

.btn.ghost {
  background: rgba(29, 39, 53, 0.85);
  color: #e7edf7;
  border-color: #3b4d66;
}

.hero-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-pills span {
  border: 1px solid #3b4d66;
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.8rem;
  color: #dce8fa;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.intro ul {
  margin-top: 0.8rem;
  padding-left: 1.1rem;
}

.intro li + li {
  margin-top: 0.36rem;
}

.services-panel {
  display: grid;
}

.services-grid {
  display: grid;
  gap: 0.6rem;
}

.service-card {
  border: 1px solid #32465f;
  border-radius: 14px;
  background: rgba(15, 23, 34, 0.7);
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: #426188;
}

.section-head {
  margin-bottom: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

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

.work-card {
  padding: 0;
  overflow: hidden;
}

.work-card.empty {
  padding: 0.9rem;
}

.work-image-wrap {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #2e4158;
  background: rgba(17, 25, 37, 0.85);
}

.work-before-after {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #23354b;
}

.work-before-after.is-vertical {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.work-shot {
  position: relative;
  overflow: hidden;
}

.work-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-shot-image {
  cursor: zoom-in;
}

.work-shot-image:hover {
  transform: scale(1.06);
}

.work-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #b6c6db;
}

.work-shot-label {
  position: absolute;
  left: 0.38rem;
  bottom: 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 194, 120, 0.52);
  background: rgba(15, 24, 36, 0.82);
  color: #ffe7c7;
  font-size: 0.72rem;
  padding: 0.14rem 0.42rem;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(8, 12, 19, 0.9);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox-img {
  max-width: min(96vw, 1500px);
  max-height: 86vh;
  border-radius: 12px;
  border: 1px solid rgba(82, 117, 159, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.image-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 152, 207, 0.46);
  background: rgba(19, 31, 50, 0.9);
  color: #e8f2ff;
  padding: 0.4rem 0.78rem;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.work-content {
  padding: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.work-meta {
  font-size: 0.84rem;
  color: #c8d8ec;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-tags span {
  border: 1px solid #3a5577;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.75rem;
  color: #d8e8fa;
}

.contact-route {
  margin-bottom: 1.2rem;
}

.contact-text {
  margin-top: 0.55rem;
}

.contact-links {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-links a {
  text-decoration: none;
  color: #e7f1ff;
  border: 1px solid #425f87;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-weight: 600;
  font-size: 0.87rem;
}

.contact-links a:hover {
  transform: translateY(-1px);
  border-color: #5b7ca8;
}

.route-list {
  margin-top: 0.9rem;
  padding-left: 1.15rem;
}

.route-list li + li {
  margin-top: 0.35rem;
}

.map-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.map-head {
  display: grid;
  gap: 0.5rem;
}

.map-subtitle {
  font-size: 0.86rem;
  color: #b8cbe2;
}

.map-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #31465f;
  background: #111b28;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.map-static-link {
  display: block;
  line-height: 0;
}

.map-static-image {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
}

.map-link {
  text-decoration: none;
  color: #d6e9ff;
  font-size: 0.86rem;
  border: 1px solid #3f5d81;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.map-link.subtle {
  border-color: #324961;
  color: #bdd0e8;
}

.map-link:hover {
  color: #f2f7ff;
  border-color: #5f7ea6;
}

@keyframes section-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ribbon-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambient-bg-drift {
  from {
    background-position: 92% -42%, -14% 8%, 0 0;
  }
  to {
    background-position: 90% -38%, -10% 12%, 0 0;
  }
}

@keyframes hero-kenburns {
  from {
    background-position: center 50%;
  }
  to {
    background-position: center 56%;
  }
}

@keyframes hero-sheen-pass {
  0% {
    transform: translateX(-55%) rotate(8deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translateX(95%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes btn-sheen {
  from {
    transform: translateX(0) rotate(22deg);
  }
  to {
    transform: translateX(520%) rotate(22deg);
  }
}

@keyframes map-switch-pulse {
  0% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.008);
    filter: saturate(1.12);
  }
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
}

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

  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.65rem 0.7rem;
  background: rgba(11, 16, 24, 0.92);
  border-top: 1px solid #30465f;
  display: none;
  gap: 0.6rem;
}

.mobile-sticky-cta .btn {
  flex: 1;
  padding: 0.62rem 0.52rem;
  font-size: clamp(0.9rem, 3.8vw, 1.02rem);
}

@media (max-width: 1100px) {
  .hero,
  .grid-two,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    min-height: 320px;
  }

}

@media (max-width: 760px) {
  .top-nav {
    display: none;
  }

  .topbar-actions {
    display: none;
  }

  .section,
  .topbar {
    width: min(1200px, 94vw);
  }

  .promo-ribbon-inner {
    width: min(1200px, 94vw);
    align-items: start;
    flex-direction: column;
  }

  .promo-ribbon-actions {
    width: 100%;
  }

  .map-static-image {
    height: 340px;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 78px;
  }
}
