:root {
  --bg: #f5f3f0;
  --bg-soft: #ede8e3;
  --panel: #fffdf8;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --deep: #2d5247;
  --gold: #d4af37;
  --gold-soft: #e8c547;
  --green: #1a4d3e;
  --green-dark: #0f3428;
  --line: rgba(26, 20, 16, 0.14);
  --shadow: 0 26px 55px rgba(15, 52, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 520px at 12% 3%, rgba(26, 77, 62, 0.12), transparent 64%),
    radial-gradient(900px 400px at 92% 36%, rgba(15, 52, 40, 0.06), transparent 70%),
    linear-gradient(180deg, #f7f3eb 0%, #f2ece2 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5.25rem 0;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: #ece4d7;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  letter-spacing: 0.015em;
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 1rem;
}

p {
  margin: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  padding: 0.88rem 0;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(26, 77, 62, 0.95);
  border-bottom-color: rgba(212, 241, 232, 0.25);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #f6eee2;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(5.8rem, 9.5vw, 7.6rem);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(15, 52, 40, 0.14));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 77, 62, 0.88);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #0f3428;
}

.site-header.scrolled .main-nav a {
  color: rgba(247, 238, 223, 0.84);
}

.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a:focus-visible {
  color: #fff3dd;
}

.main-nav .nav-cta {
  border: 1px solid rgba(26, 77, 62, 0.5);
  border-radius: 999px;
  padding: 0.58rem 1.1rem;
  color: #1a4d3e;
  background: rgba(26, 77, 62, 0.08);
}

.site-header.scrolled .main-nav .nav-cta {
  color: #d4f1e8;
  background: rgba(26, 77, 62, 0.2);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  place-items: center;
  gap: 0.34rem;
}

.nav-toggle span {
  display: block;
  width: 1.44rem;
  height: 2px;
  border-radius: 99px;
  background: #f6ecd8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  padding-top: 8.8rem;
  padding-bottom: 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: 1.3rem;
}

.hero-copy {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 77, 62, 0.97), rgba(15, 52, 40, 0.95));
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 2.5vw, 2.6rem);
  border: 1px solid rgba(26, 77, 62, 0.5);
  box-shadow: var(--shadow);
  color: #e8f5f1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-copy:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 52, 40, 0.25);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 241, 232, 0.1);
  border-radius: 1.2rem;
  pointer-events: none;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.1vw, 4.1rem);
  line-height: 0.95;
  font-weight: 700;
}

.hero-copy h1 span {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  color: #7dd3c0;
  margin-top: 0.4rem;
}

.hero-lead {
  margin-top: 1rem;
  color: rgba(245, 238, 225, 0.9);
  max-width: 39ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 77, 62, 0.2);
}

.btn-primary {
  background: linear-gradient(120deg, #1a4d3e, #0f3428);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(120deg, #0f3428, #082620);
}

.btn-secondary {
  border-color: rgba(26, 77, 62, 0.6);
  color: #d4f1e8;
  background: rgba(26, 77, 62, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(26, 77, 62, 0.25);
  border-color: rgba(26, 77, 62, 0.8);
}

.hero-facts {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-facts li {
  border: 1px solid rgba(26, 77, 62, 0.25);
  border-radius: 0.85rem;
  background: rgba(26, 77, 62, 0.08);
  padding: 0.58rem 0.58rem 0.5rem;
  transition: all 0.2s ease;
}

.hero-facts li:hover {
  background: rgba(26, 77, 62, 0.15);
  border-color: rgba(26, 77, 62, 0.4);
}

.hero-facts strong {
  display: block;
  font-size: 0.92rem;
  color: #1a4d3e;
}

.hero-facts span {
  font-size: 0.66rem;
  color: rgba(245, 238, 225, 0.8);
}

.hero-media {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(26, 77, 62, 0.15);
  box-shadow: var(--shadow);
  position: relative;
  min-height: 520px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-media:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(15, 52, 40, 0.25);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.difference {
  padding-top: 3.8rem;
}

.difference-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 2rem;
  align-items: center;
}

.diamond-collage {
  position: relative;
  min-height: 420px;
}

.diamond {
  position: absolute;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: var(--shadow);
}

.diamond img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.diamond-main {
  width: 72%;
  height: 72%;
  left: 2%;
  top: 2%;
}

.diamond-sub {
  width: 58%;
  height: 58%;
  right: 0;
  bottom: 3%;
}

.difference-copy .eyebrow,
.process .eyebrow,
.journal .eyebrow,
.advisor .eyebrow {
  color: #1a4d3e;
}

.difference-copy p {
  color: var(--ink-soft);
  max-width: 48ch;
}

.progress-list {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.88rem;
}

.progress-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  transition: all 0.2s ease;
}

.progress-item:hover {
  border-color: rgba(26, 77, 62, 0.3);
  box-shadow: 0 8px 16px rgba(26, 77, 62, 0.1);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.progress-meta span {
  color: var(--ink-soft);
}

.progress-meta strong {
  color: #1a4d3e;
}

.progress-track {
  margin-top: 0.54rem;
  height: 6px;
  border-radius: 999px;
  background: #ece4d7;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  width: var(--value);
  background: linear-gradient(90deg, #1a4d3e, #0f3428);
}

.guidance {
  padding-top: 2.2rem;
}

.guidance-card {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 470px;
  position: relative;
  box-shadow: var(--shadow);
}

.guidance-card img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.guidance-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 3.4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(20, 15, 11, 0.02) 0%, rgba(20, 15, 11, 0.95) 72%);
  color: #efe4cf;
}

.guidance-overlay h2 {
  color: #f4ead8;
}

.guidance-overlay p {
  max-width: 56ch;
  color: rgba(239, 228, 207, 0.86);
}

.guidance-overlay .btn {
  margin-top: 1rem;
}

.process-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  border-radius: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.15rem 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(26, 77, 62, 0.3);
  box-shadow: 0 12px 24px rgba(26, 77, 62, 0.12);
  transform: translateY(-2px);
}

.step-number {
  display: inline-block;
  font-size: 1.75rem;
  font-family: "Cormorant Garamond", serif;
  color: #1a4d3e;
  line-height: 1;
}

.step-card h3 {
  margin-top: 0.28rem;
  font-size: 1.42rem;
}

.step-card p {
  margin-top: 0.46rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.text-link {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a4d3e;
}

.journal-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.journal-card {
  overflow: hidden;
  border-radius: 1.05rem;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 30px rgba(31, 24, 18, 0.08);
}

.journal-card img {
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
}

.journal-body {
  padding: 0.9rem 0.95rem 1rem;
}

.journal-meta {
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a4d3e;
}

.journal-card h3 {
  font-size: 1.28rem;
  line-height: 1.14;
  margin: 0.4rem 0 0.68rem;
}

.advisor {
  padding-bottom: 4.5rem;
}

.advisor-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.2rem;
  background: linear-gradient(130deg, rgba(26, 77, 62, 0.96), rgba(15, 52, 40, 0.94));
  border-radius: 1.5rem;
  border: 1px solid rgba(212, 241, 232, 0.25);
  box-shadow: var(--shadow);
  color: #e8f5f1;
  padding: clamp(1rem, 2.8vw, 2rem);
}

.advisor-copy h2 {
  color: #ffffff;
}

.advisor-copy p {
  color: rgba(232, 245, 241, 0.9);
  max-width: 48ch;
}

.metrics {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.metrics article {
  border: 1px solid rgba(212, 241, 232, 0.3);
  border-radius: 0.85rem;
  padding: 0.7rem 0.6rem;
}

.metrics strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1;
  color: #ffffff;
}

.metrics span {
  font-size: 0.67rem;
  color: rgba(232, 245, 241, 0.9);
}

.advisor-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.advisor-photo {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(212, 241, 232, 0.3);
  min-height: 420px;
}

.advisor-photo img {
  height: 100%;
  object-fit: cover;
}

.site-footer {
  background: #0f3428;
  color: #d4f1e8;
  border-top: 1px solid rgba(212, 241, 232, 0.25);
  padding: 2.4rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.3rem;
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-brand .brand-logo {
  width: clamp(6.6rem, 11vw, 8.4rem);
}

.site-footer h3 {
  font-size: 1.18rem;
  margin-bottom: 0.52rem;
}

.site-footer p,
.site-footer span,
.site-footer a {
  font-size: 0.82rem;
  color: rgba(212, 241, 232, 0.8);
}

.site-footer a {
  display: block;
  margin: 0.2rem 0;
}

.footer-bottom {
  margin-top: 1.24rem;
  border-top: 1px solid rgba(212, 241, 232, 0.2);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: rgba(212, 241, 232, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .difference-grid,
  .advisor-grid {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .advisor-photo {
    min-height: 360px;
  }

  .journal-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 4vw;
    width: min(300px, 92vw);
    background: rgba(26, 77, 62, 0.96);
    border: 1px solid rgba(212, 241, 232, 0.3);
    border-radius: 1rem;
    padding: 0.95rem;
    display: grid;
    gap: 0.84rem;
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 0.73rem;
    color: rgba(247, 238, 223, 0.84);
  }

  .main-nav .nav-cta {
    text-align: center;
    margin-top: 0.3rem;
    color: #d4f1e8;
    background: rgba(26, 77, 62, 0.2);
  }

  .hero {
    padding-top: 6.6rem;
  }

  .brand-logo {
    width: clamp(5.8rem, 18vw, 6.9rem);
  }

  .hero-facts,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 13vw, 2.8rem);
  }

  .hero-copy h1 span {
    font-size: clamp(1.2rem, 8vw, 1.7rem);
  }

  .brand-logo {
    width: min(5.6rem, 30vw);
  }

  .hero-actions,
  .advisor-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-facts,
  .journal-grid,
  .process-grid,
  .metrics,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .diamond-collage {
    min-height: 340px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

.section-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.service-chip-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.service-chip-row span {
  border: 1px solid rgba(26, 77, 62, 0.4);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a4d3e;
  background: rgba(26, 77, 62, 0.08);
}

.portfolio,
.catalog,
.plans {
  padding-top: 2.2rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.15rem;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink-soft);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.82rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.is-active,
.filter-btn:hover,
.filter-btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(120deg, #1a4d3e, #0f3428);
  border-color: #1a4d3e;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.92rem;
}

.work-card {
  margin: 0;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: all 0.3s ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(26, 77, 62, 0.15);
  border-color: rgba(26, 77, 62, 0.2);
}

.work-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-card figcaption {
  padding: 0.68rem 0.72rem 0.72rem;
}

.work-card h3 {
  font-size: 1.1rem;
  line-height: 1.03;
}

.work-card p {
  font-size: 0.77rem;
  color: var(--ink-soft);
  margin-top: 0.16rem;
}

.pagination {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  border: 1px solid rgba(26, 77, 62, 0.25);
  border-radius: 0.6rem;
  background: var(--panel);
  color: #1a4d3e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.06em;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(26, 77, 62, 0.1);
  border-color: rgba(26, 77, 62, 0.4);
  transform: translateY(-2px);
}

.pagination-btn:focus-visible {
  outline: 2px solid #1a4d3e;
  outline-offset: 2px;
}

.pagination-btn.is-active {
  background: linear-gradient(120deg, #1a4d3e, #0f3428);
  color: #ffffff;
  border-color: #1a4d3e;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

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

.catalog-card {
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(31, 24, 18, 0.08);
  transition: all 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 77, 62, 0.15);
  border-color: rgba(26, 77, 62, 0.2);
}

.catalog-image {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: transparent;
  padding: 0.45rem 0.9rem 0;
  filter: drop-shadow(0 18px 20px rgba(12, 24, 21, 0.16));
}

.catalog-body {
  padding: 0.8rem;
}

.catalog-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.catalog-code {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a4d3e;
}

.catalog-price {
  font-size: 0.98rem;
  color: #1a4d3e;
  font-weight: 700;
}

.catalog-card h3 {
  margin-top: 0.22rem;
  font-size: 1.3rem;
}

.catalog-copy {
  margin-top: 0.34rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.catalog-meta {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.catalog-meta span {
  border: 1px solid rgba(151, 124, 79, 0.28);
  border-radius: 999px;
  padding: 0.19rem 0.54rem;
  font-size: 0.64rem;
  color: #7d6030;
  background: #f6efdf;
}

.catalog-actions {
  margin-top: 0.72rem;
  display: flex;
  gap: 0.46rem;
}

.catalog-actions .btn {
  padding: 0.58rem 0.78rem;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  flex: 1;
}

.catalog-actions .btn-outline {
  border: 1px solid rgba(26, 77, 62, 0.3);
  color: #1a4d3e;
  background: rgba(26, 77, 62, 0.08);
}

.upload-note {
  margin-top: 0.78rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.upload-note code {
  background: rgba(26, 77, 62, 0.1);
  border-radius: 0.38rem;
  padding: 0.1rem 0.34rem;
  color: #1a4d3e;
  font-weight: 600;
}

.plans-grid {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.plan-card {
  border-radius: 0.95rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26, 77, 62, 0.12);
  border-color: rgba(26, 77, 62, 0.2);
}

.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.5rem;
}

.plan-head h3 {
  font-size: 1.36rem;
}

.plan-price {
  font-weight: 700;
  color: #7d5d2e;
  font-size: 1.02rem;
}

.plan-meta {
  margin-top: 0.44rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.plan-list {
  margin: 0.54rem 0 0;
  padding-left: 1.1rem;
}

.plan-list li {
  font-size: 0.78rem;
  color: #4f4336;
  margin: 0.14rem 0;
}

.plan-card .btn {
  margin-top: 0.64rem;
  width: 100%;
  padding: 0.55rem 0.72rem;
  font-size: 0.61rem;
}

.quote-panel {
  border-radius: 1.1rem;
  border: 1px solid rgba(224, 207, 171, 0.26);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem;
}

.quote-panel h3 {
  font-size: 1.56rem;
  color: #f4e8d2;
  margin-bottom: 0.54rem;
}

.quote-form {
  display: grid;
  gap: 0.54rem;
}

.quote-form label {
  display: grid;
  gap: 0.22rem;
}

.quote-form span {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 235, 221, 0.84);
}

.quote-form input,
.quote-form textarea {
  border: 1px solid rgba(224, 207, 171, 0.26);
  background: rgba(19, 15, 11, 0.45);
  color: #f7eddc;
  border-radius: 0.58rem;
  padding: 0.56rem 0.62rem;
  font-family: inherit;
  font-size: 0.86rem;
}

.quote-form textarea {
  resize: vertical;
  min-height: 5.8rem;
}

.quote-form .btn {
  width: 100%;
}

.quote-status {
  min-height: 1.1rem;
  font-size: 0.74rem;
  color: rgba(247, 237, 220, 0.85);
}

.quote-status.is-success {
  color: #f7eddc;
}

.quote-status.is-error {
  color: #ffc8bf;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 10, 8, 0.92);
  display: grid;
  grid-template-columns: 3.4rem 1fr 3.4rem;
  align-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.lightbox-figure img {
  max-width: min(92vw, 1080px);
  max-height: 78vh;
  width: auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(224, 207, 171, 0.24);
}

.lightbox-figure figcaption {
  color: #efe1c8;
  text-align: center;
  font-size: 0.88rem;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(224, 207, 171, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #f5e8cf;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  justify-self: start;
}

.lightbox-next {
  justify-self: end;
}

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

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

@media (max-width: 860px) {
  .section-note {
    font-size: 0.8rem;
  }

  .catalog-actions {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .portfolio-grid,
  .catalog-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .pagination-btn {
    font-size: 0.7rem;
    padding: 0.5rem 0.72rem;
  }

  .pagination-page {
    display: none;
  }

  .pagination-page.is-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
    padding: 0.7rem;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }

  .lightbox-figure figcaption {
    font-size: 0.78rem;
  }
}
