.brand,
.header .brand,
.footer .brand-footer {
  width: 280px;
  height: 70px;
  overflow: visible;
}

.brand img,
.header .brand img,
.footer .brand-footer img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand svg {
  display: block;
  width: 100%;
  height: 100%;
}

.occasion-strip {
  background: var(--purple);
}

/* Первый экран строится вокруг общей фотографии героев. */
.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 620px;
  margin-block: 28px 56px;
  padding: 70px 64px;
  overflow: hidden;
  border-radius: 36px;
  background: #fff6e7;
  box-shadow: 0 24px 70px rgba(74, 39, 103, .14);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 250, 240, .98) 0%, rgba(255, 250, 240, .93) 31%, rgba(255, 250, 240, .28) 53%, rgba(255, 250, 240, 0) 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(47%, 530px);
}

.hero-visual {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.hero .hero-points {
  max-width: 500px;
}

.hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.character-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.character-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-track {
  position: absolute;
  inset: 0;
}

.carousel-track img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .32s ease, transform .42s ease;
  pointer-events: none;
}

.carousel-track img.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: rgba(58,32,84,.72);
  color: #fff;
  font: 600 27px/1 Arial,sans-serif;
  box-shadow: 0 5px 18px rgba(38,25,61,.22);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow:hover { background: var(--purple); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }

.carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 12px;
  display: flex;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(47,29,70,.48);
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.carousel-dots button.is-active {
  width: 20px;
  border-radius: 5px;
  background: #fff;
}

.character-bear .character-photo img {
  object-position: center 30%;
}

.character-cat .character-photo img {
  object-position: center 38%;
}

.character-king .character-photo img {
  object-position: center 28%;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .hero {
    min-height: 580px;
    padding: 58px 42px;
  }

  .hero-copy {
    width: 52%;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header .brand,
  .footer .brand-footer {
    width: 250px;
    height: 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 27px;
    min-height: 0;
    margin-block: 16px 38px;
    padding: 0 0 30px;
    overflow: visible;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(74, 39, 103, .1);
  }

  .hero::after {
    display: none;
  }

  .hero-visual {
    position: relative;
    z-index: auto;
    order: -1;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px 24px 16px 16px;
  }

  .hero-visual img {
    object-position: center center;
  }

  .hero-copy {
    width: auto;
    padding-inline: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 10.5vw, 44px);
  }
}

/* Заметная навигационная панель в шапке. */
.header nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 6px;
  border: 1px solid #d8cfdd;
  border-radius: 999px;
  background: #f3eaf6;
  box-shadow: 0 7px 20px rgba(96, 48, 128, .08);
}

.header nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, box-shadow .2s;
}

.header nav a:hover,
.header nav a:focus-visible {
  color: var(--purple);
  background: #fff;
  box-shadow: 0 4px 14px rgba(96, 48, 128, .12);
  outline: none;
}

@media (max-width: 1140px) {
  .header nav { display: none; }
}

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.brief-form .consent input { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--purple); }
.consent a { color: var(--purple); font-weight: 800; }


/* SEO pages for distinct celebration intents. */
.occasion-page { background: var(--cream); }
.occasion-hero { display:grid; grid-template-columns:1.03fr .97fr; gap:62px; align-items:center; min-height:560px; padding-block:70px 86px; }
.occasion-hero h1 { font-size:clamp(38px,5vw,66px); }
.occasion-hero h1 em,.occasion-page h2 em { color:var(--pink); font-style:normal; }
.occasion-hero .crumbs { display:flex; gap:9px; align-items:center; color:var(--muted); font-size:12px; margin:0 0 20px; }
.crumbs a { color:var(--purple); font-weight:800; text-decoration:none; }
.occasion-lead { max-width:570px; margin:25px 0 30px; color:var(--muted); font-size:18px; line-height:1.62; }
.occasion-hero > img { width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:38px; background:#f0ecff; box-shadow:var(--shadow); }
.occasion-benefits { padding-block:72px; background:var(--purple); color:#fff; }
.occasion-benefits .wrap { display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:center; }
.occasion-benefits h2,.occasion-text h2,.occasion-catalog h2,.occasion-faq h2 { font:700 clamp(32px,4vw,48px)/1.08 Unbounded,sans-serif; letter-spacing:-2.5px; margin:0; }
.occasion-benefits h2 em { color:var(--yellow); }
.occasion-benefits .wrap>div { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.occasion-benefits article { min-height:142px; padding:22px; border:1px solid rgba(255,255,255,.22); border-radius:20px; background:rgba(255,255,255,.09); }
.occasion-benefits article b { color:var(--yellow); font-size:21px; }
.occasion-benefits article p { margin:22px 0 0; font-weight:800; line-height:1.38; }
.occasion-text { display:grid; grid-template-columns:1fr .76fr; gap:80px; padding-block:105px; }
.occasion-text article>p:not(.eyebrow) { max-width:660px; color:var(--muted); font-size:16px; line-height:1.72; }
.occasion-text aside { align-self:start; padding:31px; border:1px solid var(--line); border-radius:26px; background:#fff; box-shadow:var(--shadow); }
.occasion-text aside h3 { margin:0; font:700 20px/1.3 Unbounded,sans-serif; }
.occasion-text aside ol { padding-left:21px; color:var(--muted); line-height:1.65; font-size:14px; }
.occasion-text aside .button { width:100%; margin-top:12px; }
.occasion-catalog { padding:62px; border-radius:32px; background:#f0ecff; margin-bottom:100px; }
.occasion-catalog>p:not(.eyebrow) { max-width:570px; color:var(--muted); line-height:1.65; }
.occasion-faq { display:grid; grid-template-columns:.75fr 1.25fr; gap:80px; padding-bottom:110px; }
.occasion-link-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.occasion-link-grid a { min-height:278px; display:flex; flex-direction:column; padding:25px; border:1px solid var(--line); border-radius:24px; background:#fff; color:var(--ink); text-decoration:none; transition:transform .2s,box-shadow .2s; }
.occasion-link-grid a:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.occasion-link-grid a span { color:var(--pink); font:700 11px Unbounded,sans-serif; }
.occasion-link-grid h3 { margin:28px 0 14px; font:700 18px/1.25 Unbounded,sans-serif; letter-spacing:-.7px; }
.occasion-link-grid p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.occasion-link-grid b { margin-top:auto; padding-top:20px; color:var(--purple); font-size:12px; }
@media (max-width: 960px) { .occasion-link-grid{grid-template-columns:repeat(2,1fr)} .occasion-hero{gap:35px} .occasion-benefits .wrap,.occasion-text,.occasion-faq{gap:40px} }
@media (max-width: 760px) { .occasion-hero{grid-template-columns:1fr;min-height:0;padding-block:36px 64px}.occasion-hero>img{order:-1;border-radius:25px}.occasion-lead{font-size:16px}.occasion-benefits{padding-block:55px}.occasion-benefits .wrap,.occasion-text,.occasion-faq{grid-template-columns:1fr;gap:30px}.occasion-benefits .wrap>div{grid-template-columns:1fr}.occasion-benefits article{min-height:0}.occasion-text{padding-block:70px}.occasion-catalog{padding:31px 22px;margin-bottom:70px}.occasion-faq{padding-bottom:70px}.occasion-link-grid{grid-template-columns:1fr}.occasion-link-grid a{min-height:0}.occasion-link-grid h3{margin:20px 0 12px} }

/* Brand proportions: the horizontal logo retains its original aspect ratio and is never cropped. */
.site-header .header { height: 106px; }
.site-header .brand,
.site-header .header .brand,
.footer .brand-footer { width: 265px; height: 96px; flex: 0 0 265px; }
.site-header .brand img,
.site-header .header .brand img,
.footer .brand-footer img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 760px) {
  .site-header .header { height: 82px; }
  .site-header .brand,
  .site-header .header .brand,
  .footer .brand-footer { width: 205px; height: 78px; flex-basis:205px; }
}
