.about,
.products,
.services,
.seo-text,
.delivery,
.contacts {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.photo-place {
  height: 522px;
  position: relative;
}

.photo-place > span {
  position: absolute;
  left: -29px;
  top: 74px;
  color: #8c4f34;
  font-size: 14px;
  line-height: 1.08;
}

.photo-mask {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.45);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M18 0 C38 2 64 -3 86 5 C96 9 100 14 100 22 L100 100 L18 100 C11 97 8 89 12 80 C5 70 3 60 8 50 C2 40 5 29 12 19 C16 13 14 6 18 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M18 0 C38 2 64 -3 86 5 C96 9 100 14 100 22 L100 100 L18 100 C11 97 8 89 12 80 C5 70 3 60 8 50 C2 40 5 29 12 19 C16 13 14 6 18 0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.photo-mask img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.about {
  display: grid;
  grid-template-columns: 170px 390px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 22px;
}

.about-photo {
  width: 155px;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo img {
  width: 150px;
  height: 118px;
  display: block;
  object-fit: contain;
}

.about-text p {
  margin-top: 10px;
  color: #3f372f;
  font-size: 15px;
  line-height: 1.45;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.about-points div {
  text-align: center;
}

.about-points p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.point-icon {
  width: 58px;
  height: 58px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.block {
  border-radius: 22px;
  background: var(--card);
}

.products {
  padding: 22px 70px 24px;
  margin-bottom: 24px;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px) auto;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.section-kicker {
  color: #675d52;
  font-size: 15px;
  line-height: 1.4;
}

.all-products-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d7c5b0;
  border-radius: 999px;
  color: #bb6437;
  background: rgba(255, 250, 241, 0.72);
  font-size: 15px;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4d2bf;
  border-radius: 12px;
  background: rgba(255, 250, 241, 0.6);
}

.product-photo {
  height: 260px;
  flex: 0 0 auto;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.62);
}

.product-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.62);
}

.product-carousel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: zoom-in;
}

.photo-nav {
  width: 38px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff7ea;
  background: rgba(47, 36, 28, 0.48);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.photo-prev {
  left: 8px;
}

.photo-next {
  right: 8px;
}

.photo-counter {
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff7ea;
  background: rgba(47, 36, 28, 0.56);
  font-size: 12px;
  text-align: center;
  position: absolute;
  right: 10px;
  bottom: 10px;
}

.product-info {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  padding: 13px 16px 15px;
  background: rgba(255, 250, 241, 0.94);
}

.product-number {
  margin-bottom: 5px;
  color: #9a755c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-card h3 {
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  color: #352a22;
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.product-description {
  color: #62574c;
  font-size: 13px;
  line-height: 1.35;
}

.product-price {
  color: #c96533;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.gallery-error {
  grid-column: 1 / -1;
  color: #8c4f34;
  font-size: 16px;
}

.image-modal {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 25, 19, 0.82);
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.image-modal.is-open {
  display: flex;
}

.image-modal img {
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 64px);
  display: block;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.image-modal-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 241, 0.48);
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(47, 36, 28, 0.72);
  font-size: 30px;
  line-height: 1;
  position: fixed;
  top: 18px;
  right: 18px;
  cursor: pointer;
}

.services {
  display: grid;
  grid-template-columns: 210px 390px 390px 210px;
  grid-template-areas:
    "title card-one card-two right-photo"
    "left-photo card-one card-two right-photo";
  gap: 8px 12px;
  align-items: center;
  margin: 0 70px 24px;
}

.services h2 {
  grid-area: title;
  align-self: start;
  padding-top: 8px;
}

.service-side-photo {
  grid-area: left-photo;
  width: 210px;
  height: 170px;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transform: translate(18px, -8px);
  z-index: 2;
}

.service-side-photo.right {
  grid-area: right-photo;
  width: 210px;
  height: 170px;
  align-self: center;
  justify-content: flex-start;
  transform: translate(-138px, 24px);
}

.service-side-photo img {
  width: 320px;
  height: 235px;
  display: block;
  object-fit: contain;
  max-width: none;
}

.service-side-photo.right img {
  width: 320px;
  height: 235px;
}

.service-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 28px 18px 22px;
  border: 1px solid #e3d2bf;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.52);
}

.service-card > div {
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card:first-of-type {
  grid-area: card-one;
}

.service-card:last-of-type {
  grid-area: card-two;
}

.service-card h3 {
  width: 100%;
  min-height: 42px;
  margin-bottom: 13px;
  font-size: 18px;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: normal;
}

.service-card p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.service-icon {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
}

.seo-text {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: start;
  margin: 0 70px 24px;
  padding: 26px 30px;
}

.seo-text h2 {
  font-size: 28px;
  line-height: 1.1;
}

.seo-text div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.seo-text p {
  color: #473d34;
  font-size: 15px;
  line-height: 1.5;
}

.delivery {
  display: grid;
  grid-template-columns: 185px 220px 220px 250px 220px;
  gap: 18px;
  align-items: center;
  padding: 24px 70px;
  margin-bottom: 24px;
  clear: both;
}

.delivery-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.delivery-item p {
  font-size: 15px;
  line-height: 1.35;
}

.round-icon {
  width: 74px;
  height: 74px;
  display: block;
  object-fit: contain;
  justify-self: start;
}

.delivery-item:nth-of-type(4) .round-icon,
.delivery-item:nth-of-type(5) .round-icon {
  justify-self: center;
  transform: translateX(10px);
}

.contacts {
  display: grid;
  grid-template-columns: 330px 190px 1fr;
  gap: 42px;
  padding: 0 70px 28px;
  position: relative;
}

.contact-list p,
.social-list p {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  font-size: 17px;
}

.contact-list a,
.social-list a {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-list img,
.social-list img {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
  object-fit: contain;
}

.social-list img {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.social-list h3 {
  margin-top: 8px;
  margin-bottom: 17px;
}

.social-list p {
  font-size: 16px;
}

.map-place {
  height: 190px;
  border-radius: 18px;
  overflow: visible;
  background: #e7d8c4;
  position: relative;
}

.map-place iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 18px;
  filter: sepia(0.18) saturate(0.8) brightness(1.03);
}

.map-controls-cover,
.map-open-cover {
  position: absolute;
  z-index: 3;
  background: var(--bg);
  pointer-events: none;
}

.map-controls-cover {
  top: 0;
  right: 0;
  width: 148px;
  height: 58px;
  border-radius: 0 18px 0 18px;
}

.map-open-cover {
  left: 0;
  bottom: 0;
  width: 120px;
  height: 45px;
  border-radius: 0 18px 0 18px;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 30px;
  height: 30px;
  background: var(--orange);
  border: 4px solid #fff7ea;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 6px 14px rgba(70, 44, 25, 0.22);
  transform: translate(-50%, -100%) rotate(-45deg);
  pointer-events: none;
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff7ea;
}

.map-label {
  position: absolute;
  z-index: 5;
  left: 95px;
  bottom: -16px;
  padding: 14px 42px;
  border-radius: 28px;
  background: #e8d0b4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.copyright {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 22px;
  color: #b68462;
  font-size: 14px;
}
