@font-face {
  font-family: "Spinnaker Local";
  src: url("/assets/static.parastorage.com/tag-bundler/api/v1/fonts-cache/googlefont/woff2/s/spinnaker/v19/w8gYH2oyX-I0_rvR6HmX1XYKiumCB-Eo.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Local";
  src: url("/assets/static.parastorage.com/fonts/v2/2af1bf48-e783-4da8-9fa0-599dde29f2d5/v1/helvetica-w01-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Museo Slab Local";
  src: url("/assets/static.parastorage.com/fonts/v2/d7a52a8d-f522-4967-8df0-d255c159ce97/v1/museo-slab-w01-100.woff2") format("woff2");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

:root {
  --page: #ffffff;
  --ink: #5f6063;
  --muted: #747579;
  --line: #ded6c5;
  --accent: #ff7474;
  --shadow: rgba(34, 34, 34, 0.22);
  --content: 942px;
  --font-brand: "Spinnaker Local", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Helvetica Local", "Helvetica Neue", Arial, sans-serif;
  --font-light: "Museo Slab Local", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0;
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body::before {
  display: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

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

figure {
  margin: 0;
}

.site-shell {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0;
}

.site-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 23px;
}

.brand {
  font-family: var(--font-brand);
  font-size: 27px;
  line-height: 31px;
  color: #606064;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 293px;
  padding-top: 10px;
  font-family: var(--font-brand);
  font-size: 15px;
  color: #757575;
}

.desktop-nav a,
.mobile-nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 10px;
  text-decoration: none;
}

.desktop-nav a[aria-current="page"],
.desktop-nav a:hover,
.mobile-nav a[aria-current="page"],
.mobile-nav a:hover {
  color: var(--accent);
}

.desktop-nav a[aria-current="page"] {
  border-bottom-color: #111;
}

.mobile-menu {
  display: none;
}

.menu-trigger {
  width: 135px;
  height: 135px;
  border: 16px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1;
  list-style: none;
  user-select: none;
}

.menu-trigger::-webkit-details-marker {
  display: none;
}

.mobile-nav {
  position: absolute;
  right: 0;
  top: 232px;
  z-index: 10;
  min-width: 220px;
  padding: 22px 26px;
  border: 1px solid #eee8dc;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 18px;
  font-family: var(--font-brand);
  font-size: 18px;
}

.site-main {
  min-height: 56vh;
}

.home-main {
  padding-bottom: 40px;
}

.home-photo {
  width: min(423px, 100%);
  margin: 37px auto 47px;
}

.home-photo img {
  width: 100%;
}

.news {
  max-width: 700px;
  margin-left: 121px;
}

.news h1,
.page-title {
  margin: 0 0 58px;
  font-family: var(--font-light);
  font-size: 31px;
  font-weight: 100;
  line-height: 1.2;
  color: #c7c7c7;
}

.page-title {
  margin-bottom: 31px;
}

.news h1 {
  margin-bottom: 31px;
  font-size: 22px;
  color: #5c5d60;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.1em;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.news-date {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.news-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.page-main {
  padding-top: 66px;
  padding-bottom: 90px;
}

.page-title,
.works-list,
.text-page,
.contact-block {
  margin-left: 153px;
}

.works-list {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.5;
}

.works-list a {
  text-decoration: none;
}

.works-list a:hover {
  color: var(--accent);
}

.portfolio-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px 110px;
}

@media (min-width: 761px) {
  .portfolio-main {
    position: relative;
    padding-top: 26px;
  }

  .portfolio-main .portfolio-head {
    position: absolute;
    top: 10px;
    left: 110px;
    margin: 0;
  }
}

.back-link {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #c9c9c9;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 45px;
  line-height: 1;
}

.back-link:hover {
  background: #bcbcbc;
  color: #fff;
}

.portfolio-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gallery-grid {
  width: min(570px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 auto;
}

.gallery-item {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f6f6f6;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 22px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  display: grid;
  place-items: center;
  color: #5d5d5d;
  text-decoration: none;
  font-family: var(--font-brand);
}

.lightbox-close {
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  font-size: 34px;
}

.lightbox-prev,
.lightbox-next {
  align-self: center;
  font-size: 52px;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox-figure {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.text-page {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.65;
}

.text-page p {
  margin: 0 0 16px;
}

.text-page .section-label {
  margin-top: 32px;
  margin-bottom: 10px;
}

.contact-block {
  display: grid;
  gap: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  margin: 0;
}

.contact-row a {
  text-decoration: none;
}

.contact-instagram img {
  width: 39px;
  height: 39px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-top: 34px;
  padding-bottom: 56px;
  color: #606064;
}

.social-links {
  display: flex;
  gap: 13px;
}

.social-links a {
  display: block;
}

.social-links img {
  width: 28px;
  height: 28px;
}

.copyright {
  font-size: 12px;
  line-height: 1.4;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  font-size: 20px;
  text-align: center;
}

@media (max-width: 760px) {
  html {
    background: #ffffff;
  }

  body {
    width: 100%;
    margin: 0;
    min-height: 100vh;
    box-shadow: none;
  }

  body::before {
    display: none;
  }

  .site-shell {
    padding: 0 clamp(24px, 6vw, 44px);
  }

  .site-header {
    padding-top: 31px;
    padding-bottom: 42px;
    gap: 20px;
  }

  .brand {
    font-size: 28px;
    line-height: 37px;
    white-space: nowrap;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    flex: 0 0 auto;
  }

  .menu-trigger {
    width: 76px;
    height: 76px;
    border-width: 8px;
    font-size: 13px;
  }

  .mobile-nav {
    top: 126px;
    right: clamp(24px, 6vw, 44px);
  }

  .home-main {
    padding-bottom: 56px;
  }

  .home-photo {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 98px;
  }

  .page-title {
    margin-bottom: 22px;
    font-size: 31px;
  }

  .news {
    max-width: none;
    margin-left: 0;
  }

  .news h1 {
    margin-bottom: 31px;
    font-size: 20px;
  }

  .news-item {
    display: block;
  }

  .news-date {
    margin-bottom: 28px;
  }

  .news-date,
  .news-item p {
    font-size: 14px;
    line-height: 1.45;
  }

  .news-list {
    gap: 42px;
  }

  .page-main {
    padding-top: 0;
    padding-bottom: 76px;
  }

  .page-title,
  .works-list,
  .text-page,
  .contact-block {
    margin-left: 0;
  }

  .works-list,
  .portfolio-title {
    font-size: 16px;
  }

  .portfolio-head {
    margin-left: 0;
    margin-bottom: 18px;
  }

  .back-link {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery-caption {
    font-size: 14px;
  }

  .lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    grid-template-rows: 52px minmax(0, 1fr) auto;
    padding: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 36px;
  }

  .text-page {
    font-size: 16px;
  }

  .contact-block {
    font-size: 16px;
  }

  .site-footer {
    padding-top: 42px;
    padding-bottom: 46px;
  }
}

@media (max-width: 520px) {
  body {
    width: 100%;
    margin: 0;
    min-height: 100vh;
  }

  .site-shell {
    padding: 0 22px;
  }

  .site-header {
    padding-top: 31px;
    padding-bottom: 42px;
  }

  .brand {
    font-size: 28px;
  }

  .menu-trigger {
    width: 76px;
    height: 76px;
    border-width: 8px;
    font-size: 13px;
  }

  .mobile-nav {
    top: 126px;
    right: 22px;
  }
}
