/* AF Studio — Premium Glass Catalog Prototype */

:root {
  --bg-primary: #4B4440;
  --bg-secondary: #564F4A;
  --bg-elevated: #635C56;
  --bg-light: #f6f3ef;
  --text-primary: #faf8f6;
  --text-muted: #c5bcb4;
  --text-dark: #2e2825;
  --overlay-rgb: 55, 49, 45;
  --accent: #e06b3a;
  --accent-hover: #eb8354;
  --accent-deep: #c45628;
  --metal: #c8c2bb;
  --glass: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --gap: clamp(12px, 1.6vw, 20px);
  --nav-height: 64px;
  --font-sans: "Onest", system-ui, -apple-system, sans-serif;
  --font-display: "Onest", system-ui, -apple-system, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(var(--overlay-rgb), 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition);
}

.nav--scrolled {
  background: rgba(var(--overlay-rgb), 0.92);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.nav__logo-mark {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav__logo-text {
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__phone {
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(var(--overlay-rgb), 0.97);
  backdrop-filter: blur(24px);
  padding: 32px clamp(20px, 4vw, 48px);
  flex-direction: column;
  gap: 24px;
  z-index: 999;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 48px) clamp(20px, 5vw, 80px) clamp(48px, 8vh, 96px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--overlay-rgb), 0.82) 0%,
    rgba(var(--overlay-rgb), 0.28) 45%,
    rgba(var(--overlay-rgb), 0.12) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 0;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--transition);
}

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

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

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.btn__arrow {
  transition: transform 0.3s;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Orange pill with reveal mask */

.btn-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  isolation: isolate;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(224, 107, 58, 0.28);
}

.btn-more__fill {
  position: absolute;
  inset: 0;
  background: var(--accent-deep);
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.btn-more__label {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-block:hover .btn-more__fill,
.featured__card:hover .btn-more__fill,
.btn-more:hover .btn-more__fill {
  transform: translateX(0);
}

/* ── Category blocks ── */

.catalog-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap) 0;
  background: var(--bg-primary);
}

.category-block {
  position: relative;
  min-height: calc(100vh - var(--nav-height) - 48px);
  min-height: calc(100dvh - var(--nav-height) - 48px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

.category-block__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.8s var(--transition);
}

.category-block:hover .category-block__bg {
  transform: scale(1.03);
}

.category-block__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--overlay-rgb), 0.78) 0%,
    rgba(var(--overlay-rgb), 0.22) 55%,
    rgba(var(--overlay-rgb), 0.08) 100%
  );
  transition: background var(--transition);
}

.category-block:hover .category-block__overlay {
  background: linear-gradient(
    to top,
    rgba(var(--overlay-rgb), 0.88) 0%,
    rgba(var(--overlay-rgb), 0.35) 60%,
    rgba(var(--overlay-rgb), 0.14) 100%
  );
}

.category-block__content {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vh, 80px) clamp(20px, 5vw, 80px);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.category-block__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.category-block__text p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.65;
}

.category-block__arrow {
  display: none;
}

.catalog-section--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: var(--gap) clamp(12px, 2vw, 24px);
}

.catalog-section--grid .category-block {
  min-height: 52vh;
  min-height: 52dvh;
}

.category-block--half {
  min-height: 44vh;
  min-height: 44dvh;
}

/* ── Gallery (catalog + projects) ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.gallery--catalog .gallery__item,
.gallery--project .gallery__item {
  aspect-ratio: 4 / 3;
}

.gallery--project .gallery__item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  border: none;
  padding: 0;
  width: 100%;
  display: block;
  color: inherit;
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--transition);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--overlay-rgb), 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.af-reveal {
  opacity: 0.92;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.af-reveal--in {
  opacity: 1;
  transform: none;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

.gallery-empty {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 48px 0;
}

/* ── Projects grid ── */

.projects-grid-section {
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 80px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.project-card {
  display: block;
  background: var(--bg-secondary);
  overflow: hidden;
  transition: transform 0.35s;
  border-radius: var(--radius-sm);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 24px;
}

.project-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.project-card__body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Featured project strip ── */

.featured {
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 80px);
  background: var(--bg-secondary);
}

.featured__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.featured__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.featured__card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.4s;
  border-radius: var(--radius);
}

.featured__card:hover {
  transform: translateY(-4px);
}

.featured__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.featured__card:hover .featured__image img {
  transform: scale(1.04);
}

.featured__body {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.featured__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
}

/* ── Process section ── */

.process {
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 80px);
  background: var(--bg-primary);
}

.section-header {
  margin-bottom: 56px;
}

.section-header__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.process__step {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.process__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
  letter-spacing: -0.02em;
}

.process__step h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.process__step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ── */

.footer {
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 80px);
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.25s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Page header (inner pages) ── */

.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 48px) clamp(20px, 5vw, 80px) clamp(48px, 6vh, 72px);
  overflow: hidden;
}

.page-hero--short {
  min-height: 45vh;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--overlay-rgb), 0.95), rgba(var(--overlay-rgb), 0.35));
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  line-height: 1.5;
}

.breadcrumb a {
  transition: color 0.25s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span[aria-hidden="true"] {
  margin: 0 8px;
  opacity: 0.4;
}

.breadcrumb__current {
  color: var(--text-primary);
  opacity: 0.85;
}

.page-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero__eyebrow a {
  transition: color 0.25s;
}

.page-hero__eyebrow a:hover {
  color: var(--accent);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* ── Category page grid ── */

.category-content {
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 80px);
}

.category-content__intro {
  max-width: 640px;
  margin-bottom: 56px;
}

.category-content__intro p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.product-card {
  background: var(--bg-secondary);
  overflow: hidden;
  transition: transform 0.3s;
  border-radius: var(--radius-sm);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: 24px;
}

.product-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.product-card__body p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Project page ── */

.project-intro {
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.project-intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.project-intro__meta-item {
  font-size: 0.8125rem;
}

.project-intro__meta-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project-intro__text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-intro__list h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-intro__list ul {
  list-style: none;
}

.project-intro__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9375rem;
}

.project-intro__list li::before {
  content: "—";
  color: var(--accent);
  margin-right: 12px;
}

.project-gallery {
  padding: 0 clamp(20px, 5vw, 80px) clamp(64px, 10vh, 100px);
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.project-gallery__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
}

.project-gallery__item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-gallery__item:hover img {
  transform: scale(1.03);
}

.cta-block {
  margin: 0 clamp(20px, 5vw, 80px) clamp(64px, 10vh, 100px);
  padding: clamp(48px, 6vh, 72px);
  background: var(--bg-secondary);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Related projects ── */

.related-projects {
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 80px);
}

.related-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.related-projects__card {
  display: block;
  transition: transform 0.35s;
}

.related-projects__card:hover {
  transform: translateY(-4px);
}

.related-projects__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  margin-bottom: 14px;
}

.related-projects__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.related-projects__card:hover .related-projects__image img {
  transform: scale(1.04);
}

.related-projects__card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__card {
    grid-template-columns: 1fr;
  }

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

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

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

  .project-intro {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__phone {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__logo-mark {
    height: 34px;
  }

  .nav__logo {
    font-size: 1rem;
    letter-spacing: 0.14em;
    gap: 8px;
  }

  .category-block {
    min-height: 72vh;
    min-height: 72dvh;
  }

  .category-block__bg img {
    object-position: center 35%;
  }

  .category-block__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .process__grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .project-gallery__item:first-child {
    aspect-ratio: 16 / 10;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery--catalog .gallery__item,
  .gallery--project .gallery__item {
    aspect-ratio: 4 / 3;
  }

  .gallery--project .gallery__item:first-child {
    aspect-ratio: 16 / 10;
  }

  .catalog-section--grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .related-projects__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }


@media (min-width: 769px) and (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--project .gallery__item:first-child {
    aspect-ratio: 16 / 9;
  }
}

/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 22, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1200px);
  height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lightbox__figure {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background 0.25s, border-color 0.25s;
  z-index: 2;
}

.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.lightbox__prev {
  left: 12px;
}

.lightbox__next {
  right: 12px;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.25s;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.lightbox__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox__counter {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .lightbox__dialog {
    width: 100vw;
    height: 100dvh;
    padding: 64px 0 88px;
    gap: 12px;
  }

  .lightbox__figure {
    border-radius: 0;
    background: transparent;
  }

  .lightbox__img {
    max-height: calc(100dvh - 160px);
    border-radius: var(--radius-sm);
  }

  .lightbox__btn {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 52px;
    height: 52px;
  }

  .lightbox__prev {
    left: calc(50% - 66px);
  }

  .lightbox__next {
    right: calc(50% - 66px);
  }

  .lightbox__close {
    top: 16px;
    right: 16px;
  }
}
