/* =========================================================
   ТаИна — главная страница
   ========================================================= */

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  perspective: 1000px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.98;
  margin: 18px 0 22px;
}
.hero h1 em { font-style: italic; color: var(--caramel); }
.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--deep);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--espresso);
  color: var(--cream);
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--deep); }
.btn-secondary {
  border: 1.5px solid rgba(43, 29, 20, 0.25);
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--espresso); background: rgba(43, 29, 20, 0.05); }

/* hero visual: coffee ring stamp */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.1s linear;
}
.stamp {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a3826, #2B1D14 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -20px rgba(43, 29, 20, 0.45);
  animation: floaty 7s ease-in-out infinite;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(247, 239, 227, 0.35);
}
.stamp-text {
  font-family: var(--font-display);
  color: var(--cream);
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.9;
}
.stamp-text .big {
  display: block;
  font-family: var(--font-brand);
  font-size: 50px;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 6px 0;
  font-weight: normal;
}
.ring-orbit {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(181, 117, 75, 0.3);
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 860px) {
  .stamp { width: 240px; height: 240px; }
  .stamp-text { font-size: 13px; }
  .stamp-text .big { font-size: 40px; }
}

/* ---------- about ---------- */
.about {
  padding: 64px 0;
  border-top: 1px solid rgba(43, 29, 20, 0.1);
  border-bottom: 1px solid rgba(43, 29, 20, 0.1);
}
.about-inner {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .about-inner { grid-template-columns: 1fr; gap: 20px; }
}
.about p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--deep);
  max-width: 60ch;
}
.about-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px dashed rgba(43, 29, 20, 0.15);
}
@media (max-width: 960px) {
  .about-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .about-features { grid-template-columns: 1fr; }
}
.feature-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(43, 29, 20, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  transition: transform 0.3s var(--ease-out), background 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(43, 29, 20, 0.18);
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(181, 117, 75, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--caramel);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--espresso);
  margin-bottom: 6px;
  font-weight: 600;
}
.feature-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cocoa);
}

/* ---------- menu preview ---------- */
.menu-section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-top: 10px;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: 28px;
  max-width: var(--content-width);
  margin: 0 auto;
}
@media (max-width: 780px) {
  .menu-grid { grid-template-columns: 1fr; }
}
.menu-col { display: flex; flex-direction: column; min-width: 0; }
.menu-card-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.menu-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(43, 29, 20, 0.1);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 48px -28px rgba(43, 29, 20, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.menu-frame:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 34px 60px -28px rgba(43, 29, 20, 0.4);
}
.menu-media {
  flex: 1;
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--latte);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 148 / 210;
  transition: filter 0.2s;
}
.menu-media--landscape {
  flex: none;            /* пропорции 420/297 совпадают с картинкой — без обрезки */
  margin-block: auto;    /* центрируем между верхом рамки и подписью */
  aspect-ratio: 420 / 297;
  width: 100%;
}
.menu-media:hover { filter: brightness(0.97); }
.menu-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
@media (max-width: 780px) {
  .menu-media { width: 100%; max-width: min(360px, 70vw); }
  .menu-media--landscape { max-width: 100%; }
}
.menu-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  color: var(--cocoa);
}
.menu-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.menu-tag {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(43, 29, 20, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.menu-tag:hover {
  border-color: var(--caramel);
  background: #fff;
  transform: translateY(-1px);
}
.menu-cta-wrap {
  text-align: center;
  margin-top: 28px;
}

/* ---------- faq section ---------- */
.faq-section {
  padding: 88px 0;
  border-top: 1px solid rgba(43, 29, 20, 0.1);
}
.faq-head {
  text-align: center;
  margin-bottom: 44px;
}
.faq-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-top: 10px;
}
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(43, 29, 20, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 12px 28px -18px rgba(43, 29, 20, 0.14);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(181, 117, 75, 0.5);
  box-shadow: 0 16px 36px -16px rgba(43, 29, 20, 0.2);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(181, 117, 75, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), background 0.2s;
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--caramel);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] .faq-icon {
  background: var(--caramel);
}
.faq-item[open] .faq-icon svg {
  stroke: #fff;
  transform: rotate(180deg);
}
.faq-answer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(43, 29, 20, 0.1);
  font-size: 15px;
  line-height: 1.65;
  color: var(--deep);
}
.faq-answer strong {
  color: var(--espresso);
}

/* ---------- info / map ---------- */
.info-section {
  padding: 88px 0;
  background: var(--espresso);
  color: var(--cream);
}
.info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .info-inner { grid-template-columns: 1fr; gap: 40px; }
}
.info-section .eyebrow { color: var(--latte); }
.info-section h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin: 12px 0 28px;
}
.info-list { display: flex; flex-direction: column; gap: 22px; list-style: none; }
.info-item { display: flex; gap: 16px; }
.info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(247, 239, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; stroke: var(--latte); }
.info-item-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--latte);
  margin-bottom: 4px;
  font-weight: 700;
}
.info-item-value { font-size: 16.5px; line-height: 1.5; color: var(--cream); font-style: normal; }
.info-item-value a:hover { text-decoration: underline; }

.map-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(247, 239, 227, 0.15);
  aspect-ratio: 4 / 3.4;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.15) sepia(0.12);
}

.map-card-link {
  margin-top: 16px;
  background: rgba(247, 239, 227, 0.06);
  border: 1px solid rgba(247, 239, 227, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.map-card-link:hover {
  background: rgba(181, 117, 75, 0.14);
  border-color: var(--caramel);
  transform: translateY(-2px);
}
.map-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--caramel);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.map-card-icon svg { width: 19px; height: 19px; stroke: var(--espresso); }
.map-card-text { flex: 1; min-width: 0; }
.map-card-title { font-size: 14.5px; font-weight: 700; color: var(--cream); }
.map-card-meta {
  font-size: 13px;
  color: rgba(247, 239, 227, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.map-card-meta .stars { color: var(--latte); letter-spacing: -1px; }
.map-card-arrow { flex-shrink: 0; opacity: 0.6; }
.map-card-arrow svg { width: 16px; height: 16px; stroke: var(--cream); }

.review-card {
  margin-top: 16px;
  background: rgba(181, 117, 75, 0.1);
  border: 1px solid rgba(181, 117, 75, 0.35);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: background 0.25s, border-color 0.25s;
}
.review-card:hover { background: rgba(181, 117, 75, 0.15); border-color: var(--caramel); }
.review-qr {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.review-card:hover .review-qr { transform: scale(1.04); }
.review-qr img { width: 100%; height: 100%; }
.review-card-text { flex: 1; min-width: 0; }
.review-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
}
.review-card-title svg { width: 18px; height: 18px; stroke: var(--latte); flex-shrink: 0; }
.review-card-sub {
  font-size: 14px;
  color: rgba(247, 239, 227, 0.62);
  margin-top: 6px;
  line-height: 1.55;
  max-width: 40ch;
}
.review-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--espresso);
  background: var(--latte);
  padding: 10px 18px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.25s, background 0.25s;
}
.review-card-cta:hover { transform: translateY(-2px); background: #f0d6b3; }
.review-card-cta svg { width: 14px; height: 14px; stroke: var(--espresso); }
@media (max-width: 560px) {
  .review-card { flex-direction: column; text-align: center; gap: 16px; }
  .review-card-sub { max-width: none; }
}

/* ---------- social ---------- */
.social-section { padding: 88px 0 100px; text-align: center; }
.social-section h2 { font-size: clamp(30px, 4vw, 40px); margin: 12px 0; }
.social-section p {
  color: var(--cocoa);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 40px;
}
.social-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 150px;
  padding: 26px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(43, 29, 20, 0.12);
  background: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.social-badge:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--caramel);
  box-shadow: 0 20px 34px -20px rgba(43, 29, 20, 0.35);
}
.social-badge svg { width: 30px; height: 30px; stroke: var(--espresso); }
.social-badge span { font-size: 14px; font-weight: 700; color: var(--deep); }

/* ---------- stagger reveal ---------- */
.reveal-stagger > * { opacity: 0; }
.reveal-stagger.in-view > * { animation: staggerUp 0.7s var(--ease-reveal) both; }
.reveal-stagger.in-view > :nth-child(1) { animation-delay: 0.02s; }
.reveal-stagger.in-view > :nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.in-view > :nth-child(3) { animation-delay: 0.22s; }
.reveal-stagger.in-view > :nth-child(4) { animation-delay: 0.32s; }
@keyframes staggerUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* ---------- coffee-bean cursor (desktop only) ---------- */
.bean-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 60% 40% 60% 40%;
  background: var(--caramel);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: multiply;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .bean-cursor.active { opacity: 0.55; }
}

/* ---------- lightbox: превью меню / QR ---------- */
.lightbox-overlay--media .lightbox-content { max-width: min(90vw, 720px); max-height: 86vh; gap: 14px; }
.lightbox-overlay--media.is-landscape .lightbox-content { max-width: 94vw; }
.lightbox-overlay--media .lightbox-body {
  border-radius: 16px;
  padding: 20px;
  max-height: 76vh;
}
.lightbox-img {
  width: auto;
  height: auto;
  max-width: 85vw;
  max-height: calc(76vh - 40px);
  object-fit: contain;
  border-radius: 12px;
}
.is-landscape .lightbox-img { max-width: 90vw; }
.lightbox-img--qr {
  width: min(40vh, 40vw, 480px);
  height: min(40vh, 40vw, 480px);
}
.lightbox-label { color: var(--cream); font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; }
.lightbox-text-menu-btn {
  display: inline-block;
  margin-top: 2px;
  padding: 10px 22px;
  background: var(--caramel);
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s ease;
}
.lightbox-text-menu-btn:hover { background: var(--cocoa); }
.lightbox-overlay--media.is-qr .lightbox-text-menu-btn { display: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ring-orbit, .stamp { animation: none; }
  .reveal-stagger > *, .reveal-stagger.in-view > * { opacity: 1; animation: none; }
  .hero-visual { transition: none; }
}
