:root {
  --ink: #181613;
  --muted: #70695f;
  --paper: #f7f3ed;
  --surface: #fffaf3;
  --line: #ded4c5;
  --wood: #9b5f36;
  --wood-dark: #5b3726;
  --green: #3b5743;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(34, 25, 17, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 237, 0.88);
  border-bottom: 1px solid rgba(222, 212, 197, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  gap: 0;
  min-width: 112px;
}

.brand__name {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.brand__tagline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a,
.site-footer nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after,
.site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--wood);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-footer nav a:hover::after {
  transform: scaleX(1);
}

.header-contacts {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.header-contacts a:hover,
.contact-links a:hover {
  color: var(--wood-dark);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: clamp(30px, 4.5vw, 60px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 64px);
}

.hero__content,
.section-copy,
.section-heading {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wood);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.02;
}

.hero__lead,
.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

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

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

.button--primary {
  color: var(--white);
  background: var(--ink);
}

.button--primary:hover {
  background: var(--wood-dark);
  border-color: var(--wood-dark);
}

.button--ghost {
  background: transparent;
}

.button--ghost:hover {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

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

.hero__media img {
  width: 100%;
  height: min(60svh, 620px);
  min-height: 380px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero__note {
  position: absolute;
  right: clamp(14px, 4vw, 32px);
  bottom: clamp(14px, 4vw, 32px);
  width: min(230px, 52%);
  padding: 18px;
  color: var(--white);
  background: rgba(24, 22, 19, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.hero__note span {
  display: block;
  margin-bottom: 5px;
  color: #d8c3aa;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__note strong {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.05;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.features article:last-child {
  border-right: 0;
}

.features span {
  display: block;
  margin-bottom: 42px;
  color: var(--wood);
  font-size: 13px;
  font-weight: 800;
}

.features h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.4vw, 34px);
}

.features p {
  max-width: 350px;
  color: var(--muted);
}

.about,
.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  padding: clamp(64px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

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

.about__portrait {
  width: min(420px, 82%);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(230px, 46%);
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(34, 25, 17, 0.14);
}

.projects {
  padding: clamp(64px, 10vw, 124px) clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: var(--surface);
}

.projects .section-heading p {
  color: #c7bbaa;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
  margin-top: clamp(30px, 5vw, 58px);
}

.gallery__item {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #2c2924;
  cursor: zoom-in;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, opacity 320ms ease;
}

.gallery__item:hover img {
  opacity: 0.84;
  transform: scale(1.05);
}

.contact {
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--wood-dark);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(34, 25, 17, 0.09);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.contact-form label span {
  color: var(--muted);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfc3b3;
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--ink);
  background: var(--white);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 4px rgba(155, 95, 54, 0.14);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 14, 12, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, 100%);
  max-height: 86svh;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    position: relative;
    z-index: 31;
    display: grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .nav-toggle span {
    width: 19px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    display: grid;
    gap: 22px;
    justify-items: start;
    padding: 96px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(34, 25, 17, 0.16);
    transform: translateY(-110%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 22px;
  }

  .header-contacts {
    display: none;
  }

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

  .hero__media {
    min-height: 320px;
  }

  .hero__media img {
    height: 58svh;
    min-height: 320px;
  }

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

  .features article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .features article:last-child {
    border-bottom: 0;
  }

  .features span {
    margin-bottom: 20px;
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about__visual {
    min-height: 360px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }
}

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

  h1 {
    font-size: 44px;
    line-height: 1.02;
  }

  h2 {
    font-size: 34px;
  }

  .hero {
    padding: 34px 16px 52px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .hero__note {
    width: calc(100% - 28px);
  }

  .about,
  .projects,
  .contact {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about__visual {
    min-height: 310px;
  }

  .about__portrait {
    width: 74%;
  }

  .about__badge {
    width: 44%;
    padding: 12px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
