:root {
  --blush: #E0D3DE;
  --sand: #D8D0C1;
  --taupe: #CBB8A9;
  --sage: #B3B492;
  --ink: #6F686D;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: color-mix(in srgb, var(--sand) 88%, white);
  border-bottom: 1px solid var(--taupe);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: #4f4a4e;
}

.hero,
.section,
.footer {
  width: min(880px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 4.5rem 0 3.2rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--blush);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lead {
  max-width: 34rem;
  margin: 1.1rem auto 1.8rem;
  font-size: 1.12rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(0.96);
}

.section {
  padding: 0.5rem 0 3.4rem;
}

.section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin-bottom: 0.35rem;
}

.section-note {
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.table-wrap,
.contacts .contact-list {
  background: var(--blush);
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem 1.1rem;
  text-align: left;
}

th {
  background: var(--taupe);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr + tr td {
  border-top: 1px solid var(--taupe);
}

td:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--taupe);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contacts .contact-list {
  list-style: none;
  margin-bottom: 1.3rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
}

.contact-list li + li {
  border-top: 1px solid var(--taupe);
}

.contact-list span {
  opacity: 0.8;
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
}

.footer {
  padding: 0 0 2.2rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(111 104 109 / 55%);
  cursor: pointer;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  background: var(--sand);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgb(111 104 109 / 25%);
}

.modal-card img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink);
}

.modal-card figcaption {
  padding: 0.85rem 1.1rem 1.1rem;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--blush);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav {
    gap: 0.75rem;
    font-size: 0.88rem;
  }

  .brand-name {
    display: none;
  }

  td:last-child {
    white-space: normal;
  }

  .contact-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
}
