/* ===== Дизайн-токены: минимализм, монохром ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #111111;
  --ink-soft: #777777;
  --line: #e6e6e3;
  --accent: #111111;
  --radius: 4px;
  --maxw: 1180px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.5px;
}
.section-title.center { text-align: center; }
.section-sub { color: var(--ink-soft); margin-top: 12px; }
.section-sub.center { text-align: center; margin-bottom: 48px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 50px;
  font-size: .85rem;
  letter-spacing: .4px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: all .25s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ===== Шапка ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.5px; }
.logo span { color: var(--ink-soft); font-weight: 300; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: .9rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 150px 0 130px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg-soft), transparent 68%);
  z-index: -1;
}
.hero-inner { max-width: 760px; }
.hero-eyebrow { font-family: var(--display); letter-spacing: 4px; font-size: .72rem; color: var(--ink-soft); margin-bottom: 26px; }
.hero-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6.5vw, 4.6rem); line-height: 1.04; letter-spacing: -1.5px; }
.hero-text { margin: 28px 0 38px; font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== О художнике ===== */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.photo-frame {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: url("images/portrait.svg") center/cover no-repeat;
  position: relative;
}
.about-text p { margin-top: 20px; color: var(--ink-soft); }
.stats { display: flex; gap: 48px; list-style: none; margin-top: 44px; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 2.2rem; font-weight: 500; }
.stats span { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }

/* ===== Галерея ===== */
.works { background: var(--bg-soft); }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.filter {
  padding: 9px 22px; border-radius: 50px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-soft); cursor: pointer; font-size: .82rem;
  font-family: var(--sans); transition: all .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #dcdcd8;
  transition: transform .35s ease, box-shadow .35s ease, opacity .3s, filter .35s;
  filter: grayscale(15%);
}
.work:hover { transform: translateY(-5px); box-shadow: 0 22px 38px -20px rgba(0,0,0,.4); filter: grayscale(0); }
.work.is-hidden { display: none; }

/* Работы — оригинальные SVG-картины. Замените на свои файлы в папке images/ */
.work.c1 { background: url("images/art-1.svg") center/cover no-repeat; }
.work.c2 { background: url("images/art-2.svg") center/cover no-repeat; }
.work.c3 { background: url("images/art-3.svg") center/cover no-repeat; }
.work.c4 { background: url("images/art-4.svg") center/cover no-repeat; }
.work.c5 { background: url("images/art-5.svg") center/cover no-repeat; }
.work.c6 { background: url("images/art-6.svg") center/cover no-repeat; }
.work.c7 { background: url("images/art-7.svg") center/cover no-repeat; }
.work.c8 { background: url("images/art-8.svg") center/cover no-repeat; }

.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-size: .82rem; font-family: var(--display); letter-spacing: .3px;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.work:hover figcaption { opacity: 1; transform: translateY(0); }

/* Акцентная крупная плитка */
.work.c4 { grid-column: span 2; aspect-ratio: 16/10; }

/* ===== Сотрудничество ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 32px; transition: .25s;
}
.card:hover { border-color: var(--ink); transform: translateY(-5px); }
.card-num { font-family: var(--display); font-size: .8rem; color: var(--ink-soft); letter-spacing: 2px; }
.card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; margin: 14px 0 12px; }
.card p { color: var(--ink-soft); }

/* ===== Контакты ===== */
.contact-inner { max-width: 620px; margin: 0 auto; }
.contact-form { margin-top: 40px; }
.contact-form .row { display: flex; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: .95rem; background: var(--bg); color: var(--ink);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form button { width: 100%; }
.socials { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.socials a { color: var(--ink-soft); font-size: .88rem; transition: color .2s; }
.socials a:hover { color: var(--ink); }

/* ===== Подвал ===== */
.site-footer { padding: 40px 0; text-align: center; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }

/* ===== Появление при скролле ===== */
.section { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.section.in-view { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .work.c4 { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 80px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 28px; }
  .contact-form .row { flex-direction: column; gap: 0; }
  .gallery { grid-template-columns: 1fr; }
  .work.c4 { grid-column: span 1; aspect-ratio: 3/4; }
  .stats { gap: 28px; }
}
