/* ============ ЛИСИЙ КОФЕ ============ */
:root {
  --cream: #F7F0E5;
  --cream-2: #EFE3D0;
  --paper: #FFFBF4;
  --espresso: #2A1A12;
  --cocoa: #5A4030;
  --muted: #8C7361;
  --fox: #E8722A;
  --fox-deep: #C8541C;
  --amber: #F2B441;
  --line: #E6D8C3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 40px -18px rgba(42, 26, 18, .25);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--espresso);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fox); color: var(--paper); }

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ШАПКА */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(247, 240, 229, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(42, 26, 18, .35);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--espresso);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.brand em { color: var(--fox); font-style: normal; }
.brand-fox { width: 38px; height: 38px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-fox { transform: rotate(-8deg) scale(1.08); }
.brand-fox.small { width: 44px; height: 44px; }

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--cocoa);
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--fox);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { margin-left: .5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* КНОПКИ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(120%); }

.btn-primary { background: var(--fox); color: var(--paper); box-shadow: 0 10px 24px -10px rgba(232, 114, 42, .6); }
.btn-primary:hover { background: var(--fox-deep); transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(232, 114, 42, .65); }

.btn-ghost { background: transparent; color: var(--espresso); border: 1.5px solid var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); transform: translateY(-3px); }

.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: var(--amber); transform: translateY(-3px); }

/* ГЛАВНЫЙ ЭКРАН */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(242, 180, 65, .28), transparent 70%),
    radial-gradient(50% 50% at 12% 82%, rgba(232, 114, 42, .16), transparent 70%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(90, 64, 48, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: rgba(242, 180, 65, .5); top: -120px; right: -80px; }
.blob-2 { width: 380px; height: 380px; background: rgba(232, 114, 42, .35); bottom: -140px; left: -100px; animation-delay: -6s; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--fox);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--fox);
  border-radius: 2px;
}
.eyebrow-light { color: var(--amber); }
.eyebrow-light::before { background: var(--amber); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.015em;
}
.hero h1 em {
  font-style: italic;
  color: var(--fox);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8 C20 3 40 11 60 6 C80 1 100 9 118 5' fill='none' stroke='%23E8722A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: .7;
}
.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: var(--cocoa);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: .15rem; }
.hero-stats dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--fox-deep); }
.hero-stats dd { font-size: .85rem; color: var(--muted); }

/* Кружка */
.hero-art {
  display: flex;
  justify-content: center;
}
.cup {
  width: min(400px, 82%);
  filter: drop-shadow(0 24px 30px rgba(42, 26, 18, .18));
  animation: cupFloat 7s ease-in-out infinite;
}
.cup-fox { animation: foxPeek 5s ease-in-out infinite; transform-origin: 110px 130px; }

.steam path {
  fill: none;
  stroke: var(--cocoa);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  animation: steamRise 3.4s ease-in-out infinite;
}
.steam .s2 { animation-delay: 1.1s; }
.steam .s3 { animation-delay: 2.2s; }

/* Кофейные зёрна */
.bean {
  position: absolute;
  width: 22px; height: 33px;
  background: linear-gradient(145deg, #6B4326, #3E2818);
  border-radius: 50%;
  opacity: .5;
  animation: beanFloat 9s ease-in-out infinite;
}
.bean::after {
  content: "";
  position: absolute;
  left: 50%; top: 8%;
  width: 3px; height: 84%;
  background: rgba(247, 240, 229, .5);
  border-radius: 3px;
  transform: translateX(-50%) rotate(14deg);
}
.bean-1 { top: 18%; left: 6%; animation-delay: 0s; }
.bean-2 { top: 68%; left: 12%; transform: rotate(40deg); animation-delay: -3s; }
.bean-3 { top: 30%; right: 8%; transform: rotate(-30deg); animation-delay: -6s; }

.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--cocoa);
  border-radius: 14px;
  opacity: .55;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--fox);
  animation: wheel 1.8s ease-in-out infinite;
}

/* БЕГУЩАЯ СТРОКА */
.ticker {
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
  padding: .85rem 0;
  border-block: 3px solid var(--fox);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  white-space: nowrap;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}
.ticker-track i {
  font-style: normal;
  color: var(--fox);
  margin: 0 1.4rem;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

/* СЕКЦИИ */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  font-weight: 700;
  max-width: 18ch;
}
.section h2 em { font-style: italic; color: var(--fox); }

/* О НАС */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
.about-text p { color: var(--cocoa); margin-bottom: 1.1rem; font-size: 1.02rem; }

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--fox);
}
.feature-card svg {
  width: 44px; height: 44px;
  color: var(--fox);
  margin-bottom: .9rem;
  transition: transform .35s ease;
}
.feature-card:hover svg { transform: scale(1.12) rotate(-4deg); }
.feature-card h3 { font-family: var(--serif); font-size: 1.08rem; margin-bottom: .35rem; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.55; }

/* МЕНЮ */
.menu {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(242, 180, 65, .14), transparent 70%),
    var(--paper);
  border-block: 1px solid var(--line);
}
.menu .section-head { margin-bottom: 1rem; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 2.2rem 0 1.6rem;
}
.tab {
  padding: .65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--cocoa);
  cursor: pointer;
  transition: all .25s ease;
}
.tab:hover { border-color: var(--fox); color: var(--fox-deep); transform: translateY(-2px); }
.tab.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
  box-shadow: 0 10px 22px -12px rgba(42, 26, 18, .5);
}

.menu-panels {
  display: grid;
  max-width: 780px;
}
.menu-panel {
  display: grid;
  gap: .4rem;
}
.menu-panel[hidden] { display: none; }
.menu-panel.active { animation: panelIn .45s ease; }

.panel-note {
  grid-column: 1 / -1;
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  padding: .4rem 0 1rem;
}

.menu-item {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  transition: background .3s ease, transform .3s ease;
}
.menu-item:hover {
  background: var(--cream);
  transform: translateX(6px);
}
.mi-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
}
.mi-head h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
}
.mi-head h3 .badge {
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--fox);
  color: var(--paper);
  padding: .22rem .55rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .4rem;
}
.menu-item.featured .mi-head h3 .badge { animation: badgePulse 2.4s ease-in-out infinite; }
.dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-.28em);
}
.price {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--fox-deep);
  white-space: nowrap;
  transition: transform .3s ease;
}
.menu-item:hover .price { transform: scale(1.08); }
.menu-item p {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .25rem;
  max-width: 52ch;
}

/* ФИШКИ (тёмная секция) */
.signature {
  position: relative;
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
}
.signature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 82% 50%, rgba(232, 114, 42, .22), transparent 70%);
}
.sig-fox {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(340px, 42vw);
  opacity: .9;
  animation: foxBreathe 6s ease-in-out infinite;
  pointer-events: none;
}
.sig-fox svg { width: 100%; height: auto; }
.sig-copy { position: relative; max-width: 640px; }
.signature h2 { color: var(--cream); }
.signature h2 em { color: var(--amber); }
.signature p {
  margin-top: 1.1rem;
  color: rgba(247, 240, 229, .75);
  max-width: 52ch;
}
.sig-actions { margin-top: 2rem; }

/* КОНТАКТЫ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.c-icon {
  width: 46px; height: 46px;
  margin: 0 auto 1rem;
  color: var(--fox);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.contact-card:hover .c-icon { transform: translateY(-4px) scale(1.1); }
.contact-card h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: .4rem; }
.contact-card p { font-size: .92rem; color: var(--muted); }
.contacts-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: .92rem;
}

/* ПОДВАЛ */
.site-footer {
  background: #1D1109;
  color: var(--cream);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand p { font-size: .88rem; color: rgba(247, 240, 229, .6); max-width: 240px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-left: auto;
}
.footer-nav a {
  color: rgba(247, 240, 229, .75);
  text-decoration: none;
  font-size: .9rem;
  transition: color .25s ease;
}
.footer-nav a:hover { color: var(--amber); }
.copyright { width: 100%; font-size: .8rem; color: rgba(247, 240, 229, .4); margin-top: .5rem; }

/* АНИМАЦИИ ПОЯВЛЕНИЯ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2) { transition-delay: .08s; }
.features .reveal:nth-child(3) { transition-delay: .16s; }
.features .reveal:nth-child(4) { transition-delay: .24s; }

@keyframes cupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes foxPeek {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(-3deg); }
}
@keyframes steamRise {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-14px); }
}
@keyframes beanFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(18deg); }
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.12); }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 114, 42, .55); }
  50% { box-shadow: 0 0 0 7px rgba(232, 114, 42, 0); }
}
@keyframes foxBreathe {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(calc(-50% - 10px)) scale(1.03); }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero { padding-top: 9rem; }
  .eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-art { order: -1; }
  .cup { width: min(280px, 62%); }
  .about-grid { grid-template-columns: 1fr; }
  .sig-fox { opacity: .35; right: -6%; }
  .sig-copy { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(247, 240, 229, .98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 4%;
    margin: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
  }
  .site-nav.open { transform: scaleY(1); }
  .site-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .features { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
  .tab { white-space: nowrap; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { margin-left: 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
