/* ═══════════════════════════════════════════════════════════
   SUBPAGE COMPONENTS
   Shared by: Artistic Casting / Restoration / Custom Manufacturing.
   Reuses tokens from header.css. Reuses .about-hero, .about-process /
   .process-block and .cta verbatim from collection.css — only the
   two sections without an existing equivalent (Introduction and
   Philosophy) and the Gallery grid get new, minimal rules here.
═══════════════════════════════════════════════════════════ */

/* ── Introduction ──────────────────────────────────────── */

.page-intro {
  padding: 7rem 0;
}

.page-intro__inner {
  max-width: 900px;
}

.page-intro__rule {
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 2rem;
}

.page-intro__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.9;
  color: var(--text-primary);
}

/* ── Philosophy ────────────────────────────────────────── */

.page-philosophy {
  padding: 2rem 0 8rem;
  text-align: center;
}

.page-philosophy__inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-philosophy__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.2;
  margin: 1rem 0 2rem;
}

.page-philosophy__text {
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 2;
}

/* ── Gallery ───────────────────────────────────────────── */

.page-gallery {
  padding: 0 0 8rem;
}

.page-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.page-gallery__item {
  position: relative;
  overflow: hidden;
}

.page-gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.page-gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.page-gallery__item:first-child img {
  aspect-ratio: 4 / 3;
}

.page-gallery__item:hover img {
  transform: scale(1.04);
}

/* ── Services cross-links gallery ─────────────────────────
   Shown at the bottom of each o-nas service subpage (casting /
   restoration / custom manufacturing), linking to the other two.
   Self-contained bordered card (frame reuses .material-card's
   language) so both cards read as one unit, not loose content. */

.services-gallery {
  padding: 2rem 0 8rem;
}

.services-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  gap: 2.5rem;
  margin-top: 4rem;
}

.services-gallery__card {
  display: flex;
  flex-direction: column;
  height: 100%;

  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );

  text-decoration: none;
  color: inherit;

  transition:
    border-color var(--t-base) var(--ease),
    transform    var(--t-base) var(--ease),
    box-shadow   var(--t-base) var(--ease);
}

.services-gallery__card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.6);
}

.services-gallery__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.services-gallery__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.55));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.services-gallery__card:hover .services-gallery__media::after {
  opacity: 1;
}

.services-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}

.services-gallery__card:hover .services-gallery__media img {
  transform: scale(1.06);
}

.services-gallery__num {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;

  font-family: var(--font-head);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(239, 230, 215, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);

  transition: transform var(--t-base) var(--ease);
}

.services-gallery__card:hover .services-gallery__num {
  transform: translateY(-4px);
}

.services-gallery__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 2.25rem 2.25rem;
}

.services-gallery__title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
}

.services-gallery__desc {
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.9;
  flex: 1;
}

.services-gallery__link {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.services-gallery__link-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  position: relative;
  transition: width var(--t-base) var(--ease);
}

.services-gallery__link-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}

.services-gallery__card:hover .services-gallery__link-line {
  width: 66px;
}

@media (max-width: 700px) {

  .services-gallery__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 900px) {

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

  .page-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {

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

  .page-gallery__item:first-child {
    grid-column: span 1;
  }

  .page-intro {
    padding: 4rem 0;
  }

  .page-philosophy {
    padding: 1rem 0 5rem;
  }
}


/* ─────────────────────────────────────────────────────────
   LEGAL PAGE — privacy policy / public offer prose
───────────────────────────────────────────────────────── */
.legal-page {
  padding-bottom: 6rem;
}

.legal-page__updated {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.legal-page__section {
  max-width: 46rem;
  margin: 0 0 2.75rem;
}

.legal-page__section h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
}

.legal-page__section p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.legal-page__section ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal-page__section li {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.legal-page__section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__section a:hover {
  color: var(--gold-hover, var(--gold));
}

.legal-page__contacts {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.legal-page__contacts p {
  margin: 0 0 0.4rem;
}

@media (max-width: 640px) {
  .legal-page__section h2 {
    font-size: 1.15rem;
  }
}

/* ─────────────────────────────────────────────────────────
   KOLLEKCII.HTML — inner-hero + catalog-card
   (these classes had no styling anywhere — page rendered
   unstyled/overlapping the header)
───────────────────────────────────────────────────────── */
.inner-hero {
  position: relative;
  padding: calc(var(--header-total-h) + 5rem) 0 4rem;
  background: #1e1309;
  overflow: hidden;
}

.inner-hero-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

.inner-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin: 1rem 0 1.5rem;
}

.inner-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.hero-texture,
.inner-hero-overlay {
  display: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.catalog-card { position: relative; }

.catalog-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  margin-bottom: 1.25rem;
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-spring);
}

.catalog-card:hover .catalog-card-image img { transform: scale(1.04); }

.catalog-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.5s;
}

.catalog-card:hover .catalog-card-overlay { background: rgba(0, 0, 0, 0.1); }

.catalog-card-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.catalog-card:hover .catalog-card-hover { opacity: 1; }

.catalog-card-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}

.catalog-card:hover .catalog-card-title { color: var(--gold); }

.catalog-card-bottom { min-height: 1em; }
.catalog-price { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .inner-hero { padding: calc(var(--header-total-h) + 3rem) 0 3rem; }
}
