@font-face {
  font-family: Montserrat;
  src: url('assets/montserrat-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  src: url('assets/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tilda Sans';
  src: url('assets/tilda-sans.woff2') format('woff2');
  font-weight: 250 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5f0;
  --ink: #211c1b;
  --muted: #635a55;
  --ruby: #8e1729;
  --ruby-dark: #6d0f1e;
  --line: #dcd3cb;
  --serif: Georgia, 'Times New Roman', serif;
  --heading: Montserrat, Arial, sans-serif;
  font: 16px/1.55 'Tilda Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--menu-height, 48px); }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, p, figure { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #c9435d; outline-offset: 4px; }

.header { padding-inline: 24px; }
.header-inner {
  max-width: 1060px;
  min-height: 114px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-social, .header-address { color: var(--muted); line-height: 1.4; }
.header-social { font-size: .85rem; }
.header-social .social { margin-top: 9px; }
.header-address { justify-self: end; text-align: right; text-decoration: none; font-size: 1.25rem; }
.brand { display: block; width: 160px; max-width: 100%; }
.brand img { width: 100%; height: auto; }
.social { display: flex; align-items: center; gap: 8px; }
.social a { display: block; border-radius: 50%; transition: transform .18s ease; }
.social a:hover { transform: translateY(-2px); }
.social img { object-fit: contain; }
.menu-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-inline: 24px;
  background: var(--paper);
}
.menu-bar nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px clamp(16px, 3vw, 42px);
  padding: 12px 0 15px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  letter-spacing: .095em;
  text-transform: uppercase;
  font-weight: 650;
  font-family: var(--heading);
}
.menu-bar nav a { text-decoration: none; }
.menu-bar nav a:hover, .menu-bar nav a[aria-current="page"], .header-address:hover { color: var(--ruby); }

.hero, .offer { isolation: isolate; position: relative; overflow: hidden; }
.hero {
  display: grid;
  place-items: center;
  min-height: 80vh;
  padding: 78px 24px 86px;
  color: #fff;
  background: #38272a;
  text-align: center;
}
.parallax-photo { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat fixed; }
.hero-photo { background-image: url('assets/hero.webp'); }
.offer-photo { background-image: url('assets/offer.webp'); }
.hero::before, .offer::before { content: ''; position: absolute; inset: 0; z-index: -1; }
.hero::before { background: linear-gradient(#0008, #000c); }
.hero-content { max-width: 680px; }
.eyebrow { color: var(--ruby); font-size: .72rem; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
.hero-eyebrow { color: #fff4eb; }
.hero h1 { font: 300 clamp(4.375rem, 10vw, 6.25rem)/1.1 var(--heading); margin: 8px 0 28px; }
.hero-description { max-width: 440px; margin: 0 auto 30px; font-size: clamp(1rem, 2vw, 1.18rem); color: #fff8f4; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 49px;
  padding: 11px 24px;
  border: 1px solid var(--ruby);
  border-radius: 100px;
  background: var(--ruby);
  color: #fff;
  font-size: .91rem;
  font-weight: 650;
  font-family: var(--heading);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { background: var(--ruby-dark); border-color: var(--ruby-dark); }
.button-outline { background: transparent; color: var(--ruby); }
.button-outline:hover { color: #fff; }

.section-pad { padding: clamp(68px, 9vw, 126px) 24px; }
.rent, .rules { text-align: center; }
h2 { font: 500 clamp(1.875rem, 3.1vw, 2.5rem)/1.2 var(--heading); }
.rent h2 { margin-top: 14px; }
.rent-description { margin-top: 22px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 27px; }
.offer { background: #574b45; }
.offer::before { background: linear-gradient(transparent, #0005); }
.offer-inner { min-height: 50vh; display: flex; align-items: center; max-width: 1280px; margin-inline: auto; padding: 42px clamp(24px, 9vw, 122px); }
.offer-card { background: var(--paper); padding: 35px clamp(24px, 5vw, 76px); text-align: center; }
.offer-card h2 { margin: 6px 0 11px; }
.offer-card small { display: block; color: var(--muted); margin-top: 9px; }

.projects { padding: clamp(58px, 7vw, 93px) clamp(10px, 2.2vw, 32px) 0; }
.projects-heading { max-width: 1280px; margin: 0 auto 25px; padding-inline: 4px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.projects-heading p, .rules > p { color: var(--muted); }
.gallery { display: grid; margin-inline: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 10px; }
.gallery-column { display: grid; gap: 9px; }
.gallery-item {
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio);
  background: #e5dbd5;
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-item::after {
  content: '+';
  position: absolute;
  bottom: 11px;
  right: 11px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s ease;
  font-size: 1.2rem;
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.rules { background: #fff; color: #141414; }
.rules h2 { font-size: 40px; }
.rules > p { max-width: 560px; margin: 40px auto 0; font-size: 20px; color: inherit; }
.accordion { max-width: 960px; margin: 80px auto 0; text-align: left; border-top: 1px solid #ededed; }
.accordion details { border-bottom: 1px solid #ededed; }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; cursor: pointer; min-height: 86px; padding: 20px 9px 20px 0; font: 400 24px/1.35 var(--heading); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; flex: 0 0 23px; height: 23px; color: #242424; background: linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; transition: transform .2s ease; }
.accordion summary:hover::after, .accordion summary:focus-visible::after { color: #c10000; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { margin: 0 30px 24px 0; font-size: 20px; line-height: 1.55; }

footer { padding: 0 clamp(24px, 5vw, 80px); }
.footer-inner { max-width: 1280px; margin-inline: auto; border-top: 1px solid var(--ruby); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 34px 0 42px; }
.footer-brand { width: 122px; }
.footer-inner .social { justify-self: end; }
address { display: grid; gap: 4px; justify-items: center; text-align: center; font-style: normal; font-size: .88rem; color: var(--muted); }
address a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

body:has(.lightbox[open]) { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 58px 66px 24px; border: 0; color: white; background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #140f11f5; }
.lightbox figure { width: max-content; max-width: 100%; }
.lightbox figure img { max-height: calc(100dvh - 132px); max-width: min(100%, calc(100vw - 132px)); margin-inline: auto; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: .9rem; }
#lightbox-count { white-space: nowrap; color: #e0cfd1; }
.lightbox-control { border: 1px solid #ffffff55; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; padding: 0 0 4px; position: absolute; background: #3c3034; color: #fff; font: 32px/1 var(--serif); cursor: pointer; }
.lightbox-control:hover { background: var(--ruby); }
.lightbox-close { top: 14px; right: 16px; }
.lightbox-prev, .lightbox-next { top: calc(50% - 22px); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

@media (max-width: 960px) {
  .rules h2 { font-size: 30px; }
  .rules > p { margin-top: 20px; }
  .accordion { margin-top: 45px; }
  .offer-inner { min-height: 500px; }
}

@media (max-width: 690px), (hover: none) {
  .parallax-photo { inset: -70px 0; background-attachment: scroll; transform: translateY(var(--parallax-offset, 0px)); }
}

@media (max-width: 690px) {
  .header, .menu-bar { padding-inline: 16px; }
  .header-inner { min-height: 90px; grid-template-columns: 1fr auto; gap: 12px; }
  .header-social { display: none; }
  .header-address { font-size: clamp(.875rem, 4.15vw, 1rem); }
  .header .brand { width: clamp(112px, 33vw, 128px); }
  .menu-bar nav { gap: 10px clamp(5px, calc(16vw - 46px), 16px); font-size: clamp(.71875rem, 3.1vw, .75rem); letter-spacing: .035em; }
  .hero { min-height: 480px; padding: 62px 20px; }
  .desktop-break { display: none; }
  .offer-inner { justify-content: center; min-height: 360px; }
  .projects-heading { display: block; }
  .projects-heading p { margin-top: 5px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .gallery-column { display: contents; }
  .gallery-item { order: var(--index); }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .footer-inner .social { justify-self: center; }
  .lightbox { padding: 56px 12px 90px; }
  .lightbox figure img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 190px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; }
  .lightbox-prev { left: calc(50% - 54px); }
  .lightbox-next { right: calc(50% - 54px); }
}

@media (max-width: 480px) {
  .offer-inner { min-height: 240px; padding-block: 24px; }
  .accordion summary { font-size: 20px; min-height: 68px; }
  .accordion details p { font-size: 16px; }
}

@media (max-width: 360px) {
  .menu-bar { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .parallax-photo { inset: 0; background-attachment: scroll; transform: none; }
}
