:root {
  color-scheme: light;
  --ink: #13201b;
  --muted: #66736d;
  --line: #d9e2de;
  --paper: #ffffff;
  --field: #f5f8f7;
  --green: #0d5f43;
  --green-2: #063f2c;
  --lime: #d7e021;
  --blue: #2f6df6;
  --coral: #f05f4b;
  --shadow: 0 18px 50px rgba(19, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--lime);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: 25px;
  height: 32px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
}

.language-picker select {
  min-height: 36px;
  max-width: 156px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-2);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-picker select:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 63, 44, 0.08);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-contact {
  color: var(--green);
  font-weight: 700;
}

.nav-account {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-2);
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.nav-account:hover,
.nav-account:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(6, 63, 44, 0.08);
  color: var(--green-2);
  outline: none;
}

.nav-account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 7vw, 82px) clamp(20px, 5vw, 64px) 44px;
  background:
    linear-gradient(135deg, rgba(13, 95, 67, 0.08), rgba(47, 109, 246, 0.05) 46%, rgba(240, 95, 75, 0.08)),
    var(--paper);
}

.hero-copy,
.hero-gallery,
.work-card,
.album-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(56px, 7.6vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-lead {
  max-width: 560px;
  color: #3c4944;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 580px;
  margin: 22px 0 0;
}

.hero-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(13, 95, 67, 0.18);
  border-radius: 999px;
  color: var(--green-2);
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-align: center;
}

.button.primary {
  color: #ffffff;
  background: var(--green-2);
  box-shadow: 0 12px 28px rgba(6, 63, 44, 0.22);
}

.button.secondary {
  color: var(--green-2);
  background: #ffffff;
  border-color: var(--line);
}

.button.secondary:hover,
.site-nav a:hover {
  color: var(--blue);
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.56fr;
  gap: 16px;
  min-height: 520px;
}

.hero-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 8px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(145deg, var(--green-2), var(--green));
  box-shadow: var(--shadow);
}

.hero-placeholder > img {
  width: clamp(96px, 14vw, 180px);
  height: auto;
  opacity: 0.24;
  filter: brightness(0) invert(1);
}

.hero-placeholder > div {
  display: grid;
  gap: 8px;
  text-align: right;
}

.hero-placeholder strong {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
}

.hero-placeholder span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.hero-image,
.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--field);
}

.hero-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-image.main {
  grid-row: span 2;
}

.hero-image.side {
  min-height: 252px;
}

.section {
  padding: clamp(48px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.section-heading {
  margin-bottom: 26px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.catalog-empty {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
}

.catalog-empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.catalog-empty p {
  margin-bottom: 0;
  color: var(--muted);
}

.album {
  background: var(--field);
  border-top: 1px solid var(--line);
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.album-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.album-preview.single {
  grid-template-columns: minmax(280px, 560px);
}

.album-preview > img,
.album-card {
  display: block;
  overflow: hidden;
  min-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.album-preview > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.album-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-2), #1f56c6);
}

.album-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13) url("./assets/chevron-right.svg") center / 20px 20px no-repeat;
}

.album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(6, 63, 44, 0.26));
  pointer-events: none;
}

.album-card-mark {
  position: absolute;
  right: -20px;
  bottom: -24px;
  z-index: 1;
  width: clamp(92px, 10vw, 150px);
  height: auto;
  opacity: 0.11;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
}

.album-card-copy {
  position: relative;
  z-index: 2;
  display: block;
}

.album-card-copy span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.album-card-copy strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
}

.work-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-card img {
  display: block;
  aspect-ratio: 4 / 3;
}

.work-card div {
  padding: 18px;
}

.work-card p {
  color: var(--muted);
  line-height: 1.6;
}

.work-card h3,
.work-card p,
.album-card strong,
.album-card span {
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer a {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 1280px) {
  .site-header {
    position: static;
  }

  .site-nav a:not(.nav-contact):not(.nav-account) {
    display: none;
  }

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

  .work-grid,
  .album-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    font-size: clamp(48px, 5.4vw, 72px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(30px, 3.4vw, 42px);
  }

  .hero-lead {
    max-width: 620px;
    font-size: clamp(17px, 1.8vw, 21px);
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    max-width: 680px;
  }

  .hero-placeholder {
    min-height: 360px;
  }

  .hero-image.main {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  .hero-image.side {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 960px) {
  .hero,
  .section {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero-copy,
  .hero-gallery {
    max-width: 720px;
  }

}

@media (max-width: 768px) {
  .site-header {
    position: static;
    align-items: center;
    min-height: 60px;
    padding: 10px 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .language-picker select {
    max-width: 72px;
    padding-right: 22px;
    padding-left: 9px;
    font-size: 13px;
  }

  .nav-contact {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .nav-account {
    min-height: 36px;
    padding: 0 11px;
  }

  .hero {
    gap: 22px;
    padding: 26px 16px 30px;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(40px, 11.2vw, 48px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(28px, 7.8vw, 34px);
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-tags {
    gap: 7px;
    margin-top: 16px;
  }

  .hero-tags span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-actions {
    display: none;
  }

  .button {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-gallery {
    gap: 10px;
  }

  .hero-placeholder {
    min-height: 260px;
    align-items: flex-end;
    padding: 24px;
  }

  .hero-placeholder > img {
    width: 84px;
  }

  .hero-placeholder > div {
    text-align: left;
  }

  .catalog-empty {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-image.side {
    display: none;
  }

  .hero-image.main {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 42px 16px;
  }

  .work-grid,
  .album-preview {
    gap: 12px;
  }

  .work-card div {
    padding: 14px;
  }

  .album-preview {
    grid-template-columns: 1fr;
  }

  .album-preview > img,
  .album-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-actions .button {
    width: 100%;
  }

}

@media (max-width: 420px) {
  .site-header {
    gap: 10px;
  }

  .brand strong {
    display: none;
  }

  .language-picker select {
    max-width: 58px;
  }

  .nav-contact {
    padding: 0 10px;
    font-size: 13px;
  }

  .nav-account {
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

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

  .hero-image.main {
    grid-column: auto;
  }

  .album-preview > img:not(:first-child) {
    display: none;
  }
}
