@font-face {
  font-family: "BPG Web 002 Caps";
  src:
    url("../font/bpg-web-002-caps.woff2") format("woff2"),
    url("../font/bpg-web-002-caps.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e8eae9;
  --bg2: #d9dcdb;
  --ink: #16191c;
  --mut: #565d63;
  --line: rgba(22, 25, 28, 0.18);
  --red: #c4262e;
  --wa: #c4262e;
  --grain: 0.32;
  --light: rgba(255, 255, 255, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181b1e;
    --bg2: #23272b;
    --ink: #edefee;
    --mut: #9aa1a7;
    --line: rgba(237, 239, 238, 0.2);
    --red: #e5565d;
    --grain: 0.18;
    --light: rgba(255, 255, 255, 0.05);
  }
}
:root[data-theme="dark"] {
  --bg: #181b1e;
  --bg2: #23272b;
  --ink: #edefee;
  --mut: #9aa1a7;
  --line: rgba(237, 239, 238, 0.2);
  --red: #e5565d;
  --grain: 0.18;
  --light: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 16px/1.75 "BPG Web 002 Caps",
    "Noto Sans Georgian",
    system-ui,
    sans-serif;
  font-synthesis: none;
  overflow-x: hidden;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
p {
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}
h3 {
  font-size: 1.1rem;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.sec {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0;
  position: relative;
}

mark {
  background: #a81e26;
  color: #fff;
  padding: 0 4px;
  border-radius: 3px;
}

h2 mark,
h3 mark {
  padding: 0.15em 0.6em 0.04em;
  border-radius: 50px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
h2:has(mark),
h3:has(mark) {
  line-height: 1.6;
}

h1 mark {
  display: inline-block;
  line-height: 1;
  padding: 0.08em 0.12em 0;
}

.btn {
  display: inline-block;
  background: #c4262e;
  color: #fff;
  font: inherit;
  padding: 1rem 1.8rem;
  border: 0;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: #a81e26;
  transform: translateY(-2px);
}

.lnk {
  display: inline-block;
  padding: calc(1rem - 2px) 1.8rem;
  border: 2px solid var(--ink);
  border-radius: 50px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.lnk:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg i {
  position: absolute;
  display: block;
}
.bg-grain {
  inset: -300px;
  opacity: var(--grain);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .37 0 0 0 0 .39 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 60s linear infinite;
}
@keyframes grain {
  to {
    transform: translate(260px, 260px);
  }
}
.bg-light {
  inset: -20% -70%;
  background: linear-gradient(105deg, transparent 38%, var(--light) 50%, transparent 62%);
  animation: light 18s ease-in-out infinite alternate;
}
@keyframes light {
  from {
    transform: translateX(-28%);
  }
  to {
    transform: translateX(28%);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: #41474c
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .64 0 0 0 0 .66 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  transform: translateX(0);
  will-change: transform;
  animation: plaster 1.7s cubic-bezier(0.7, 0, 0.2, 1) 0.25s forwards;
}
@keyframes plaster {
  to {
    transform: translateX(101%);
  }
}
.edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: 6px;
  margin-left: -3px;
  background: var(--red);
  animation: edge 1.7s cubic-bezier(0.7, 0, 0.2, 1) 0.25s forwards;
}
@keyframes edge {
  85% {
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}
.logo {
  font-size: 1.15rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}
.logo i {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--red);
}
.nav-link {
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.nav-link:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero-in {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: 2rem 0 5rem;
}
h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.12;
}
.lead {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--mut);
}
.cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

.js .hero:not(.in) [data-slide] {
  opacity: 0;
}
.hero.in [data-slide] {
  animation: slideIn 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) backwards;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cmp {
  --x: 50%;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  background: #41474c;
  touch-action: pan-y;
}
.cmp > div {
  position: absolute;
  inset: 0;
}
.raw {
  background: url("../img/before.jpg") center/cover no-repeat;
}
.smooth {
  background: url("../img/after.jpg") center/cover no-repeat;
  clip-path: inset(0 0 0 var(--x));
}
.cmp b {
  position: absolute;
  bottom: 1rem;
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
  background: var(--bg);
  color: var(--ink);
}
.cmp .l {
  left: 1rem;
}
.cmp .r {
  right: 1rem;
}
.bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 3px;
  margin-left: -1.5px;
  background: var(--red);
  pointer-events: none;
}
.bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.8rem;
  height: 2.8rem;
  margin: -1.4rem;
  border-radius: 50%;
  background: var(--red)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M7 8l-4 4 4 4M17 8l4 4-4 4M3 12h18'/%3E%3C/svg%3E")
    center/60% no-repeat;
}
.cmp input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.cmp:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.rows > div {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2rem;
}
.rows > div::before,
.steps li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1);
}
.rows > div.on::before,
.steps li.on::before {
  transform: none;
}
.rows h3 {
  margin-bottom: 0.5rem;
}
.rows p,
.steps p {
  color: var(--mut);
  max-width: 38rem;
}

.machine {
  margin: 2rem 0 0;
  max-width: 34rem;
}
.stage {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #fff;
}
.stage picture {
  display: contents;
}
.stage img {
  position: absolute;
  left: 0;
  right: 0;
  top: -17.4%;
  margin: 0 auto;
  width: 73.5%;
  height: 112.7%;
  max-width: none;
  opacity: 0;
  transform: translateX(28px) scale(1.03);
  transition:
    opacity 0.8s ease,
    transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage.rev img {
  transform: translateX(-28px) scale(1.03);
}
.stage img.on {
  opacity: 1;
  transform: none;
}
.stage img.out {
  transform: translateX(-28px) scale(1.03);
}
.stage.rev img.out {
  transform: translateX(28px) scale(1.03);
}

.stage .nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  z-index: 2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stage .prev {
  left: 0;
  cursor: w-resize;
}
.stage .next {
  right: 0;
  cursor: e-resize;
}
.stage .nav:focus-visible {
  outline-offset: -4px;
}

.ticks {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.ticks button {
  flex: 1;
  padding: 0.8rem 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.ticks i {
  display: block;
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.ticks i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.ticks button[aria-current="true"] i::after {
  animation: fill 4s linear forwards;
}
@keyframes fill {
  to {
    transform: none;
  }
}

.machine:hover i::after,
.machine:has(:focus-visible) i::after {
  animation-play-state: paused;
}
.machine figcaption,
.shot figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--mut);
  border-left: 3px solid var(--red);
  padding-left: 0.7rem;
}

.shot {
  margin: 2.2rem 0 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.steps li {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.steps .n {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition:
    background 0.4s 0.5s,
    color 0.4s 0.5s,
    border-color 0.4s 0.5s;
}
.steps li.on .n {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.steps h3 {
  margin-bottom: 0.5rem;
}

#contact {
  background: rgba(18, 21, 23, 0.94);
  color: #edefee;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
#contact .info p {
  color: #a7aeb3;
  margin-top: 1.2rem;
  max-width: 30rem;
}

.wa {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  gap: 1rem;
}
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.65rem 1.6rem;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.wa-btn:hover {
  background: #641216;
  transform: translateY(-2px);
}
.wa-btn svg {
  flex: none;
  width: 2rem;
  height: 2rem;
}
.wa-btn svg path:first-child {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.wa-btn svg path:last-child {
  fill: #fff;
}
.wa-btn small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.25;
}
.wa-btn b {
  display: block;
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

footer {
  background: rgba(12, 14, 16, 0.96);
  color: #8b9297;
  font-size: 0.9rem;
  padding: 1.6rem 0;
}

@media (max-width: 860px) {
  .hero-in,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }
  .hero-in {
    gap: 2.2rem;
  }
  .machine {
    margin-inline: auto;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 1rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  .hero-in {
    padding: 1rem 0 4rem;
  }
  .btn,
  .lnk {
    flex: 1 1 100%;
    text-align: center;
  }
  .cmp b {
    font-size: 0.8rem;
    bottom: 0.7rem;
  }
  .cmp .l {
    left: 0.7rem;
  }
  .cmp .r {
    right: 0.7rem;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .rows > div {
    padding: 1.4rem 0 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .edge {
    display: none;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .js .hero:not(.in) [data-slide] {
    opacity: 1;
  }
  .ticks button[aria-current="true"] i::after {
    transform: none;
  }
  .rows > div::before,
  .steps li::before {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
