
* {
    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; }
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    line-height: 1.5;
  }


.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; }
}



  

/* ---------- Reset helpers (optional) ---------- */
:root { --maxw: 1200px; }
* { box-sizing: border-box; }
img { display:block; max-width:100%; }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  width:100%;
  min-height: 54vh;                /* desktop height */
  isolation:isolate;
}
.hero__img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;                /* fully fits, no letterboxing */
}
.hero__overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgb(0 0 0 / .25), rgb(0 0 0 / .25));
}
.hero__title{
  position:absolute; inset:0;
  display:grid; place-items:center;
  margin:0;
  color:#fff;
  font-weight:800;
  letter-spacing:.02em;
  text-align:center;
  font-size: clamp(24px, 5vw, 56px);
  z-index:1;
}

/* ---------- MILESTONES ---------- */
.milestones{
  background:#fff;
  padding: clamp(28px, 6vw, 64px) 16px;
}
.milestones__wrap{
  max-width: var(--maxw);
  margin: 0 auto;
}
.milestones__eyebrow{
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: clamp(14px, 2.2vw, 18px);
  letter-spacing:.04em;
  text-transform: uppercase;
  color:#5c5c5c;
  text-align:center;
  font-weight:800;
}
.milestones__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}
.milestone{
  text-align:center;
  padding: clamp(6px, 1vw, 10px);
}
.milestone__number{
  margin:.25rem 0 .75rem;
  font-size: clamp(20px, 3vw, 28px);
  font-weight:800;
  color:#111;
}
.milestone__text{
  margin:0 auto;
  max-width: 44ch;
  color:#454545;
  line-height:1.55;
  font-size: clamp(14px, 1.8vw, 16px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .milestones__grid{ grid-template-columns: 1fr; }
  .hero{ min-height: 46vh; }
}




/* ---------- Section shell ---------- */
.slice.materials{
  padding: clamp(24px, 6vw, 56px) clamp(16px, 5vw, 32px);
}

/* ---------- 2-col layout ---------- */
.mat__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;        /* text : image */
  gap: clamp(16px, 5vw, 48px);
  align-items: center;
}

/* text side */
.mat__text h2{
  margin: 0 0 .6rem;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 800;
  color:#111;
}
.mat__text p{
  margin: 0;
  max-width: 56ch;
  color:#2f2f2f;
  line-height: 1.6;
  font-size: clamp(14px, 1.6vw, 16px);
}

/* image side */
.mat__media{
  border-radius: 12px;
  overflow: hidden;                         /* rounds the image corners */
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.mat__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                        /* fully fills, no letterboxing */
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .mat__wrap{
    grid-template-columns: 1fr;
  }
  .mat__media{ order: 2; }                  /* keep text first on mobile */
  .mat__text{ order: 1; }
}






/* ---------- Mission ---------- */
.mission{
  padding: clamp(28px, 7vw, 72px) clamp(16px, 5vw, 32px);
}
.mission__wrap{
  max-width: 1200px;
  margin: 0 auto;
}
.mission__title{
  text-align:center;
  margin: 0 0 clamp(18px, 4vw, 36px);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 800;
  color:#111;
  letter-spacing:.01em;
}

/* rows */
.mission__row{
  display:grid;
  grid-template-columns: 1.05fr 1fr;     /* text : image */
  gap: clamp(16px, 5vw, 48px);
  align-items: center;
  margin-bottom: clamp(26px, 7vw, 64px);
}
.mission__row--alt{
  grid-template-columns: 1fr 1.05fr;     /* image : text */
}

/* text */
.mission__text h3{
  margin: 0 0 .6rem;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  color:#111;
}
.mission__text p{
  margin:0;
  max-width: 56ch;
  color:#2e2e2e;
  line-height:1.6;
  font-size: clamp(14px, 1.6vw, 16px);
}

/* image */
.mission__media{
  margin:0;
  border-radius: 12px;
  overflow:hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.mission__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .mission__row,
  .mission__row--alt{
    grid-template-columns: 1fr;
  }
  .mission__row--alt .mission__media{ order: 2; }
  .mission__row--alt .mission__text{  order: 1; }
}






/* 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; }
