/* AMOVE Gallery — тёмная тема (раздел 13 брифа): сине-чёрный фон
   в тон логотипу, утверждён владельцем. */

@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20A0-20CF;
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: dark;
  --bg: #11141c;            /* фон страницы — сине-чёрный от логотипа */
  --bg-raised: #191d27;     /* карточки, поля форм, футер */
  --mat: #1e222d;           /* паспарту-подложка под работы */
  --text: #ece7dd;          /* тёплый off-white */
  --text-muted: #9b9689;    /* приглушённый серо-бежевый */
  --gold: #d7bc85;
  --gold-dim: #bda06f;
  --line: #2a2f3c;          /* тонкие линии */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --content: 1200px;
  --measure: 42rem;         /* ширина колонки длинных текстов */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

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

.prose {
  max-width: var(--measure);
  line-height: 1.85;
}
.prose p { margin: 0 0 1.2em; white-space: pre-line; }

.muted { color: var(--text-muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Шапка ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand:hover span { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; }
  .site-nav a { display: block; padding: 0.7rem 0; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */

.hero { position: relative; }
.hero-slides { position: relative; overflow: hidden; }
.hero-slide {
  display: none;
  position: relative;
}
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  max-height: 68vh;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  background: var(--mat);
}
.hero-slide::after {           /* нижний край уводится в фон страницы */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-intro {
  text-align: center;
  padding: 2.2rem 20px 3rem;
}
.hero-intro h1 {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.4em;
  color: var(--gold);
}
.hero-intro .slogan {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
}

.btn {
  display: inline-block;
  background: none;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--gold); color: var(--bg); }
.btn-line {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.btn-line:hover { color: var(--text); }

/* ---------- Секции ---------- */

.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

details.mission-more summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  list-style: none;
  margin-top: 0.5rem;
}
details.mission-more summary::-webkit-details-marker { display: none; }
details.mission-more[open] summary { display: none; }

/* ---------- Сетки карточек ---------- */

.grid {
  display: grid;
  gap: 1.6rem;
}
.grid-artworks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-artists { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card { display: block; }
.card .mat {
  background: var(--mat);
  padding: 12%;                /* внутренние поля паспарту */
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.card .mat img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--mat);
}
.card figcaption { padding: 0.8rem 0 0; }
.card .artist-name { font-size: 0.95rem; }
.card .work-title { color: var(--text-muted); font-size: 0.9rem; }
.card .price { margin-top: 0.3rem; font-size: 0.9rem; color: var(--gold); }
.card:hover .artist-name { color: var(--gold); }
figure { margin: 0; }

.card-portrait img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: var(--mat);
}

/* ---------- События ---------- */

.event-banner-card {
  display: block;
  margin-bottom: 2.2rem;
}
.event-banner-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: var(--mat);
}
.event-meta { color: var(--text-muted); font-size: 0.92rem; }
.event-banner-card h3 { margin: 0.9rem 0 0.2rem; }

.past-years { margin-top: 1rem; }
.past-years h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin: 1.6rem 0 0.6rem;
}
.past-years ul { list-style: none; margin: 0; padding: 0; }
.past-years li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.past-years .event-meta { margin-left: 0.6rem; }

/* ---------- Каталог: поиск и фильтры ---------- */

.search-bar {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.search-bar input[type="search"] {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 1rem;
}
.search-bar input::placeholder { color: var(--text-muted); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filters select {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  max-width: 100%;
}
.filters .btn-small,
.search-bar .btn-small {
  background: none;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
.filters .btn-small:hover, .search-bar .btn-small:hover { background: var(--gold); color: var(--bg); }
.filters .reset { align-self: center; }

/* ---------- Страница работы ---------- */

.artwork-page {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .artwork-page { grid-template-columns: 1fr; }
}
.artwork-main .mat {
  background: var(--mat);
  padding: 6%;
  display: flex;
  justify-content: center;
}
.artwork-main .mat { cursor: zoom-in; }
.artwork-main .mat img { max-height: 75vh; width: auto; }
.artwork-thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.artwork-thumbs button {
  background: var(--mat);
  border: 1px solid var(--line);
  padding: 4px;
  cursor: pointer;
}
.artwork-thumbs img { height: 64px; width: 64px; object-fit: contain; }

.artwork-facts { font-size: 0.95rem; }
.artwork-facts dl { margin: 0 0 1.4rem; }
.artwork-facts dt {
  float: left;
  clear: left;
  width: 6.2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
}
.artwork-facts dd { margin: 0 0 0 6.8rem; padding: 0.3rem 0; }
.artwork-facts .price { font-size: 1.15rem; color: var(--gold); }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 1rem;
}
.lightbox button:hover { color: var(--gold); }
.lightbox .lb-close { top: 0.5rem; right: 0.7rem; }
.lightbox .lb-prev { left: 0.3rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0.3rem; top: 50%; transform: translateY(-50%); }

/* ---------- Галерея события ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}
.photo-grid button {
  background: var(--mat);
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Страницы ---------- */

.page-head { padding: 3rem 0 0.5rem; }
.artist-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .artist-head { grid-template-columns: 1fr; }
}
.artist-head img { width: 100%; background: var(--mat); }

.contact-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.contact-blocks .block {
  background: var(--bg-raised);
  padding: 1.8rem;
}
.contact-blocks h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* ---------- Формы ---------- */

.form-narrow { max-width: 34rem; }

.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="tel"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.9rem;
}
.form-row textarea { resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 1px solid var(--gold-dim);
  border-color: var(--gold-dim);
}
.form-row .help { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-check label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.form-check input { margin-top: 0.25rem; accent-color: var(--gold); }

.errorlist {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  color: #d99;
  font-size: 0.85rem;
}
.form-errors {
  border: 1px solid #7a4a4a;
  background: rgba(122, 74, 74, 0.15);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}
.form-errors ul { list-style: none; margin: 0; padding: 0; }
.form-success {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 2rem;
  max-width: 34rem;
}

/* Honeypot: людям не видно, боты заполняют */
.hp-row {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Страница Enquire */
.enquire-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .enquire-page { grid-template-columns: 1fr; }
}
.enquire-thumb { padding: 10%; background: var(--mat); }
.enquire-page .price { color: var(--gold); }

/* ---------- Пагинация ---------- */

.pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
}
.pagination a, .pagination span {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--text-muted);
}
.pagination a:hover { color: var(--gold); border-color: var(--gold-dim); }
.pagination .current { color: var(--gold); border-color: var(--gold-dim); }

/* ---------- Футер ---------- */

.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer-logo img { height: 150px; width: auto; margin: 0 auto 0.5rem; }
.footer-logo { text-align: center; }
.site-footer .footer-title {
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.25rem 0; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- Разное ---------- */

.empty-note {
  background: var(--bg-raised);
  padding: 2.2rem;
  text-align: center;
  color: var(--text-muted);
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.tag-chips span {
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
}
.breadcrumbs { font-size: 0.82rem; color: var(--text-muted); padding-top: 1.4rem; }
.breadcrumbs a:hover { color: var(--gold); }
