/* ФОТОЛАБ — «О нас»: editorial story, cream canvas, mobile-first polish */

.about-page {
  --about-cream: #F7F3ED;
  --about-ink: #171717;
  --about-muted: #5c5650;
  --about-orange: #FF6A00;
  --about-line: rgba(23, 23, 23, 0.12);
  --about-max: 1120px;
  --font-hand: "Caveat", cursive;
  --about-pad: clamp(16px, 4vw, 24px);
  background: var(--about-cream);
  color: var(--about-ink);
  overflow-x: clip;
}

.about-page.editorial-page {
  background: var(--about-cream);
}

.about-page .editorial__inner,
.about-page .editorial {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Topbar on cream */
.about-page .topbar,
.about-page .topbar.topbar--overlay,
.about-page .topbar.is-solid {
  background: rgba(247, 243, 237, 0.96);
  border-bottom: 1px solid var(--about-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.about-page .topbar__nav a[aria-current="page"] {
  color: var(--about-ink);
  box-shadow: inset 0 -2px 0 var(--about-ink);
}

.about-page .brand__sub {
  display: none;
}

.about-wrap {
  width: min(100% - (var(--about-pad) * 2), var(--about-max));
  margin-inline: auto;
}

.about-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--about-orange);
}

.about-title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.about-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--about-muted);
}

.about-prose {
  display: grid;
  gap: 14px;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--about-muted);
}

.about-prose p {
  margin: 0;
}

.about-prose--narrow {
  max-width: 34rem;
}

.about-hand {
  margin: 18px 0 0;
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--about-ink);
}

.about-hand--center {
  text-align: center;
  margin-top: 36px;
}

.about-hand--aside {
  position: absolute;
  top: -4px;
  right: -2%;
  max-width: 10.5rem;
  transform: rotate(6deg);
  z-index: 2;
  pointer-events: none;
}

.about-hand--stack {
  position: absolute;
  left: 4%;
  bottom: 2%;
  transform: rotate(-6deg);
  z-index: 3;
  pointer-events: none;
}

.about-hand--corner {
  position: absolute;
  right: 2%;
  bottom: 0;
  transform: rotate(5deg);
  z-index: 4;
  pointer-events: none;
}

/* Photo prints */
.about-frame {
  margin: 0;
  background: #fff;
  padding: 8px 8px 22px;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.09);
}

.about-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  background: #ebe6df;
}

.about-frame--hero {
  transform: rotate(-1.2deg);
  padding: 10px 10px 22px;
  box-shadow: 0 14px 36px rgba(23, 23, 23, 0.12);
}

.about-frame--hero img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  object-fit: unset;
  display: block;
  background: #f0ebe4;
}

.about-frame--a {
  transform: rotate(-2.5deg);
}

.about-frame--b {
  transform: rotate(2deg);
}

.about-frame--c {
  transform: rotate(-1.2deg);
}

/* —— Hero —— */
.about-hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "intro visual"
    "text visual";
  gap: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-hero__intro {
  grid-area: intro;
  align-self: end;
}

.about-hero__visual {
  grid-area: visual;
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.about-hero__text {
  grid-area: text;
  align-self: start;
  padding-top: 4px;
}

.about-hero__title {
  margin: 0 0 0;
  font-size: clamp(2.15rem, 6.2vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.about-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--about-muted);
}

.about-idcard {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: -12px 4% 0 auto;
  padding: 14px 16px 12px;
  background: #fffdf8;
  box-shadow: 0 8px 22px rgba(23, 23, 23, 0.12);
  transform: rotate(3.2deg);
}

.about-idcard::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: min(58%, 96px);
  height: 22px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(245, 230, 190, 0.2) 0%,
    rgba(232, 208, 150, 0.58) 18%,
    rgba(214, 188, 132, 0.5) 50%,
    rgba(232, 208, 150, 0.58) 82%,
    rgba(245, 230, 190, 0.2) 100%
  );
  border: 1px solid rgba(180, 150, 95, 0.18);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.05);
  mix-blend-mode: multiply;
  transform: translateX(-50%) rotate(-2deg);
}

.about-idcard__name {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.about-idcard__role {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--about-muted);
}

/* —— Story —— */
.about-story {
  padding: clamp(32px, 5vw, 48px) 0 clamp(56px, 8vw, 88px);
}

.about-story__copy {
  max-width: 42rem;
}

.about-sign {
  margin: 26px 0 0;
  display: grid;
  gap: 4px;
}

.about-sign__name {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 700;
}

.about-sign__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--about-muted);
}

/* —— Team —— */
.about-team {
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 88px);
}

.about-team__intro {
  max-width: 42rem;
}

.about-team__intro .btn {
  margin-top: 22px;
}

/* —— Approach —— */
.about-approach {
  padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 80px);
}

.about-approach__head {
  max-width: 40rem;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.about-principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--about-line);
}

.about-principle {
  padding: 26px 18px 8px 0;
  border-right: 1px solid var(--about-line);
}

.about-principle:last-child {
  border-right: 0;
  padding-right: 0;
}

.about-principle:not(:first-child) {
  padding-left: 18px;
}

.about-principle__num {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--about-orange);
}

.about-principle__cat {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--about-muted);
}

.about-principle__title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about-principle p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--about-muted);
}

/* —— City —— */
.about-city {
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 88px);
}

.about-city__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.about-city__media {
  margin: 0;
  width: min(100%, 520px);
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}

.about-city__media.about-polaroid.about-polaroid--taped {
  width: min(100%, 520px);
  max-width: 100%;
  transform: rotate(-2.4deg);
}

.about-city__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: unset;
  background: #ebe6df;
}

.about-city__love {
  margin: 20px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

/* —— Philosophy —— */
.about-philosophy {
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 88px);
}

.about-philosophy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.about-philosophy__visual {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(7rem, auto);
  gap: 14px 22px;
  align-items: end;
  justify-items: start;
  width: 100%;
}

.about-polaroid {
  margin: 0;
  width: min(100%, 420px);
  background: #fff;
  padding: 14px 14px 56px;
  box-shadow: 0 16px 40px rgba(23, 23, 23, 0.14);
  transform: rotate(-1.5deg);
}

.about-polaroid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: unset;
  object-position: center;
  background: #ebe6df;
}

.about-philosophy__hand {
  margin: 0 0 44px;
  font-family: var(--font-hand);
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--about-ink);
  transform: rotate(4deg);
  max-width: 11rem;
  text-align: left;
}

/* Hero taped print (reference: thin white border + scotch) */
.about-taped-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6.5rem, auto);
  gap: 12px 18px;
  align-items: center;
  width: 100%;
}

.about-polaroid.about-polaroid--taped {
  position: relative;
  width: min(100%, 360px);
  margin: 12px 0;
  padding: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.11);
  transform: rotate(-2.2deg);
  z-index: 1;
}

.about-polaroid.about-polaroid--taped img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: unset;
  background: #ebe6df;
}

.about-polaroid.about-polaroid--taped::before,
.about-polaroid.about-polaroid--taped::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(52%, 168px);
  height: 28px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(245, 230, 190, 0.22) 0%,
    rgba(232, 208, 150, 0.55) 18%,
    rgba(214, 188, 132, 0.48) 50%,
    rgba(232, 208, 150, 0.55) 82%,
    rgba(245, 230, 190, 0.22) 100%
  );
  border: 1px solid rgba(180, 150, 95, 0.18);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.05);
  mix-blend-mode: multiply;
}

.about-polaroid.about-polaroid--taped::before {
  top: -11px;
  transform: translateX(-50%) rotate(-1.5deg);
}

.about-polaroid.about-polaroid--taped::after {
  bottom: -11px;
  transform: translateX(-40%) rotate(2.8deg);
}

.about-polaroid.about-polaroid--thin {
  width: min(100%, 340px);
  padding: 8px;
  transform: rotate(-2.6deg);
}

.about-philosophy__visual .about-polaroid.about-polaroid--taped {
  width: min(100%, 340px);
}

.about-hero__hand {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--about-ink);
  transform: rotate(3deg);
  max-width: 9.5rem;
}

/* —— Memories bridge —— */
.about-memories {
  padding: 12px 0 clamp(48px, 7vw, 72px);
}

.about-memories__inner {
  max-width: 40rem;
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--about-line);
  border-bottom: 1px solid var(--about-line);
}

.about-memories .btn {
  margin-top: 22px;
}

.about-page .btn--ghost,
.about-page .btn.btn--ghost {
  background: transparent;
  color: var(--about-ink);
  border: 1.5px solid var(--about-ink);
}

.about-page .btn--ghost:hover,
.about-page .btn.btn--ghost:hover {
  border-color: var(--about-orange);
  color: var(--about-orange);
  background: transparent;
}

/* —— Finale —— */
.about-finale {
  padding: clamp(24px, 4vw, 40px) 0 clamp(64px, 9vw, 96px);
}

.about-finale__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.about-finale__media {
  margin: 0;
  width: min(100%, 360px);
  overflow: visible;
}

.about-finale__media.about-polaroid.about-polaroid--taped {
  width: min(100%, 360px);
  transform: rotate(2.2deg);
  outline: none;
  box-shadow: none;
}

.about-finale__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: unset;
  box-shadow: none;
  outline: none;
  background: #ebe6df;
}

.about-finale__title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.about-finale__sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* —— Footer —— */
.about-page .footer {
  background: transparent;
  border-top: 1px solid var(--about-line);
}

.about-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.about-footer__tag {
  margin: 8px 0 10px;
  font-size: 13px;
  color: var(--about-muted);
}

.about-page .footer__legal {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--about-muted);
}

/* ========== Tablet ========== */
@media (max-width: 960px) {
    .about-city__grid,
  .about-philosophy__grid,
  .about-finale__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Mobile/tablet hero: title → photo → speech */
  .about-hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "visual"
      "text";
    gap: 18px;
  }

  .about-hero__intro {
    align-self: start;
  }

  .about-hero__visual {
    max-width: 100%;
    justify-self: stretch;
  }

  .about-taped-shot {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto);
    gap: 10px 12px;
    max-width: 420px;
    margin-inline: auto;
  }

  .about-polaroid.about-polaroid--taped {
    width: 100%;
    transform: rotate(-1.6deg);
  }

  .about-hero__hand {
    font-size: clamp(1.7rem, 6.5vw, 2.3rem);
    max-width: 7.5rem;
  }

  .about-hero__text {
    padding-top: 4px;
  }

  .about-idcard {
    margin: 10px 6% 0 auto;
    transform: rotate(2.6deg);
  }

  .about-frame--hero {
    transform: none;
  }


  .about-principles {
    grid-template-columns: 1fr 1fr;
  }

  .about-principle {
    border-right: 0;
    border-bottom: 1px solid var(--about-line);
    padding: 22px 12px 22px 0;
  }

  .about-principle:not(:first-child) {
    padding-left: 0;
  }

  .about-principle:nth-child(odd) {
    border-right: 1px solid var(--about-line);
    padding-right: 14px;
  }

  .about-principle:nth-child(even) {
    padding-left: 14px;
  }


  .about-finale__media img {
    max-width: 280px;
    margin-inline: auto;
  }

  .about-finale__media {
    text-align: center;
  }

  .about-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* На узком экране: polaroid → речь сразу под ним */
  .about-philosophy__visual {
    order: -1;
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, auto);
    gap: 10px 12px;
    justify-content: stretch;
    max-width: 520px;
    margin-inline: auto;
  }

  .about-polaroid {
    width: 100%;
    max-width: none;
    transform: rotate(-1deg);
  }

  .about-philosophy__hand {
    margin: 0 0 40px;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
    max-width: 7.2rem;
  }
}

/* ========== Phone ========== */
@media (max-width: 640px) {
  .about-page {
    --about-pad: 16px;
  }

  .about-hero {
    padding: 20px 0 44px;
  }

  .about-hero__title {
    font-size: clamp(2rem, 10.5vw, 2.65rem);
    margin-bottom: 14px;
  }

  .about-hero__lead {
    font-size: 1rem;
  }

  .about-hero__visual {
    width: 100%;
    max-width: none;
  }

  /* Flatten tilts on small screens */
  .about-frame--hero,
  .about-frame--a,
  .about-frame--b,
  .about-frame--c {
    transform: none;
  }

  .about-polaroid.about-polaroid--taped {
    transform: rotate(-1deg);
    padding: 9px;
  }

  .about-taped-shot {
    max-width: none;
  }

  .about-idcard {
    margin: 10px 8% 0 auto;
    transform: rotate(2.4deg);
  }

  .about-frame--hero {
    padding: 8px 8px 16px;
  }

  .about-frame--hero img {
    aspect-ratio: auto;
    object-fit: unset;
  }

  .about-story,
  .about-team,
  .about-approach,
  .about-city,
  .about-philosophy {
    padding-bottom: 52px;
  }





  .about-hand--stack {
    position: static;
    grid-column: 1 / -1;
    margin: 4px 0 0;
    transform: none;
    text-align: center;
  }


  .about-principles {
    grid-template-columns: 1fr;
  }

  .about-principle,
  .about-principle:nth-child(odd),
  .about-principle:nth-child(even) {
    border-right: 0;
    padding: 20px 0;
  }

  .about-city__media img {
    aspect-ratio: auto;
  }

  .about-philosophy__visual {
    grid-template-columns: minmax(0, 1fr) minmax(4.8rem, auto);
    gap: 8px 10px;
    max-width: none;
  }

  .about-polaroid {
    width: 100%;
    padding: 12px 12px 48px;
    transform: rotate(-0.8deg);
  }

  .about-philosophy__hand {
    margin: 0 0 36px;
    font-size: clamp(1.7rem, 8.5vw, 2.25rem);
    max-width: 6.5rem;
    transform: rotate(3deg);
  }

  .about-memories__inner {
    padding: 24px 0;
  }

  .about-finale__grid {
    gap: 20px;
    text-align: center;
  }

  .about-finale__media img {
    max-width: 100%;
    outline-width: 8px;
  }

  .about-finale__title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .about-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-page .footer__col h3 {
    margin-bottom: 8px;
  }

  .about-page .topbar__actions .btn--nav {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .about-hero__title {
    font-size: 1.85rem;
  }

  .about-kicker {
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-frame--hero,
  .about-frame--a,
  .about-frame--b,
  .about-frame--c,
  .about-idcard,
  .about-hand--aside,
  .about-hand--stack,
  .about-hand--corner,
  .about-polaroid,
  .about-polaroid.about-polaroid--taped,
  .about-polaroid.about-polaroid--taped::before,
  .about-polaroid.about-polaroid--taped::after,
  .about-philosophy__hand,
  .about-hero__hand {
    transform: none;
  }
}
