/* =========================================================
   MANYKLER — сайт-визитка
   Токены дизайна: меняются здесь, применяются везде
   ========================================================= */
:root {
  --bg:            #121110;
  --surface:       #1b1917;
  --surface-2:     #201d1a;
  --ink:           #efe9df;
  --ink-dim:       #b7afa0;
  --accent:        #8a2622;
  --accent-hover:  #9c2d28;
  --accent-soft:   rgba(138, 38, 34, .16);
  --brass:         #ab8a4c;
  --hair:          rgba(239, 233, 223, .14);
  --hair-strong:   rgba(239, 233, 223, .28);

  --font-display:  'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script:   'Petit Formal Script', cursive;

  --container:     1120px;
  --pad-x:         clamp(1.25rem, 5vw, 2.5rem);
  --nav-h:         64px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--ink); }

/* ---------- Общие блоки ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--hair);
}

.section--reviews { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

.eyebrow {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: .5rem 0 0;
}

.section__lede {
  color: var(--ink-dim);
  max-width: 620px;
  margin: 1rem 0 0;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.7rem;
  border: 1px solid var(--hair-strong);
  border-radius: 2px;
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .15s ease;
}

.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--accent); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* =========================================================
   ШАПКА
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}

.nav.is-scrolled {
  background: rgba(18, 17, 16, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--hair);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-decoration: none;
}

.nav__links { display: none; gap: 1.7rem; }

.nav__links a {
  font-size: .82rem;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }

.nav__cta {
  display: none;
  padding: .55rem 1.15rem;
  font-size: .7rem;
}

.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  background: transparent;
  cursor: pointer;
}

.nav__burger span {
  height: 1px;
  margin: 0 9px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.nav__mobile {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem var(--pad-x) 2rem;
  background: rgba(18, 17, 16, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

/* пока бургер не нажат, меню скрыто — авторский display: flex
   иначе перебивает встроенный [hidden] и меню висит всегда */
.nav__mobile[hidden] { display: none; }

.nav__mobile a {
  font-size: .98rem;
  color: var(--ink-dim);
  text-decoration: none;
}

@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* =========================================================
   ГЕРОЙ
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2.5rem, 8vw, 5rem)) 0 clamp(2.5rem, 7vw, 4.5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 45% at 78% 18%, rgba(138,38,34,.15), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: .98;
  margin: .5rem 0 0;
}

.hero__title em {
  display: block;
  font-style: italic;
  color: var(--brass);
}

.hero__tagline {
  max-width: 470px;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero__note {
  margin: 1.5rem 0 0;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--brass);
}

.hero__mark svg {
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto;
}

/* анимация «рисования» */
.draw-circle { stroke-dasharray: 505; stroke-dashoffset: 505; animation: draw 2.3s ease forwards .2s; }
.draw-line   { stroke-dasharray: 250; stroke-dashoffset: 250; animation: draw 1.4s ease forwards 1s; }

.draw-stars path { opacity: 0; transform-origin: center; animation: pop .5s ease forwards; }
.draw-stars path:nth-child(1) { animation-delay: 1.9s; }
.draw-stars path:nth-child(2) { animation-delay: 2.1s; }
.draw-stars path:nth-child(3) { animation-delay: 2.3s; }

.mark-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 7px;
  fill: var(--ink);
  opacity: 0;
  animation: fade-in .8s ease forwards 2.4s;
}

.mark-role {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 5px;
  fill: var(--brass);
  opacity: 0;
  animation: fade-in .8s ease forwards 2.7s;
}

@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes pop     { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes fade-in { to { opacity: 1; } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}

/* =========================================================
   О МАСТЕРЕ
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Фото мастера: исходник ровно 2:3 (900×1350),
   поэтому кадр задан теми же пропорциями и ничего не обрезается. */
.about__photo {
  position: relative;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.about__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--hair);
  filter: brightness(1.06) contrast(1.03);
}

/* тонкая рамка со сдвигом — фото тёмное и без неё сливается с фоном */
.about__photo::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--brass);
  opacity: .35;
  pointer-events: none;
}

.about__text p {
  margin: 0 0 1.05rem;
  color: var(--ink-dim);
  max-width: 560px;
}

.about__text p:first-of-type { margin-top: 1.5rem; }

.about__quote {
  margin: 1.8rem 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--ink);
  max-width: 520px;
}

@media (min-width: 880px) {
  .about__grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
  .about__photo { margin: 0; }
}

/* =========================================================
   СТИЛЬ
   ========================================================= */
.style__grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.style__card {
  background: var(--bg);
  padding: 2rem 1.7rem;
}

.style__card h3 {
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}

.style__card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: .94rem;
}

@media (min-width: 700px) {
  .style__grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   РАБОТЫ
   ========================================================= */
.works__grid {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.work {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--hair);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .5s ease, filter .4s ease;
}

.work:hover img { transform: scale(1.05); }

.work__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: .8rem .9rem;
  font-size: .74rem;
  letter-spacing: .02em;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
}

@media (min-width: 700px)  { .works__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .works__grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================
   ПРОЦЕСС
   ========================================================= */
.process__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
}

.process__lede {
  margin: 0;
  max-width: 470px;
  color: var(--ink-dim);
}

.process__body {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 1.3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hair);
}

.steps li:last-child { border-bottom: 1px solid var(--hair); }

.steps__num {
  min-width: 2.3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.steps h3 { margin: 0 0 .35rem; font-size: 1.02rem; font-weight: 600; }
.steps p  { margin: 0; color: var(--ink-dim); font-size: .92rem; }

.process__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.process__gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--hair);
}

.process__gallery img:nth-child(2) { margin-top: 2.2rem; }

.process__gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10 !important;
  margin-top: -1.3rem;
}

@media (min-width: 900px) {
  .process__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .process__body { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
}

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews__track {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  padding: 0 var(--pad-x) 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.reviews__track::-webkit-scrollbar        { height: 6px; }
.reviews__track::-webkit-scrollbar-thumb  { background: var(--hair-strong); }
.reviews__track::-webkit-scrollbar-track  { background: var(--surface); }

.review {
  flex: 0 0 auto;
  width: 250px;
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--hair);
  background: var(--surface);
  overflow: hidden;
}

@media (min-width: 700px) { .review { width: 300px; } }

/* =========================================================
   ЗАПИСЬ
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact__links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.contact__links a {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--hair);
  font-size: .95rem;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.contact__links a span {
  min-width: 96px;
  color: var(--ink);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact__links a:hover {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--hair);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form__field label {
  font-size: .76rem;
  letter-spacing: .04em;
  color: var(--ink-dim);
}

.form__field input,
.form__field textarea {
  padding: .78rem .9rem;
  background: var(--surface-2);
  border: 1px solid var(--hair-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
  resize: vertical;
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(183, 175, 160, .5); }

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form__field.has-error input,
.form__field.has-error textarea { border-color: #d38a86; }

.form button { align-self: flex-start; margin-top: .3rem; }

.form__hint {
  margin: 0;
  font-size: .8rem;
  color: var(--ink-dim);
}

.form__hint.is-ok    { color: #9cb98a; }
.form__hint.is-error { color: #d38a86; }

@media (min-width: 900px) {
  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer {
  padding: 2.4rem 0;
  border-top: 1px solid var(--hair);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__brand { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.footer__line  { margin: .2rem 0 0; font-size: .84rem; color: var(--ink-dim); }

.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.footer__links a {
  font-size: .84rem;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .2s ease;
}

.footer__links a:hover { color: var(--ink); }

.footer__copy { margin: 0; font-size: .75rem; color: var(--ink-dim); }

@media (min-width: 760px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* =========================================================
   ЛАЙТБОКС
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(8, 7, 6, .95);
  animation: fade-in .2s ease forwards;
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  max-width: 620px;
  width: 100%;
}

.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--hair-strong);
}

.lightbox__figure figcaption {
  margin-top: .9rem;
  font-size: .84rem;
  color: var(--ink-dim);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 25, 23, .8);
  border: 1px solid var(--hair-strong);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--brass); background: var(--surface-2); }

.lightbox__close {
  top: 1.1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 60px;
  font-size: 1.9rem;
  line-height: 1;
}

.lightbox__nav--prev { left: .7rem; }
.lightbox__nav--next { right: .7rem; }

@media (min-width: 800px) {
  .lightbox__nav--prev { left: 2rem; }
  .lightbox__nav--next { right: 2rem; }
}

/* =========================================================
   ДОСТУПНОСТЬ: уважаем отключённую анимацию
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .draw-circle, .draw-line { stroke-dashoffset: 0; }
  .draw-stars path, .mark-name, .mark-role { opacity: 1; }
}

/* =========================================================
   БЕЙДЖ СТУДИИ (из site_credit_badge.html, статичный, в футере)
   ========================================================= */
.knyazev-credit{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-family:Arial,sans-serif;padding:4px 0;box-sizing:border-box;max-width:100%}
.knyazev-credit svg{flex-shrink:0;width:36px;height:36px}
.knyazev-credit .text{display:flex;flex-direction:column;line-height:1.3}
.knyazev-credit .made{color:#8A93A6;font-size:11px}
.knyazev-credit .brand{color:#F5F7FA;font-size:13px;font-weight:700;letter-spacing:1.5px;transition:color .15s ease}
.knyazev-credit:hover .brand{color:#2DD4CF}

.footer__credit{
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--hair);
}
