﻿.home-photo-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 0.9rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 4, 3, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.home-photo-guide-backdrop.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.home-photo-guide-backdrop.is-open .home-photo-guide-sheet {
  transform: translateX(0);
  opacity: 1;
}

.home-photo-guide-sheet {
  display: flex;
  width: min(94vw, 31rem) !important;
  max-height: min(92dvh, 44rem);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 236, 0.12) !important;
  border-left: 3px solid #dc1426 !important;
  border-radius: 0.25rem !important;
  background: linear-gradient(180deg, #121214 0%, #0a0a0c 100%) !important;
  box-shadow:
    0 1.25rem 2.8rem rgba(0, 0, 0, 0.55),
    8px 8px 0 rgba(90, 0, 10, 0.28) !important;
  transform: translateX(0.4rem);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
}

body.photo-guide-open {
  overflow: hidden;
}

.home-photo-guide-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 1.05rem 1rem 0.7rem !important;
}

.home-photo-guide-title {
  margin: 0;
  color: #fff;
  font-size: 1.2rem !important;
  font-weight: 900;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
}

.home-photo-guide-subtitle {
  margin: 0.4rem 0 0 !important;
  color: rgba(240, 238, 236, 0.55) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}

.home-photo-guide-close {
  display: grid !important;
  width: 2rem !important;
  height: 2rem !important;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(240, 238, 236, 0.14) !important;
  border-radius: 0.15rem !important;
  background: transparent !important;
  color: rgba(240, 238, 236, 0.65) !important;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.home-photo-guide-close:hover {
  border-color: rgba(220, 20, 38, 0.45) !important;
  color: #fff !important;
}

.home-photo-guide-close:active {
  transform: scale(0.94);
  background: rgba(220, 20, 38, 0.12) !important;
  color: #fff !important;
}

.home-photo-guide-steps {
  flex: 0 1 auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem !important;
  padding: 0 0.95rem 0.75rem !important;
}

.home-photo-guide-step {
  display: grid;
  grid-template-columns: minmax(5.75rem, 7.25rem) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(240, 238, 236, 0.1) !important;
  border-left: 2px solid rgba(220, 20, 38, 0.7) !important;
  border-radius: 0.2rem !important;
  background: rgba(240, 238, 236, 0.03) !important;
  box-shadow: none !important;
}

.home-photo-guide-example {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 0 !important;
  border-right: 1px solid rgba(240, 238, 236, 0.08);
  background: #100f13;
  padding: 0;
}

.home-photo-guide-example:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45)) !important;
  content: "";
  pointer-events: none;
}

.home-photo-guide-example-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none !important;
  margin: 0;
  object-fit: cover !important;
  object-position: center;
  filter: none;
}

.home-photo-guide-copy {
  display: flex;
  align-items: flex-start;
  align-self: center;
  padding: 0.72rem 0.78rem 0.78rem !important;
  gap: 0.58rem !important;
}

.home-photo-guide-copy > div {
  min-width: 0;
}

.home-photo-guide-copy h3 {
  color: #fff;
  font-size: 0.9rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

.home-photo-guide-copy p {
  margin-top: 0.32rem !important;
  color: rgba(240, 238, 236, 0.58) !important;
  font-size: 0.76rem !important;
  line-height: 1.48 !important;
}

.home-photo-guide-step-index {
  display: inline-flex !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 0.08rem;
  border: 1px solid rgba(220, 20, 38, 0.55);
  border-radius: 0.12rem !important;
  background: #dc1426 !important;
  color: #111 !important;
  font-size: 0.74rem !important;
  font-weight: 900;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(90, 0, 10, 0.35) !important;
}

.home-photo-guide-bad-mark {
  width: 1.75rem !important;
  height: 1.75rem !important;
  top: 0.45rem !important;
  right: 0.45rem !important;
  border-radius: 0.15rem !important;
  border: 1px solid rgba(240, 238, 236, 0.35) !important;
  background: #8a0010 !important;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35) !important;
}

.home-photo-guide-bad-mark .material-symbols-outlined {
  font-size: 1.1rem !important;
}

.home-photo-guide-action {
  flex-shrink: 0;
  display: inline-flex !important;
  width: calc(100% - 1.9rem) !important;
  min-height: 2.55rem !important;
  align-items: center;
  justify-content: center;
  margin: 0 0.95rem 0.95rem !important;
  border: 0 !important;
  border-radius: 0.2rem !important;
  background: #dc1426 !important;
  color: #111 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  box-shadow: 4px 4px 0 rgba(90, 0, 10, 0.4) !important;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
}

.home-photo-guide-action:hover {
  filter: brightness(1.05);
}

.home-photo-guide-action:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(90, 0, 10, 0.4) !important;
}

.home-photo-guide-help,
.home-telegram-guide-button {
  display: inline-flex !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 20, 38, 0.4) !important;
  border-radius: 0.15rem !important;
  background: rgba(220, 20, 38, 0.12) !important;
  color: #f0eeec !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  line-height: 1;
  box-shadow: 2px 2px 0 rgba(90, 0, 10, 0.28) !important;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.home-photo-guide-help:hover,
.home-telegram-guide-button:hover {
  border-color: rgba(220, 20, 38, 0.65) !important;
  background: rgba(220, 20, 38, 0.22) !important;
}

.home-photo-guide-help:active,
.home-telegram-guide-button:active {
  transform: translate(1px, 1px);
}

@media (max-width: 560px) {
  .home-photo-guide-sheet {
    width: min(96vw, 28rem) !important;
  }

  .home-photo-guide-step {
    grid-template-columns: minmax(5rem, 6.25rem) minmax(0, 1fr);
  }

  .home-photo-guide-copy {
    padding: 0.62rem 0.65rem 0.68rem !important;
  }

  .home-photo-guide-copy h3 {
    font-size: 0.82rem !important;
  }

  .home-photo-guide-copy p {
    font-size: 0.72rem !important;
  }
}

@media (max-height: 760px) {
  .home-photo-guide-header {
    padding: 0.85rem 0.9rem 0.55rem !important;
  }

  .home-photo-guide-steps {
    gap: 0.55rem !important;
    padding-bottom: 0.6rem !important;
  }

  .home-photo-guide-step {
    grid-template-columns: minmax(5.25rem, 6.5rem) minmax(0, 1fr);
  }
}
