* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f5ef;
  color: #000;
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  color: #000;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.875rem);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h4 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  letter-spacing: 0;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(1240px, 100% - 96px);
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
}
.site-header__logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .site-header__logo {
    width: 38px;
    height: 38px;
  }
}
.site-header__brand-name {
  color: #000;
  font-family: "Comforter", cursive;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
}
@media (max-width: 600px) {
  .site-header__brand-name {
    font-size: 32px;
  }
}
@media (max-width: 800px) {
  .site-header {
    width: calc(100% - 48px);
  }
}
@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 40px);
    min-height: 78px;
  }
}

.button {
  min-height: 54px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #691414;
  border-radius: 3px;
  background: #691414;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover {
  transform: translateY(-2px);
  background: #000;
}
.button:focus-visible {
  outline: 3px solid rgba(207, 141, 120, 0.7);
  outline-offset: 4px;
}
.button--small {
  min-height: 43px;
  padding: 0 17px;
  font-size: 12px;
}
@media (max-width: 600px) {
  .button--small {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
  }
}
@media (max-width: 600px) {
  .button {
    min-height: 50px;
    padding: 0 17px;
    font-size: 12px;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 650px;
  background-color: #f7f5ef;
}
.hero__content {
  align-self: center;
  justify-self: end;
  padding: 132px 0px 72px max(48px, (100vw - 1240px) / 2);
}
.hero__visual {
  min-height: 650px;
  background-image: linear-gradient(90deg, #f7f5ef 0%, rgba(247, 245, 239, 0.9) 12%, rgba(247, 245, 239, 0.48) 31%, rgba(247, 245, 239, 0.08) 53%, rgba(247, 245, 239, 0) 68%), url("../images/main-photo.jpg");
  background-position: left center, 60% center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.hero__title {
  margin: 0 0 24px;
  font-family: "Lora", Georgia, serif;
  font-size: clamp(52px, 6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
@media (max-width: 800px) {
  .hero__title {
    font-size: clamp(48px, 7vw, 64px);
  }
}
@media (max-width: 600px) {
  .hero__title {
    max-width: 480px;
    margin-bottom: 19px;
    font-size: clamp(42px, 12vw, 58px);
  }
}
.hero__text {
  max-width: 570px;
  margin: 0;
  color: #000;
  font-size: 17px;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .hero__text {
    max-width: 440px;
    font-size: 15px;
  }
}
.hero__actions {
  margin-top: 31px;
  display: flex;
  align-items: center;
  gap: 26px;
}
@media (max-width: 600px) {
  .hero__actions {
    gap: 18px;
  }
}
.hero__secondary-link {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease;
}
.hero__secondary-link:hover {
  border-color: #000;
  color: #000;
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__visual {
    min-height: clamp(300px, 48vw, 460px);
    order: -1;
    background-image: linear-gradient(180deg, rgba(247, 245, 239, 0) 48%, rgba(247, 245, 239, 0.35) 70%, #f7f5ef 100%), url("../images/main-photo.jpg");
    background-position: center bottom, center 42%;
    background-size: cover, cover;
  }
  .hero__content {
    width: min(100% - 48px, 760px);
    justify-self: center;
    padding: 42px 0 56px;
  }
}
@media (max-width: 600px) {
  .hero__visual {
    min-height: 300px;
    background-position: center bottom, 60% center;
  }
  .hero__content {
    width: calc(100% - 40px);
    padding: 28px 0 42px;
  }
}

.delivery {
  padding: 88px 48px 96px;
  background: #fff;
}
.delivery__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
}
.delivery__title {
  margin-bottom: 48px;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  text-align: center;
}
.delivery__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.delivery__step {
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}
.delivery__step p {
  margin: 0;
  font-size: 20px;
}
.delivery__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #691414;
}
.delivery__icon svg {
  width: 50px;
  height: 50px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 800px) {
  .delivery {
    padding: 68px 32px 76px;
  }
  .delivery__steps {
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .delivery {
    padding: 52px 20px 60px;
  }
  .delivery__title {
    margin-bottom: 30px;
  }
  .delivery__steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.gallery {
  padding: 82px 0 0;
  background: #f7f5ef;
}
.gallery__title {
  margin: 0 24px 48px;
  text-align: center;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery__item::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
}
.gallery__item:hover::after, .gallery__item:focus-visible::after {
  opacity: 1;
}
.gallery__item:focus-visible {
  z-index: 1;
  outline: 3px solid #691414;
  outline-offset: -3px;
}
.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.gallery__item:hover img {
  transform: scale(1.04);
}
@media (max-width: 800px) {
  .gallery {
    padding-top: 68px;
  }
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .gallery {
    padding-top: 52px;
  }
  .gallery__title {
    margin-bottom: 30px;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .gallery__item:last-child:nth-child(odd) {
    grid-column: 1/-1;
    aspect-ratio: 2/1;
  }
}

.lightbox {
  position: fixed;
  width: min(100% - 32px, 1100px);
  max-width: none;
  max-height: min(90vh, 900px);
  padding: 56px 72px 48px;
  overflow: visible;
  border: 0;
  background: #111;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
}
.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 150px);
  object-fit: contain;
}
.lightbox__caption, .lightbox__count {
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.lightbox__count {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease;
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox__close:focus-visible, .lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.lightbox__close {
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  font-size: 30px;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}
.lightbox__nav--previous {
  left: 12px;
}
.lightbox__nav--next {
  right: 12px;
}
@media (max-width: 600px) {
  .lightbox {
    width: calc(100% - 20px);
    padding: 58px 42px 32px;
  }
  .lightbox__nav {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }
  .lightbox__nav--previous {
    left: 4px;
  }
  .lightbox__nav--next {
    right: 4px;
  }
}

.contact-strip {
  min-height: 132px;
  padding: 28px max(48px, (100% - 1240px) / 2);
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr auto;
  align-items: center;
  gap: 32px;
  background: #fffefa;
}
.contact-strip__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 600px) {
  .contact-strip__item {
    gap: 5px;
  }
}
.contact-strip__label {
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-strip__value {
  margin: 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-strip__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-strip__social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-strip__social-link {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  color: #000;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.contact-strip__social-link:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}
.contact-strip__social-link:focus-visible {
  outline: 2px solid #691414;
  outline-offset: 3px;
}
.contact-strip__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.contact-strip__social-link:last-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.contact-strip__social-dot {
  fill: currentColor;
  stroke: none;
}
.contact-strip a:hover {
  color: #000;
}
@media (max-width: 800px) {
  .contact-strip {
    padding-right: 24px;
    padding-left: 24px;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .contact-strip {
    padding: 26px 20px;
    grid-template-columns: 1fr;
    gap: 19px;
  }
}

.site-footer {
  width: min(1240px, 100% - 96px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #68746b;
  font-size: 11px;
}
.site-footer p {
  margin: 0;
}
@media (max-width: 800px) {
  .site-footer {
    width: calc(100% - 48px);
  }
}
@media (max-width: 600px) {
  .site-footer {
    width: calc(100% - 40px);
    min-height: 100px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
