/* Герой и блоки отдельных страниц */

.hero {
  position: relative;
  isolation: isolate;
  padding: 12px 0 48px;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(255, 138, 31, 0.2), transparent 55%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero);
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 13, 13, 0.94) 0%, rgba(13, 13, 13, 0.78) 42%, rgba(13, 13, 13, 0.55) 100%);
}

.hero-layout {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  max-height: 520px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-copy .btn { margin-top: 22px; }

/* Подзаголовок в начале каждой страницы: белый и крупнее */
.hero .lead {
  color: #fff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  max-width: 28ch;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.heart { color: var(--accent); font-size: 0.55em; }

.features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 22, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 700;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent);
  flex: none;
}

.feature-icon svg { width: 22px; height: 22px; }

.promo-hero { position: relative; }

.mega-badge {
  position: absolute;
  right: 8%;
  bottom: 10%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  padding: 12px 16px;
  border-radius: 18px;
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.promo-grid {
  display: grid;
  gap: 16px;
}

.promo-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-items: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  border: 1px solid transparent;
}

.promo-card h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.03em; }

.promo-card p { color: #5e564c; margin-top: 8px; }

.promo-card img {
  width: min(100%, 220px);
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  justify-self: end;
}

.badge {
  display: inline-flex;
  align-self: start;
  background: var(--accent);
  color: #1a1008;
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 10px;
}

.order-card,
.info-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.order-card h2 { font-size: 28px; margin-bottom: 18px; }

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 138, 31, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.step-icon svg { width: 22px; height: 22px; }

.step p { color: var(--muted); margin-top: 4px; }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.phone-link {
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.phone-link:hover { text-decoration: underline; }

.info-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.info-card h3 { margin-bottom: 6px; }

.info-card p { color: var(--muted); }

.about-panel {
  display: grid;
  background: var(--cream);
  color: var(--ink);
  border-radius: 28px;
  overflow: hidden;
}

.about-panel { position: relative; }

/* Фото в блоке «О нас»: плавно растворяется в светлой панели */
.about-photo {
  position: relative;
  min-height: 260px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 800px) {
  .about-photo {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%);
    mask-image: linear-gradient(to right, transparent 0, #000 36%);
  }
}

.about-copy { padding: 28px 22px 32px; }

.about-copy p { color: #4d463e; margin: 8px 0 18px; font-size: 17px; }

.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.dots li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.dots li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.signature {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--hand);
  color: var(--accent);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-4deg);
}

.contact-grid {
  display: grid;
  gap: 16px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li { display: flex; gap: 12px; align-items: flex-start; }

.contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.contact-list a { color: white; font-weight: 700; text-decoration: none; }

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

.contact-list span { display: block; color: var(--dim); font-size: 13px; }

.socials { display: flex; gap: 8px; margin-top: 18px; }

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: white;
}

.socials a:hover { background: var(--accent); color: var(--ink); border-color: transparent; }

.socials svg { width: 18px; height: 18px; }

.map-embed {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--accent);
  color: #1a1008;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.map-open:hover { filter: brightness(1.08); }

.form-card h2 { font-size: 28px; margin-bottom: 14px; }

.form-card .btn { width: 100%; margin-top: 4px; }

.form-note { min-height: 1.2em; color: var(--accent); font-size: 14px; margin-top: 8px; }

.stack-btns { display: grid; gap: 8px; margin-top: 8px; }

@media (min-width: 800px) {
  .hero { padding-bottom: 64px; }
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; min-height: 460px; }
  .hero-home .hero-layout { align-items: center; }
  .features { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }
  .promo-card { grid-template-columns: auto 1fr auto; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .about-panel { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .about-copy { padding: 40px 40px 44px; }
}

@media (max-width: 799px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.55), rgba(13, 13, 13, 0.92));
  }
  .features { grid-column: auto; }
  .promo-card img { justify-self: start; }
}

@media (max-width: 799px) {
  .hero { padding-bottom: 28px; }
  .hero-media img { max-height: 200px; border-radius: 20px; }
  .hero-home .hero-media img { max-height: 240px; }
  .hero-copy .lead { font-size: 21px; }
  .about-photo { height: 240px; }
}

/* Фото-коллаж на странице «О нас» */
.collage-wrap { min-width: 0; }

.collage {
  position: relative;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  height: clamp(300px, 42vw, 440px);
}

.collage-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  width: 46%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--accent);
  background: #111;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}

.collage-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }

.collage-card[data-pos="0"]  { transform: translate(-50%, -50%) rotate(-2deg); z-index: 3; cursor: default; }
.collage-card[data-pos="-1"] { transform: translate(-128%, -50%) rotate(-9deg) scale(0.88); z-index: 2; filter: brightness(0.7); }
.collage-card[data-pos="-2"],
.collage-card[data-pos="2"]  { transform: translate(-50%, -50%) scale(0.7); z-index: 0; opacity: 0; pointer-events: none; }
.collage-card[data-pos="1"]  { transform: translate(28%, -50%) rotate(8deg) scale(0.88); z-index: 1; filter: brightness(0.7); }

.collage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.collage-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(22, 22, 22, 0.85);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.collage-btn svg { width: 18px; height: 18px; }

.collage-btn:hover { background: var(--accent); color: var(--ink); border-color: transparent; }

.collage-dots { display: flex; gap: 8px; }

.collage-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.collage-dots button[aria-current="true"] { background: var(--accent); }

@media (max-width: 799px) {
  .collage { height: 330px; }
  .collage-card { width: 50%; }
  .collage-card[data-pos="-1"] { transform: translate(-106%, -50%) rotate(-9deg) scale(0.84); }
  .collage-card[data-pos="1"]  { transform: translate(6%, -50%) rotate(8deg) scale(0.84); }
}

@media (prefers-reduced-motion: reduce) {
  .collage-card { transition: none; }
}
