

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }


  .MadeIn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 3em;
    background-color: black;
    color: white;
  }


  
/* ---------- 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; }
}


.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 */
}

/* 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;
  border: 2px solid black;
}





/* 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; }
}




/* Container */
.contact{
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}
.contact__title{
  text-align:center;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing:.02em;
  margin-bottom: 28px;
}
.contact__subtitle{
  text-align:center;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  margin: 8px 0 24px;
}

/* Alert banner */
.contact__alert{
  max-width: 980px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}
.contact__alert--ok{ background: #e9f7ec; color:#245c2f; border:1px solid #bfe6c8; }
.contact__alert--err{ background: #fdecea; color:#7a1c17; border:1px solid #f5c0bb; }

/* Grid */
.form-grid{
  max-width: 980px;
  margin: 0 auto 20px;
  display:grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px 18px;
}
.field{ display:flex; flex-direction:column; gap:8px; }
.field--full{ grid-column: 1 / -1; }
.field__label{ font-weight:700; font-size:14px; letter-spacing:.02em; }

.field__input,
.field__textarea{
  width:100%;
  padding: 16px 18px;
  border:1px solid #969696;
  border-radius: 10px;
  font-size: 16px;
  background:#fff;
  color:#111;
  outline:none;
}
.field__input:focus,
.field__textarea:focus{
  border-color:#222;
  box-shadow: 0 0 0 3px rgba(242,106,79,.18);
}

/* Button */
.contact__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#f26a4f;
  color:#fff;
  border:none;
  border-radius:12px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing:.02em;
  cursor:pointer;
  margin: 10px auto 0;
  display: block;
}
.contact__btn:disabled{ opacity:.65; cursor:not-allowed; }
.btn__spinner{
  width:16px; height:16px;
  border:2px solid #fff; border-bottom-color: transparent;
  border-radius:50%; display:none;
  animation: spin .8s linear infinite;
}
.contact__btn.is-loading .btn__spinner{ display:inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot (hidden) */
.hp{ position:absolute !important; left:-9999px !important; opacity:0 !important; pointer-events:none !important; }

/* Mobile */
@media (max-width: 720px){
  .form-grid{ grid-template-columns: 1fr; }
}





/* ===== FAQ ===== */
.faq{
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 16px;
}
.faq__title{
  text-align:center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: .02em;
  margin: 0 0 18px;
}
.faq__list{
  border-top: 1px solid #e8e8e8;
}

/* Row (closed) */
.faq__item{ border-bottom:1px solid #eee; }
.faq__btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 14px;
  background:#fff;
  border:none;
  cursor:pointer;
  font-size: clamp(15px, 2.2vw, 18px);
  text-align:left;
}
.faq__btn:hover{ background:#f7f7f7; }
.faq__label{
  font-weight: 700;
  letter-spacing:.02em;
}
.faq__icon{
  width:18px; height:18px; flex:0 0 18px; opacity:.85;
}

/* Panel (open) with height animation */
.faq__panel{
  overflow:hidden;
  transition:max-height .28s ease;
  max-height:0;
  background:#fff;
}
.faq__panel[hidden]{ display:block; } /* keep layout but hide initially */
.faq__content{
  padding: 18px 14px 28px;
}
.faq__content h3{
  font-size: clamp(16px, 2.2vw, 20px);
  margin: 18px 0 6px;
}
.faq__content p{
  margin: 0 0 12px;
  line-height:1.6;
  color:#202020;
}

/* Visually emphasize the active row like your mock’s light gray */
.faq__item.is-open .faq__btn{ background:#f6f6f6; }




/* 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; }

