﻿:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --ink: #171717;
  --muted: #68645d;
  --line: #dad4ca;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #d8d2c8;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(18px);
}
.brand { font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); }
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  padding: clamp(22px, 4vw, 52px);
}
.hero-media {
  min-height: 540px;
  height: calc(100vh - 150px);
  max-height: 760px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), transparent), #d8d2c8;
}
.hero-media img { height: 100%; }
.hero-copy { max-width: 560px; padding-bottom: clamp(20px, 7vh, 72px); }
.eyebrow,
.section-kicker { margin: 0 0 12px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(38px, 6vw, 76px); line-height: 0.98; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.1; }
.hero-copy p:not(.eyebrow), .section > p, .about > p { color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}
.button.primary { background: var(--ink); color: #fff; }
.button.secondary:hover { background: #ede8df; }
.section,
.about,
.contact,
.category-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 80px);
  padding: 84px clamp(18px, 4vw, 52px) 38px;
  border-top: 1px solid var(--line);
}
.intro { padding-top: 70px; }
.category-head { display: flex; flex-direction: column; gap: 4px; }
.subcategory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subcategory-grid.single-column { grid-template-columns: minmax(0, 1fr); }
.subcategory { min-width: 0; }
.subcategory-head { margin-bottom: 14px; }
.subcategory-head p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.photo-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}
.photo-card img { aspect-ratio: var(--ratio, 4 / 5); }
.photo-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font-size: 13px; }
.photo-meta strong { color: var(--ink); font-size: 14px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-list a,
.contact-list span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.52);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 52px);
  color: var(--muted);
  font-size: 13px;
}
.lightbox {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 0;
  background: #101010;
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.74); }
.lightbox img { width: 100%; height: min(78vh, 820px); object-fit: contain; background: #101010; }
.lightbox p { margin: 0; padding: 14px 18px 18px; color: #ddd; }
.icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
@media (max-width: 960px) {
  .subcategory-grid,
  .photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-media { min-height: 360px; height: 58vh; }
  .hero-copy { padding-bottom: 24px; }
  .section,
  .about,
  .contact,
  .category-block { grid-template-columns: 1fr; padding-top: 58px; }
  .footer { flex-direction: column; }
}
