/* Палитра и особые блоки демо «Ziarno» (кофейня). Общие компоненты — в ../demo.css. */

:root {
  --bg: #f6f0e6;
  --surface: #fffaf2;
  --ink: #2a1d14;
  --muted: #7a6656;
  --line: rgba(42, 29, 20, 0.1);
  --line-2: rgba(42, 29, 20, 0.2);
  --accent: #b5562f;
  --accent-ink: #ffffff;
  --font-display: 'Fraunces', Georgia, serif;
  --floor-bg: #e9dcc6;
  --chair: #c9b597;
}

/* ============ Старт ============ */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-7);
  min-height: 60vh;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Чашка капучино сверху, нарисованная CSS-градиентами. */
.latte {
  position: relative;
  display: grid;
  place-items: center;
}

.latte-cup {
  width: min(360px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf2 0 62%, #efe4d2 63% 70%, #fffaf2 71%);
  box-shadow:
    0 40px 80px -30px rgba(42, 29, 20, 0.45),
    inset 0 -8px 20px rgba(42, 29, 20, 0.08);
  animation: cup-float 6s ease-in-out infinite;
}

/* Латте-арт: кофе с сердечком из пены, медленно поворачивается. */
.latte-art {
  width: 74%;
  height: auto;
  animation: art-spin 40s linear infinite;
}

.latte-steam {
  position: absolute;
  top: -8%;
  display: flex;
  gap: var(--space-4);
}

.latte-steam i {
  width: 10px;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.9), transparent);
  filter: blur(4px);
  animation: steam 3.6s ease-in-out infinite;
}

.latte-steam i:nth-child(2) {
  animation-delay: 1.2s;
}

.latte-steam i:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes cup-float {
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes art-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(20px) scaleY(0.6);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scaleY(1.2);
  }
}

.highlights {
  margin-top: var(--space-7);
}

.highlights h3 {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 22px;
}

.highlights p {
  margin: 0;
}

.hl-icon {
  font-size: 28px;
}

/* ============ Меню ============ */

.menu-filter {
  margin-bottom: var(--space-5);
}

.menu-cols {
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--space-7);
}

/* ============ Повара ============ */

.chef .avatar {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.chef h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.chef .role {
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.chef .signature {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line-2);
  font-size: 14px;
}

/* ============ История ============ */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-6) var(--space-6);
  border-left: 2px solid var(--line-2);
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline b {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.timeline h3 {
  margin: var(--space-2) 0 var(--space-1);
  font-size: 18px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

/* ============ Контакты ============ */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: var(--space-7);
}

.contact h3 {
  margin: var(--space-5) 0 0;
  font-family: var(--font-display);
}

.city-map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
}

/* ============ Адаптивность ============ */

@media (max-width: 980px) {
  .hero,
  .story,
  .contact {
    grid-template-columns: 1fr;
  }

  .latte {
    order: -1;
  }

  .latte-cup {
    width: min(260px, 60vw);
  }
}

@media (max-width: 760px) {
  .menu-cols {
    grid-template-columns: 1fr;
  }
}
