﻿/* =====================================================
   PALOMA Coffee — editorial page
   Inspired by sjostrand.tilda.ws:
   cinematic dark panels, floating card photos,
   cursor-follow menu images, horizontal stages.
   ===================================================== */

/* ── Hero — Typographic Fullscreen ───────────────────────── */

.cof-hero {
  position: relative;
  height: 100vh;        /* fallback for browsers without dvh */
  height: 100dvh;       /* dynamic viewport — correct on mobile chrome */
  min-height: 640px;
  overflow: hidden;
  background: #FFFFFF;  /* light fallback while photo loads */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Background photo: slow zoom-out on load, JS takes over on scroll */
.cof-hero__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  animation: cofBgZoom 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cof-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;  /* frame the table/flowers centrepiece */
  display: block;
}

/* Overlay — light in the centre so the bright photo breathes,
   dark only at the bottom so the white tagline + address stay readable */
.cof-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(240, 234, 224, 0.08) 0%,   /* barely-there warm tint at top */
      rgba(20, 10, 5, 0.0)  62%,       /* fully transparent in the upper half */
      rgba(20, 10, 5, 0.72) 100%);     /* dark at bottom for text contrast */
}

/* Giant ghost word — the visual centrepiece */
.cof-hero__word {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;

  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(130px, 20vw, 360px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(20, 10, 5, 0.52);   /* dark on light photo — reads as a shadow */
  white-space: nowrap;
  will-change: transform, opacity;

  opacity: 0;
  transform: scale(0.9);
  animation: cofWordReveal 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

/* Bottom content bar */
.cof-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px) clamp(44px, 5.5vw, 76px);
}

.cof-hero__content-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cof-hero__eyebrow {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);

  opacity: 0;
  transform: translateY(14px);
  animation: cofFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.cof-hero__tagline {
  margin: 0;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;

  opacity: 0;
  transform: translateY(18px);
  animation: cofFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.cof-hero__tagline em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.5);
}

/* Scroll hint CTA */
.cof-hero__scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  margin-top: 4px;

  opacity: 0;
  animation: cofFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.35s forwards;
}

.cof-hero__scroll-cta:hover { color: rgba(255, 255, 255, 0.88); }

.cof-hero__scroll-line {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: cofLineDraw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both;
}

@keyframes cofLineDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Address — bottom right */
.cof-hero__address {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-style: normal;
  padding-bottom: 6px;

  opacity: 0;
  animation: cofFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.45s forwards;
}

.cof-hero__address span {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
}

/* ── Hero keyframes ───────────────────────────────────────── */

@keyframes cofBgZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes cofWordReveal {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes cofFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .cof-hero__word {
    font-size: clamp(30px, 12vw, 64px);
    color: rgba(20, 10, 5, 0.42);
  }
  .cof-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cof-hero__address {
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cof-hero__bg   { animation: none !important; }
  .cof-hero__word { animation: none !important; opacity: 1 !important; transform: none !important; }
  .cof-hero__eyebrow,
  .cof-hero__tagline,
  .cof-hero__scroll-cta,
  .cof-hero__address { animation: none !important; opacity: 1 !important; transform: none !important; }
  .cof-hero__scroll-line { animation: none !important; }
}

/* ── Menu section ─────────────────────────────────────────── */

.cof-menu {
  position: relative;
  padding: clamp(28px, 3.85vw, 53px) clamp(16px, 2.5vw, 40px);
  background: #FFFFFF;
}

.cof-menu__eyebrow {
  display: block;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(42, 18, 12, 0.38);
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.cof-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cof-menu__item {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(20px, 2.4vw, 30px) 0;
  border-top: 1px solid rgba(42, 18, 12, 0.1);
  cursor: default;
  user-select: none;
  transition: opacity 0.2s ease;
}

.cof-menu__item:last-child {
  border-bottom: 1px solid rgba(42, 18, 12, 0.1);
}

.cof-menu__list:has(.cof-menu__item:hover) .cof-menu__item:not(:hover) {
  opacity: 0.38;
}

.cof-menu__num {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 400;
  color: rgba(42, 18, 12, 0.3);
  letter-spacing: 0.08em;
  min-width: 22px;
  flex-shrink: 0;
}

.cof-menu__name {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(20px, 2.4vw, 36px);
  font-style: italic;
  font-weight: 300;
  color: #1B1A18;
  flex: 1;
  line-height: 1;
  transition: color 0.25s ease;
}

.cof-menu__item:hover .cof-menu__name {
  color: #1B1A18;
}

.cof-menu__fill {
  flex: 1;
  height: 1px;
  background: rgba(42, 18, 12, 0.12);
  align-self: center;
}

.cof-menu__price {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: rgba(42, 18, 12, 0.48);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Cursor follower image ────────────────────────────────── */

.cof-cursor-img {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: clamp(200px, 20vw, 300px);
  height: clamp(240px, 24vw, 380px);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  background: #1B1A18;
  /* margin offsets so image appears above-right of cursor */
  margin-left: 30px;
  margin-top: -180px;
}

.cof-cursor-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.cof-cursor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Story panels (sjostrand style) ──────────────────────── */

.cof-panel {
  position: relative;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #1B1A18;
}

.cof-panel__bg {
  position: absolute;
  top: -160px;
  left: 0;
  right: 0;
  bottom: -160px;
  will-change: transform;
}

.cof-panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: grayscale(25%) brightness(0.88);
}

.cof-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 5, 3, 0.06) 0%,
    rgba(8, 5, 3, 0.62) 100%
  );
  z-index: 1;
}

.cof-panel__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 80px) clamp(44px, 5.5vw, 76px);
  max-width: 660px;
}

.cof-panel__eyebrow {
  display: block;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 18px;
}

.cof-panel__text {
  margin: 0;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: clamp(17px, 1.8vw, 23px);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

/* Floating card on the right side */
.cof-panel__card {
  position: absolute;
  right: clamp(40px, 5.5vw, 88px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: clamp(220px, 22vw, 360px);
  height: clamp(280px, 30vw, 460px);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 40px 100px rgba(27, 26, 24, 0.32);
}

.cof-panel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Stages horizontal scroll ─────────────────────────────── */

.cof-stages {
  background: #FFFFFF;
  padding-top: clamp(28px, 3.85vw, 53px);
}

.cof-stages__head {
  padding: 0 clamp(24px, 5vw, 80px) clamp(32px, 4vw, 52px);
}

.cof-stages__title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-style: italic;
  font-weight: 300;
  color: #1B1A18;
  margin: 0;
}

.cof-stages__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.cof-stages__viewport::-webkit-scrollbar { display: none; }
.cof-stages__viewport.is-dragging { cursor: grabbing; }

.cof-stages__track {
  display: flex;
  gap: 3px;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* ── Stage card ───────────────────────────────────────────── */

.cof-stage-card {
  flex: 0 0 clamp(260px, 28vw, 400px);
  height: clamp(360px, 44vw, 540px);
  position: relative;
  overflow: hidden;
  background: #1B1A18;
}

.cof-stage-card__img {
  position: absolute;
  inset: 0;
}

.cof-stage-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.68) saturate(0.8);
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cof-stage-card:hover .cof-stage-card__img img {
  filter: brightness(0.82) saturate(1);
  transform: scale(1.05);
}

.cof-stage-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(10, 6, 4, 0.62) 100%
  );
}

.cof-stage-card__num {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
}

.cof-stage-card__bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cof-stage-card__title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 3vw, 42px);
  font-style: italic;
  font-weight: 300;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.05;
}

.cof-stage-card__desc {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.55;
  margin: 0;
  max-width: 230px;
}

/* ── Mobile ───────────────────────────────────────────────── */

@media (max-width: 900px) {
  .cof-panel__card { display: none; }
}

@media (max-width: 768px) {
  .cof-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cof-hero__meta { text-align: left; }
  .cof-cursor-img { display: none !important; }
  .cof-menu__fill { display: none; }
  .cof-menu__item {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .cof-menu__price {
    width: 100%;
    padding-left: 34px;
    font-size: 12px;
  }
  .cof-stage-card {
    flex: 0 0 clamp(220px, 74vw, 300px);
    height: clamp(300px, 64vw, 400px);
  }
}

/* ── Add to bouquet block ─────────────────────────────────── */

.cof-add {
  background: #FFFFFF;
  padding: clamp(28px, 4.95vw, 66px) clamp(24px, 5vw, 80px);
}

.cof-add__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.cof-add__eyebrow {
  display: block;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(42, 18, 12, 0.38);
  margin-bottom: 20px;
}

.cof-add__title {
  margin: 0 0 20px;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  color: #1B1A18;
}

.cof-add__title em {
  font-style: normal;
  color: rgba(42, 18, 12, 0.55);
}

.cof-add__desc {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(42, 18, 12, 0.68);
  margin: 0 0 32px;
  max-width: 440px;
}

.cof-add__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 20px;
  font-style: italic;
  color: #1B1A18;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.3s ease;
}

.cof-add__link:hover { color: #1B1A18; }

.cof-add__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
}

.cof-add__card {
  overflow: hidden;
  background: #1B1A18;
  position: relative;
}

.cof-add__card--offset {
  margin-top: 40px;
}

.cof-add__card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cof-add__card:hover img { transform: scale(1.04); }

.cof-add__card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: linear-gradient(transparent, rgba(10, 6, 4, 0.55));
}

/* ── Final CTA ────────────────────────────────────────────── */

.cof-final {
  background: #1B1A18;
  padding: clamp(28px, 5.5vw, 72px) clamp(24px, 5vw, 80px);
  text-align: center;
}

.cof-final__inner {
  max-width: 680px;
  margin: 0 auto;
}

.cof-final__title {
  margin: 0 0 20px;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(30px, 3.48vw, 48px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.96;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.cof-final__title em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.48);
}

.cof-final__address {
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 40px;
  text-transform: uppercase;
}

.cof-final__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cof-final__btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-sans, 'Manrope', sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cof-final__btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.72);
}

.cof-final__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.72);
  color: #FFFFFF;
}

.cof-final__btn--solid {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.cof-final__btn--solid:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ── Mobile adjustments ───────────────────────────────────── */

@media (max-width: 768px) {
  .cof-add__inner {
    grid-template-columns: 1fr;
  }
  .cof-add__cards {
    order: -1;
  }
  .cof-add__card--offset { margin-top: 24px; }
}

/* ── Reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .cof-cursor-img { display: none !important; }
  .cof-stage-card__img img { transition: none; }
  .cof-panel__bg { will-change: auto; }
  .cof-add__card img { transition: none; }
}

/* ════════════════════════════════════════════════════════
   COFFEE MENU — карточки и разделы как в каталоге
   ════════════════════════════════════════════════════════ */

/* обёртка использует .catalog-page для квадратных карточек/кнопок;
   растянута во всю ширину экрана (full-bleed), без верхнего отступа каталога.
   main{overflow-x:hidden} гарантирует отсутствие горизонтального скролла. */
.cf-menu .cf-menu-catalog.catalog-page {
  padding: 0;
  margin-top: clamp(20px, 3vw, 36px);
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* секция меню с боковыми отступами страницы (как остальные блоки кофейни),
   чтобы строки/фильтры/счётчик не липли к краям экрана. max-width:none выше
   снимает лимит редакторского контейнера, ширину даёт этот отступ. */
.cf-menu.ea-panel--pad {
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
}

/* фильтры разделов — по левому краю, без липкости/«погони» при скролле */
.cf-menu .catalog-filters-wrap {
  position: static;
  top: auto;
  z-index: auto;
  background: transparent;
}

.cf-menu .catalog-filters-wrap::after {
  display: none;
}

.cf-menu .catalog-filters {
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: none;
  /* боковой отступ фильтров наследуется от .catalog-filters (как в каталоге) */
}

.cf-menu .catalog-count {
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

/* сетка карточек — во всю ширину */
.cf-menu .catalog-grid {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* бейдж с объёмом — компактный тёмный пилл */
.cf-menu .product-card__badge--coffee {
  font-size: 9px;
  letter-spacing: 0.12em;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* карточка меню кликабельна целиком (открывает модалку) */
.cf-menu .product-card {
  cursor: pointer;
}

@media (max-width: 768px) {
  .cf-menu .catalog-filters {
    flex-wrap: nowrap;
  }
}

/* ── Hero / Философия: заметная кнопка как на главной + центровка списков ── */

/* кнопка-CTA: как на странице «Оформление» — РОЗОВАЯ (#E7385A), скруглённая,
   широкая (во всю колонку), Montserrat ЗАГЛАВНЫЕ белые */
.cf-hero .ea-hero__right .ea-btn,
.cf-philo .ea-hero__right .ea-btn,
.cf-lemon .ea-hero__right .ea-btn,
.cf-sweetblock .ea-hero__right .ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(100%, 560px);
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: 20px 38px;
  background: var(--wine, #E7385A);
  color: #FFFFFF;
  border: 1px solid var(--wine, #E7385A);
  border-radius: 12px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(231, 56, 90, 0.26);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.cf-hero .ea-hero__right .ea-btn:hover,
.cf-philo .ea-hero__right .ea-btn:hover,
.cf-lemon .ea-hero__right .ea-btn:hover,
.cf-sweetblock .ea-hero__right .ea-btn:hover {
  background: transparent;
  color: var(--wine, #E7385A);
  border-color: var(--wine, #E7385A);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(231, 56, 90, 0.18);
}

.cf-hero .ea-hero__right .ea-btn svg,
.cf-philo .ea-hero__right .ea-btn svg,
.cf-lemon .ea-hero__right .ea-btn svg,
.cf-sweetblock .ea-hero__right .ea-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s ease;
}

.cf-hero .ea-hero__right .ea-btn:hover svg,
.cf-philo .ea-hero__right .ea-btn:hover svg,
.cf-lemon .ea-hero__right .ea-btn:hover svg,
.cf-sweetblock .ea-hero__right .ea-btn:hover svg {
  transform: scale(1.22);
}

/* карточки меню кофейни — скруглённые (12px), как на главной странице:
   медиа товара + кнопки «Подробнее»/«В корзину» */
.cf-menu .product-card__media {
  border-radius: 12px;
}
.cf-menu .product-card__media .product-card__image,
.cf-menu .product-card__media .product-card__img,
.cf-menu .product-card__media .product-card__ph {
  border-radius: inherit;
}
/* Кнопки карточек меню — каждая во всю ширину карточки (одна колонка) */
.cf-menu .product-card__btns {
  grid-template-columns: 1fr;
}
.cf-menu .product-card__btn {
  border-radius: 12px;
  width: 100%;
}

/* Заголовки всей страницы кофейни — Montserrat ЗАГЛАВНЫЕ розовые, как в блоке
   этапов (по просьбе 2026-06-18; раньше был script Classica). Логотип PALOMA
   остаётся Italiana (--logo, отдельно). «Оформление» не затрагивается. */
.ea-page.coffee-ea {
  --fhead: "Montserrat", Arial, sans-serif;
}
.coffee-ea .ea-title,
.coffee-ea .ea-hero__h1,
.coffee-ea .cf-menu__name,
.coffee-ea .cf-modal__title {
  font-family: "Montserrat", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  color: #E7385A;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.14;
}

/* кнопка «Смотреть дальше» — по центру под сеткой меню, тёмная как бренд */
.cf-more {
  display: block;
  margin: clamp(28px, 3.5vw, 48px) auto 0;
  padding: clamp(13px, 1.4vw, 17px) clamp(34px, 4vw, 56px);
  background: #1B1A18;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: var(--fsans, "Manrope", sans-serif);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(27, 26, 24, 0.22);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.cf-more:hover {
  background: #FFFFFF;
  color: #1B1A18;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(27, 26, 24, 0.18);
}

/* ═══════════════════════════════════════════════════════════════════
   МЕНЮ-ЭДИТОРИАЛ кофейни: строки-позиции, сгруппированные по категориям
   (замена фото-карточек — фото напитков нет). Клик по строке = выбор
   объёма (для мультиразмерных), «+» добавляет в корзину (PalomaCart).
   ═══════════════════════════════════════════════════════════════════ */
.cf-menu #cfMenuGrid.catalog-grid {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 6px 6px 8px;
  max-width: none;
}
.cfm-cat { margin: 0 0 clamp(30px, 4vw, 54px); }
.cfm-cat:last-child { margin-bottom: 6px; }
.cfm-cathead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.cfm-eye {
  font-family: 'Classica One', 'Italiana', cursive;
  font-size: clamp(18px, 1.7vw, 24px);
  color: var(--wine, #E7385A);
  line-height: 1;
}
.cfm-title {
  font-family: var(--fhead, 'Montserrat', Arial, sans-serif);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; font-size: clamp(13px, 1.2vw, 15px);
  color: var(--ink, #1B1A18);
}
.cfm-count { font-size: 11px; letter-spacing: .1em; color: #9a8f84; }
.cfm-rule {
  height: 1px; background: var(--eline, rgba(74, 53, 38, 0.16));
  transform: scaleX(0); transform-origin: left;
}
.cfm-cat.is-in .cfm-rule { animation: cfmRule .9s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes cfmRule { to { transform: scaleX(1); } }

.cfm-row {
  display: grid;
  grid-template-columns: 1fr auto auto 40px;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
  padding: 15px clamp(14px, 2vw, 26px);
  margin-bottom: 6px;
  border-radius: 16px;
  background: #F7F3EC;
  cursor: pointer;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1),
    transform .6s cubic-bezier(.22, 1, .36, 1),
    background .3s ease;
}
.cfm-row.is-in { opacity: 1; transform: none; }
.cfm-row:hover { background: #FBEAF0; }
.cfm-name {
  font-family: var(--fhead, 'Montserrat', Arial, sans-serif);
  font-size: clamp(16px, 1.7vw, 22px); font-weight: 500; line-height: 1.15;
  color: var(--wine, #E7385A); letter-spacing: .005em;
  padding: 2px 0;
}
.cfm-vol { font-family: var(--fdisplay, 'Montserrat', Arial, sans-serif); font-size: 11.5px; letter-spacing: .05em; color: #9a8f84; white-space: nowrap; }
.cfm-price { font-family: var(--fdisplay, 'Montserrat', Arial, sans-serif); font-size: 14px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; color: var(--ink, #1B1A18); }
.cfm-add {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--eline, rgba(74, 53, 38, 0.22));
  background: var(--paper, #FFFFFF); color: var(--ink, #1B1A18); cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: .25s ease; padding: 0;
}
.cfm-add::before { content: "+"; font-size: 20px; line-height: 1; font-weight: 300; transition: transform .3s ease; }
.cfm-row:hover .cfm-add { border-color: var(--wine, #E7385A); color: var(--wine, #E7385A); }
.cfm-add:hover { background: var(--wine, #E7385A); color: #FFFFFF; transform: rotate(90deg); }
.cfm-add.is-done { background: var(--wine, #E7385A); border-color: var(--wine, #E7385A); color: #FFFFFF; transform: none; }
.cfm-add.is-done::before { content: "✓"; font-size: 16px; }

.cfm-tray {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px;
  overflow: hidden; max-height: 0; padding: 0;
  transition: max-height .35s ease, padding .35s ease;
}
.cfm-tray.open { max-height: 140px; padding: 14px 0 6px; }
.cfm-chip {
  font-family: var(--fdisplay, 'Montserrat', Arial, sans-serif); font-size: 12.5px;
  border: 1px solid var(--eline, rgba(74, 53, 38, 0.22)); background: var(--paper, #FFFFFF);
  color: var(--ink, #1B1A18); border-radius: 28px; padding: 9px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; transition: .2s ease;
}
.cfm-chip:hover { border-color: var(--wine, #E7385A); color: var(--wine, #E7385A); transform: translateY(-1px); }
.cfm-chip b { font-weight: 500; }
.cfm-chip span { color: #9a8f84; }

@media (max-width: 620px) {
  .cfm-row { grid-template-columns: 1fr auto 36px; gap: 8px 12px; padding: 13px 15px; }
  .cfm-vol { display: none; }
  .cfm-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cfm-row { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   СИНИЙ АКЦЕНТ — ТОЛЬКО НА СТРАНИЦЕ КОФЕЙНИ (body.coffee-page).
   Все прочие страницы/блоки и coffee-item (без .coffee-page) остаются
   розовыми. Меняем токен --wine → синий (покрывает все var(--wine)),
   плюс точечно переопределяем «зашитые» розовые литералы контента кофейни.
   Синий бренда: #3B4B96 (тёмный вариант #2C3A78, rgba 59,75,150).
   ═══════════════════════════════════════════════════════════════════ */
.coffee-page,
.coffee-page .ea-page {
  --wine: #3B4B96;
  --wine-d: #2C3A78;
  --color-accent: #3B4B96;
  --burgundy: #3B4B96;
}
/* заголовки Montserrat (были заданы #E7385A напрямую, минуя переменную) */
.coffee-page .coffee-ea .ea-title,
.coffee-page .coffee-ea .ea-hero__h1,
.coffee-page .coffee-ea .cf-menu__name,
.coffee-page .coffee-ea .cf-modal__title {
  color: var(--wine, #3B4B96);
}
/* тени CTA-кнопки героя (были розовые) */
.coffee-page .cf-hero .ea-hero__right .ea-btn,
.coffee-page .cf-philo .ea-hero__right .ea-btn,
.coffee-page .cf-lemon .ea-hero__right .ea-btn {
  box-shadow: 0 14px 34px rgba(59, 75, 150, 0.26);
}
.coffee-page .cf-hero .ea-hero__right .ea-btn:hover,
.coffee-page .cf-philo .ea-hero__right .ea-btn:hover,
.coffee-page .cf-lemon .ea-hero__right .ea-btn:hover {
  box-shadow: 0 18px 40px rgba(59, 75, 150, 0.18);
}
/* маркеры списка «философии» (тень-ореол был розовый; сам круг = var(--wine)) */
.coffee-page .cf-uls li::before { box-shadow: 0 0 0 4px rgba(59, 75, 150, 0.12); }
/* блок услуг (шторка): номер + оффер были розовые */
.coffee-page .cf-svc .ea-serv__num { color: rgba(59, 75, 150, 0.65); }
.coffee-page .cf-svc .ea-serv__offer {
  border-top-color: rgba(59, 75, 150, 0.22);
  color: rgba(59, 75, 150, 0.9);
}
/* меню: розовая заливка строки при наведении → голубая */
.coffee-page .cfm-row:hover { background: #EAEDF7; }

/* контент кофейни с «зашитым» #E7385A из общего event-author.css
   (этот файл нельзя править — заденет «Оформление»), переопределяем scoped */
.coffee-page .ea-serv__ctitle { color: var(--wine, #3B4B96) !important; }
.coffee-page .ea-serv__slash { color: rgba(59, 75, 150, 0.85) !important; }
.coffee-page .ea-serv__price {
  color: rgba(59, 75, 150, 0.9) !important;
  border-top-color: rgba(59, 75, 150, 0.22) !important;
}
.coffee-page .ea-proc__ph { border-color: #3B4B96 !important; }
.coffee-page .ea-proc .ea-step__t,
.coffee-page .ea-step__t,
.coffee-page .ea-step__n {
  color: var(--wine, #3B4B96) !important;
  -webkit-text-stroke-color: #3B4B96 !important;
}

/* общие элементы сайта (шапка, плавающий виджет sf2, куки-баннер) —
   на странице кофейни тоже синие */
.coffee-page .site-header__badge,
.coffee-page .wishlist-count,
.coffee-page .header-wishlist-count,
.coffee-page .sf2-round__btn,
.coffee-page .cookie-bar__btn--accept {
  background-color: #3B4B96 !important;
}
.coffee-page .cookie-bar__btn--accept { border-color: #3B4B96 !important; }
.coffee-page .sf2-send,
.coffee-page .sf2-badge { color: #3B4B96 !important; }
.coffee-page .sf2-send svg,
.coffee-page .sf2-badge svg { color: #3B4B96 !important; stroke: #3B4B96 !important; }

/* логотип PALOMA — это картинка (розовый цвет запечён в PNG), поэтому на
   странице кофейни подменяем на синюю версию: фон (шапка/прелоадер) и <img>
   (герой/философия). Файл paloma-wordmark-blue.png = перекраска pink-версии. */
.coffee-page .site-header__logo,
.coffee-page .paloma-page-loader__logo {
  background-image: url("images/paloma/logo/paloma-wordmark-blue.png") !important;
}
.coffee-page .cf-hero__logoimg,
.coffee-page .ea-philo__logoimg {
  content: url("images/paloma/logo/paloma-wordmark-blue.png");
}

/* шапка кофейни — сплошная (кремовая) сразу при загрузке, а не прозрачная
   над тёмным hero (иначе тёмный текст меню не виден). Держим её видимой во
   всех состояниях: и над hero (coffee-hero-active), и при скролле. */
body.coffee-page .site-header,
body.coffee-page .site-header.coffee-hero-active,
body.coffee-page .site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.96) !important;
  border-bottom-color: rgba(27, 26, 24, 0.1) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FILM STRIP — 3D-изогнутая лента карточек, скользит через центр
   (референс: генератор «Film Strip»). Позиции карточек считает JS.
   ═══════════════════════════════════════════════════════════════════ */
.cf-strip {
  position: relative; z-index: 1; isolation: isolate;
  background: #101014; color: #F4F1EA;
  padding: clamp(56px,9vh,110px) 0 clamp(64px,10vh,120px);
  overflow: hidden;
}
.cf-strip__head {
  text-align: center; margin: 0 auto clamp(28px,5vh,56px); padding: 0 24px;
}
.cf-strip__head .ea-eyebrow { display: block; color: rgba(244,241,234,.55); margin-bottom: 12px; }
.cf-strip__title {
  font-family: var(--fdisplay, 'Playfair Display', serif);
  font-weight: 500; font-size: clamp(30px,4.4vw,60px); margin: 0; line-height: 1.05;
}
.cf-strip__stage {
  position: relative; height: clamp(300px,46vh,480px);
  perspective: 1500px; perspective-origin: 50% 50%;
  cursor: grab; touch-action: pan-y; outline: none;
  overflow: hidden;   /* обрезаем 3D-карточки внутри рамки ленты, чтобы не вылезали на соседние блоки */
}
.cf-strip__stage.is-drag { cursor: grabbing; }
.cf-strip__band { position: absolute; inset: 0; transform-style: preserve-3d; }
.cf-strip__card {
  position: absolute; top: 50%; left: 50%;
  width: clamp(210px,23vw,330px); aspect-ratio: 4 / 5;
  margin: 0; border-radius: 14px; overflow: hidden;
  background: #1a1a20; box-shadow: 0 30px 70px rgba(0,0,0,.55);
  will-change: transform, opacity; backface-visibility: hidden;
  transform: translate(-50%,-50%); /* стартовая, дальше задаёт JS */
}
.cf-strip__card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; user-select: none;
}
.cf-strip__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,10,0) 55%, rgba(8,7,10,.55));
}
.cf-strip__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: var(--fhead, 'Montserrat', sans-serif);
  font-size: clamp(13px,1.2vw,16px); letter-spacing: .04em;
  color: #FFFFFF; text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
/* пока JS не подхватился — карточки не должны лежать некрасивой кучей */
.cf-strip:not(.is-ready) .cf-strip__card { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .cf-strip__card { transition: none; }
}

/* бейдж «новинка» у позиций категории «Холодные» (летний продукт) */
.cfm-new {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 3px 10px; border-radius: 20px;
  background: var(--wine, #3B4B96); color: #FFFFFF;
  font-family: var(--fhead, 'Montserrat', sans-serif);
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  line-height: 1.3; white-space: nowrap; transform: translateY(-2px);
}

/* цветы по бокам заголовка «Авторское меню кофейни» (синий слева, оранжевый справа) */
.cf-menu-titlewrap {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4vw, 40px); flex-wrap: nowrap;
}
.cf-menu-flower { width: clamp(48px, 6.5vw, 96px); height: auto; flex-shrink: 0; }
@media (max-width: 560px) { .cf-menu-flower { width: 38px; } }
