/* urfuboss.ru — editorial photo site. Monochrome ink, one warm accent, nothing extra. */

/* Font faces live in /fonts.css (self-hosted Manrope). */

:root {
  --bg: #0b0c0e;
  --bg-elevated: #101216;
  --surface: #14161b;
  --surface-2: #191c22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #edeeef;
  --muted: #969aa3;
  --faint: #6b7078;
  --accent: #e8b17c;
  --accent-soft: rgba(232, 177, 124, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --gutter: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

:root.light {
  --bg: #f6f5f1;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0efea;
  --line: rgba(18, 18, 22, 0.1);
  --line-strong: rgba(18, 18, 22, 0.22);
  --text: #14151a;
  --muted: #61656d;
  --faint: #8b8f96;
  --accent: #965a1c;
  --accent-soft: rgba(150, 90, 28, 0.1);
  --shadow: 0 20px 50px rgba(24, 22, 18, 0.14);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0b0c0e; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); }

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand__role { font-size: 12px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--text); }

.head-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.icon-btn svg { width: 17px; height: 17px; }

.burger { display: none; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 56px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}
.hero__kicker::before { content: ''; width: 26px; height: 1px; background: var(--accent); }

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero h1 em { display: block; font-style: normal; color: var(--faint); font-size: 0.44em; letter-spacing: -0.03em; font-weight: 600; margin-top: 0.16em; }

.hero__lead {
  margin: 30px 0 0;
  max-width: 620px;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}

.hero__row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); }
.btn svg { width: 15px; height: 15px; }

.link-quiet { font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: color 0.2s; }
.link-quiet:hover { color: var(--text); }

.hero__meta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- featured strip ---------- */

.featured { padding: 0 0 90px; }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.strip figure:hover img { transform: scale(1.03); }

/* ---------- section heads ---------- */

.section { padding: 0 0 96px; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section__title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.section__note { font-size: 13px; color: var(--faint); letter-spacing: 0.02em; }

/* ---------- album cards ---------- */

.albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
.album-card { display: flex; flex-direction: column; gap: 16px; }
.album-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.album-card:hover .album-card__cover img { transform: scale(1.04); }
.album-card__badge {
  position: absolute;
  left: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.album-card__badge svg { width: 12px; height: 12px; opacity: 0.85; }
.album-card__body { display: flex; flex-direction: column; gap: 6px; }
.album-card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; }
.album-card__meta { font-size: 13px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.album-card__meta span + span::before { content: '·'; margin-right: 8px; color: var(--line-strong); }
.album-card__desc { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.album-card--empty .album-card__cover {
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 14px;
}

/* ---------- album page ---------- */

.album-head { padding: 54px 0 34px; }
.album-head h1 {
  margin: 0;
  font-size: clamp(32px, 5.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 20ch;
}
.album-head__sub { margin: 16px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 60ch; }
.album-head__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.album-head__desc {
  margin: 26px 0 0;
  max-width: 66ch;
  color: var(--muted);
  white-space: pre-line;
  font-size: 15.5px;
}

.rows { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.row { display: flex; gap: 10px; }
.row figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-sm);
  flex-grow: var(--ar);
  flex-basis: 0;
  height: var(--row-h);
  min-width: 0;
  max-width: 100%;
}
.row--last figure { flex-grow: 0; flex-basis: auto; width: calc(var(--ar) * var(--row-h)); }
.row figure img { width: 100%; height: 100%; object-fit: cover; }
.row figure a { display: block; width: 100%; height: 100%; }
.row figure::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: inherit;
  pointer-events: none;
}
.row figure:hover img { opacity: 0.94; }
.row figure img { transition: opacity 0.3s var(--ease); }

.album-foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 8px 0 80px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.album-foot a { color: var(--muted); }
.album-foot a:hover { color: var(--text); }

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
  color: var(--muted);
  margin-bottom: 80px;
}
.empty-state h2 { margin: 0 0 8px; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }

/* ---------- text pages ---------- */

.page { padding: 64px 0 96px; }
.page h1 { margin: 0 0 12px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.042em; font-weight: 800; }
.page__lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); margin: 0 0 40px; max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 20px; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 44px 0 14px; font-size: 22px; letter-spacing: -0.03em; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }

.services { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 12px 0 8px; }
.service { background: var(--bg); padding: 26px 24px; display: grid; gap: 10px; }
.service__top { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.service__title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.service__price { font-size: 14px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.service__text { margin: 0; font-size: 14.5px; color: var(--muted); }

.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.contact-pill:hover { background: var(--surface); transform: translateY(-1px); }
.contact-pill svg { width: 16px; height: 16px; opacity: 0.8; }
.contact-pill span { color: var(--faint); }

.cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cta-lead { margin: 0; font-size: clamp(17px, 2vw, 21px); color: var(--text); line-height: 1.5; max-width: 48ch; }
.cta-grid .contact-row { margin-top: 0; flex-direction: column; align-items: stretch; }
.cta-grid .contact-pill { justify-content: flex-start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- footer ---------- */

.site-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
  font-size: 13.5px;
  color: var(--faint);
}
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-foot__col { display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--text); }
.site-foot__tiny { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; opacity: 0.7; }

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(6, 6, 8, 0.975);
  color: #eee;
  backdrop-filter: blur(3px);
}
.lb[data-open='1'] { display: grid; grid-template-rows: 1fr auto; }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 54px 64px; min-height: 0; }
.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s ease;
  opacity: 1;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lb__img[data-loading='1'] { opacity: 0.25; }
.lb__spinner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: none;
}
.lb[data-busy='1'] .lb__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.9);
}
.lb__counter { font-size: 12px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb__caption { flex: 1; min-width: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__tools { display: flex; gap: 8px; }
.lb__btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.lb__btn svg { width: 16px; height: 16px; }
.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 14, 0.55);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lb__nav:hover { background: rgba(255, 255, 255, 0.14); }
.lb__nav--prev { left: 12px; }
.lb__nav--next { right: 12px; }
.lb__nav svg { width: 20px; height: 20px; }
.lb__close { position: absolute; top: 12px; right: 12px; }
.lb__title { position: absolute; top: 16px; left: 20px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }

/* ---------- misc ---------- */

.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.password-box {
  max-width: 420px;
  margin: 80px auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}
.password-box h1 { font-size: 24px; margin: 0 0 10px; letter-spacing: -0.03em; }
.password-box p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --gutter: 20px; --radius: 16px; }
  .albums { grid-template-columns: 1fr; gap: 30px; }
  .site-head__inner { height: 64px; }
  .brand__role { display: none; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
    z-index: 39;
  }
  .nav[data-open='1'] { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .hero { padding: 44px 0 34px; }
  .hero__lead { margin-top: 22px; }
  .section { padding-bottom: 64px; }
  .page { padding: 40px 0 64px; }
  .album-head { padding: 34px 0 24px; }
  .lb__stage { padding: 44px 10px; }
  .lb__nav { display: none; }
  .lb__caption { display: none; }
  .service__top { flex-direction: column; gap: 4px; }
  .album-foot { padding-bottom: 56px; }
}

@media (max-width: 720px) {
  .rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .row { display: contents; }
  .row figure, .row--last figure { --row-h: auto; height: auto; width: 100%; max-width: 100%; flex: none; aspect-ratio: var(--ar-ratio); }
  .strip { grid-auto-columns: 72%; }
  .hero__meta { gap: 8px 20px; font-size: 11.5px; }
}
.lb__btn[hidden] { display: none !important; }
