@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #f9f5ef;
  --surface: #fffefb;
  --surface-dark: #f2ece3;
  --text: #1e1710;
  --muted: #7a6e64;
  --line: #e0d4c4;
  --accent: #8b6840;
  --accent-dark: #a07d52;
  --accent-light: #c4a882;
  --gold: #c9a96e;
  --container: 1200px;
  --radius: 14px;
  --shadow: 0 8px 40px rgba(30, 23, 16, 0.07);
  --shadow-lg: 0 24px 64px rgba(30, 23, 16, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section { padding: 28px 0; }

/* ================================
   HEADER
   ================================ */

.site-header {
  background: rgba(249, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}

/* Левый орнамент хедера — только мобиль */
.site-header::before { display: none; }

/* Правый орнамент хедера — только мобиль */
.site-header::after { display: none; }

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold);
  transition: 0.25s ease;
  border-radius: 2px;
}

.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================================
   HERO
   ================================ */

.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* SVG декоративный фон — только линии, без кругов */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cline x1='70' y1='450' x2='830' y2='450' stroke='%23c9a96e' stroke-width='0.5' opacity='0.77'/%3E%3Cline x1='450' y1='70' x2='450' y2='830' stroke='%23c9a96e' stroke-width='0.5' opacity='0.77'/%3E%3Cline x1='180' y1='180' x2='720' y2='720' stroke='%23c9a96e' stroke-width='0.4' opacity='0.59'/%3E%3Cline x1='720' y1='180' x2='180' y2='720' stroke='%23c9a96e' stroke-width='0.4' opacity='0.59'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -120px center;
  background-size: 820px 820px;
  pointer-events: none;
}

/* Тонкая сетка на весь фон — убрана */
.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}

.hero-content { max-width: 560px; }

.eyebrow,
.section-label {
  margin: 0 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before,
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-content h1 {
  margin: 0 0 24px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text {
  max-width: 440px;
  margin: 0 0 36px;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 28px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

.hero-image {
  position: relative;
}

.hero-image::before {
  display: block;
  content: '';
  position: absolute;
  top: -36px;
  left: 40px;
  right: 30px;
  bottom: 16px;
  border: 1px solid var(--gold);
  border-radius: 16px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  height: 600px;
  width: 88%;
  margin-left: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 70%, transparent 100%);
}

/* ================================
   INTRO
   ================================ */

.intro {
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Ccircle cx='300' cy='300' r='280' fill='none' stroke='%23c9a96e' stroke-width='0.5' opacity='0.42'/%3E%3Ccircle cx='300' cy='300' r='200' fill='none' stroke='%23c9a96e' stroke-width='0.5' opacity='0.11'/%3E%3Ccircle cx='300' cy='300' r='120' fill='none' stroke='%23c9a96e' stroke-width='0.5' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.6;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
}

.intro-text h2,
.section-heading h2,
.cta-box h2 {
  margin: 0 0 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  font-weight: 400;
}

.intro-text p {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  max-width: 640px;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.intro-card h3 {
  margin: 0 0 20px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.intro-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 300;
}

.intro-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  break-inside: avoid;
}

.intro-card li:last-child { border-bottom: none; }
.intro-card li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ================================
   FEATURED
   ================================ */

.section-heading {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.narrow { max-width: 760px; }

.text-link {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent-light);
  transition: gap 0.2s;
}

.text-link:hover { gap: 14px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-card img {
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover img { transform: scale(1.04); }

.work-card-content { padding: 24px; }

.work-card-content h3 {
  margin: 0 0 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.work-card-content p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* ================================
   VALUES
   ================================ */

.values {
  position: relative;
  overflow: hidden;
}

/* Декоративный угловой орнамент */
.values::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Crect x='40' y='40' width='320' height='320' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.22'/%3E%3Crect x='80' y='80' width='240' height='240' fill='none' stroke='%23c9a96e' stroke-width='0.4' opacity='0.42'/%3E%3Crect x='120' y='120' width='160' height='160' fill='none' stroke='%23c9a96e' stroke-width='0.3' opacity='0.11'/%3E%3Cline x1='40' y1='40' x2='360' y2='360' stroke='%23c9a96e' stroke-width='0.3' opacity='0.11'/%3E%3Cline x1='360' y1='40' x2='40' y2='360' stroke='%23c9a96e' stroke-width='0.3' opacity='0.11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.values-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.value-card {
  background: var(--surface);
  padding: 36px 32px;
  position: relative;
}

.value-card::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.value-card h3 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================================
   CTA
   ================================ */

.cta-box {
  background: var(--text);
  border-radius: 20px;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='220' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.42'/%3E%3Ccircle cx='250' cy='250' r='160' fill='none' stroke='%23c9a96e' stroke-width='0.4' opacity='0.11'/%3E%3Ccircle cx='250' cy='250' r='100' fill='none' stroke='%23c9a96e' stroke-width='0.3' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right -60px center;
  background-size: 460px 460px;
  pointer-events: none;
}

.cta-box .section-label { color: var(--gold); }
.cta-box .section-label::before { background: var(--gold); }

.cta-box h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p:last-of-type {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 520px;
}

.btn-cta {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-cta:hover {
  background: #fff;
  border-color: #fff;
  color: var(--text);
}

/* ================================
   FOOTER
   ================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

/* Центральный орнамент футера */
.site-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='120' viewBox='0 0 900 120'%3E%3Cline x1='0' y1='60' x2='380' y2='60' stroke='%23c9a96e' stroke-width='0.6' opacity='0.56'/%3E%3Cline x1='520' y1='60' x2='900' y2='60' stroke='%23c9a96e' stroke-width='0.6' opacity='0.56'/%3E%3Cpolygon points='450,36 472,60 450,84 428,60' fill='none' stroke='%23c9a96e' stroke-width='1' opacity='0.73'/%3E%3Cpolygon points='450,44 464,60 450,76 436,60' fill='none' stroke='%23c9a96e' stroke-width='0.5' opacity='0.56'/%3E%3Ccircle cx='450' cy='60' r='3' fill='%23c9a96e' opacity='0.56'/%3E%3Ccircle cx='380' cy='60' r='3' fill='none' stroke='%23c9a96e' stroke-width='0.8' opacity='0.67'/%3E%3Ccircle cx='520' cy='60' r='3' fill='none' stroke='%23c9a96e' stroke-width='0.8' opacity='0.67'/%3E%3Ccircle cx='310' cy='60' r='2' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.5'/%3E%3Ccircle cx='590' cy='60' r='2' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.5'/%3E%3Cline x1='380' y1='48' x2='380' y2='72' stroke='%23c9a96e' stroke-width='0.5' opacity='0.56'/%3E%3Cline x1='520' y1='48' x2='520' y2='72' stroke='%23c9a96e' stroke-width='0.5' opacity='0.56'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom 20px;
  pointer-events: none;
}

/* Угловой орнамент футера */
.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130' viewBox='0 0 260 130'%3E%3Cpath d='M0 0 Q80 30 60 80 Q40 120 0 130' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.22'/%3E%3Cpath d='M0 0 Q50 20 40 60 Q30 90 0 100' fill='none' stroke='%23c9a96e' stroke-width='0.4' opacity='0.36'/%3E%3Ccircle cx='60' cy='80' r='3' fill='none' stroke='%23c9a96e' stroke-width='0.6' opacity='0.56'/%3E%3Ccircle cx='40' cy='60' r='2' fill='none' stroke='%23c9a96e' stroke-width='0.5' opacity='0.22'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer-text,
.footer-contact a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 300;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.footer-contact a:hover { color: var(--text); }

/* ================================
   GALLERY HERO
   ================================ */

.gallery-hero {
  padding: 44px 0 28px;
  position: relative;
  overflow: hidden;
}

.gallery-hero::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-top: 16px;
}

.gallery-hero .section-label { margin-bottom: 16px; }

.gallery-hero-title {
  margin: 0 0 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.gallery-hero-desc {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 420px;
}

/* ================================
   GALLERY GRID
   Ряд 1: Furniture(2/3) + Mantle(1/3)
   Ряд 2: Fine Art(1/3) + Religious(1/3) + Vineyard(1/3)
   ================================ */

/* Ряд 1 */
.gallery-grid {
  display: grid;
  gap: 10px;
}

/* -----------------------------------------------
   Ряд 1: три портрета рядом
   furniture(0.77) | fine-art(0.83) | religious(0.65)
   колонки пропорциональны ширине оригиналов
----------------------------------------------- */
.gallery-row-portraits {
  display: grid;
  grid-template-columns: 77fr 83fr 65fr;
  gap: 10px;
  margin-bottom: 10px;
}

/* -----------------------------------------------
   Ряд 2: два пейзажа
   mantle(1.22) | vineyard(1.57)
----------------------------------------------- */
.gallery-row-landscapes {
  display: grid;
  grid-template-columns: 122fr 157fr;
  gap: 10px;
}

.gallery-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-dark);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-card img {
  display: block;
  width: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover img { transform: scale(1.04); }

/* Портреты — одинаковая высота, object-position подобрана под каждое фото */
.gallery-card--furniture img  { height: 520px; object-position: 50% 30%; }
.gallery-card--fineart img    { height: 520px; object-position: center center; }
.gallery-card--religious img  { height: 520px; object-position: center 20%; }

/* Пейзажи — высота под их соотношение сторон */
.gallery-card--mantle img     { height: 300px; object-position: center 40%; }
.gallery-card--vineyard img   { height: 300px; object-position: center center; }

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,12,7,0.72) 0%, rgba(18,12,7,0.18) 40%, transparent 68%);
  transition: background 0.4s ease;
}

.gallery-card:hover .gallery-card-overlay {
  background: linear-gradient(to top, rgba(18,12,7,0.84) 0%, rgba(18,12,7,0.36) 52%, rgba(18,12,7,0.06) 100%);
}

.gallery-card-content {
  position: absolute;
  bottom: 22px;
  left: 26px;
  right: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.gallery-card-title {
  color: rgba(255,255,255,0.95);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}

.gallery-card-cta { display: none; }

/* ================================
   CATEGORY PAGES
   ================================ */

.category-hero { padding: 72px 0 24px; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a:hover { color: var(--text); }

.category-title {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 400;
}

.category-text {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.art-card {
  position: relative;
  display: block;
  grid-column: span 4;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.art-card:hover img { transform: scale(1.04); }

.art-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.58), rgba(0,0,0,0.08));
  color: #fff;
}

.art-card-info h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.art-card-info p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  font-weight: 300;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 1100px) {
  .hero-grid,
  .intro-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-image img { height: 500px; }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .art-card { grid-column: span 6; }
}

@media (max-width: 900px) {
  .gallery-row-portraits { grid-template-columns: 1fr 1fr; }
  .gallery-row-landscapes { grid-template-columns: 1fr 1fr; }
  .gallery-card--furniture img,
  .gallery-card--fineart img,
  .gallery-card--religious img  { height: 340px; }
  .gallery-card--mantle img,
  .gallery-card--vineyard img   { height: 260px; }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }

  .header-inner {
    min-height: 72px;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
  }

  .nav.active { display: flex; }

  /* Хедер-графика на мобиле — убрана */

  .hero { min-height: auto; }
  .hero-image img { height: 380px; margin-left: auto; margin-right: auto; }
  .hero-image::before { display: none; }

  .cards-grid,
  .values-grid { grid-template-columns: 1fr; }

  .values-grid { gap: 1px; }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box { padding: 36px 28px; }

  .masonry-grid { grid-template-columns: 1fr; }
  .art-card { grid-column: auto; height: 300px; }

  .category-hero { padding: 48px 0 20px; }
}

@media (min-width: 769px) {
  .nav { display: flex !important; }
}

@media (max-width: 600px) {
  .gallery-hero { padding: 60px 0 36px; }
  .gallery-hero-title { font-size: 2.6rem; }
  .gallery-row-portraits,
  .gallery-row-landscapes { grid-template-columns: 1fr; gap: 10px; }
  .gallery-card--furniture img,
  .gallery-card--fineart img,
  .gallery-card--religious img  { height: 280px; }
  .gallery-card--mantle img,
  .gallery-card--vineyard img   { height: 220px; }
  .gallery-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-text { font-size: 0.95rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .intro-card,
  .value-card,
  .work-card-content { padding: 22px; }
  .cta-box { padding: 28px 20px; }
}
/* ================================
   LIGHTBOX
   ================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 7, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

/* Cursor zoom-in on clickable images */
.work-card img,
.clipping-item img { cursor: zoom-in; }