/* ==========================================================================
   От сърцето и ръцете на Динка — main stylesheet
   Naming: BEM (block__element--modifier). State classes are BEM modifiers.
   ========================================================================== */

/* Tokens
   ========================================================================== */
:root {
  --color-ink: #151419;
  --color-purple: #6f45a7;
  --color-purple-light: #b48ce6;
  --color-lavender: #eee8f6;
  --color-yellow: #f4ce55;
  --color-yellow-dark: #eabd32;
  --color-paper: #fbfaf7;
  --color-muted: #706b75;
  --color-line: #e9e5e0;
  --color-line-purple: #ddd4e7;
  --color-dark: #17161b;
  --color-darker: #111015;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 8px);
}

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }

/* Page (body) */
.page--locked { overflow: hidden; }

/* Utilities */
.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: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Container */
.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Eyebrow */
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* Section title */
.section-title {
  margin: 12px 0 22px;
  font-size: 48px;
  line-height: 1.05;
}
.section-title--large { font-size: 52px; }

/* Brand */
.brand {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  line-height: 1.05;
  margin: 0;
}
.brand__accent { color: var(--color-purple); }
.brand--light { color: #fff; }
.brand--light .brand__accent { color: var(--color-purple-light); }

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.button__icon {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.button:hover {
  background: var(--color-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(234, 189, 50, .35);
}
.button:hover .button__icon { transform: translateX(5px); }

/* Text link */
.link {
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  color: var(--color-purple);
}
.link__icon { transition: transform .3s var(--ease); }
.link:hover .link__icon { transform: translateX(5px); }

/* Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow .3s;
  animation: drop .7s var(--ease) both;
}
.header--scrolled { box-shadow: 0 6px 24px rgba(21, 20, 25, .06); }

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Nav */
.nav__list {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.nav__link {
  position: relative;
  display: block;
  padding: 6px 0;
  transition: color .25s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-purple);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--color-purple); }
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.menu-toggle__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__bar:nth-child(1) { top: 15px; }
.menu-toggle__bar:nth-child(2) { top: 21px; }
.menu-toggle__bar:nth-child(3) { top: 27px; }
.menu-toggle--open .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle--open .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle--open .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero
   ========================================================================== */
.hero { padding: 70px 0 48px; }

.hero__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.hero__content > * { animation: rise .8s var(--ease) both; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .28s; }
.hero__content > :nth-child(3) { animation-delay: .41s; }
.hero__content > :nth-child(4) { animation-delay: .54s; }
.hero__content > :nth-child(5) { animation-delay: .67s; }

.hero__title {
  margin: 18px 0;
  font-size: 64px;
  line-height: 1.02;
}
.hero__title-accent { color: var(--color-purple); }

.hero__lead {
  max-width: 530px;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
}

.hero__stats {
  display: flex;
  gap: 34px;
  margin: 42px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid #e6e1ea;
}
.hero__stat { margin: 0; }
.hero__stat-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--color-purple);
}
.hero__stat-label {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
}

/* Carousel */
.carousel {
  position: relative;
  height: 600px;
  border-radius: 28px;
  overflow: hidden;
  background: #e9e3ef;
  isolation: isolate;
  animation: reveal-media 1.2s .2s var(--ease) both;
}
.carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(21, 20, 25, .35), transparent 35%);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.carousel__slide--active {
  z-index: 1;
  opacity: 1;
}

.carousel__image {
  transform: scale(1.08);
  transition: transform 7s linear;
}
.carousel__slide--active .carousel__image { transform: scale(1); }

.carousel__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(251, 250, 247, .92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s .4s, transform .6s .4s var(--ease);
}
.carousel__slide--active .carousel__caption {
  opacity: 1;
  transform: none;
}

.carousel__controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.carousel__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 250, 247, .92);
  font-size: 18px;
  transition: background .25s, transform .25s var(--ease);
}
.carousel__button:hover {
  background: var(--color-yellow);
  transform: scale(1.08);
}

/* Categories
   ========================================================================== */
.categories { padding: 30px 0 90px; }

.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  display: block;
  overflow: hidden;
  border: 1px solid #ece8e2;
  border-radius: 18px;
  background: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.category-card__media {
  height: 260px;
  overflow: hidden;
}
.category-card__image { transition: transform .8s var(--ease); }
.category-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 20px;
}
.category-card__title {
  margin: 0;
  font-size: 20px;
}
.category-card__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-lavender);
  color: var(--color-purple);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: #e0d6ec;
  box-shadow: 0 18px 40px rgba(111, 69, 167, .14);
}
.category-card:hover .category-card__image { transform: scale(1.07); }
.category-card:hover .category-card__arrow {
  background: var(--color-purple);
  color: #fff;
  transform: rotate(-45deg);
}

/* About
   ========================================================================== */
.about {
  padding: 90px 0;
  overflow: hidden;
  background: var(--color-lavender);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about__media { position: relative; }
.about__media::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  z-index: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--color-yellow);
}

.about__photo {
  position: relative;
  z-index: 1;
  height: 540px;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
}
.about__photo-image {
  object-position: 50% 30%;
  transition: transform 1s var(--ease);
}
.about__media:hover .about__photo-image { transform: scale(1.04); }

.about__badge {
  position: absolute;
  right: -18px;
  bottom: 36px;
  z-index: 2;
  width: 170px;
  height: 200px;
  border: 6px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(21, 20, 25, .18);
  transform: rotate(4deg);
  transition: transform .5s var(--ease);
}
.about__media:hover .about__badge { transform: rotate(0) translateY(-6px); }

.about__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-muted);
}

.about__signature {
  margin: 26px 0 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-style: italic;
  color: var(--color-purple);
}

/* Gallery
   ========================================================================== */
.gallery { padding: 90px 0; }

.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.gallery__filter {
  padding: 10px 18px;
  border: 1px solid var(--color-line-purple);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.gallery__filter:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
}
.gallery__filter--active,
.gallery__filter--active:hover {
  border-color: var(--color-purple);
  background: var(--color-purple);
  color: #fff;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--hidden { display: none; }
.gallery__item--pop { animation: pop .5s var(--ease) both; }
.gallery__item:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
}

.gallery__figure {
  height: 100%;
  margin: 0;
}
.gallery__figure {
  /* Shimmer placeholder until the lazy-loaded image arrives */
  background: linear-gradient(100deg, var(--color-lavender) 30%, #f7f3fb 50%, var(--color-lavender) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
.gallery__image {
  opacity: 0;
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.gallery__image--loaded { opacity: 1; }
.gallery__figure:has(.gallery__image--loaded) { animation: none; }

@keyframes shimmer { to { background-position: -150% 0; } }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.pagination[hidden] { display: none; }
.pagination__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination__button,
.pagination__page {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--color-line-purple);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.pagination__button:hover:not(:disabled),
.pagination__page:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
}
.pagination__page--active,
.pagination__page--active:hover {
  border-color: var(--color-purple);
  background: var(--color-purple);
  color: #fff;
}
.pagination__button:disabled { opacity: .4; cursor: default; }
.pagination__button:focus-visible,
.pagination__page:focus-visible {
  outline: 3px solid var(--color-purple);
  outline-offset: 2px;
}
.gallery__item:hover .gallery__image { transform: scale(1.08); }

.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(21, 20, 25, .7), transparent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s, transform .35s var(--ease);
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}

/* Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 60px 70px;
  background: rgba(17, 16, 21, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure { margin: 0; }
.lightbox__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 14px;
  object-fit: contain;
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox--open .lightbox__image { transform: none; }

.lightbox__caption {
  margin-top: 14px;
  text-align: center;
  font-size: 15px;
  color: #ddd;
}

.lightbox__button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  transition: background .25s, color .25s;
}
.lightbox__button:hover {
  background: var(--color-yellow);
  color: var(--color-ink);
}
.lightbox__button--close { top: 18px; right: 18px; }
.lightbox__button--prev { left: 14px; top: 50%; margin-top: -24px; }
.lightbox__button--next { right: 14px; top: 50%; margin-top: -24px; }

/* Process
   ========================================================================== */
.process {
  padding: 80px 0;
  background: #fff;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--color-line-purple);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-purple);
  transition: width .6s var(--ease);
}
.step:hover::before { width: 100%; }

.step__number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-yellow);
  font-weight: 700;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.step:hover .step__number {
  background: var(--color-purple);
  color: #fff;
  transform: scale(1.12) rotate(-8deg);
}

.step__title {
  margin: 20px 0 8px;
  font-size: 24px;
}
.step__text {
  margin: 0;
  line-height: 1.6;
  color: var(--color-muted);
}

/* FAQ
   ========================================================================== */
.faq {
  padding: 90px 0;
  background: var(--color-paper);
}

.faq__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.faq__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-muted);
}

.faq__list { border-top: 1px solid var(--color-line-purple); }

.faq__item { border-bottom: 1px solid var(--color-line-purple); }

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-serif);
  font-size: 21px;
  cursor: pointer;
  list-style: none;
  transition: color .25s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question-text {
  margin: 0;
  font: inherit;
}
.faq__question:hover { color: var(--color-purple); }

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-lavender);
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--color-purple);
  transition: transform .3s var(--ease), background .3s;
}
.faq__icon::after { transform: rotate(90deg); }
/* --open is toggled by JS at the start of each animation; [open] is the no-JS fallback */
.faq__item--open .faq__icon,
html:not(.has-js) .faq__item[open] .faq__icon {
  background: var(--color-purple);
  transform: rotate(180deg);
}
.faq__item--open .faq__icon::before,
.faq__item--open .faq__icon::after,
html:not(.has-js) .faq__item[open] .faq__icon::before,
html:not(.has-js) .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item--open .faq__icon::after,
html:not(.has-js) .faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__item--open .faq__question { color: var(--color-purple); }

/* Icon hover: closed "+" turns a quarter and darkens; open "−" lifts slightly */
.faq__question:hover .faq__icon {
  background: #dfd3ee;
  box-shadow: 0 6px 16px rgba(111, 69, 167, .22);
  transform: rotate(90deg) scale(1.1);
}
.faq__question:hover .faq__icon::before,
.faq__question:hover .faq__icon::after { background: var(--color-purple); }
.faq__item--open .faq__question:hover .faq__icon,
html:not(.has-js) .faq__item[open] .faq__question:hover .faq__icon {
  background: #5d3790;
  transform: rotate(180deg) scale(1.1);
}
.faq__item--open .faq__question:hover .faq__icon::before,
.faq__item--open .faq__question:hover .faq__icon::after { background: #fff; }
.faq__question:focus-visible { outline: none; }
.faq__question:focus-visible .faq__icon {
  outline: 3px solid var(--color-purple);
  outline-offset: 3px;
}

.faq__content { overflow: hidden; }

.faq__answer {
  margin: 0;
  padding: 0 54px 24px 0;
  line-height: 1.7;
  color: var(--color-muted);
}
.faq__link {
  color: var(--color-purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq__link:hover { color: var(--color-ink); }
.has-js .faq__answer {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.has-js .faq__item--open .faq__answer {
  opacity: 1;
  transform: none;
  transition-delay: .08s;
}

/* Contact
   ========================================================================== */
.contact {
  padding: 90px 0;
  background: var(--color-dark);
  color: #fff;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact__text {
  line-height: 1.7;
  color: #c9c5ce;
}

.contact__details {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  font-style: normal;
}
.contact__detail {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.contact__detail--link { transition: color .25s, transform .25s var(--ease); }
.contact__detail--link:hover {
  color: var(--color-yellow);
  transform: translateX(4px);
}

.contact__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
}
.contact__collage-item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}
.contact__collage-item:first-child { grid-row: span 2; }
.contact__collage-image { transition: transform .8s var(--ease); }
.contact__collage-item:hover .contact__collage-image { transform: scale(1.07); }

/* Footer
   ========================================================================== */
.footer {
  padding: 28px 0;
  background: var(--color-darker);
  color: #aaa;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer__text { margin: 0; }

/* Animations
   ========================================================================== */
@keyframes drop { from { opacity: 0; transform: translateY(-100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
/* No opacity here: the carousel holds the LCP image, and Chrome doesn't count
   paints at opacity 0 towards Largest Contentful Paint */
@keyframes reveal-media {
  from { clip-path: inset(8% 8% 8% 8% round 28px); }
  to { clip-path: inset(0 0 0 0 round 28px); }
}

/* Scroll reveal (only hidden once JS has confirmed it can reveal it) */
.has-js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.has-js .reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__title { font-size: 54px; }
  .hero__inner { gap: 40px; }
  .category-card__title { font-size: 18px; }
  .nav__list { gap: 20px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 8px 20px 20px;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 20px 40px rgba(21, 20, 25, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: transform .35s var(--ease), opacity .3s, visibility .3s;
  }
  .nav--open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 18px;
  }
  .nav__link {
    padding: 16px 0;
    border-bottom: 1px solid #eee9e3;
  }
  .nav__link::after { display: none; }

  .hero { padding-top: 40px; }
  .hero__inner,
  .about__inner,
  .faq__inner,
  .contact__inner { grid-template-columns: 1fr; }
  .hero__inner { gap: 32px; }
  .hero__title { font-size: 48px; }

  .carousel {
    order: -1;
    height: 520px;
  }

  .categories__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid { grid-auto-rows: 190px; gap: 10px; }
  .process__steps { grid-template-columns: 1fr; gap: 30px; }
  .about__inner,
  .contact__inner { gap: 50px; }
  .faq__inner { gap: 30px; }

  .about__media {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .about__badge { right: -10px; }
}

@media (max-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
}

@media (max-width: 560px) {
  :root { --header-height: 70px; }

  .container { width: calc(100% - 32px); }
  .nav { padding: 4px 16px 16px; }
  .brand { font-size: 19px; }

  .hero { padding: 28px 0 36px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { gap: 22px; margin-top: 32px; }
  .hero__stat-value { font-size: 24px; }

  .carousel { height: 420px; border-radius: 20px; }
  .carousel__caption {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 140px);
    font-size: 12px;
  }
  .carousel__controls { right: 14px; bottom: 14px; gap: 8px; }
  .carousel__button { width: 40px; height: 40px; }

  .categories { padding: 10px 0 65px; }
  .categories__grid { gap: 10px; }
  .category-card__media { height: 170px; }
  .category-card__body { align-items: flex-end; padding: 14px; }
  .category-card__title { font-size: 16px; }
  .category-card__arrow { display: none; }

  .section-title,
  .section-title--large { font-size: 36px; }

  .about,
  .gallery,
  .process,
  .faq,
  .contact { padding: 65px 0; }

  .about__inner { gap: 56px; }
  .about__media::before { top: -18px; left: -14px; width: 100px; height: 100px; }
  .about__photo { height: 420px; border-radius: 20px; }
  .about__badge {
    right: -6px;
    bottom: -24px;
    width: 118px;
    height: 140px;
    border-width: 4px;
  }

  .gallery__head { flex-direction: column; align-items: start; gap: 12px; }
  .gallery__filters {
    flex-wrap: nowrap;
    margin: 0 -16px 20px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gallery__filters::-webkit-scrollbar { display: none; }
  .gallery__filter { flex-shrink: 0; }
  .gallery__grid { gap: 8px; grid-auto-rows: 170px; }
  .gallery__item { border-radius: 14px; }
  .gallery__caption {
    padding: 30px 10px 10px;
    font-size: 12px;
    opacity: 1;
    transform: none;
  }

  .faq__question { font-size: 18px; padding: 18px 0; }
  .faq__answer { padding-right: 0; }

  .contact__button { width: 100%; justify-content: center; }
  .contact__collage { height: 320px; }

  .lightbox { padding: 70px 12px; }
  .lightbox__button--prev,
  .lightbox__button--next { top: auto; bottom: 16px; margin: 0; }
  .lightbox__button--prev { left: calc(50% - 58px); }
  .lightbox__button--next { right: calc(50% - 58px); }

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

@media (max-width: 380px) {
  .categories__grid { grid-template-columns: 1fr; }
  .category-card__media { height: 240px; }
  .hero__title { font-size: 36px; }
}

@media (hover: none) {
  .category-card:hover,
  .button:hover { transform: none; }
}
