:root {
  --milk: #f8f4ef;
  --blush: #ead8d2;
  --rose: #a85f58;
  --brown: #493531;
  --ink: #251d1b;
  --white: #fffdfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--milk); color: var(--ink); font-family: "Onest", sans-serif; font-size: 17px; line-height: 1.65; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
body { overflow-x: hidden; }

.site-header { height: 88px; max-width: 1440px; margin: auto; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(48,39,36,.12); }
.brand { font-family: "Unbounded", sans-serif; font-size: 21px; font-weight: 500; letter-spacing: -.06em; }
.brand span { color: var(--rose); font-style: italic; }
nav { display: flex; gap: 34px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
nav a, .text-link, .socials a { transition: color .25s ease; }
nav a:hover, .text-link:hover, .socials a:hover { color: var(--rose); }
.location { padding: 9px 15px; border: 1px solid rgba(37,29,27,.35); border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.hero { min-height: calc(100vh - 88px); max-width: 1440px; margin: auto; padding: 7vw 5vw 5vw; display: grid; grid-template-columns: 1.3fr .7fr .15fr; align-items: center; gap: 3vw; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.eyebrow { margin: 0 0 22px; color: var(--rose); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; }
h1, h2 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 500; letter-spacing: -.065em; }
h1 { max-width: 760px; font-size: clamp(58px, 5.7vw, 84px); line-height: 1.02; overflow-wrap: normal; }
h1 em, .quote-section em { color: var(--rose); font-style: normal; font-weight: 400; }
.lead { max-width: 540px; margin: 34px 0; color: rgba(37,29,27,.82); font-size: 18px; line-height: 1.75; }
.text-link { display: inline-flex; gap: 45px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hero-photo { position: relative; height: min(68vh, 720px); margin: 0; }
.hero-photo::before { content: ""; position: absolute; inset: -18px 22px 22px -18px; z-index: -1; background: var(--blush); border-radius: 48% 48% 2px 2px; }
.hero-photo img { border-radius: 48% 48% 2px 2px; filter: saturate(.7) contrast(.92); }
.hero-photo figcaption { display: flex; justify-content: space-between; margin-top: 14px; color: rgba(48,39,36,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.hero-note { color: rgba(37,29,27,.68); font-family: "Unbounded", sans-serif; font-size: 12px; line-height: 2; writing-mode: vertical-rl; transform: rotate(180deg); }

.section { max-width: 1440px; margin: auto; padding: 130px 5vw; }
.section-number { color: var(--rose); font-family: "Unbounded", sans-serif; font-size: 14px; font-weight: 600; }
.about { display: grid; grid-template-columns: .25fr .75fr 1fr; gap: 5vw; border-top: 1px solid rgba(48,39,36,.12); }
h2 { font-size: clamp(54px, 6vw, 88px); line-height: 1.02; }
.about-text { max-width: 600px; padding-top: 40px; }
.large-text { margin: 0 0 30px; font-family: "Unbounded", sans-serif; font-size: clamp(19px, 1.7vw, 25px); font-weight: 400; line-height: 1.6; }
.about-text > p:not(.large-text), .service-list p, .small-note { color: rgba(37,29,27,.76); font-size: 16px; line-height: 1.8; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 55px; padding-top: 30px; border-top: 1px solid rgba(48,39,36,.12); }
.facts strong { display: block; font-family: "Unbounded", sans-serif; font-size: 25px; font-weight: 500; }
.facts span { color: rgba(37,29,27,.7); font-size: 13px; }

.works { max-width: none; padding-top: 130px; padding-bottom: 150px; background: var(--brown); color: var(--white); }
.works-heading { max-width: 1296px; margin: 0 auto 65px; display: flex; align-items: end; justify-content: space-between; }
.works-heading > p { color: rgba(255,253,250,.82); font-size: 15px; line-height: 1.8; text-align: right; }
.gallery { max-width: 1296px; margin: auto; display: grid; grid-template-columns: 1.1fr .8fr .9fr; align-items: start; gap: 28px; }
.gallery-item { height: 380px; margin: 0; }
.gallery-item.tall { height: 580px; }
.gallery-item.offset { margin-top: 110px; }
.gallery-item img { filter: saturate(.68); transition: filter .35s, transform .35s; }
.gallery-item:hover img { filter: saturate(.95); transform: translateY(-5px); }
.gallery-item figcaption { margin-top: 13px; color: rgba(255,253,250,.78); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }

.services { display: grid; grid-template-columns: .2fr .6fr 1.2fr; gap: 5vw; }
.service-list article { display: grid; grid-template-columns: 35px 1fr 1fr; gap: 25px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(48,39,36,.15); }
.service-list article:last-child { border-bottom: 1px solid rgba(48,39,36,.15); }
.service-list article > span { color: var(--rose); font-size: 10px; }
.service-list h3 { margin: 0; font-family: "Unbounded", sans-serif; font-size: 19px; font-weight: 500; line-height: 1.4; }
.service-list p { margin: 0; font-size: 15px; }

.quote-section { padding: 120px 5vw; background: var(--blush); text-align: center; }
.quote-section p { margin: 0; font-family: "Unbounded", sans-serif; font-size: clamp(31px, 4.3vw, 63px); font-weight: 400; line-height: 1.3; letter-spacing: -.055em; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; }
.contact-copy { padding-top: 45px; }
.socials { margin: 50px 0; border-top: 1px solid rgba(48,39,36,.15); }
.socials a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(48,39,36,.2); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.small-note { max-width: 500px; font-size: 14px; }
footer { max-width: 1296px; margin: auto; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(48,39,36,.12); color: rgba(37,29,27,.72); font-size: 13px; }

/* Tablets */
@media (max-width: 1024px) {
  .site-header { padding-inline: 32px; }
  nav { gap: 20px; }
  nav a { font-size: 12px; }

  .hero { min-height: auto; padding: 90px 32px 80px; grid-template-columns: 1fr .78fr; gap: 50px; }
  h1 { font-size: clamp(48px, 5.8vw, 60px); }
  .hero-photo { height: 560px; }
  .hero-note { display: none; }

  .section { padding: 100px 32px; }
  .about { grid-template-columns: 40px .75fr 1fr; gap: 32px; }
  .about-text { padding-top: 25px; }
  h2 { font-size: clamp(48px, 6.5vw, 68px); }
  .facts { gap: 16px; }

  .works-heading, .gallery { max-width: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 42px 24px; }
  .gallery-item, .gallery-item.tall { height: 480px; }
  .gallery-item.offset { margin-top: 0; }
  .gallery-item:last-child { grid-column: 2; }

  .services { grid-template-columns: 40px .55fr 1.3fr; gap: 32px; }
  .service-list article { grid-template-columns: 28px 1fr; gap: 10px 18px; }
  .service-list p { grid-column: 2; }
  .contacts { gap: 60px; }
  footer { margin-inline: 32px; }
}

/* Small tablets and large phones */
@media (max-width: 760px) {
  .site-header { height: 76px; padding-inline: 22px; }
  .brand { font-size: 18px; }
  nav { display: none; }
  .location { font-size: 10px; }

  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 62px 22px 72px; }
  .hero-copy { width: 100%; }
  h1 { max-width: 650px; font-size: clamp(45px, 10vw, 68px); overflow-wrap: break-word; }
  .lead { max-width: 620px; font-size: 17px; }
  .hero-photo { width: min(90%, 540px); height: min(680px, 105vw); margin: 35px auto 20px; }

  .section { padding: 82px 22px; }
  .about, .services, .contacts { grid-template-columns: 1fr; gap: 38px; }
  .section-number { display: none; }
  .about-text, .service-list { grid-column: 1; padding-top: 0; }
  .large-text { font-size: 19px; }
  .facts { margin-top: 38px; }

  .works-heading { display: block; margin-bottom: 45px; }
  .works-heading > p { margin-top: 22px; text-align: left; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item, .gallery-item.tall { height: 54vw; min-height: 320px; max-height: 460px; }

  .service-list article { padding: 25px 0; }
  .service-list h3 { font-size: 18px; }
  .quote-section { padding: 85px 22px; }
  .contact-copy { padding-top: 0; }
  footer { margin-inline: 22px; }
}

/* Phones */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-header { height: 68px; padding-inline: 18px; }
  .brand { font-size: 16px; }
  .location { padding: 6px 9px; letter-spacing: .05em; }

  .hero { padding: 48px 18px 65px; gap: 24px; }
  .eyebrow { margin-bottom: 16px; font-size: 11px; }
  h1 { font-size: clamp(36px, 11.4vw, 50px); line-height: 1.12; letter-spacing: -.075em; }
  h2 { font-size: clamp(40px, 12vw, 54px); line-height: 1.08; }
  .lead { margin: 26px 0; font-size: 16px; line-height: 1.7; }
  .text-link { gap: 24px; font-size: 12px; }
  .hero-photo { width: calc(100% - 16px); height: 118vw; max-height: 530px; margin-top: 28px; }
  .hero-photo::before { inset: -10px 12px 12px -10px; }

  .section { padding: 70px 18px; }
  .about, .services, .contacts { gap: 30px; }
  .about-text > p:not(.large-text), .service-list p, .small-note { font-size: 15px; }
  .facts { grid-template-columns: 1fr; gap: 15px; }
  .facts div { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(48,39,36,.1); }
  .facts strong { font-size: 21px; }

  .gallery { grid-template-columns: 1fr; gap: 50px; }
  .gallery-item, .gallery-item.tall { height: 125vw; min-height: 390px; max-height: 560px; }
  .gallery-item:last-child { grid-column: 1; }
  .gallery-item.offset { margin-top: 0; }

  .service-list article { grid-template-columns: 24px 1fr; }
  .service-list h3 { font-size: 17px; }
  .quote-section { padding: 72px 18px; }
  .quote-section p { font-size: clamp(27px, 8vw, 38px); }
  .socials { margin: 38px 0; }
  .socials a { gap: 15px; font-size: 12px; overflow-wrap: anywhere; }

  footer { margin-inline: 18px; padding-block: 24px; flex-wrap: wrap; gap: 12px 20px; }
  footer p { width: 100%; margin: 0; order: 3; }
}

@media (max-width: 360px) {
  .brand { font-size: 14px; }
  .location { font-size: 9px; }
  h1 { font-size: 34px; }
  .hero, .section { padding-inline: 15px; }
}
