/* Prostir · Вінниця — варіант A: light editorial. Warm white + ink + terracotta. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-v12-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-v7-cyrillic_latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-v7-cyrillic_latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #faf9f6;
  --ink: #16130f;
  --dim: rgba(22, 19, 15, 0.66);
  --line: rgba(22, 19, 15, 0.14);
  --terra: #d9541e;
  --terra-deep: #b23f10;
  --sand: #f0ece4;
  --disp: "Unbounded", sans-serif;
  --body: "Golos Text", sans-serif;
  --pad: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.block {
  padding-top: 96px;
  padding-bottom: 96px;
}

.h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(26px, 5.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.lead {
  color: var(--dim);
  max-width: 58ch;
  margin-bottom: 44px;
  font-size: 18px;
}
.lead--inv {
  color: rgba(255, 250, 245, 0.88);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 12px;
}
.eyebrow--inv {
  color: rgba(255, 255, 255, 0.85);
}

/* top */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.top.scrolled {
  border-bottom-color: var(--line);
}
.top__in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top__brand {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.top__dot {
  color: var(--terra);
  margin: 0 6px;
}
.top__nav {
  display: none;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
.top__nav a {
  color: var(--dim);
  transition: color 0.2s;
}
.top__nav a:hover {
  color: var(--ink);
}
.top__cta {
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.top__cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn--main {
  background: var(--terra);
  color: #fff;
}
.btn--main:hover {
  background: var(--terra-deep);
}
.btn--line {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn--inv {
  background: var(--ink);
  color: var(--bg);
  min-height: 60px;
  padding: 0 40px;
  font-size: 18px;
}

/* hero */
.hero {
  padding: 116px var(--pad) 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1160px;
  margin: 0 auto;
}
.hero__geo {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(31px, 7vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero__title span {
  display: block;
}
.hero__title em {
  font-style: normal;
  color: var(--terra);
}
.hero__sub {
  color: var(--dim);
  max-width: 46ch;
  margin-bottom: 28px;
  font-size: 18px;
}
.hero__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__proof {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dim);
}
.hero__score {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.hero__stars {
  color: var(--terra);
  letter-spacing: 2px;
}
.hero__count a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__media {
  position: relative;
}
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.hero__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(22, 19, 15, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* rise */
.rise {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero__title .rise:nth-child(1) {
  animation-delay: 0.1s;
}
.hero__title .rise:nth-child(2) {
  animation-delay: 0.2s;
}
.hero__sub.rise {
  animation-delay: 0.32s;
}
.hero__row.rise {
  animation-delay: 0.44s;
}
.hero__proof.rise {
  animation-delay: 0.55s;
}
.hero__media.rise {
  animation-delay: 0.25s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* reveal */
.rev {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.rev.in {
  opacity: 1;
  transform: none;
}

/* marquee */
.mq {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
}
.mq__track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: mq 28s linear infinite;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
}
.mq__track i {
  color: var(--terra);
  font-style: normal;
  font-size: 9px;
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

/* services alternating */
.sv {
  display: grid;
  gap: 56px;
}
.sv__row {
  display: grid;
  gap: 22px;
}
.sv__media {
  overflow: hidden;
  border-radius: 12px;
}
.sv__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 0.6s ease;
}
.sv__row:hover .sv__media img {
  transform: scale(1.03);
}
.sv__n {
  font-family: var(--disp);
  font-weight: 600;
  color: var(--terra);
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}
.sv__t {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}
.sv__d {
  color: var(--dim);
  max-width: 44ch;
}

/* inside */
.inside {
  margin-top: 96px;
  background: linear-gradient(160deg, var(--terra) 0%, #c4470f 100%);
  color: #fff7f2;
  padding: 96px 0;
}
.inside .h2 {
  color: #fff;
}
.inside__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.inside__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
}
.inside__det {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.inside__det img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}
.inside__det figcaption {
  font-size: 13px;
  padding-top: 8px;
  color: rgba(255, 247, 242, 0.85);
}

/* case study */
.case {
  display: grid;
  gap: 20px;
}
.case__main {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.case__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.case__side figure {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 5;
}
.case__side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 30px 14px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 8, 5, 0) 0%, rgba(10, 8, 5, 0.72) 75%);
}

/* gallery */
.galsec {
  background: var(--sand);
}
.gal {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.gal__item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 5;
}
.gal__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gal__item:hover img {
  transform: scale(1.04);
}

/* process */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps__n {
  font-family: var(--disp);
  font-weight: 600;
  color: var(--terra);
  font-size: 15px;
  padding-top: 3px;
}
.steps h3 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 19px;
}
.steps p {
  grid-column: 2;
  color: var(--dim);
  max-width: 60ch;
}

/* rating band */
.rate {
  background: var(--ink);
  color: var(--bg);
}
.rate__in {
  display: grid;
  gap: 26px;
}
.rate__big {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.rate__score {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(64px, 12vw, 110px);
  line-height: 1;
  color: #fff;
}
.rate__of {
  color: rgba(250, 249, 246, 0.55);
  font-size: 20px;
}
.rate__line {
  color: rgba(250, 249, 246, 0.75);
  max-width: 44ch;
  margin-bottom: 16px;
}
.rate__link {
  color: var(--terra);
  font-weight: 600;
  border-bottom: 1px solid rgba(217, 84, 30, 0.4);
  padding-bottom: 2px;
}

/* cta */
.cta {
  background: var(--bg);
}
.cta__t {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.08;
  margin-bottom: 12px;
}
.cta__d {
  color: var(--dim);
  margin-bottom: 28px;
  max-width: 48ch;
}
.cta__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta__geo {
  margin-top: 22px;
  font-size: 14px;
  color: var(--dim);
  font-weight: 600;
}

/* footer */
.foot {
  padding: 28px var(--pad) 100px;
  text-align: center;
  color: rgba(22, 19, 15, 0.45);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

/* fab */
.fab {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: var(--terra);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(60, 25, 5, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.fab.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* desktop */
@media (min-width: 1024px) {
  :root {
    --pad: 40px;
  }
  .top__nav {
    display: flex;
  }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
    padding-top: 150px;
    min-height: 94vh;
  }
  .hero__media img {
    max-height: 76vh;
    object-fit: cover;
  }
  .sv__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
  }
  .sv__row--rev .sv__media {
    order: 2;
  }
  .sv__row--rev .sv__txt {
    order: 1;
  }
  .sv__media img {
    aspect-ratio: 4 / 3;
  }
  .case {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
  }
  .case__side {
    grid-template-columns: 1fr;
  }
  .case__side figure {
    aspect-ratio: auto;
  }
  .gal {
    grid-template-columns: repeat(3, 1fr);
  }
  .rate__in {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 72px;
  }
  .steps li {
    grid-template-columns: 90px 240px 1fr;
  }
  .steps p {
    grid-column: 3;
  }
  .steps h3 {
    padding-top: 2px;
  }
  .fab {
    display: none;
  }
  .block {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .rev,
  .mq__track {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .sv__media img,
  .gal__item img {
    transition: none;
  }
}
