/* ============ Базовое ============ */
:root {
  --bg: #17110c;
  --bg-soft: #1f1710;
  --panel: #241a12;
  --cream: #f0e6d6;
  --cream-dim: rgba(240, 230, 214, .62);
  --leather: #c99a5b;
  --line: rgba(240, 230, 214, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--leather); color: #1a120a; }

/* ============ Плавающее меню-молния (справа) ============ */
.site-nav {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 6px 4px;
  background: none;
  border: none;
}

.site-logo {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 50;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(23, 17, 12, .95), 0 1px 3px rgba(23, 17, 12, .9);
}

.site-logo-svg { height: 118px; width: auto; display: block; }

.nav-logo {
  text-decoration: none;
  display: flex;
  justify-content: flex-end;
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.65, 0, .9, .5), opacity .2s ease;
  transition-delay: var(--in-delay, 0ms), var(--in-delay, 0ms);
}

.nav-logo-img { height: 48px; width: auto; display: block; }

.nav-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 13px; list-style: none; }

.nav-menu li {
  transform: translateX(0);
  transition: transform .32s cubic-bezier(.65, 0, .9, .5), opacity .2s ease;
  transition-delay: var(--in-delay, 0ms), var(--in-delay, 0ms);
}

/* «расстёгнутая» молния: пункты резко уезжают вправо лесенкой */
.site-nav.zipped .nav-menu li,
.site-nav.zipped .nav-logo {
  transform: translateX(150px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.7, 0, .95, .4), opacity .16s ease;
  transition-delay: var(--out-delay, 0ms), var(--out-delay, 0ms);
}

.nav-menu a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: right;
  white-space: nowrap;
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(240, 230, 214, .05);
  border: 1px solid rgba(240, 230, 214, .07);
  transition: color .25s, background .25s, border-color .25s;
}

.nav-menu a:hover { color: var(--cream); background: rgba(240, 230, 214, .12); border-color: rgba(240, 230, 214, .16); }

.nav-menu .active { color: var(--leather); }

.nav-menu a { text-shadow: 0 1px 10px rgba(23, 17, 12, .95), 0 1px 3px rgba(23, 17, 12, .9); }

/* плавающие кнопки — всегда видны */
.fab-group {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-fab {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(240, 230, 214, .12);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: background .25s, transform .25s;
}

.share-fab:hover { background: rgba(240, 230, 214, .22); transform: translateY(-3px); }

.order-fab {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--leather);
  color: #1a120a;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 8px rgba(201, 154, 91, .35);
  transition: transform .25s, background .25s;
}

.order-fab:hover { transform: translateY(-3px); background: #d8ab6c; }

/* контент не заходит под плавающее меню */
@media (min-width: 881px) {
  .page, .hero-inner { padding-right: 170px; }
}

/* ============ Внутренние страницы ============ */
.page {
  min-height: calc(100vh - 200px);
  padding: clamp(40px, 7vw, 90px) clamp(20px, 5vw, 72px) clamp(60px, 8vw, 110px);
  max-width: 1200px;
  margin: 0 auto;
}

.page-head { text-align: center; margin-bottom: clamp(36px, 6vw, 60px); }

.page-lead {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--cream-dim);
  font-size: 16px;
  font-style: italic;
}

/* --- О бренде --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.about-text p { margin-bottom: 20px; color: var(--cream-dim); font-size: 16px; }
.about-text strong { color: var(--leather); font-weight: 600; }
.about-text .hero-cta { margin-top: 10px; }

.about-photo {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  transform: rotate(1.2deg);
}

.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.about-gallery figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.about-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.about-gallery figure:hover img { transform: scale(1.05); }

/* --- Портфолио --- */
.folio-projects { display: flex; flex-direction: column; gap: clamp(44px, 7vw, 80px); }

.folio-project h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.folio-project h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  background: var(--leather);
}

.folio-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

.folio-row figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.folio-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.folio-row figure:hover img { transform: scale(1.05); }

/* --- Технология --- */
.tech-steps { list-style: none; display: flex; flex-direction: column; gap: clamp(36px, 6vw, 64px); }

.tech-step {
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.tech-step:nth-child(even) { grid-template-columns: 90px 1fr 220px; }
.tech-step:nth-child(even) figure { order: 3; }

.tech-num {
  font-family: var(--serif);
  font-size: 52px;
  color: rgba(201, 154, 91, .45);
  line-height: 1;
}

.tech-step figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.tech-step img { width: 100%; height: 100%; object-fit: cover; }

.tech-step h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }

.tech-step p { color: var(--cream-dim); font-size: 15px; max-width: 560px; }

/* --- Контакты: форма --- */
.contacts-grid--page { margin-bottom: clamp(48px, 7vw, 80px); }

.contact-form-wrap { text-align: center; }

.contact-form-wrap .contacts-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 28px; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: .06em; color: var(--cream-dim); }

.contact-form input, .contact-form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  resize: vertical;
}

.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--leather); }

.contact-form .hero-cta { align-self: center; margin-top: 6px; background: none; cursor: pointer; }

.form-note { text-align: center; font-size: 12px; color: rgba(240, 230, 214, .4); }

.reviews-grid--page { max-width: 1000px; margin: 0 auto; }

@media (max-width: 880px) {
  .about-grid, .form-row { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .tech-step, .tech-step:nth-child(even) { grid-template-columns: 1fr; }
  .tech-step:nth-child(even) figure { order: 0; }
  .tech-num { font-size: 36px; }
}

/* ============ Логотип OVER SKILL (анимированный SVG) ============ */
.logo-svg {
  width: min(100%, 500px);
  height: auto;
  display: block;
  margin-bottom: 26px;
  overflow: visible;
}

/* ============ Шапка / Мастер ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(80px, 10vh, 120px) clamp(24px, 5vw, 72px) clamp(24px, 5vw, 72px);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 154, 91, .10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(163, 98, 44, .08), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-photo-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  transform: rotate(-1.5deg);
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(240, 230, 214, .18);
  border-radius: 4px;
}

.hero-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.92) contrast(1.04); }

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: 12px;
  color: var(--leather);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  margin-bottom: 28px;
}

.hero-title em { font-style: italic; color: var(--leather); font-weight: 400; }

.hero-list { list-style: none; margin-bottom: 40px; max-width: 480px; }

.hero-list li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--cream-dim);
  font-size: 15px;
  letter-spacing: .02em;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 10px;
  height: 1px;
  background: var(--leather);
}

.hero-slogan {
  color: var(--cream-dim);
  font-size: 16px;
  font-style: italic;
  max-width: 460px;
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-ghost {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  transition: border-color .3s, color .3s;
}

.hero-ghost:hover { border-color: var(--cream); color: var(--cream); }

.hero-cta {
  display: inline-block;
  padding: 15px 42px;
  border: 1px solid var(--leather);
  color: var(--leather);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  transition: background .3s, color .3s;
}

.hero-cta:hover { background: var(--leather); color: #1a120a; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  animation: hint 2.6s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Блок работы (sticky + 3D) ============ */
.work { height: 320vh; position: relative; }

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 480px);
  align-items: center;
  padding: clamp(20px, 4vw, 64px);
  gap: clamp(16px, 3vw, 48px);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.work-sticky::before { /* виньетка-студия за моделью */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 36% 52%, rgba(201, 154, 91, .12), transparent 65%);
  pointer-events: none;
}

.work:nth-of-type(even) .work-sticky { grid-template-columns: minmax(300px, 480px) 1fr; }
.work:nth-of-type(even) .work-canvas { order: 2; }
.work:nth-of-type(even) .work-info { order: 1; }
.work:nth-of-type(even) .work-sticky::before { background: radial-gradient(ellipse 55% 45% at 64% 52%, rgba(201, 154, 91, .12), transparent 65%); }

.work-canvas {
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 320px;
  display: block;
  cursor: grab;
}

.work-canvas:active { cursor: grabbing; }

.work-fallback {
  width: 100%;
  height: calc(100vh - 190px);
  min-height: 320px;
  object-fit: contain;
  display: block;
}

.work-info { position: relative; z-index: 2; padding-bottom: 150px; }

.work-index {
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 14px;
}

.work-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  margin-bottom: 20px;
}

.work-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent, var(--leather));
}

.work-desc { color: var(--cream-dim); font-size: 15px; max-width: 440px; }

/* мини-галерея реальных фото */
.work-gallery {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 14px clamp(20px, 4vw, 64px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, transparent, rgba(15, 11, 7, .88) 45%);
  scrollbar-width: none;
}

.work-gallery::-webkit-scrollbar { display: none; }

.work-gallery figure {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  scroll-snap-align: start;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: .75;
  transition: opacity .25s, transform .25s;
}

.work-gallery figure:hover { opacity: 1; transform: translateY(-3px); }

.work-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Общие заголовки секций ============ */
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }

.section-kicker {
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--leather);
  margin-bottom: 12px;
}

.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.5vw, 56px); }

/* ============ Услуги ============ */
.services { padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px); background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.service-col-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--leather);
}

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: border-color .3s, transform .3s;
}

.service-card:hover { border-color: rgba(201, 154, 91, .5); transform: translateY(-3px); }

.service-card h4 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 10px; }

.service-card p { color: var(--cream-dim); font-size: 14px; }

.service-price { margin-top: 12px; font-family: var(--serif); font-size: 26px; color: var(--leather); }

/* ============ Портфолио ============ */
.portfolio { padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px); background: var(--bg-soft); }

.folio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.folio-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  margin: 0;
}

.folio-item--wide { grid-column: span 2; }

.folio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }

.folio-item:hover img { transform: scale(1.05); }

.folio-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(15, 11, 7, .9) 60%);
  font-size: 14px;
}

.folio-item figcaption i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--leather);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}

.folio-item:hover figcaption i { opacity: 1; transform: none; }

/* ============ Отзывы ============ */
.reviews { padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.review {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 26px 22px;
  font-size: 14px;
  color: var(--cream-dim);
  position: relative;
  margin: 0;
}

.review::before {
  content: "«";
  position: absolute;
  top: 2px;
  right: 18px;
  font-family: var(--serif);
  font-size: 64px;
  color: rgba(201, 154, 91, .25);
  line-height: 1;
}

.review--wide { grid-column: span 2; }

.review footer {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--leather);
}

/* ============ Контакты ============ */
.contacts {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201, 154, 91, .08), transparent 60%),
    var(--bg-soft);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 72px) 40px;
  text-align: center;
}

.contacts-title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 64px); margin-bottom: 22px; }

.contacts-text { max-width: 560px; margin: 0 auto 48px; color: var(--cream-dim); font-size: 15px; }

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .3s, transform .3s;
}

.contact-card:hover { border-color: var(--leather); transform: translateY(-4px); }

.contact-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }

.contact-value { font-size: 18px; color: var(--leather); }

.contacts-note { font-size: 12px; color: rgba(240, 230, 214, .35); margin-bottom: 60px; }

.contacts-note code { font-family: ui-monospace, monospace; color: rgba(240, 230, 214, .5); }

.footer-line { color: rgba(240, 230, 214, .35); font-size: 12px; letter-spacing: .08em; }

/* ============ Адаптив ============ */
@media (max-width: 880px) {
  .site-nav { right: 8px; padding: 16px 12px; gap: 12px; }
  .site-logo-svg { height: 66px; }
  .nav-menu { gap: 10px; }
  .nav-menu a { font-size: 10px; letter-spacing: .06em; }
  .order-fab { right: 12px; padding: 13px 24px; }

  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: 11px; letter-spacing: .06em; }
  .nav-menu a:not(.nav-cta):nth-child(2) { display: none; } /* «Услуги» прячем, чтобы не толпились */

  .services-grid, .folio-grid, .reviews-grid { grid-template-columns: 1fr; }
  .folio-item--wide, .review--wide { grid-column: auto; }

  .logo-svg text { font-size: 104px; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap { max-width: 340px; margin: 0 auto; transform: none; }
  .hero-list li { text-align: left; }
  .hero-list { margin-inline: auto; }
  .hero-cta { margin-top: 8px; }

  .work { height: 300vh; }

  .work-sticky,
  .work:nth-of-type(even) .work-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-content: end;
  }

  .work-canvas, .work:nth-of-type(even) .work-canvas {
    order: 0;
    position: absolute;
    inset: 0 0 120px 0;
    width: 100%;
    height: auto;
  }

  .work-info, .work:nth-of-type(even) .work-info {
    order: 1;
    position: relative;
    z-index: 2;
    padding: 0 clamp(4px, 2vw, 20px) 8px;
    background: linear-gradient(180deg, transparent, rgba(15, 11, 7, .8) 35%);
  }

  .work-title { font-size: 40px; }
  .work-desc { font-size: 14px; }
}

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