/* ==========================================================================
   ЛАМ — сайт художника. Основные стили.
   Палитра и шрифты подобраны по наброскам от руки: лён/мешковина, тёмно-
   оливковая рамка, тёплый коричневый, кремовая бумага, золотой акцент.
   ========================================================================== */

/* Шрифты лежат на этом же сервере (папка fonts/), с внешних серверов не подгружаются. */
@font-face{ font-family:'Marck Script'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/marck-script-normal-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Marck Script'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/marck-script-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Marck Script'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/marck-script-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/pt-sans-normal-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/pt-sans-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/pt-sans-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/pt-sans-normal-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/pt-sans-normal-700-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'PT Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/pt-sans-normal-700-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Pinyon Script'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/pinyon-script-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Pinyon Script'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/pinyon-script-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-italic-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-italic-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-italic-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-italic-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-italic-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Playfair Display'; font-style:italic; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-italic-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-normal-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/playfair-display-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/playfair-display-normal-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/playfair-display-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/playfair-display-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-normal-cyrillic.woff2') format('woff2'); unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-normal-latin-ext.woff2') format('woff2'); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face{ font-family:'Playfair Display'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/playfair-display-normal-latin.woff2') format('woff2'); unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root{
  --olive-dark: #2f2c1c;
  --linen: #b9b09c;
  --linen-light: #cdc5b2;
  --paper: #eee8d9;
  --paper-shadow: #d9d1bd;
  --ink: #3a2c1e;
  --ink-soft: #5a4a38;
  --brown: #3b2a1d;
  --brown-deep: #2a1d13;
  --gold: #c9a24a;
  --gold-light: #e4c777;
  --cream: #f4efe3;
  --overlay: rgba(20, 15, 8, .48);

  --font-script: 'Marck Script', cursive;
  --font-wordmark: 'Pinyon Script', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'PT Sans', sans-serif;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--olive-dark);
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{ font-family: var(--font-serif); font-weight: 500; margin: 0 0 .5em; color: var(--brown-deep); }
p{ line-height: 1.7; margin: 0 0 1em; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- рамка страницы (как в набросках — тёмная оливковая окантовка) ---------- */
.site{
  background: var(--linen);
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0, rgba(0,0,0,.035) 1px, transparent 1px, transparent 5px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 5px);
  margin: 10px;
  min-height: calc(100vh - 20px);
  position: relative;
}
@media (max-width: 640px){
  .site{ margin: 5px; }
}

/* ---------- Шапка / навигация ---------- */
.header{
  position: fixed;
  top: 10px; left: 10px; right: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  transition: background .3s ease, padding .3s ease;
}
@media (max-width: 640px){ .header{ top:5px; left:5px; right:5px; } }
.header.is-solid{
  background: rgba(47, 44, 28, .92);
  padding: 10px 32px;
  backdrop-filter: blur(4px);
}
.header .logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-wordmark);
  font-size: 2.6rem;
  color: var(--gold-light);
  letter-spacing: -0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header .logo img{
  width: 44px; height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}
.header .logo .logo-mark{
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

.nav-desktop{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-desktop a{
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a.active,
.nav-desktop a:hover{ color: var(--gold-light); }
.nav-desktop a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height:1px; background: var(--gold-light);
}
.nav-social{
  display:flex; gap: 14px; margin-left: 10px;
}
.nav-social a{
  width: 30px; height: 30px;
  border: 1px solid rgba(244,239,227,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
}
.nav-social a:hover{ border-color: var(--gold-light); color: var(--gold-light); }
.nav-social svg{ width: 15px; height: 15px; fill: currentColor; }

.burger{
  display:none;
  width: 40px; height: 40px;
  border: none; background: transparent;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
  z-index: 200;
}
.burger span{
  display:block; height: 2px; width: 100%;
  background: var(--cream);
  transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity: 0; }
.burger.is-open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

.nav-mobile{
  position: fixed; inset: 0;
  background: var(--linen);
  z-index: 150;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 26px;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.nav-mobile.is-open{ transform: translateY(0); }
.nav-mobile a{
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--brown-deep);
  background: var(--paper);
  padding: 8px 26px;
  border: 1px solid var(--brown);
  transform: rotate(-1deg);
}
.nav-mobile a:nth-child(even){ transform: rotate(1deg); }
.nav-mobile .nav-social{ margin-top: 10px; }
.nav-mobile .nav-social a{
  font-family: var(--font-sans);
  border-color: var(--brown);
  color: var(--brown-deep);
  transform: none;
  padding: 0;
}

@media (max-width: 880px){
  .nav-desktop{ display:none; }
  .burger{ display:flex; }
}

/* ---------- Кнопки ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--cream);
  background: var(--brown);
  border: 1px solid rgba(244,239,227,.4);
  border-radius: 40px;
  padding: 10px 34px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}
.btn:hover{ background: var(--brown-deep); transform: translateY(-1px); }
.btn-light{
  background: var(--paper);
  color: var(--brown-deep);
  border-color: var(--brown);
}
.btn-light:hover{ background: #fff; }
.btn-outline{
  background: transparent;
  color: var(--brown-deep);
  border: 1px solid var(--brown-deep);
}
.btn-outline:hover{ background: var(--brown-deep); color: var(--cream); }
.btn-block{ width: 100%; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--cream);
  overflow: hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: var(--overlay);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.hero-content .logo-big{
  font-family: var(--font-wordmark);
  font-size: clamp(6rem, 17vw, 11rem);
  color: var(--gold-light);
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.hero-content .hero-motto{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.35;
  color: var(--cream);
  max-width: 780px;
  text-wrap: balance;
  margin: 4px auto 16px;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.hero-content .hero-desc{
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  color: rgba(244,239,227,.88);
  max-width: 640px;
  text-wrap: balance;
  margin: 0 auto 30px;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.hero-content .hero-desc::after{
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  background: var(--gold-light);
  opacity: .7;
  margin: 26px auto 0;
}
.hero-content .tagline{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin: 18px 0 34px;
  color: var(--cream);
}
.hero-scroll{
  position:absolute; bottom: 26px; left:50%; transform: translateX(-50%);
  z-index:2; color: var(--cream); font-size: .8rem; letter-spacing: .2em;
  opacity: .8;
}

/* ---------- Секции ---------- */
.section{ padding: 100px 0; }
.section-title{
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--brown-deep);
  text-align: center;
  margin-bottom: 50px;
}
.section-lead{
  text-align: center;
  max-width: 640px;
  margin: -30px auto 50px;
  color: var(--ink-soft);
}
.section-alt{ background: rgba(0,0,0,.05); }

/* ---------- О художнике (главная) ---------- */
.about-teaser{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
}
.card-paper{
  background: var(--paper);
  padding: 40px 38px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  transform: rotate(-1.2deg);
  position: relative;
}
.card-paper::before{
  content:"";
  position:absolute; inset: 8px;
  border: 1px solid rgba(58,42,30,.25);
  pointer-events: none;
}
.card-paper p{ color: var(--ink-soft); }
.card-photo{
  background: var(--paper);
  padding: 14px 14px 22px;
  box-shadow: 0 14px 30px rgba(0,0,0,.3);
  transform: rotate(1.5deg);
  max-width: 320px;
  margin: 0 auto;
}
.card-photo img{ width: 100%; height: 380px; object-fit: cover; filter: grayscale(15%); }
.card-photo figcaption{
  text-align: center;
  font-family: var(--font-script);
  font-size: 1.2rem;
  margin-top: 10px;
  color: var(--ink);
}

@media (max-width: 860px){
  .about-teaser{ grid-template-columns: 1fr; gap: 44px; }
  .card-paper, .card-photo{ transform: none; }
}

/* ---------- Сетка работ (превью на главной / каталог) ---------- */
.works-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
@media (max-width: 900px){ .works-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .works-grid{ grid-template-columns: 1fr; } }

.work-card{
  background: var(--paper);
  padding: 16px 16px 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .25s ease;
}
.work-card:hover{ transform: translateY(-6px); }
.work-figure{
  position: relative;
  overflow: hidden;
}
.work-figure img{ width: 100%; height: 320px; object-fit: cover; }
.work-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(244,239,227,.85);
  color: var(--brown-deep);
  border: none;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.work-nav.prev{ left: 10px; }
.work-nav.next{ right: 10px; }
.work-nav:hover{ background: var(--gold-light); }

.work-figure img, .product-image img{ cursor: zoom-in; }

/* Просмотр картины с приближением */
.lightbox{
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(20,16,10,.94);
}
.lightbox.is-open{ display: flex; }
.lightbox-stage{
  flex: 1 1 auto; min-height: 0; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 56px 20px 8px;
  touch-action: none;
}
.lightbox-img{
  max-width: 100%; max-height: 100%;
  object-fit: contain; background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .15s ease-out;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.lightbox.is-dragging .lightbox-img{ transition: none; cursor: grabbing !important; }
.lightbox-close{
  position: absolute; top: 10px; right: 14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(244,239,227,.92); color: var(--brown-deep);
  border: none; font-size: 1.9rem; line-height: 1;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer; z-index: 2;
}
.lightbox-close:hover, .lightbox-close:focus-visible{ background: var(--gold-light); }
.lightbox-bar{
  flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 6px 0 2px;
}
.lightbox-tool{
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(244,239,227,.92); color: var(--brown-deep);
  border: none; font-size: 1.5rem; line-height: 1;
  display:flex; align-items:center; justify-content:center;
  cursor: pointer;
}
.lightbox-tool:hover, .lightbox-tool:focus-visible{ background: var(--gold-light); }
.lightbox-level{
  min-width: 48px; text-align: center;
  color: rgba(244,239,227,.85); font-size: .9rem;
}
.lightbox-hint{
  flex: 0 0 auto; margin: 0; padding: 8px 16px 14px;
  color: rgba(244,239,227,.7); font-size: .85rem; text-align: center;
}

.work-body{ padding-top: 16px; text-align: center; }
.work-title{ font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 4px; }
/* Название работы — ссылка на страницу оригинала: при наведении
   золотая линия «вырастает» от центра, цвет теплеет */
.work-title a{
  display: inline-block;
  padding: 2px 4px 5px;
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 2px;
  transition: background-size .35s ease, color .25s ease, transform .25s ease, letter-spacing .25s ease;
}
.work-title a:hover,
.work-title a:focus-visible{
  color: #7a5a14;
  background-size: 100% 2px;
  transform: translateY(-1px);
  letter-spacing: .01em;
  outline: none;
}
.work-title a:focus-visible{ box-shadow: 0 0 0 2px var(--gold); border-radius: 2px; }
/* На сенсорных экранах нет наведения — оставляем короткую подсказку-линию */
@media (hover: none){
  .work-title a{ background-size: 36% 2px; }
}
.work-meta{ color: var(--ink-soft); font-size: .88rem; margin-bottom: 4px; }
.work-price{ color: var(--brown-deep); font-weight: 700; margin-bottom: 14px; }
.work-actions{ display:flex; gap: 10px; justify-content:center; flex-wrap: wrap; }
.work-actions .btn{ font-size: 1.05rem; padding: 8px 22px; }

/* ---------- Интерьер / галерея ---------- */
/* Фото показываются целиком, без обрезки: в каждом ряду у всех одинаковая
   высота, ширина делится пропорционально ширине снимка (flex-grow задан
   в разметке), на телефоне фото идут по одному в колонку. */
.interior-gallery{ display: flex; flex-direction: column; gap: 4px; }
.interior-row{ display: flex; gap: 4px; align-items: flex-start; }
.interior-row img{ flex: 1 1 0; min-width: 0; height: auto; display: block; }
@media (max-width: 700px){
  .interior-row{ flex-direction: column; }
  .interior-row img{ flex: none; width: 100%; }
}

/* ---------- Footer ---------- */
.footer{
  background: var(--brown-deep);
  color: var(--cream);
  padding: 60px 0 26px;
  text-align: center;
}
.footer .logo-big{
  font-family: var(--font-wordmark);
  font-size: 4rem;
  color: var(--gold-light);
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 14px rgba(0,0,0,.4);
}
.footer-nav{
  display:flex; flex-wrap: wrap; justify-content:center; gap: 26px;
  margin-bottom: 24px;
  font-size: .95rem;
  letter-spacing: .03em;
}
.footer-nav a:hover{ color: var(--gold-light); }
.footer .nav-social{ justify-content: center; margin: 0 0 26px; }
.footer-contacts{ color: rgba(244,239,227,.75); font-size: .9rem; margin-bottom: 20px; }
.footer-contacts a:hover{ color: var(--gold-light); }
.legal-note{ color: rgba(244,239,227,.6); font-size: .78rem; line-height: 1.5; max-width: 640px; margin: 0 auto 14px; }
.card-note{ font-size: .78rem; line-height: 1.45; color: var(--ink-soft); margin: 12px 0 0; }
.footer small{ color: rgba(244,239,227,.45); font-size: .78rem; }

/* ---------- Внутренние страницы (общий заголовок) ---------- */
.page-hero{
  padding: 170px 0 60px;
  text-align: center;
  background: var(--linen-light);
}
.page-hero h1{
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--brown-deep);
}
.page-hero p{ color: var(--ink-soft); max-width: 560px; margin: 10px auto 0; }

/* ---------- Об авторе ---------- */
.about-page{
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px){ .about-page{ grid-template-columns: 1fr; } }
.about-page .card-photo{ position: sticky; top: 110px; }
@media (max-width: 860px){ .about-page .card-photo{ position: static; } }
.about-block{ margin-bottom: 38px; }
.about-block h3{ font-family: var(--font-script); font-size: 1.8rem; color: var(--brown); }
.about-block p strong{ font-weight: 700; color: var(--brown-deep); }
.about-themes{
  font-weight: 600;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--brown-deep);
  margin: 0 0 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201,162,74,.6);
}
.quote-block{
  font-weight: 600;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown-deep);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  margin: 30px 0;
}

/* ---------- Товар / репродукция и оригинал ---------- */
.product{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
@media (max-width: 860px){ .product{ grid-template-columns: 1fr; gap: 34px; } }
.product-image{
  position: relative;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.product-image img{ width:100%; height: 480px; object-fit: contain; background: #fff; }
.product-info .eyebrow{
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  color: var(--ink-soft); margin-bottom: 8px;
}
.product-info h1{ font-family: var(--font-serif); font-size: 2.2rem; margin-bottom: 6px; }
.product-meta{ color: var(--ink-soft); margin-bottom: 6px; }
.product-material{ color: var(--ink); margin: 0 0 6px; }
.product-material strong{ font-weight: 700; }
.size-title{
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 22px 0 12px;
}
.size-options{ display:flex; gap: 12px; flex-wrap: wrap; }
.size-option{
  border: 1px solid var(--brown);
  padding: 10px 22px;
  cursor: pointer;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
.size-option:hover{ background: #fff; }
.size-option.is-active{ background: var(--brown); color: var(--cream); }

.feature-list{ display:grid; gap: 10px; margin: 26px 0; }
.feature-list li{ display:flex; gap: 10px; align-items:center; color: var(--ink-soft); }
.feature-list li::before{ content:"✓"; color: var(--gold); font-weight:700; }

.price-row{
  display:flex; align-items:baseline; gap: 10px;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brown-deep);
  margin: 20px 0 26px;
}
.price-row span{ font-size: 1rem; font-family: var(--font-sans); color: var(--ink-soft); }

.unavailable-note{
  color: #8a3b2b; font-size: .9rem; margin-top: 10px;
}

/* ---------- Доставка ---------- */
.steps{ display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
@media (max-width: 800px){ .steps{ grid-template-columns: 1fr; } }
.step-card{
  background: var(--paper);
  padding: 30px 26px;
  text-align:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}
.step-card .num{
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold);
  display:block;
  margin-bottom: 8px;
}
.faq-item{
  border-bottom: 1px solid rgba(58,42,30,.2);
  padding: 22px 0;
}
.faq-item h3{ font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 8px; }
.faq-item p{ color: var(--ink-soft); margin: 0; }
.faq-item a{ text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Контакты ---------- */
.contact-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 26px;
  max-width: 920px; margin: 0 auto;
}
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-card{
  background: var(--paper);
  padding: 40px 26px;
  text-align:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.15);
}
.contact-card .icon{
  width: 54px; height: 54px; margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--brown);
  display:flex; align-items:center; justify-content:center;
}
.contact-card .icon svg{ width: 26px; height: 26px; fill: var(--brown-deep); }
.contact-card h3{ font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 6px; }
.contact-card a{ color: var(--ink-soft); word-break: break-word; }
.contact-card a:hover{ color: var(--brown-deep); text-decoration: underline; }

/* ---------- утилиты ---------- */
.text-center{ text-align:center; }
.mt-40{ margin-top: 40px; }
