:root {
  --studio: #e3e5e8;
  --paper: #f4f5f6;
  --ink: #1d2227;
  --primer: #8a9097;
  --cobalt: #2b49c4;
  --cobalt-dark: #1f379a;
  --line: #c9cdd2;

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body:
    "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  background: var(--studio);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(227, 229, 232, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 15px;
}
.nav a:not(.nav__cta):hover {
  color: var(--cobalt);
}
.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav__cta:hover {
  background: var(--cobalt);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s;
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  top: 25px;
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0 !important;
    padding: 14px 18px !important;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 500 16px/1 var(--font-body);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn--primary {
  background: var(--cobalt);
  color: #fff;
}
.btn--primary:hover {
  background: var(--cobalt-dark);
}
.btn--ghost {
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--pad) clamp(56px, 8vw, 112px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.hero__lead {
  font-size: 19px;
  max-width: 34em;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__note {
  margin: 20px 0 0;
  color: #555c63;
  font-size: 15px;
}

.hero__figure {
  margin: 0;
  position: relative;
  padding-left: 46px;
}
.hero__figure img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 1229 / 1400;
  object-fit: cover;
}
.hero__figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: #555c63;
}

.ruler {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  aspect-ratio: auto;
  height: calc(100% - 38px);
  border-right: 1.5px solid var(--ink);
  background:
    repeating-linear-gradient(
        to bottom,
        var(--ink) 0 1.5px,
        transparent 1.5px 5%
      )
      right top / 16px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 1%)
      right top / 8px 100% no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1;
  color: var(--ink);
}
.ruler span {
  transform: translateY(-2px);
}
.ruler span:last-child {
  transform: translateY(-10px);
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--pad);
}
.section__head {
  margin-bottom: 44px;
  max-width: 44em;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  margin: 0 0 14px;
}
.section__sub {
  margin: 0;
  color: #4d545b;
}

.works {
  border-top: 1px solid var(--line);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery__item {
  padding: 0;
  border: 0;
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 5;
}
.gallery__item:nth-child(5),
.gallery__item:nth-child(6) {
  grid-column: span 2;
  aspect-ratio: 16 / 11;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 860px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(6) {
    aspect-ratio: 4 / 5;
  }
}

.make {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}
.make__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.make__list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  max-width: 40em;
}
.make__list li:first-child {
  padding-top: 6px;
}
.make__list strong {
  font-weight: 600;
}

@media (max-width: 860px) {
  .make {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.sizes {
  background: var(--paper);
  max-width: none;
  margin: 0;
}
.sizes > * {
  max-width: calc(var(--wrap) - 2 * var(--pad));
  margin-left: auto;
  margin-right: auto;
}

.scale {
  --unit: clamp(9px, 2.2vw, 22px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(20px, 7vw, 96px);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 56px;
  position: relative;
}
.scale__item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scale__figure {
  height: calc(var(--h) * var(--unit));
  aspect-ratio: 854 / 1400;
  margin-bottom: 14px;
}
.scale__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  border-radius: 4px;
}
.scale__cm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0;
  line-height: 1.2;
}
.scale__price {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 18px;
}
.scale__item + .scale__item {
  position: relative;
}

.calc {
  background: var(--studio);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 720px !important;
}
.calc__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 24px;
}
.calc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.calc__label {
  font-weight: 500;
}

.seg {
  display: inline-flex;
  background: var(--paper);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg label {
  position: relative;
  cursor: pointer;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.seg label {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  transition:
    background 0.2s,
    color 0.2s;
}
.seg label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}
.seg label:has(input:focus-visible) {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.calc__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.calc__sum {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1;
}
.calc__hint {
  color: #4d545b;
}
.calc__small {
  font-size: 14px;
  color: #4d545b;
  margin: 0;
  max-width: 40em;
}

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  counter-reset: step;
}
.steps__item {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.steps__item::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--cobalt);
  display: block;
  margin-bottom: 14px;
}
.steps__item h3 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}
.steps__item p {
  margin: 0;
  color: #3f454b;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.faq {
  border-top: 1px solid var(--line);
}
.faq__list {
  max-width: 820px;
  margin-top: 32px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 19px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 400;
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  margin: 0 0 24px;
  max-width: 42em;
  color: #3f454b;
}

.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.12;
  max-width: 17em;
  margin: 0 0 48px;
}
.contact__links {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.contact__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-radius: 10px;
  border: 1.5px solid #3a4148;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.contact__card:hover {
  border-color: var(--paper);
}
.contact__card--main {
  background: var(--cobalt);
  border-color: var(--cobalt);
}
.contact__card--main:hover {
  background: var(--cobalt-dark);
  border-color: var(--cobalt-dark);
}
.contact__name {
  font-size: 14px;
  opacity: 0.8;
}
.contact__handle {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
}
.contact__desc {
  font-size: 15px;
  opacity: 0.85;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .contact__links {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: var(--ink);
  color: var(--primer);
  border-top: 1px solid #333a41;
}
.footer p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--pad);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 23, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(56px + env(safe-area-inset-top, 0px)) 64px
    calc(24px + env(safe-area-inset-bottom, 0px));
}
.lightbox[hidden] {
  display: none;
}
.lightbox__figure {
  margin: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  width: auto;
  border-radius: 6px;
}
.lightbox__caption {
  color: var(--paper);
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  width: 52px;
  height: 52px;
}
.lightbox__close {
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
}
.lightbox__nav--prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__nav--next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox {
    padding-left: 12px;
    padding-right: 12px;
  }
  .lightbox__nav {
    top: auto;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__figure {
    max-width: 520px;
  }
}

.gallery__item:nth-child(5) img {
  object-position: center 15%;
}
.gallery__item:nth-child(6) img {
  object-position: center 40%;
}
