:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-soft: #f3efe6;
  --text: #151411;
  --muted: #666057;
  --line: rgba(175, 131, 45, 0.26);
  --gold: #b8862f;
  --gold-strong: #8e651c;
  --shadow: 0 24px 80px rgba(47, 38, 23, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.hero-content,
.section,
.site-header,
.site-footer,
.mobile-menu {
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--gold);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas:
    ". brand phone"
    ". nav .";
  align-items: center;
  gap: 8px 24px;
  padding: 16px clamp(18px, 4vw, 56px) 18px;
  background: rgba(251, 250, 247, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(251, 250, 247, 0.94);
  border-color: rgba(21, 20, 17, 0.08);
}

.brand {
  grid-area: brand;
  justify-self: center;
  position: relative;
  display: inline-grid;
  align-items: center;
  padding: 28px 4px 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.7vw, 4.75rem);
  line-height: 0.86;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}

.brand::after {
  content: "";
  width: 42%;
  height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, #c79a4b, #8b6a2f, transparent);
}

.brand-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  filter: drop-shadow(0 12px 26px rgba(78, 54, 22, 0.14));
}

.brand-word::before,
.brand-word::after {
  content: "";
  position: absolute;
  top: -0.42em;
  width: 50%;
  height: 0.055em;
  background: currentColor;
}

.brand-word::before {
  left: 0.02em;
  background: #c79a4b;
  transform: rotate(-11deg);
  transform-origin: right center;
}

.brand-word::after {
  right: 0.02em;
  background: #8b6a2f;
  transform: rotate(11deg);
  transform-origin: left center;
}

.brand-main {
  font-weight: 520;
}

.brand-accent {
  position: relative;
  margin-left: 0.03em;
  color: #8b6a2f;
  font-weight: 760;
}

.brand-accent::before {
  content: "";
  position: absolute;
  left: 0.07em;
  right: 0.08em;
  top: 0.08em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0.82);
  transform-origin: center;
}

.nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a,
.mobile-menu a,
.site-footer a {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav a:hover,
.mobile-menu a:hover,
.site-footer a:hover {
  color: var(--gold-strong);
}

.nav a,
.mobile-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-featured {
  color: var(--gold-strong) !important;
  background: transparent;
  border-color: transparent !important;
  font-weight: 800;
}

.nav a.is-active,
.mobile-menu a.is-active,
.nav-featured.is-active {
  color: #ffffff !important;
  background: var(--gold);
  border-color: var(--gold) !important;
  font-weight: 800;
}

.nav-featured:hover,
.nav a.is-active:hover,
.mobile-menu a.is-active:hover {
  color: #ffffff !important;
  background: var(--gold-strong);
  border-color: var(--gold-strong) !important;
}

.header-phones {
  grid-area: phone;
  justify-self: end;
  display: grid;
  gap: 2px;
  text-align: right;
}

.header-phone {
  color: var(--gold-strong);
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(21, 20, 17, 0.14);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span[aria-hidden="true"]:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span[aria-hidden="true"]:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 70px 14px auto;
  z-index: 35;
  display: none;
  padding: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(21, 20, 17, 0.1);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  padding: 13px 10px;
  color: var(--text);
  border-bottom: 1px solid rgba(21, 20, 17, 0.08);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 190px clamp(18px, 5vw, 72px) 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.95) 0%, rgba(251, 250, 247, 0.78) 36%, rgba(251, 250, 247, 0.22) 76%),
    linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.16) 46%, rgba(251, 250, 247, 0.74) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  max-width: 820px;
  font-size: clamp(2.2rem, 5.4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.hero-lead {
  width: min(640px, 100%);
  margin: 28px 0 0;
  color: #3d372f;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--gold);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #ffffff;
}

.btn-secondary {
  color: var(--gold-strong);
  background: rgba(255, 255, 255, 0.7);
}

.hero-note {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 42px;
  z-index: 3;
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-note span {
  padding-left: 12px;
  border-left: 1px solid var(--gold);
}

.section {
  padding: clamp(76px, 10vw, 140px) clamp(18px, 5vw, 72px);
}

.split,
.section-heading,
.areas-grid,
.timeline,
.why,
.contact-panel,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 7vw, 100px);
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 1.04rem;
}

.copy p:first-child {
  margin-top: 0;
}

.intro h2 {
  max-width: 640px;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.12;
}

.band {
  background: linear-gradient(180deg, #ffffff 0%, #f4f0e8 100%);
  border-top: 1px solid rgba(21, 20, 17, 0.07);
  border-bottom: 1px solid rgba(21, 20, 17, 0.07);
}

.section-heading {
  margin-bottom: clamp(34px, 6vw, 62px);
}

.section-heading h2 {
  max-width: 780px;
}

.section-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.area-card {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(21, 20, 17, 0.08);
  border-radius: 6px;
}

.intro-areas {
  margin-top: clamp(34px, 6vw, 58px);
}

.intro-areas .area-card {
  min-height: 220px;
}

.area-card p,
.timeline p,
.why-item p,
.contact-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.card-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.realizations {
  background: #fbfaf7;
}

.realizations-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.realization-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(21, 20, 17, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(47, 38, 23, 0.09);
}

.realization-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.realization-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 210px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.realization-photo:hover img,
.realization-photo:focus-visible img {
  transform: scale(1.035);
}

.realization-photo:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.realization-card div {
  padding: 24px;
}

.realization-tag {
  margin: 0 0 10px;
  color: var(--gold-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realization-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  padding: clamp(18px, 4vw, 42px);
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-frame {
  grid-column: 2;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.gallery-frame img {
  max-width: min(1080px, 100%);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.gallery-frame figcaption {
  color: #ffffff;
  font-weight: 800;
  text-align: center;
}

.gallery-close,
.gallery-arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #17130d;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.gallery-close:hover,
.gallery-arrow:hover {
  transform: translateY(-1px);
  background: #ffffff;
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.gallery-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 2.7rem;
}

.gallery-prev {
  grid-column: 1;
  justify-self: end;
}

.gallery-next {
  grid-column: 3;
  justify-self: start;
}

.timeline {
  display: grid;
  gap: 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(21, 20, 17, 0.1);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
}

.why {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 7vw, 96px);
}

.why h2 {
  max-width: 620px;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.12;
}

.why-list {
  display: grid;
  gap: 0;
}

.process-reasons {
  width: min(var(--max), 100%);
  margin: clamp(28px, 5vw, 54px) auto 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-item {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(21, 20, 17, 0.1);
}

.contact {
  background:
    radial-gradient(circle at 72% 20%, rgba(184, 134, 47, 0.11), transparent 34%),
    #f7f4ed;
}

.contact-panel {
  padding: clamp(28px, 6vw, 56px);
  background: linear-gradient(135deg, #ffffff, #f4f0e8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel > p {
  max-width: 620px;
  font-size: 1.04rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.contact-links a,
.contact-links address {
  min-height: 92px;
  padding: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(21, 20, 17, 0.09);
  border-radius: 6px;
  font-style: normal;
  font-weight: 750;
}

.contact-links a:hover {
  color: var(--gold-strong);
  border-color: var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px) 36px;
  color: var(--muted);
  border-top: 1px solid rgba(21, 20, 17, 0.08);
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand . menu";
  }

  .nav,
  .header-phones {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: block;
  }

  .menu-toggle {
    grid-area: menu;
  }

  .brand {
    justify-self: start;
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }

  .hero {
    min-height: 86vh;
    padding-top: 150px;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
    flex-wrap: wrap;
  }

  .split,
  .why {
    grid-template-columns: 1fr;
  }

  .process-reasons {
    grid-template-columns: 1fr;
  }

  .areas-grid,
  .realizations-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .area-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 30px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .hero {
    min-height: 92vh;
    padding: 132px 18px 46px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(251, 250, 247, 0.97) 0%, rgba(251, 250, 247, 0.8) 100%),
      linear-gradient(0deg, rgba(251, 250, 247, 0.98) 0%, rgba(251, 250, 247, 0.14) 52%, rgba(251, 250, 247, 0.74) 100%);
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .gallery-modal {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    padding: 18px;
  }

  .gallery-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-frame img {
    max-height: 68vh;
  }

  .gallery-prev,
  .gallery-next {
    grid-row: 2;
    margin-top: 12px;
  }

  .gallery-prev {
    grid-column: 1;
    justify-self: end;
  }

  .gallery-next {
    grid-column: 2;
    justify-self: start;
  }

  .timeline li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .timeline span {
    width: 38px;
    height: 38px;
  }

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