

/* ---------- MOBILE NAV ONLY ---------- */
@media (max-width: 900px) {
  /* show hamburger, hide desktop menu */
  .menu { display: none; }                 /* hide the desktop hover menu */
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #dcdcdc;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
  }
  .menu-btn span { width: 20px; height: 2px; background:#111; display:block; }

  /* keep navbar padded on phones */
  .navbar { padding: .6rem .8rem; }

  /* mask behind drawer */
  .drawer-mask[hidden] { display: none; }
  .drawer-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease;
    z-index: 900;
  }
  .drawer-mask.is-open { opacity: 1; pointer-events: auto; }

  /* the drawer itself */
  .mobile-drawer {
    position: fixed; top: 0; left: 0;
    height: 100vh; width: 86vw; max-width: 420px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 1000;
    display: flex; flex-direction: column;
  }
  .mobile-drawer.is-open { transform: translateX(0); }

  .drawer-topbar {
    display:flex; align-items:center; justify-content: space-between;
    padding: .9rem .9rem .7rem;
    border-bottom: 1px solid #ececec;
  }
  .drawer-close { background:none; border:0; font-size: 1.25rem; line-height:1; }
  .drawer-brand { font-weight:800; }

  /* panels container */
  .drawer-panels { position: relative; flex: 1; overflow: hidden; }

  /* each panel */
  .drawer-panel {
    position: absolute; inset: 0;
    padding: 1rem .9rem 1rem 1rem;
    overflow-y: auto;
    transform: translateX(100%);         /* offscreen to the right */
    transition: transform .22s ease;
    background:#fff;

  }
  .drawer-panel.is-active { transform: translateX(0); }
  /* when navigating forward, slide left the previous panel */
  .drawer-panel.is-prev { transform: translateX(-100%); }

  .drawer-row,
  .drawer-item,
  .drawer-back {
    display:flex; align-items:center; justify-content: space-between;
    gap: .6rem;
    padding: 1rem .25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none; color: #111; background: none; border-left: 0; border-right: 0; 
    width: 100%;
  }
  .drawer-row.login { justify-content: flex-start; gap: .6rem; margin-top: 18em;}
  .drawer-row .row-icon { width: 22px; height: 22px; object-fit: contain; }
  .drawer-divider { height: 12px;}

  .drawer-item { justify-content: flex-start; }
  .drawer-back { font-weight: 700; text-align:left; }

  .drawer-footer {
    display:flex; align-items:center; gap: 1rem;
    padding: 1rem .25rem 0;
  }
  .drawer-footer img { width: 26px; height: 26px; object-fit: contain; }

  /* currency section */
  .currency-search {
    position: sticky; top: 0; background:#fff; padding: .5rem 0 .75rem; z-index: 1;
    display:flex; align-items:center; gap:.5rem;
  }
  .currency-search input {
    flex:1; padding:.7rem .9rem; border:1px solid #ddd; border-radius: 10px;
  }
  .currency-search .currency-clear {
    border:0; background:#f5f5f5; width:36px; height:36px; border-radius:10px; font-size:1rem;
  }

  .currency-list { list-style:none; margin:0; padding:0; }
  .currency-list li button {
    width:100%; text-align:left; padding: .9rem .25rem; border:0; background:none; font-size:1rem;
    display:flex; align-items:center; justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
  }
  .currency-list li span { opacity:.85; }
}


/* Hide hamburger on desktop by default */
.menu-btn { display: none; }

/* Drawer mask & drawer base (hidden/offscreen) */
.drawer-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.28);
  opacity: 0; pointer-events: none;
  z-index: 900;
  transition: opacity .18s ease;
}

.mobile-drawer {
  position: fixed; top: 0; left: 0;
  height: 100vh; width: 86vw; max-width: 420px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  transform: translateX(-100%);      /* offscreen by default */
  transition: transform .22s ease;
  z-index: 1000;
  display: flex; flex-direction: column;
}

/* panels baseline */
.drawer-panels { position: relative; flex: 1; overflow: hidden; }
.drawer-panel { position: absolute; inset: 0; overflow-y: auto; background:#fff; transform: translateX(100%); transition: transform .22s ease; }
.drawer-panel.is-active { transform: translateX(0); }
.drawer-panel.is-prev { transform: translateX(-100%); }

/* Topbar/rows/items baseline style (so they don’t look like purple links if media query fails) */
.drawer-topbar { display:flex; align-items:center; justify-content: space-between; padding: .9rem .9rem .7rem; border-bottom: 1px solid #ececec; }
.drawer-close { background:none; border:0; font-size: 1.25rem; line-height:1; }
.drawer-brand { font-weight:800; }

.drawer-row, .drawer-item, .drawer-back {
  display:flex; align-items:center; justify-content: space-between;
  gap: .6rem; padding: 1rem .25rem; font-size: 1.05rem;
  border-bottom: 1px solid #f0f0f0; text-decoration: none; color: #111; background: none;
}
.drawer-row.login { justify-content: flex-start; gap: .6rem; }
.row-icon { width: 22px; height: 22px; object-fit: contain; }
.drawer-divider { height: 12px; }
.drawer-footer { display:flex; gap: 1rem; padding: 1rem .25rem 0; }
.drawer-footer img { width: 26px; height: 26px; object-fit: contain; }

.currency-search { position: sticky; top: 0; background:#fff; padding: .5rem 0 .75rem; z-index: 1; display:flex; gap:.5rem; }
.currency-search input { flex:1; padding:.7rem .9rem; border:1px solid #ddd; border-radius: 10px; }
.currency-clear { border:0; background:#f5f5f5; width:36px; height:36px; border-radius:10px; font-size:1rem; }
.currency-list { list-style:none; margin:0; padding:0; }
.currency-list li button { width:100%; text-align:left; padding: .9rem .25rem; border:0; background:none; font-size:1rem; display:flex; align-items:center; justify-content: space-between; border-bottom: 1px solid #f0f0f0; }
.currency-list li span { opacity:.85; }




@media (max-width: 900px) {
  .menu { display: none; }             /* hide desktop hover menu on phones */
  .menu-btn {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #dcdcdc;
    background: #fff;
    padding: 6px;
    border-radius: 6px;
  }
  .menu-btn span { width: 20px; height: 2px; background:#111; display:block; }

  /* nicer padding on phones */
  .navbar { padding: .6rem .8rem; }
}


/* Desktop: show dropdown menu, hide burger */
@media (min-width: 901px) {
  .navbar .menu { display: flex; align-items: center; }
  .navbar .menu-btn { display: none; }
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.5;
  }
  
  .MadeIn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3em;
    background-color: black;
    color: white;
  }


.navbar {
  height: 4em;
  display: flex;
  justify-content: space-between; /* left group | center | right group */
  align-items: center;            /* vertically center everything */
  position: relative;  
  padding: 0 2rem; /* 2rem ≈ 32px; adjust to taste */
  border: 2px solid black;
}

/* center logo absolutely inside navbar */
.navbar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* left menu and right icons stay in normal flex flow */
.navbar .menu {
  display: flex;
  align-items: center;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between icons */
}

.navbar .nav-right img {
  width: 24px;   /* adjust size as needed */
  height: 24px;  /* keep square for icons */
  object-fit: contain;
  cursor: pointer;
}
  
/* ===== Desktop menu with hover dropdowns ===== */
.menu {
  display: flex;
  align-items: center;
  /* border: 1px solid blue; */

}

.menu-list {
  list-style: none;
  display: flex;
  gap: 2.2rem;                 /* space between F1 FRAMES / ABOUT US */
  margin: 0;
  padding: 0;
}

.menu-link {
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;  /* like your screenshot */

  color: #111;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

/* caret ▼ */
.has-dropdown > .menu-link::after {
  content: "▾";
  font-size: .8em;
  transform: translateY(-1px);
  opacity: .7;
}

/* dropdown panel */
.dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .75rem;
  min-width: 260px;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  list-style: none;
  padding: .75rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 1000;                /* sit above content */
}

.has-dropdown {
  position: relative;           /* anchor for absolute dropdown */
}

.dropdown li {
  padding: 0;
}

.dropdown a {
  display: block;
  padding: .6rem 1rem;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
}

.dropdown a:hover {
  background: #f7f7f7;
}

/* show on hover */
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* keep header above page border lines etc. */
.navbar {
  position: relative;
  z-index: 200;
}





/* Mobile: hide desktop menu, show burger */
@media (max-width: 900px) {
  .navbar .menu { display: none !important; }   /* force-hide links on phones */
  .navbar .menu-btn { display: inline-flex; }   /* show hamburger */
  .navbar .logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .navbar .nav-right { margin-left: auto; }
}





* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --accent:#e8705c;
  --star:#f2b01e;
  --star-off:#cfcfcf;
  --bg:#fff;
}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;color:var(--text);background:#fafafa;margin:0;}
.wrap{max-width:1050px;margin:28px auto;padding:0 16px;}
h1{font-size:clamp(22px,3.4vw,34px);margin:0 0 18px;text-align:left;font-weight:800;letter-spacing:.01em;}

/* summary */
.summary{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:4px 0 22px;}
.summary .avg{display:flex;align-items:center;gap:8px;color:#000;font-weight:700}
.summary .stars{line-height:1;display:flex;gap:4px}
.summary .stars .star{font-size:18px}
.summary .count{color:var(--muted)}

/* form */
.card{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:18px;}
.form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.form .full{grid-column:1/-1}
label{font-size:14px;color:#222;font-weight:600;display:block;margin:2px 0 6px}
input[type="text"],textarea{
  width:100%;border:1px solid #cfcfcf;border-radius:10px;padding:12px 12px;
  font-size:15px;background:#fff;outline: none;
}
textarea{min-height:110px;resize:vertical}
.upload{
  display:flex;align-items:center;gap:12px;border:1px dashed #cfcfcf;border-radius:10px;padding:10px 12px;
  background:#fff
}
.avatar{width:54px;height:54px;border-radius:50%;object-fit:cover;object-position:center;border:1px solid #ddd;background:#f2f2f2;display:none}
.up-hint{font-size:13px;color:var(--muted)}
.rating{display:flex;align-items:center;gap:6px;user-select:none}
.star{
  width:28px;height:28px;cursor:pointer;display:inline-grid;place-items:center;
  font-size:22px;line-height:1;border-radius:6px;transition:transform .05s ease
}
.star:active{transform:scale(.96)}
.star.filled{color:var(--star)}
.star.empty{color:var(--star-off)}
.actions{margin-top:8px}
.btn{
  background:var(--accent);color:#fff;border:none;border-radius:10px;padding:12px 18px;
  font-weight:700;cursor:pointer
}
.btn:disabled{opacity:.65;cursor:not-allowed}

/* new: extra photos preview */
.extra-previews{display:flex;gap:8px;flex-wrap:wrap}
.thumb{position:relative;width:54px;height:54px;border-radius:8px;overflow:hidden;border:1px solid #ddd;background:#f2f2f2}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb-del{
  position:absolute;top:-6px;right:-6px;background:#000a;color:#fff;border:none;
  width:20px;height:20px;border-radius:50%;cursor:pointer;font-size:13px;line-height:20px
}

/* list */
.list{margin-top:18px}
.rev{border-top:1px solid var(--line);padding:18px 0;display:grid;grid-template-columns:56px 1fr;gap:12px}
.rev:first-child{border-top:none}
.rev .a{grid-row:span 2;display:flex;align-items:flex-start}
.rev .a img{width:44px;height:44px;border-radius:50%;object-fit:cover;border:1px solid #ddd;background:#f2f2f2}
.rev .a .fallback{
  width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#eee;border:1px solid #ddd;font-weight:700;color:#666;
}
.rev .h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rev .name{font-weight:700}
.rev .date{color:var(--muted);font-size:14px}
.rev .stars{display:flex;gap:2px}
.rev .stars .star{font-size:16px}
.rev .txt{color:#1a1a1a;margin-top:6px;line-height:1.55}
.muted{color:var(--muted)}

/* new: gallery under each review */
.gallery{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.gallery img{
  width:90px;height:90px;object-fit:cover;border-radius:8px;border:1px solid #ddd;background:#f7f7f7
}

/* admin delete button (appears only in admin mode) */
.del{
  margin-left:auto;background:#000; color:#fff; border:none; padding:6px 10px;
  border-radius:8px; cursor:pointer; font-size:12px;
}
.del:hover{opacity:.85}

@media (max-width:720px){
  .form{grid-template-columns:1fr}
}





/* Button feedback */
.btn:active { transform: translateY(1px); }
.btn.loading { opacity: .7; pointer-events: none; position: relative; }
.btn.loading::after{
  content:"";
  width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  display: inline-block; margin-left: 8px;
  animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }






/* Footer Section */
.site-footer {
  background-color: #0d0d0d;
  color: #fff;
  padding: 4em 2em 2em;
  font-size: 0.95em;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3em;
  border-bottom: 1px solid #333;
}

.footer-column h4 {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 1em;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.6em;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.footer-column ul li a:hover {
  opacity: 1;
}

.footer-column.about p {
  opacity: 0.9;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap; /* in case of very small screens */
  margin-top: 1em;
}


.social-icons img {
  height: 26px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  max-width: 1400px;
  margin: 2em auto 0;
  font-size: 0.9em;

}


.footer-bottom .right {
  display: flex;
  align-items: center;
  gap: 0.3em;
  flex-wrap: wrap; /* in case of very small screens */
}

.footer-bottom .right-KaspiGoogle img {
  height: 22px;
  margin-right: 0.2em;
  object-fit: contain;
}

.footer-bottom .right-rest img {
  height: 28px;
  margin-right: 0.5em;
  object-fit: contain;
}

@media (max-width: 768px) {
  /* Основной контейнер: запрещаем перенос и разрешаем горизонтальную прокрутку, если не влезает */
  .footer-bottom .right {
    flex-wrap: nowrap !important; 
    justify-content: center; /* Центрируем иконки */
    width: 100%;
    gap: 5px; /* Уменьшаем расстояние между группами */
  }

  /* Делаем так, чтобы внутренние блоки не переносили иконки внутри себя */
  .footer-bottom .right-KaspiGoogle,
  .footer-bottom .right-rest {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Чтобы блоки не сжимались */
  }

  /* Оптимизируем размер иконок для мобильных, чтобы они точно влезли в ряд */
  .footer-bottom .right-KaspiGoogle img {
    height: 18px; /* Чуть меньше для мобилок */
    margin-right: 4px;
  }

  .footer-bottom .right-rest img {
    height: 22px; /* Чуть меньше для мобилок */
    margin-right: 4px;
  }
}






/* Currency switcher */
.currency-box{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}
.currency-label{
  font-size:.95rem;
  color:#cfcfcf; /* tweak for your theme */
}

/* Hide the fallback select; we use the bottom sheet */
.currency-select{
  position:absolute;
  width:1px; height:1px;
  opacity:0; pointer-events:none;
}

/* Trigger button styled like your box */
.currency-trigger{
  display:inline-flex; align-items:center; gap:.5rem;
  background:#111; color:#fff;
  border:1.5px solid #7a7a7a; border-radius:10px;
  padding:.6rem .75rem; font-size:1rem; cursor:pointer;
}

/* ===== Bottom sheet ===== */
.cc-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .25s ease;
  z-index: 99998;
}
.cc-sheet{
  position:fixed; left:0; right:0; bottom:0;
  transform: translateY(100%); /* hidden */
  background:#111; color:#fff; z-index: 99999;
  border-top-left-radius:14px; border-top-right-radius:14px;
  box-shadow:0 -10px 40px rgba(0,0,0,.35);
  transition: transform .28s ease;
  display:flex; flex-direction:column;
}
.cc-sheet--small{ max-height:420px; height:40vh; }

.cc-overlay.is-open{ opacity:1; pointer-events:auto; }
.cc-sheet.is-open{ transform: translateY(0); }

.cc-grabber{ width:48px; height:4px; background:#2a2a2a; border-radius:4px; margin:8px auto 4px; }
.cc-header{ display:flex; align-items:center; justify-content:space-between; padding:8px 14px; border-bottom:1px solid #272727; }
.cc-title{ font-weight:700; font-size:1rem; }
.cc-close{ background:none; border:none; color:#fff; font-size:1.1rem; cursor:pointer; }

.cc-searchbar{ padding:10px 14px; border-bottom:1px solid #272727; }
.cc-searchbar input{
  width:100%; background:#181818; color:#fff; border:1px solid #3a3a3a;
  border-radius:10px; padding:.6rem .75rem; font-size:1rem;
}
.cc-searchbar input::placeholder{ color:#9a9a9a; }

.cc-list{ overflow:auto; padding:6px 6px 12px; flex:1 1 auto; min-height:0; -webkit-overflow-scrolling:touch; }
.cc-item{
  width:100%; text-align:left; background:none; border:none; color:#fff;
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; padding:10px 10px; border-radius:10px; cursor:pointer;
}
.cc-item:hover{ background:#1a1a1a; }

/* ensure site header stays under the sheet */
.navbar{ position:relative; z-index:10; }
