/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FAF7F0;
  --bg-dark:    #18110A;
  --bg-dark2:   #201509;
  --gold:       #C4973A;
  --gold-light: #EAD8A8;
  --gold-pale:  #F5EDD8;
  --text:       #231508;
  --text-mid:   #5A3F28;
  --text-light: #8A7060;
  --border:     #DCCFA8;
  --ff-head:    'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Lora', Georgia, serif;
  --max-w:      1160px;
  --radius:     2px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(196,151,58,.18);
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.45); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.logo-main {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .06em;
}
.logo-sub {
  font-size: .67rem;
  color: rgba(196,151,58,.55);
  letter-spacing: .14em;
  text-transform: uppercase;
}

nav { margin-left: auto; display: flex; gap: 2.2rem; }
nav a {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(234,216,168,.75);
  letter-spacing: .05em;
  transition: color .2s;
}
nav a:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 70px);
  background: var(--bg-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-content {
  padding: 5rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tagline {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  letter-spacing: .04em;
  margin-bottom: 1.6rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(234,216,168,.72);
  line-height: 1.85;
  margin-bottom: 2.6rem;
  max-width: 440px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-radius: var(--radius);
  transition: all .25s;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border: 1.5px solid var(--gold);
}
.btn-primary:hover { background: #d4a848; border-color: #d4a848; }
.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid rgba(196,151,58,.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   HERO IMAGE PANEL
   ============================================================ */
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-img-frame { position: absolute; inset: 0; }
.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .88;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 28%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
.section { padding: 6rem 0; }
.section-dark { background: var(--bg-dark2); color: var(--gold-pale); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: block;
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--ff-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-dark .section-title { color: var(--gold-light); }

.divider {
  width: 60px;
  height: 1.5px;
  background: var(--gold);
  margin: 0 auto;
  opacity: .55;
}
.section-desc {
  margin-top: 1.5rem;
  font-size: 1.02rem;
  color: var(--text-mid);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================================
   BIOGRAPHY
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
}

.bio-text p {
  margin-bottom: 1.25rem;
  font-size: 1.015rem;
  color: var(--text);
  line-height: 1.85;
}
.bio-text .lead {
  font-family: var(--ff-head);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
}

.bio-aside { display: flex; flex-direction: column; gap: 1.8rem; }

.skills-block h3 {
  font-family: var(--ff-head);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
  margin-bottom: .85rem;
  letter-spacing: .03em;
}
.skills-list li {
  padding: .25rem 0 .25rem 1.2rem;
  font-size: .95rem;
  color: var(--text-mid);
  position: relative;
}
.skills-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.45;
}

.bio-icon-frame {
  border: 1px solid var(--border);
  padding: .5rem;
  background: #fff;
}
.bio-icon-frame img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.caption {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  padding: .6rem .4rem .2rem;
  font-style: italic;
  line-height: 1.45;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  background: #0d0905;
  outline: none;
}
.gallery-item:focus-visible { box-shadow: 0 0 0 3px var(--gold); }
.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, opacity .4s;
  opacity: .9;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.05); opacity: .5; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(16,9,3,.9) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-family: var(--ff-head);
  font-size: .95rem;
  color: var(--gold-light);
  letter-spacing: .03em;
  line-height: 1.45;
}
.gallery-zoom {
  flex-shrink: 0;
  font-size: 1.3rem;
  color: rgba(234,216,168,.6);
  margin-left: .8rem;
  align-self: flex-end;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 3, .94);
  cursor: zoom-out;
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 80px);
  padding: 0 20px;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,.7);
  border: 1px solid rgba(196,151,58,.15);
  transition: opacity .25s;
}
.lightbox-caption {
  margin-top: .9rem;
  font-family: var(--ff-head);
  font-size: 1rem;
  color: rgba(234,216,168,.7);
  text-align: center;
  letter-spacing: .04em;
  line-height: 1.4;
  max-width: 600px;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  background: rgba(196,151,58,.12);
  border: 1px solid rgba(196,151,58,.3);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(196,151,58,.28); color: #fff; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(196,151,58,.1);
  border: 1px solid rgba(196,151,58,.25);
  color: var(--gold-light);
  width: 50px;
  height: 70px;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(196,151,58,.25); color: #fff; }
.lightbox-prev { left: .8rem; }
.lightbox-next { right: .8rem; }

@media (max-width: 640px) {
  .lightbox-stage { max-width: 100vw; padding: 0 8px; }
  .lightbox-nav { width: 40px; height: 56px; font-size: 1.8rem; }
  .lightbox-prev { left: .3rem; }
  .lightbox-next { right: .3rem; }
}

/* ============================================================
   ORDER FORM
   ============================================================ */
.order-form { max-width: 700px; margin: 0 auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: .45rem;
  font-family: var(--ff-head);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  font-family: var(--ff-body);
  font-size: .97rem;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,151,58,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: .5rem;
  border: none;
  position: relative;
}
.btn-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.btn-submit .spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(24,17,10,.3);
  border-top-color: rgba(24,17,10,.8);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
}

/* Form feedback states */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(196,151,58,.35);
  border-radius: var(--radius);
  background: rgba(196,151,58,.05);
  max-width: 700px;
  margin: 0 auto;
}
.form-success__icon {
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.form-success h3 {
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.form-success p { font-size: .97rem; color: var(--text-mid); max-width: 420px; }

.form-error {
  margin-top: .75rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(180,60,60,.4);
  border-radius: var(--radius);
  background: rgba(180,60,60,.05);
  font-size: .9rem;
  color: #8b2222;
  line-height: 1.55;
}
.form-error a { color: #8b2222; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-dark); color: rgba(234,216,168,.65); padding-top: 3.5rem; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196,151,58,.14);
}
.footer-brand { display: flex; flex-direction: column; gap: .3rem; }
.footer-brand .logo-main { font-size: 1.55rem; }

.footer-contacts h4,
.footer-nav h4 {
  font-family: var(--ff-head);
  font-size: .82rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-contacts a,
.footer-nav a {
  display: block;
  font-size: .95rem;
  color: rgba(234,216,168,.6);
  margin-bottom: .55rem;
  transition: color .2s;
}
.footer-contacts a:hover,
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  padding: 1.2rem;
  font-size: .78rem;
  color: rgba(196,151,58,.28);
  letter-spacing: .05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 4rem 2.5rem 3rem; }
  .hero-image { min-height: 55vw; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-aside { max-width: 480px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item--wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 1.25rem; }
  nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1.2rem 1.5rem 1.8rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(196,151,58,.18);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero-content { padding: 3rem 1.5rem 2.5rem; }
  .hero-title { font-size: 2.7rem; }
  .hero-image { min-height: 70vw; }
  .hero-actions { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: .4rem; }
  .gallery-item--wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}
