/* ==========================================================================
   IMAJEN Art School - static site stylesheet
   All colours live in the token block below. Light is always the default;
   dark is opt-in only, via the header toggle setting <html data-theme="dark">.
   ========================================================================== */

:root {
  --brand: #7d5285;
  --brand-strong: #5f3d66;
  --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --accent: #b5176e;
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --bg-dark: #1b1f2b;
  --card: #ffffff;
  --text: #4b5468;
  --text-strong: #2b2f3a;
  --muted: #808ba0;
  --heading: var(--brand);
  --line: #e3e5ea;
  --on-brand: #ffffff;
  --on-dark: #ffffff;
  --star: #c2c2c4;
  --focus: #2f7de1;
  --success-bg: color-mix(in srgb, #2e9e5b 14%, var(--bg));
  --success-fg: #1f6b3d;
  --error-bg: color-mix(in srgb, #d23f3f 14%, var(--bg));
  --error-fg: #9b2626;
  --shadow: 0 10px 30px rgba(20, 20, 40, 0.12);
  --radius: 4px;
  --container: 1140px;
  --font: "Ubuntu", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #15171d;
  --bg-alt: #1d2029;
  --card: #1d2029;
  --text: #cdd2dc;
  --text-strong: #f1f2f5;
  --muted: #a9b6cc;
  --heading: #c9a3cf;
  --line: #2c3040;
  --brand-soft: color-mix(in srgb, var(--brand) 28%, #15171d);
  --star: #6b7385;
  --success-fg: #8fdcaa;
  --error-fg: #f2a2a2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

img, video { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; border: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.4rem; font-weight: 300; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5, .h5 { font-size: 1.15rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
strong, b { font-weight: 700; color: var(--text-strong); }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
blockquote { margin: 1.5em 0; padding: 0 0 0 1.2em; border-left: 3px solid var(--brand); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: var(--on-brand);
  padding: 0.5em 1em; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 880px; }

.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 32px 0; }
.section__title { text-align: center; font-size: 1.7rem; margin-bottom: 1.6em; text-transform: uppercase; letter-spacing: 0.02em; }
.section__more { text-align: center; margin: 2.5em 0 0; }

.sep {
  display: block; width: 40px; height: 2px;
  background: var(--line); margin: 1.4em 0;
}
.sep--center { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 28px;
  line-height: 50px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--brand); color: var(--on-brand); text-decoration: none; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn--small { line-height: 40px; padding: 0 18px; font-size: 0.72rem; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header { background: var(--bg); position: relative; z-index: 50; }
.site-header__inner {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 24px; padding-bottom: 8px;
}
.brand { display: block; }
.brand__img { width: 150px; height: auto; }
.site-footer__img { width: 90px; height: auto; }

.nav-toggle {
  display: none;
  position: absolute; right: 16px; top: 28px;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: ""; display: block; position: absolute; left: 10px; right: 10px;
  height: 2px; background: var(--brand); transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; right: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav__list, .nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.nav__item { position: relative; }
.nav__link {
  display: block;
  font-family: var(--font);
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand);
  padding: 0 16px; line-height: 60px;
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { text-decoration: none; color: var(--brand-strong); }
.nav__item--active > .nav__link { font-weight: 700; }
.nav__item--has-sub > .nav__link::after { content: " \25BE"; font-size: 0.7em; }
.nav__expand { display: none; }

@media (min-width: 900px) {
  .nav__sub {
    position: absolute; left: 0; top: 100%;
    min-width: 240px;
    background: var(--card);
    box-shadow: var(--shadow);
    border-top: 2px solid var(--brand);
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .nav__sub .nav__sub { left: 100%; top: -10px; }
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub,
  .nav__item--open > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__sub .nav__link { line-height: 1.4; padding: 10px 20px; text-transform: none; letter-spacing: 0; font-size: 0.9rem; color: var(--text-strong); }
  .nav__sub .nav__link:hover, .nav__sub .nav__link:focus-visible { background: var(--brand-soft); color: var(--brand); }
  .nav__sub .nav__item--has-sub > .nav__link::after { content: " \25B8"; float: right; }
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-header__inner { padding-top: 16px; }
  .brand__img { width: 110px; }
  .nav { display: none; width: 100%; border-top: 1px solid var(--line); margin-top: 12px; }
  .nav--open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__link { line-height: 48px; width: 100%; text-align: left; }
  .nav__sub { display: none; padding-left: 16px; background: var(--bg-alt); }
  .nav__item--open > .nav__sub { display: block; }
  .nav__sub .nav__link { text-transform: none; letter-spacing: 0; line-height: 42px; }
  .nav__item--has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .nav__item--has-sub > .nav__link { flex: 1; width: auto; }
  .nav__item--has-sub > .nav__sub { flex-basis: 100%; }
  .nav__expand {
    display: block; width: 44px; height: 44px; flex: 0 0 44px;
    border: 0; background: transparent; color: var(--brand); cursor: pointer;
  }
  .nav__expand::before { content: "\25BE"; font-size: 1.1rem; display: inline-block; transition: transform 0.2s; }
  .nav__item--open > .nav__expand::before { transform: rotate(180deg); }
  .nav__item--has-sub > .nav__link::after { content: none; }
}

/* --------------------------------------------------------------------------
   Social
   -------------------------------------------------------------------------- */
.social { display: flex; gap: 12px; justify-content: center; }
.social--hero { margin: 14px 0 34px; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand);
  transition: background 0.2s;
}
.social__link:hover, .social__link:focus-visible { background: var(--brand-strong); }
.social__link svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Title band (inner pages)
   -------------------------------------------------------------------------- */
.title-band { background: var(--brand); color: var(--on-brand); padding: 44px 0; text-align: center; }
.title-band__h1 { color: var(--on-brand); margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* --------------------------------------------------------------------------
   Sliders (hero, testimonials)
   -------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__track {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.slider--hero .slider__track { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--brand-strong); }
.slider--hero .slider__slide img { width: 100%; height: auto; aspect-ratio: 1241 / 665; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--brand);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85;
}
.slider__btn:hover { opacity: 1; background: var(--brand); color: var(--on-brand); }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.slider__dot--active { background: var(--brand); }

.slider--testimonials { padding: 0 56px; }
.slider--testimonials .slider__btn--prev { left: 0; }
.slider--testimonials .slider__btn--next { right: 0; }
.testimonial { text-align: center; padding: 8px 4px; }
.testimonial__title { font-size: 1.5rem; margin-bottom: 0.3em; }
.testimonial__stars { color: var(--star); letter-spacing: 0.15em; margin-bottom: 1.2em; }
.testimonial__quote { border: 0; padding: 0; margin: 0; font-style: normal; }
.testimonial__quote p { font-size: 0.95rem; }
.testimonial__author { font-size: 0.8rem; font-weight: 500; color: var(--brand); }

/* --------------------------------------------------------------------------
   Home features
   -------------------------------------------------------------------------- */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.feature__media { display: block; margin-bottom: 1.2em; overflow: hidden; border-radius: var(--radius); }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s; }
a.feature__media:hover img { transform: scale(1.04); }
.feature__title { font-size: 1.05rem; font-weight: 400; color: var(--text-strong); line-height: 1.4; }
.feature .sep { margin: 1em auto; }
.feature__text { font-size: 0.85rem; }
@media (max-width: 899px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } .feature__media { max-width: 300px; margin-left: auto; margin-right: auto; } }

.pullquote { border: 0; padding: 0; margin: 0; text-align: center; }
.pullquote p { font-size: 1.15rem; font-weight: 700; font-style: italic; color: var(--heading); line-height: 1.6; }
.pullquote footer { font-weight: 700; font-style: italic; color: var(--heading); }

/* --------------------------------------------------------------------------
   Cards & carousels
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { display: block; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; flex: 1; }
.card__date { grid-row: 1 / span 3; text-align: center; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; line-height: 1.1; padding-top: 4px; }
.card__day { display: block; font-size: 1.4rem; font-weight: 500; color: var(--brand); }
.card__title { font-size: 1.05rem; margin-bottom: 0.4em; }
.card__title a { color: var(--heading); }
.card__excerpt { font-size: 0.85rem; margin-bottom: 0.8em; }
.card__more { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; align-self: end; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 899px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

.carousel { position: relative; }
.carousel__track {
  list-style: none; margin: 0; padding: 4px;
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.carousel__item { position: relative; flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 899px) { .carousel__item { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .carousel__item { flex-basis: 88%; } }
.carousel__btn {
  position: absolute; top: 40%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--brand);
  font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.carousel__btn:hover { background: var(--brand); color: var(--on-brand); }
.carousel__btn--prev { left: -18px; }
.carousel__btn--next { right: -18px; }
@media (max-width: 1220px) { .carousel__btn--prev { left: 4px; } .carousel__btn--next { right: 4px; } }

/* --------------------------------------------------------------------------
   Projects / portfolio
   -------------------------------------------------------------------------- */
.filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter__btn {
  font-family: var(--font); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
}
.filter__btn--active, .filter__btn:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 899px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: box-shadow 0.2s, transform 0.2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard--hidden { display: none; }
.pcard__media { display: block; overflow: hidden; }
.pcard__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__body { padding: 16px 18px 18px; }
.pcard__title { font-size: 1.05rem; margin-bottom: 0.2em; }
.pcard__title a { color: var(--heading); }
.pcard__cat { margin: 0; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.project { padding: 56px 20px; }
.project__layout { display: grid; grid-template-columns: 1fr 260px; gap: 48px; margin-top: 40px; }
@media (max-width: 899px) { .project__layout { grid-template-columns: 1fr; gap: 24px; } }
.project__meta { border-top: 1px solid var(--line); padding-top: 20px; }
.project__meta-item { margin-bottom: 1.2em; }
.project__meta-item h6 { margin-bottom: 0.2em; }
.project__meta-item p { margin: 0; }

/* --------------------------------------------------------------------------
   Posts / prose
   -------------------------------------------------------------------------- */
.post { padding: 56px 20px; }
.post__hero { margin: 0 0 24px; }
.post__hero img { width: 100%; height: auto; max-height: 640px; object-fit: contain; background: var(--bg-alt); border-radius: var(--radius); }
.post__meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 2em; }
.post__date-line { font-weight: 500; color: var(--brand); }
.prose > :first-child { margin-top: 0; }
.prose--center { text-align: center; }
.prose .figure { margin: 1.5em 0; }
.prose .figure img { border-radius: var(--radius); }
.figure { margin: 0 0 1.5em; }
.figure--small { max-width: 220px; }
.figure--capped img { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); }
.tags { font-size: 0.85rem; color: var(--muted); }
.recipe { columns: 2; column-gap: 32px; }
.highlight { padding: 14px 18px; background: var(--brand-soft); border-radius: var(--radius); }
.facts { list-style: none; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; margin: 2em 0 1em; }
.facts li { padding: 12px 18px; border: 1px solid var(--brand); border-radius: var(--radius); }
.offer { padding: 28px 0; border-top: 1px solid var(--line); }
.offer > p:first-child { font-size: 1.02rem; }

.post-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.post-nav__link { color: var(--text-strong); }
.post-nav__link--prev { grid-column: 1; }
.post-nav__link--next { grid-column: 3; text-align: right; }
.post-nav__all { grid-column: 2; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; }
.post-nav__label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; text-align: left; }
  .post-nav__link--prev, .post-nav__link--next, .post-nav__all { grid-column: 1; text-align: left; }
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.cols { display: grid; gap: 32px; margin-bottom: 1.5em; }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--center { align-items: center; }
.cols--top { align-items: start; }
.cols--wide { gap: 48px; }
.cols .figure { margin: 0; }
@media (max-width: 760px) { .cols--2, .cols--3 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 24px; }

.gallery { display: grid; gap: 20px; margin-bottom: 1.5em; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery__item { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery__item img { transition: transform 0.4s; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery--3, .gallery--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery--2, .gallery--3, .gallery--4 { grid-template-columns: 1fr; } }

.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.5em; background: var(--bg-dark); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video--native { aspect-ratio: auto; }
.video--native video { width: 100%; max-height: 70vh; }

.pdf { margin: 0 0 1.5em; }
.pdf__frame { width: 100%; aspect-ratio: 3 / 4; min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); margin-bottom: 12px; }

.cta { text-align: center; margin-top: 48px; padding: 40px 20px; background: var(--brand-soft); border-radius: var(--radius); }
.cta__title { margin-bottom: 1em; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.contact__intro { text-align: center; font-weight: 400; font-size: 1.15rem; margin-bottom: 2em; }
.contact { display: grid; grid-template-columns: 1fr 260px; gap: 48px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact__aside .social { justify-content: flex-start; }

.form__row { margin-bottom: 18px; }
.form__label { display: block; font-size: 0.9rem; font-weight: 400; color: var(--text-strong); margin-bottom: 6px; }
.req { color: var(--muted); font-weight: 300; font-size: 0.8em; }
.form__input {
  width: 100%; font: inherit; color: var(--text-strong);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
}
.form__input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.form__input--file { padding: 8px; }
.form__help { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.form__fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.form__fieldset legend { padding: 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.95rem; }
.form__hp { position: absolute; left: -9999px; top: -9999px; }
.form-status { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 400; }
.form-status--ok { background: var(--success-bg); color: var(--success-fg); }
.form-status--error { background: var(--error-bg); color: var(--error-fg); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 20, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 90vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--card); color: var(--brand); font-size: 1.6rem; cursor: pointer;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); margin-top: 48px; font-size: 0.9rem; }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  padding-top: 48px; padding-bottom: 40px; align-items: start;
}
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; text-align: center; } }
.site-footer__brand .social { justify-content: flex-start; }
@media (max-width: 760px) { .site-footer__brand .social { justify-content: center; } .site-footer__logo { display: inline-block; } }
.site-footer__tagline { color: var(--brand); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; margin: 10px 0 14px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer__meta p { margin: 0 0 0.5em; }
.site-footer__credit { color: var(--muted); font-size: 0.8rem; }
.theme-toggle {
  margin-top: 12px; font: inherit; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .slider__btn, .carousel__btn, .nav-toggle { display: none !important; }
}
