/* =====================
   BASE
   ===================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
  width: 100%;
}
body {
  background: #f0f0f0;
  font-family: 'Basis Grotesque Pro', sans-serif;
  min-height: 100vh;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================
   PAGE
   ===================== */

.page {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

/* =====================
   HEADER
   ===================== */

.header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s;
}

.icon-btn:hover {
  transform: scale(1.03);
}

.icon-btn:active {
  transform: scale(0.97);
}

/* =====================
   SEARCH
   ===================== */

.search-container {
  position: relative;
  flex: 1;
}

.search-box {
  flex: 1;
  height: 52px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 18px;
  background: transparent;
  color: #652a29;
}

.search-box span {
  font-size: 18px;
  color: rgba(101, 42, 41, 0.6);
}

.search-results {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 200;
}

.search-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}

.search-item:hover {
  background: #f5f5f5;
}

/* =====================
   HERO
   ===================== */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-brand,
.hero-photo-wrap {
  height: 260px;
}

.hero-brand {
  border-radius: 20px;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px 10px;
  overflow: hidden;
}

.hero-logo {
  width: 90%;
  height: auto;
  object-fit: contain;
}

.hero-photo-wrap {
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================
   MENU BUTTON
   ===================== */

.btn-menu {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: 14px;
  background: var(--card-yellow);
  border: 1.5px solid #6d3534;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.btn-menu:hover {
  transform: scale(1.02);
}

.btn-menu:active {
  transform: scale(0.97);
}

/* =====================
   ACTION BUTTONS
   ===================== */

.actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, transform 0.15s;
}

.action-btn:hover {
  background: var(--border);
  transform: scale(1.02);
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn {
  gap: 3px;
}

.action-btn-text {
  font-size: 11px;
  font-weight: 600;
  color: #652a29;
  text-transform: uppercase;
}
/* =====================
   MENU PAGE
   ===================== */

.menu-section {
  margin-top: 10px;
}

.categories {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
}

.categories:active {
  cursor: grabbing;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  border-radius: 40px;
  border: 1px solid #cce9f1;
  background: white;
  font-size: 14px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #652a29;
  cursor: pointer;
}

.category-btn.active {
  background: #cce9f1;
  border: 1px solid #3e685a;
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 0;
}

.item-card {
  background: #FFFFFF;
  border: 1px solid rgba(101, 42, 41, 0.5);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.item-card[hidden] {
  display: none !important;
}

.item-card img {
  width: 100%;
  aspect-ratio: 4 / 2.5;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.item-card--drink img {
  aspect-ratio: 3 / 4;
}

.item-info {
  display: flex;
  flex-direction: column;
  padding: 8px 2px 2px;
  flex: 1;
  gap: 10px;
}

.item-name {
  color: #652a29;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.3;
  flex: 1;
}

.item-price {
  color: #652a29;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  align-self: flex-end;
}

.hero-logo-link {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.hero-logo {
  width: 90%;
  height: auto;
  object-fit: contain;
}

.item-card-highlight {
  box-shadow: 0 0 0 3px #652a29;
  transition: box-shadow 0.3s ease;
}

/* =====================
   PRODUCT MODAL
   ===================== */

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  overflow: hidden;
}

.product-modal-overlay.open {
  display: flex;
}

.product-modal-content {
  max-height: calc(100vh - 32px);
  overflow: visible;
  width: 100%;
  max-width: 410px;
}

/* =====================
   Product Card
   ===================== */

.product-card {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border: 2px solid #652a29;
  border-radius: 30px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
}

.product-card__image {
  width: calc(100% - 24px);
  margin: 12px 12px 0;
  aspect-ratio: 4 / 2.5;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
  display: block;
}

.product-card--drink .product-card__image {
  aspect-ratio: 3 / 4;
}

.product-card__body {
  padding: 16px 25px 0;
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.product-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  color: #652a29;
}

.product-card__price {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #652a29;
  white-space: nowrap;
}

.product-card__divider {
  width: 100%;
  height: 1px;
  background-color: #652a29;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.product-card__description {
  font-size: 12px;
  text-transform: uppercase;
  color: #652a29;
  line-height: 1.8;
  white-space: pre-wrap;
  padding-left: 10px;
  text-align: center;
  max-height: 75px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-card__description::-webkit-scrollbar {
  display: none;
}

.product-card__button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 48px;
  background-color: transparent;
  border: 2px solid #652a29;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.product-card__button:hover {
  background-color: #cce9f1;
}

.product-card__button svg {
  display: block;
}

/* =====================
   ROASTED PAGE
   ===================== */

.roasted-title-box {
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 16px;
}

.roasted-title {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.20em;
}

.roasted-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.5;
  padding: 0 10px;
  text-align: justify;
}

.roasted-section-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  text-transform: capitalize;
}

.roasted-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roasted-card {
  border: 2px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  gap: 12px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.roasted-card__img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}

.roasted-card__no-img {
  width: 140px;
  height: 140px;
  background: #f0f0f0;
  border-radius: 7px;
  flex-shrink: 0;
}

.roasted-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.roasted-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.roasted-card__weight {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.roasted-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
}

.roasted-card__flavor {
  font-size: 12px;
  color: var(--primary);
  opacity: 0.75;
  line-height: 1.4;
}

.roasted-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.roasted-card__brew {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
}

.roasted-card__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.roasted-empty {
  color: var(--primary);
  opacity: 0.6;
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
}

.roasted-card__titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roasted-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.roasted-card__region {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  opacity: 0.85;
}


/* =====================
   REMOVE FOCUS OUTLINE
   ===================== */

*:focus {
  outline: none;
}

.category-btn {
  -webkit-appearance: none;
  appearance: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* =====================
   BEANS BANNER
   ===================== */

.beans-banner {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  height: 220px;
}

.beans-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beans-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.beans-banner__text {
  color: #fff3bd;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.4;
  letter-spacing: 0.10em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* =====================
   STICKY HEADER
   ===================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0 -16px;
  padding: 5px 16px;
}

/* =====================
   FOOTER
   ===================== */

.site-footer {
  width: 100%;
  max-width: 440px; 
  margin: 0 auto;
  background: var(--primary);
  position: relative;
  z-index: 2;
}

.site-footer__inner {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer__logo-img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.site-footer__location {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__address {
  font-size: 11px;
  color: var(--card-yellow);
  font-weight: 500;
}

.site-footer__phone {
  font-size: 11px;
  color: var(--card-yellow);
  text-decoration: none;
  font-weight: 600;
}

/* =====================
   LANGUAGE SWITCHER
   ===================== */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.lang-switcher__current {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 200;
  min-width: 60px;
}

.lang-switcher__dropdown.open {
  max-height: 200px;
  opacity: 1;
  pointer-events: auto;
}

.lang-switcher__option {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.lang-switcher__option:hover {
  background: var(--border);
}

.lang-switcher__option--active {
  background: var(--border);
  font-weight: 700;
}

/* =====================
   HERO PHOTO OVERLAY
   ===================== */

.hero-photo-wrap {
  position: relative;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 12px 10px;
  padding-top: 30px;
  gap: 16px;
}

.hero-photo-text {
  color: #fff3bd;
  font-size: 15px;
  font-weight: 550;
  text-transform: flex-start;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  text-align: right;
}

.hero-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff3bd;
  color: #652a29;
  font-size: 7px;
  font-weight: 500;
  text-transform: flex-start;
  padding: 2px 12px 2px 2px;
  border-radius: 30px;
}

.hero-photo-btn-icon {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid #652a29;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
} 

/* =====================
   INFO SECTIONS (roasted page)
   ===================== */

.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-section__header {
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 16px;
}

.info-section__label {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: 0.2em;
}

.info-section__sub {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.info-section__img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.info-section__img--bordered {
  border: 2px solid var(--primary);
}

.info-section__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.5;
  padding: 0 10px;
  text-align: justify;
}

.info-section--knowledge {
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 16px;
  gap: 12px;
  display: flex;
  flex-direction: column;
}

.info-section--knowledge .info-section__header {
  border: none;
  padding: 0;
}

.info-section--knowledge .info-section__text {
  padding: 0;
}

/* =====================
   ROASTED PHOTOS GRID
   ===================== */

.roasted-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.roasted-photos-grid__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}
.info-section__video-wrap {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 3;
}

.info-section__video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-section--dark {
  background: var(--primary);
  border-radius: 10px;
  padding: 16px;
}

.info-section--dark .info-section__label {
  color: var(--card-yellow);
}

.info-section--dark .info-section__text {
  color: var(--card-yellow);
  padding: 0;
}

.info-section__divider {
  text-align: center;
  color: var(--primary);
  opacity: 0.8;
  font-size: 30px;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  overflow: hidden;
}


.info-section__text--highlight {
  background: var(--card-yellow);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: justify;
}

.open-status {
  margin-top: -30px;
  text-align: center;
}
.status-open, .status-closed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 5px;
  border-radius: 20px;
  border: 1px solid #fff3bd;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff3bd;
  padding-top: 4px;
}
.status-closed {
  color: #fff3bd;
  border-color: #fff3bd;
}

.status-closed .status-dot {
  background: #ff0000;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  padding-top: 4px;
}
.status-open .status-dot {
  background: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46,204,113,0.3);
  animation: pulse 3s infinite;
}
.status-closed .status-dot {
  background: #ff0000;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(46,204,113,0.3); }
  50% { box-shadow: 0 0 0 5px rgba(46,204,113,0.1); }
}

.cafe-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.work-hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 7px;
  letter-spacing: 0.05em;
  color: #fff3bd;
}


.home-section__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-left: 20px;
}

.home-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  cursor: grab;
}

.home-carousel::-webkit-scrollbar {
  display: none;
}

.home-carousel__pair {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 0 calc(50% - 7px);
}

.home-carousel__pair .item-card {
  cursor: pointer;
}

.home-interior {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 725px;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-left: 16px;    /* отступ слева */
  margin-right: 16px;   /* отступ справа */
  position: relative;
  z-index: 2;
}

.home-interior__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.home-carousels-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-carousel__card {
  flex: 0 0 calc(50% - 7px);
  width: calc(50% - 7px);
  cursor: pointer;
}



.home-brand-bg {
  position: relative;
  margin: 0 -16px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 2200px;
  overflow-x: hidden;  /* обрезаем только по горизонтали */
  overflow-y: hidden; /* по вертикали не обрезаем */
}

.home-brand-bg__logo {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 193vw;
  height: auto;
  max-width: none;
  pointer-events: none;
  opacity: 1;
  z-index: 1;
}
.home-brand-bg .home-section {
  position: relative;
  z-index: 1;
}


.home-text-block {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);  /* цвет текста — меняй здесь */
  line-height: 1.5;
  text-align: justify;
  position: relative;
  z-index: 1;
  border-radius: 10px;
  padding: 16px;
  margin-left: 16px;    /* отступ слева */
  margin-right: 16px;   /* отступ справа */
  background: var(--white);
}

.home-text-block__text2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);  /* цвет текста — меняй здесь */
  line-height: 1.5;
  text-align: justify;
  position: relative;
}

.home-text-block {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  padding: 16px;
  background: rgba(204, 233, 241, 0.5); /* прозрачность фона: меняй 0.7 (0 = полностью прозрачный, 1 = непрозрачный) */
  margin-top: 20px;    /* отступ сверху от предыдущего блока */
  margin-bottom: 20px; /* отступ снизу до следующего блока */
}

.text-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link--light {
  color: #3E685A;
  text-decoration-color: #3E685A;
}