/* ============ BASE ============ */
:root {
  --cream: #efe9dd;
  --cream-dark: #e6dfd0;
  --ink: #141414;
  --red: #e8321f;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  /* clip, not hidden: overflow-x hidden on body breaks position: sticky in Safari */
  overflow-x: hidden;
  overflow-x: clip;
}

/* grain overlay for a print feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.section { padding: clamp(64px, 9vw, 130px) clamp(20px, 6vw, 90px); }

/* ============ TYPO HELPERS ============ */
.big-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 190px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--red);
}

.big-title--right { text-align: right; }

.big-title--huge { font-size: clamp(80px, 16vw, 250px); }

.label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1.8;
}

.label--red { color: var(--red); }

.rule { border: none; border-top: 3px solid var(--ink); margin: 18px 0; }

.star { width: 44px; height: 44px; }
.star path { fill: var(--ink); }
.star--red path { fill: var(--red); }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 6vw, 90px);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}

.nav__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}

.nav__links {
  display: flex;
  gap: clamp(12px, 2.5vw, 34px);
  flex-wrap: wrap;
  justify-content: center;
}

.nav__links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}

.nav__links a:hover { color: var(--red); border-color: var(--red); }

.lang { display: flex; align-items: center; gap: 6px; }

.lang__btn {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  opacity: .45;
  padding: 4px 2px;
  transition: opacity .2s, color .2s;
}

.lang__btn:hover { opacity: 1; }
.lang__btn.is-active { opacity: 1; color: var(--red); }
.lang__sep { opacity: .4; font-size: 12px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}

.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn--red { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn--red:hover { background: var(--ink); border-color: var(--ink); }

.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(20, 20, 20, .9); }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) auto;
  grid-template-rows: auto auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 90px) clamp(48px, 7vw, 100px);
}

.hero__title {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(80px, 15.5vw, 230px);
  line-height: .9;
  text-transform: uppercase;
  color: var(--red);
}

/* EN "PHOTO-GRAPHER" has longer lines than "ФОТО-ГРАФ" — scale down so it fits */
html[lang="en"] .hero__title { font-size: clamp(60px, 11vw, 165px); }

.hero__photo {
  border-radius: 10px;
  overflow: hidden;
  max-width: 460px;
  justify-self: end;
}

.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  align-self: stretch;
}

.hero__vertical {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.hero__intro {
  grid-column: 2 / 3;
  justify-self: end;
  width: 100%;
  max-width: 460px;
}

.hero__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: .06em;
  margin-top: 6px;
}

.hero__tagline { font-size: 14px; margin-bottom: 26px; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--red);
  overflow: hidden;
  padding: 12px 0;
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee__inner span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .12em;
  color: var(--cream);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ ABOUT ============ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.about__text { font-size: 15px; line-height: 1.75; margin-bottom: 34px; }

.about__edu { margin-bottom: 40px; }
.about__edu ul { list-style: none; margin-top: 10px; }
.about__edu li { font-size: 14px; padding: 10px 0; border-bottom: 1px solid rgba(20, 20, 20, .25); }

.about__cta .label { margin-bottom: 14px; }
.about__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ PORTFOLIO ============ */
.portfolio {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: stretch;
  background: var(--cream-dark);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.portfolio__title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 7.5vw, 110px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--red);
  justify-self: start;
  align-self: center;
}

.portfolio__main { min-width: 0; }

.carousel {
  overflow: hidden;
  cursor: grab;
  border-radius: 10px;
}

.carousel.is-dragging { cursor: grabbing; }

.carousel__track {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  width: max-content;
  will-change: transform;
}

.carousel__item {
  width: clamp(220px, 26vw, 360px);
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.carousel__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .35s;
}

.carousel__item:hover img { transform: scale(1.04); }

.portfolio__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.portfolio__hint { text-align: center; opacity: .7; }

.ctrl {
  width: 56px; height: 56px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}

.ctrl:hover { background: var(--red); border-color: var(--red); color: var(--cream); transform: translateY(-2px); }

/* ============ EXHIBITIONS ============ */
/* single-line title: EN "EXHIBITIONS" is longer, needs a smaller floor on narrow screens */
.exhibitions .big-title { white-space: nowrap; }
html[lang="en"] .exhibitions .big-title { font-size: clamp(46px, 13vw, 190px); }

.exhibitions__list { margin-top: clamp(36px, 5vw, 70px); }

.exh {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3.5vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 2px solid var(--ink);
}

.exh:last-child { border-bottom: 2px solid var(--ink); }

.exh__year {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  color: var(--red);
}

.exh__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.exh__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.exh__photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform .3s;
}

.exh__photos img:hover { transform: scale(1.03); }

/* ---- zines ---- */
.zines { margin-top: clamp(48px, 6vw, 80px); }

.zines__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.zine {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 22px 20px;
  background: var(--cream);
  transition: transform .15s, box-shadow .15s;
}

.zine:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--red); }

.zine__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.zines__note { margin-top: 18px; opacity: .7; }

/* ============ PRICE ============ */
.price { background: var(--ink); color: var(--cream); }

.price .big-title { color: var(--red); }

.price__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(36px, 5vw, 64px);
}

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

.price-card {
  border: 2px solid var(--cream);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  transition: transform .15s, box-shadow .15s, background .2s;
}

.price-card:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--cream);
}

.price-card__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2em;
  color: var(--red);
}

.price-card:hover .price-card__num { color: var(--cream); }

.price-card__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.price-card__desc { font-size: 13px; opacity: .8; flex: 1; }

.price-card__list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 6px 0 14px;
}

.price-card__list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
}

.price-card__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
}

.price-card:hover .price-card__list li::before { color: var(--cream); }

.price-card__cost {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
}

.price-card--featured .price-card__cost { font-size: clamp(38px, 4.5vw, 56px); }

.price-card--note { justify-content: flex-start; }

.price-card--note .price-card__num { text-transform: uppercase; letter-spacing: .2em; }

.price-card--note .price-card__desc { flex: 1; font-size: 14px; line-height: 1.7; }

.price-card__cta { align-self: flex-start; margin-top: 10px; }

.price-card--note:hover .price-card__cta { border-color: var(--cream); }

.price-card--extras { grid-column: 1 / -1; min-height: 0; }

.price-extras { list-style: none; }

.price-extras li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  font-size: 14px;
}

.price-extras li:last-child { border-bottom: none; padding-bottom: 0; }

.price-extras b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  white-space: nowrap;
}

.price__note {
  margin-top: 34px;
  font-size: 13px;
  opacity: .7;
  max-width: 520px;
}

/* ============ CONTACTS ============ */
.contacts { text-align: left; }

.contacts__title { font-size: clamp(64px, 14vw, 210px); }

.contacts__lead { margin-top: 10px; }

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}

.contacts__list { display: flex; flex-direction: column; gap: 26px; }

.contact {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  width: fit-content;
}

.contact__icon {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  transition: background .2s, transform .15s;
}

.contact__icon svg { width: 26px; height: 26px; fill: var(--cream); }

.contact:hover .contact__icon { background: var(--ink); transform: rotate(-8deg); }

.contact__text {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 32px);
  letter-spacing: .04em;
  border-bottom: 3px solid transparent;
  transition: border-color .2s, color .2s;
  word-break: break-all;
}

.contact:hover .contact__text { color: var(--red); border-color: var(--red); }

.contacts__globe { width: clamp(120px, 16vw, 210px); color: var(--ink); justify-self: end; }

.contacts__outro {
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 30px);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}

/* ============ FOOTER ============ */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 26px 20px;
  background: var(--ink);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  flex-wrap: wrap;
}

.footer__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: min(1000px, 86vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  background: none;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  width: 52px; height: 52px;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.lightbox__close:hover,
.lightbox__arrow:hover { background: var(--red); border-color: var(--red); }

.lightbox__close { top: 24px; right: 24px; }
.lightbox__arrow--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .hero__title { grid-row: auto; font-size: clamp(72px, 18vw, 160px); }
  html[lang="en"] .hero__title { font-size: clamp(52px, 13vw, 115px); }
  .hero__photo { justify-self: start; }
  .hero__side { flex-direction: row; align-self: auto; }
  .hero__vertical { writing-mode: horizontal-tb; }
  .hero__intro { grid-column: auto; justify-self: start; }

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

  .exh { grid-template-columns: 1fr; gap: 18px; }

  .contacts__grid { grid-template-columns: 1fr; }
  .contacts__globe { justify-self: start; }
}

@media (max-width: 720px) {
  .star { display: none; }
  .nav { flex-wrap: wrap; }
  .nav__links { order: 3; width: 100%; justify-content: flex-start; gap: 14px; }

  .portfolio { grid-template-columns: 1fr; }
  .portfolio__title {
    writing-mode: horizontal-tb;
    transform: none;
    align-self: start;
  }
  .carousel__item { width: min(72vw, 320px); }
  .portfolio__hint { display: none; }
  .portfolio__controls { justify-content: center; gap: 28px; }

  .lightbox { padding: 16px; }
  .lightbox__img { max-width: 100%; max-height: 70vh; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__arrow--prev { left: 12px; top: auto; bottom: 20px; transform: none; }
  .lightbox__arrow--next { right: 12px; top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none; }
  html { scroll-behavior: auto; }
}
