/* =========================================================
   BAKERY — СТРАНИЦА ГОТОВОГО РЕШЕНИЯ
   Все настройки этой страницы находятся только здесь.
   ========================================================= */

.bakery-case-page {
  --bakery-ink: #43291f;
  --bakery-muted: #765e52;
  --bakery-caramel: #a95f2d;
  --bakery-gold: #cf9349;
  --bakery-cream: rgba(255, 250, 240, 0.92);
  color: var(--bakery-ink);
  background:
    linear-gradient(rgba(255, 240, 215, 0.18), rgba(255, 240, 215, 0.18)),
    url("assets/hero-bg-softflow.webp") center top / cover fixed no-repeat;
}

.bakery-case-page main { overflow: hidden; }

.bakery-case-page .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.bakery-case-hero {
  position: relative;
  padding: clamp(82px, 9vw, 135px) 0 clamp(72px, 8vw, 115px);
}

.bakery-case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 45%, rgba(255,255,255,.63), transparent 34%);
}

.bakery-case-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, .82fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
}

.case-back,
.case-text-link {
  color: var(--bakery-caramel);
  font-weight: 600;
  text-decoration: none;
}

.case-back { display: inline-block; margin-bottom: 34px; }
.case-back:hover, .case-text-link:hover { color: var(--bakery-ink); }

.case-label {
  margin: 0 0 12px;
  color: var(--bakery-caramel);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bakery-case-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 8vw, 7.6rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}

.case-lead {
  max-width: 690px;
  margin: 28px 0 32px;
  color: var(--bakery-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.bakery-case-page .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.case-facts li {
  padding: 17px 16px;
  border: 1px solid rgba(111, 62, 31, .18);
  border-radius: 18px;
  background: rgba(255, 252, 246, .64);
  backdrop-filter: blur(9px);
}

.case-facts strong, .case-facts span { display: block; }
.case-facts strong { margin-bottom: 5px; color: var(--bakery-caramel); }
.case-facts span { color: var(--bakery-muted); font-size: .79rem; line-height: 1.4; }

/* Мокап браузера в hero. Высоту меняем здесь. */
.bakery-browser {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border: 7px solid rgba(255,255,255,.78);
  border-radius: 27px;
  background: #fffaf0;
  box-shadow: 0 28px 65px rgba(67,41,31,.22);
  transform: rotate(1.5deg);
}

.bakery-browser::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% 15%;
  z-index: -1;
  height: 65%;
  border-radius: 50%;
  background: rgba(207,147,73,.35);
  filter: blur(55px);
}

.bakery-browser__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #f2e0c9;
}

.bakery-browser__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c88752;
}

.bakery-browser__bar span {
  margin-left: 8px;
  color: #806453;
  font-size: .66rem;
}

.bakery-browser > img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
}

.bakery-browser__caption {
  padding: 24px 27px 28px;
  background: rgba(255,250,240,.98);
}

.bakery-browser__caption small,
.bakery-browser__caption strong,
.bakery-browser__caption span { display: block; }
.bakery-browser__caption small { color: var(--bakery-caramel); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.bakery-browser__caption strong { margin: 9px 0; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.2; }
.bakery-browser__caption span { color: var(--bakery-muted); font-size: .78rem; }

.case-section { padding: clamp(72px, 9vw, 118px) 0; }
.case-section--glass { background: rgba(255, 248, 236, .19); }

.case-heading {
  max-width: 820px;
  margin: 0 auto clamp(38px, 6vw, 66px);
  text-align: center;
}

.case-heading h2,
.case-final h2,
.case-seo h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.5vw, 4.05rem);
  font-weight: 400;
  line-height: 1.08;
}

.case-heading > p:last-child {
  margin: 22px auto 0;
  color: var(--bakery-muted);
  line-height: 1.75;
}

.pain-grid,
.included-grid,
.case-price-grid { display: grid; gap: 18px; }
.pain-grid { grid-template-columns: repeat(4, 1fr); }
.included-grid, .case-price-grid { grid-template-columns: repeat(3, 1fr); }

.pain-grid article,
.included-grid article,
.price-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(111,62,31,.17);
  border-radius: 24px;
  background: var(--bakery-cream);
  box-shadow: 0 14px 34px rgba(67,41,31,.08);
  backdrop-filter: blur(8px);
}

.pain-grid span {
  color: var(--bakery-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.pain-grid h3, .included-grid h3, .price-card h3 { margin: 17px 0 12px; }
.pain-grid p, .included-grid p, .price-card li { color: var(--bakery-muted); line-height: 1.65; }

.bakery-gallery {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 15px;
}

.bakery-gallery img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(67,41,31,.14);
}

.price-card { display: flex; flex-direction: column; }
.price-card--featured {
  border-color: rgba(169,95,45,.6);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,218,177,.93));
  box-shadow: 0 20px 44px rgba(111,62,31,.16);
}
.price-card .price { margin: 10px 0 20px; color: var(--bakery-caramel); font-size: 1.5rem; font-weight: 700; }
.price-card .price small { display: block; margin-top: 5px; font-size: .82rem; font-weight: 500; }
.price-card ul { flex: 1; margin: 0 0 26px; padding-left: 20px; }
.price-card .btn { align-self: flex-start; }
.price-note { margin: 25px auto 0; color: var(--bakery-muted); text-align: center; line-height: 1.6; }

.case-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding: clamp(35px, 6vw, 70px);
  border: 1px solid rgba(169,95,45,.34);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(245,218,177,.89));
  box-shadow: 0 22px 55px rgba(67,41,31,.11);
}

.case-final p:not(.case-label) { max-width: 680px; margin: 20px 0 0; color: var(--bakery-muted); line-height: 1.7; }
.case-final .case-actions { flex-direction: column; }

.case-seo { padding: 0 0 clamp(70px, 9vw, 110px); }
.case-seo .container { max-width: 880px; }
.case-seo h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.case-seo p { color: var(--bakery-muted); line-height: 1.8; }

@media (max-width: 980px) {
  .bakery-case-hero__grid { grid-template-columns: 1fr 360px; gap: 32px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .bakery-gallery { grid-template-columns: repeat(2, 1fr); }
  .bakery-gallery img { height: 350px; }
  .case-price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bakery-case-page { background-attachment: scroll; }
  .bakery-case-page .container { width: min(100% - 28px, 620px); }
  .bakery-case-hero { padding-top: 58px; }
  .bakery-case-hero__grid { grid-template-columns: 1fr; }
  .bakery-case-hero__copy { text-align: center; }
  .case-back { margin-bottom: 25px; }
  .case-actions { justify-content: center; }
  .case-facts { grid-template-columns: 1fr; }
  .bakery-browser { max-width: 440px; margin-top: 15px; transform: none; }
  .bakery-browser > img { height: 285px; }
  .pain-grid, .included-grid { grid-template-columns: 1fr; }
  .bakery-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bakery-gallery img { height: 250px; border-radius: 16px; }
  .case-final { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .case-final .case-actions { align-items: center; }
  .price-card .btn { align-self: stretch; }
}

@media (max-width: 430px) {
  .bakery-case-hero h1 { font-size: 3.7rem; }
  .bakery-browser > img { height: 235px; }
  .bakery-gallery img { height: 200px; }
  .case-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bakery-case-page *,
  .bakery-case-page *::before,
  .bakery-case-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
