:root {
  --white: #fff;
  --ink: #2b2928;
  --muted: #5f5a56;
  --line: #d9d5ce;
  --wash: #f4f0e8;
  --max: 1188px;
}

@font-face {
  font-family: "Cera Pro";
  src: url("assets/fonts/CeraPro-Regular.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kuba Friends";
  src: url("assets/fonts/Kuba_Friends-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Cera Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

a {
  color: inherit;
}

ul,
p,
h1,
h2,
h3 {
  margin-top: 0;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: var(--ink);
}

#back-to-top {
  position: fixed;
  right: 45px;
  bottom: 30px;
  z-index: 900;
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.86);
  transition: opacity 0.5s cubic-bezier(0.76, 0, 0.24, 1), transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), background 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#back-to-top svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

#back-to-top:hover {
  background: #1f1d1c;
}

.site-header,
.hero,
.expertise,
.experience-inner,
.pricing,
.footer {
  width: min(var(--max), calc(100% - 42px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 42px 0 18px;
  background: var(--white);
}

.brand {
  font-family: "Kuba Friends", "Cera Pro", sans-serif;
  font-size: 23px;
  line-height: 1.4;
  text-decoration: none;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(380px, 1fr);
  gap: clamp(42px, 7vw, 118px);
  align-items: center;
  min-height: clamp(300px, 40vh, 430px);
  padding: clamp(30px, 4.5vw, 54px) 0 clamp(34px, 4.8vw, 58px);
}

.hero::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(50%);
}

.hero-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 48px;
}

.hero-lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-lists li {
  color: var(--ink);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.42;
}

.hero-statement p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(22px, 1.85vw, 30px);
  line-height: 1.2;
}

.expertise-item {
  padding-bottom: 0;
}

.expertise-item:last-child {
  padding-bottom: clamp(72px, 9vw, 128px);
}

.expertise-row {
  display: grid;
  grid-template-columns: minmax(260px, 39%) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(96px, 11vw, 168px) 8% clamp(40px, 4.5vw, 69px);
}

.expertise-row h2 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: pre-line;
}

.expertise-row p {
  max-width: 628px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}

.expertise-media {
  margin: 0;
}

.gallery {
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
}

.track-viewport {
  overflow: hidden;
}

.track {
  display: flex;
  gap: 18px;
  padding-left: calc((100vw - min(var(--max), calc(100vw - 42px))) / 2);
  padding-right: 42px;
  cursor: grab;
  touch-action: pan-y;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gallery.dragging .track {
  cursor: grabbing;
  transition: none;
}

.slide {
  flex: 0 0 min(var(--max), calc(100vw - 106px));
  min-width: 0;
}

.expertise-media img {
  display: block;
  width: 100%;
  aspect-ratio: 2.08 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  user-select: none;
}

.expertise-item:nth-child(2) .expertise-media img,
.expertise-item:nth-child(3) .expertise-media img {
  object-fit: contain;
  background: #050505;
}

.expertise-item:nth-child(3) .expertise-media img {
  object-fit: cover;
  background: transparent;
}

.experience {
  width: 100%;
  background: var(--wash);
  padding: clamp(64px, 9vw, 118px) 0;
}

.experience-intro {
  max-width: 75%;
  margin: 0 0 clamp(46px, 7vw, 86px);
  color: var(--ink);
  font-size: clamp(20px, 1.95vw, 28px);
  font-weight: 400;
  line-height: 1.4;
}

.experience-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.experience-images figure {
  margin: 0;
}

.experience-images img {
  display: block;
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  border-radius: 20px;
}

.experience-images figcaption {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  color: var(--ink);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.3;
}

.experience-images figcaption strong {
  font-weight: 400;
}

.experience-images figcaption span {
  color: var(--muted);
}

.experience-images figure:first-child img {
  filter: grayscale(1);
  object-position: center 35%;
}

.experience-images figure:nth-child(2) img {
  object-position: center 28%;
}

.experience-list {
  display: grid;
}

.experience-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(43, 41, 40, 0.14);
}

.experience-list div:last-child {
  border-bottom: 1px solid rgba(43, 41, 40, 0.14);
}

.experience-list p,
.experience-list span {
  margin: 0;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.3;
}

.experience-list span {
  color: var(--muted);
}

.pricing {
  padding: clamp(72px, 9vw, 126px) 0 clamp(46px, 7vw, 82px);
}

.investment-lead {
  max-width: 690px;
  margin: 0 0 clamp(56px, 8vw, 98px);
  font-size: clamp(19px, 1.85vw, 27px);
  line-height: 1.22;
}

.investment-head {
  display: grid;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.pricing h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(38px, 8vw, 120px);
  margin-bottom: clamp(34px, 5vw, 60px);
}

.prices article {
  padding: clamp(28px, 4vw, 48px) 0;
}

.prices h3 {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.price {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 0.9;
}

.prices article > p:not(.price) {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.44;
}

.pricing-cta {
  display: flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 22px 0 22px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(50%);
}

.footer a {
  text-decoration: none;
}

.footer-meta {
  display: grid;
  gap: 6px;
  opacity: 0.72;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 0.16s ease;
}

.footer-social span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-social svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer-social:hover {
  opacity: 0.55;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .expertise-row,
  .experience-images,
  .prices {
    grid-template-columns: 1fr;
  }

  .slide {
    flex-basis: calc(100vw - 62px);
  }

  .hero {
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .experience-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .experience-intro {
    max-width: 100%;
  }

  .prices {
    gap: 0;
  }

  .prices article + article {
    border-top: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding-bottom: 34px;
    line-height: 1.35;
  }

  #back-to-top {
    right: 18px;
    bottom: 18px;
  }

  .footer-socials {
    padding-top: 10px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header,
  .hero,
  .expertise,
  .experience-inner,
  .pricing,
  .footer {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    font-size: 24px;
  }

  .hero-lists {
    gap: 24px;
  }

  .hero-statement p,
  .investment-lead,
  .experience-intro {
    font-size: 22px;
  }

  .expertise-row h2,
  .pricing h2 {
    font-size: 30px;
  }

}
