:root {
  --ink: #292522;
  --cream: #f8f5ef;
  --sand: #eee8df;
  --accent: #c76f52;
  --muted: #716a63;
  --line: rgba(41, 37, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

.wrap {
  width: min(1160px, calc(100% - 56px));
  margin: auto;
}

.hero {
  background: var(--sand);
  overflow: hidden;
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font: 700 25px/1 Manrope, sans-serif;
  letter-spacing: 2px;
  color: inherit;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: 100px;
}

.nav a {
  font-size: 14px;
  text-decoration: none;
  color: inherit;
}

.nav-book {
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.nav-book span {
  color: var(--accent);
  font-size: 17px;
  margin-left: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 555px;
}

.hero-copy {
  padding: 80px 0 45px;
}

.eyebrow,
.section-label {
  font: 600 12px/1.4 Manrope, sans-serif;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
}

.hero h1,
.manifesto h2,
.contact h2 {
  font: 500 clamp(54px, 6vw, 80px)/1.03 "Playfair Display", serif;
  letter-spacing: -3px;
  margin: 27px 0 25px;
}

.hero h1 em,
h2 em,
blockquote em {
  font-weight: 500;
}

.intro {
  font-size: 16px;
  line-height: 1.7;
  max-width: 380px;
  color: var(--muted);
  margin-bottom: 32px;
}

.button {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 17px 21px;
  transition: 0.25s;
}

.button span {
  font-size: 18px;
}

.button-dark {
  background: var(--ink);
  color: var(--cream);
}

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

.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 50px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

.hero-portrait {
  height: 500px;
  align-self: end;
  position: relative;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bottom {
  height: 105px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-bottom p {
  font-size: 13px;
  line-height: 1.55;
}

.scroll-link {
  font-size: 13px;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 11px;
  align-items: center;
}

.scroll-link span {
  font-size: 21px;
  color: var(--accent);
}

.number {
  font-size: 13px;
  font-weight: 600;
}

.manifesto {
  padding: 125px 0;
}

.manifesto-content {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 50px;
}

.manifesto h2 {
  font-size: clamp(45px, 5vw, 68px);
  margin: 0;
}

.manifesto-text {
  padding-bottom: 5px;
}

.manifesto-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 26px;
}

.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.works .text-link {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

.text-link span {
  color: var(--accent);
  margin-left: 10px;
  font-size: 18px;
}

.works {
  background: var(--ink);
  color: var(--cream);
  padding: 42px 0 72px;
  overflow: hidden;
}

.works-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.works .section-label {
  color: #c4bcb4;
}

.works-head p:last-child {
  font: 500 23px/1.25 "Playfair Display", serif;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 55px auto 38px;
  align-items: start;
}

.photo {
  margin: 0;
}

.photo figcaption {
  font: 600 10px/1 Manrope;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c4bcb4;
  margin-top: 12px;
  display: block;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.8);
}

.photo-a, .photo-b, .photo-c {
  height: auto;
}

.gallery-foot {
  margin-top: 32px;
  text-align: right;
}

.services {
  padding: 125px 0 135px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 38px;
}

.service-list article {
  min-height: 290px;
  padding: 24px 29px 60px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.service-list article:nth-child(3n) {
  border-right: 0;
}

.service-list article:nth-child(n+4) {
  border-bottom: 0;
}

.service-list article:nth-child(3n+1) {
  padding-left: 0;
}

.service-list article:not(:nth-child(3n+1)) {
  padding-left: 29px;
}

.service-list h3 {
  font: 500 29px/1.1 "Playfair Display", serif;
  letter-spacing: -1px;
  margin: 0 0 14px;
}

.service-list p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 240px;
  margin: 0;
}

.price {
  position: absolute;
  bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(199, 111, 82, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
}

.quote-section {
  height: 490px;
  position: relative;
  color: var(--cream);
  overflow: hidden;
  background: var(--ink);
}

.quote-photo {
  position: absolute;
  inset: 0;
}

.quote-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(32, 26, 23, 0.48);
}

.quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.5);
}

blockquote {
  position: absolute;
  left: max(28px, calc((100% - 1160px) / 2));
  top: 102px;
  margin: 0;
  font: 500 clamp(38px, 4vw, 58px) / 1.1 "Playfair Display", serif;
  letter-spacing: -2px;
}

.quote-sign {
  position: absolute;
  bottom: 31px;
  right: max(28px, calc((100% - 1160px) / 2));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.faq {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 60px;
  margin-top: 40px;
}

.faq-item h4 {
  font: 500 20px/1.3 "Playfair Display", serif;
  margin: 0 0 15px;
  letter-spacing: -0.5px;
}

.faq-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.map-section {
  padding-bottom: 125px;
}

.map-container {
  margin-top: 40px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: grayscale(1) opacity(0.8);
  transition: all 0.5s ease;
}

.map-container:hover {
  filter: grayscale(0) opacity(1);
}

.map-container iframe {
  display: block;
}

.contact {
  background: #eadbd2;
  padding-top: 104px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
}

.contact h2 {
  font-size: clamp(52px, 5vw, 72px);
  margin: 26px 0;
}

.contact-copy {
  font-size: 15px;
  line-height: 1.7;
  color: #5f5651;
  max-width: 330px;
}

.contact-actions {
  padding-top: 10px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  padding: 20px 0;
  border-bottom: 1px solid rgba(38, 36, 33, 0.25);
  transition: 0.25s;
}

.contact-button:first-child {
  border-top: 1px solid rgba(38, 36, 33, 0.25);
}

.contact-button:hover {
  padding-left: 8px;
}

.contact-button .icon {
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.contact-button .icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.contact-button.telegram .icon svg {
  width: 16px;
  height: 16px;
}

.contact-button.phone .icon svg {
  width: 16px;
  height: 16px;
}

.contact-button.avito .icon {
  background: var(--ink);
  color: var(--accent);
}

.contact-button.avito .icon svg {
  width: 18px;
  height: 18px;
}

.contact-button.max .icon {
  background: var(--ink);
  overflow: hidden;
  padding: 0;
}

.contact-button.max .icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.contact-button > span:nth-child(2) {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.contact-button small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #716862;
  margin-top: 3px;
}

.contact-button b {
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
}

.footer {
  border-top: 1px solid rgba(38, 36, 33, 0.25);
  margin-top: 105px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p,
.footer > a:last-child {
  font-size: 12px;
  color: #69615b;
  text-decoration: none;
}

.fab-mobile {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--cream);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 8px 24px rgba(199, 111, 82, 0.3);
  z-index: 100;
  transition: 0.3s;
}

.fab-mobile svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fab-mobile:active {
  transform: scale(0.9);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(41, 37, 34, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 40px, 580px);
  }
  .hero {
    min-height: auto;
  }
  .nav {
    height: 75px;
  }
  .nav-links {
    display: none;
  }
  .nav-book {
    font-size: 12px !important;
  }
  .hero-grid {
    display: block;
  }
  .hero-copy {
    padding: 60px 0 35px;
  }
  .hero h1 {
    font-size: 52px;
    letter-spacing: -2.7px;
    margin: 22px 0;
  }
  .intro {
    font-size: 15px;
  }
  .hero-note {
    margin-top: 36px;
  }
  .hero-portrait {
    height: 430px;
    margin: 0 -20px;
  }
  .hero-side {
    display: none;
  }
  .hero-bottom {
    height: 92px;
  }
  .hero-bottom p:first-child {
    display: none;
  }
  .number {
    font-size: 12px !important;
  }
  .manifesto {
    padding: 80px 0;
  }
  .manifesto-content,
  .contact-inner {
    display: block;
  }
  .manifesto h2 {
    font-size: 45px;
    letter-spacing: -2px;
    margin: 25px 0;
  }
  .manifesto-text {
    max-width: 380px;
  }
  .manifesto-text p {
    font-size: 15px;
  }
  .works {
    padding-top: 28px;
  }
  .gallery {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding: 0 20px;
    scroll-padding: 0 20px;
    margin: 40px 0 30px;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .photo {
    flex: 0 0 85%;
    height: auto !important;
    scroll-snap-align: start;
  }
  .works-head p:last-child {
    font-size: 19px;
  }
  .gallery-foot {
    text-align: left;
    margin-top: 20px;
    padding: 0 20px;
  }
  .services {
    padding: 80px 0;
  }
  .service-list {
    display: block;
    margin-top: 30px;
  }
  .service-list article {
    min-height: 220px;
    padding: 21px 0 !important;
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }
  .service-list h3 {
    font-size: 26px;
  }
  .quote-section {
    height: 410px;
  }
  blockquote {
    left: 20px;
    top: 40px;
    font-size: 38px;
    letter-spacing: -1.5px;
  }
  .quote-sign {
    right: 20px;
  }
  .faq {
    padding: 80px 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .map-section {
    padding-bottom: 80px;
  }
  .map-container {
    border-radius: 16px;
    height: 350px;
    filter: none;
  }
  .map-container iframe {
    height: 100%;
  }
  .contact {
    padding-top: 75px;
  }
  .contact h2 {
    font-size: 52px;
    letter-spacing: -2.5px;
  }
  .contact-actions {
    padding-top: 37px;
  }
  .footer {
    margin-top: 75px;
    height: 75px;
  }
  .footer p {
    display: none;
  }
  .fab-mobile {
    display: grid;
  }
}
