

/* ---------- 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; }
}


html {
  scroll-behavior: smooth;
}


* {
    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: 1px 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;

}

.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;
}




  
  /* Hero Section */
  .hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 2em;
    gap: 0; /* remove gap if you want the elements to touch */
    max-width: 1450px;
    margin: 0 auto;
  }
  
  .hero-text {

    max-width: 50%;
    min-height: 400px;
    max-height: 80vh;
    overflow: auto;
    padding: 1em;
    background-color: #F7F7F7;
    justify-content: center;
    align-content: center;
  }

  .hero-image {
    flex: 1 1 300px; /* Grow, shrink, basis */
    max-width: 50%;
  }



  .hero-text .stars {
    color: gold;
    font-size: 1.3em;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;
  }

  .hero-text .trust {
    color: black;
    font-size: 0.9em;
    margin-bottom: 1em;
    
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; 
  }
  
  .hero-text h1 {
    font-size: 2em;
    margin-bottom: 1em;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center; 
  }
  
  .hero-text .subtext {
    margin-bottom: 1.5em;
    text-align: center;
  }
  
  .buttonNewline {
    display: flex;
    justify-content: center;
    padding: 2em 0;
  }
  
  .cta-button {
    background-color: #f26a4f;
    color: white;
    padding: 0.8em 1.2em;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    max-width: 22em;          /* sets width explicitly */
    height: 4em; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;    
  }
  
  .cta-button:hover {
    background-color: #d9533f;
  }
  
.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
  
  /* Info Banner */
  .info-banner {
    background-color: #f2f2f2;
    display: flex;                   /* Flexbox container */
    justify-content: center;        /* Center horizontally */
    align-items: center;            /* Center vertically */
    text-align: center;
    padding: 2em 1em;
    font-size: 1.1em;
    height: 10em;

  }
  
  /* Categories Grid */
  .categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    padding: 2em;
    height: 32em;
  }

  .categories a {
    text-decoration: none;
    color: black;
  }
  
  .card {
    display: grid;
    grid-template-rows: 2fr 1fr; /* Top row (image) is taller */
    background-color: #f2f2f2;
    padding: 1.5em;
    border-radius: 6px;
    min-height: 250px; /* More height to see the effect */
  }
  
  .Categories-Image {
    width: 100%;
    height: 100%;
    display: flex; /* helps stretch child */
    align-items: stretch;
    justify-content: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  

  .Categories-Image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps aspect ratio while filling */
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
    will-change: transform; /* performance boost */
  }

  .Categories-Image:hover img {
    transform: scale(1.05); /* zoom in */
  }

  .Categories-Text {
    padding-top: 1em;

  }

  .card h3 {
    font-size: 1.2em;
    margin-bottom: 1em;  
  }
  
  .card p {
    font-size: 0.9em;
    color: #444;
  }
  





  /* Testimonials Section */
.testimonials {
  text-align: center;
  padding: 3em 1em;
  background-color: #fff;
 
}

.testimonials h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
   
}

.rating-stars {
   
  font-size: 1em;
  margin-bottom: 2em;
  color: #f2b01e;
}

.testimonial-cards{
  display:flex;
  flex-wrap:nowrap;              /* one line */
  gap:1rem;
  overflow-x:auto;               /* horizontal scroll */
  overflow-y:hidden;
  scroll-snap-type:x mandatory;  /* snap to cards */
  padding:0 1rem 1.25rem;
  scroll-padding-inline:1rem;
  justify-content:flex-start;
  -webkit-overflow-scrolling:touch;
}

.testimonial-cards::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.testimonial-card{
  flex:0 0 320px;                /* visible width per card on desktop */
  min-width:280px;               /* don’t shrink too far */
  scroll-snap-align:start;
  background:#fff;
  border-radius:12px;
  padding:1rem;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

/* Spacer so last card can fully snap into view */
.testimonial-cards::after{
  content:"";
  flex:0 0 1rem;
}

.testimonial-card .stars {
  color: #f2b01e;
  font-size: 1.1em;
  margin-bottom: 0.5em;

}

.testimonial-card .text {
  font-size: 0.95em;
  margin-bottom: 0.5em;

}

.testimonial-card .author {
  font-weight: bold;
  font-size: 0.9em;

}


/* === Testimonials: mobile layout like mock === */
@media (max-width: 768px) {
  .testimonials {
    text-align: left;
    padding: 1.5rem 1rem 2.25rem;
    background: #fff;
    border: none;                 /* remove debug */
  }

  .testimonials h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0 0 .35rem;
    border: none;
  }

  /* "★★★★★ from 416 reviews ✅" row */
  .rating-stars {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: #222;
    border: none;
  }
  /* color the stars only (first 5 chars) */
  .rating-stars::first-line { color: #f2b01e; }

  /* Horizontal swipe cards with snap */
.testimonial-cards {
  display: flex;
  flex-wrap: nowrap;              /* force one row */
  gap: 1rem;                       /* space between cards */
  overflow-x: auto;                /* horizontal scrolling */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;   /* snap to cards */
  padding: 0 1rem 1.25rem;         /* side padding */
  scroll-padding-inline: 1rem;     /* snap room for first/last */
  justify-content: flex-start;     /* start from first card */
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

.testimonial-card {
  flex: 0 0 85%;                   /* width = 85% of screen */
  min-width: 0;
  scroll-snap-align: start;        /* snap point at start of card */
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Spacer so last card is fully visible */
.testimonial-cards::after {
  content: "";
  flex: 0 0 1rem;
}

  .testimonial-card .stars {
    color: #f2b01e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    border: none;
  }
  .testimonial-card .text {
    font-size: .95rem;
    color: #222;
    margin-bottom: .75rem;
    border: none;
  }
  .testimonial-card .author {
    font-weight: 700;
    font-size: .9rem;
    color: #333;
    border: none;
  }
}



/* Tiny phones */
@media (max-width: 400px) {
  .testimonials h2 { font-size: 1.2rem; }
  .testimonial-cards { grid-auto-columns: 92%; }
}





/*Models*/

.Models {
  padding-bottom: 4em; /* optional spacing */
  display: grid;
  justify-content: center;
  align-items: center;
}

.custom-frame-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
  height: 30em; 
  margin-top: 2em; 


}

.custom-frame-image {
  flex: 1 1 300px;
  max-width: 680px;
  height: 100%; /* Make image container fill the parent height */
  display: flex; /* to help stretch image */
  align-items: stretch; 

}

.custom-frame-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */
}

.custom-frame-image:hover img {
    transform: scale(1.02); /* zoom in */

  }
  
.custom-frame-info {
  flex: 1 1 300px;
  max-width: 36em;
  text-align: left;
  
}

.custom-frame-info h3 {
  font-size: 1.5em;
  margin-bottom: 1em;

}

.custom-frame-info p {
  font-size: 1em;
  margin-bottom: 1.5em;

}

.learn-more-btn {
  background-color: #f26a4f;
  color: white;
  border: none;
  padding: 0.8em 1.2em;
  cursor: pointer;
  font-weight: bold;
  height: 3em;
}







/* Product Details Section */
.product-details {
  display: flex;
  background-color: #fff;
  padding: 3em 2em;
}

.product-details-container {
  display: flex;
  justify-content: center;        /* Center vertically */
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  gap: 3em;

}

.exploded-view {
  width: 50%
}

.exploded-view img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */

}

.exploded-view:hover img {
  transform: scale(1.02);
}

.feature-info {
  width: 40%;
  display: flex;                  /* Make it a flex container */
  flex-direction: column;         /* Stack children vertically */
  justify-content: center;        /* Center vertically */
  align-items: center;            /* Center horizontally */
  text-align: center;             /* Optionally center text itself */
}

.feature-info h3 {
  font-size: 1.6em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

.feature-info ul {
  list-style-type: none;
  padding-left: 0;
}

.feature-info li {
  margin-bottom: 1.2em;
  font-size: 1.05em;
  line-height: 1.4;
}





/* Footer Section */
.quality-footer {
  background-color: #000;
  color: white;
  padding: 4em 2em;
  text-align: center;
}

.quality-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.quality-footer h2 {
  font-size: 2em;
  margin-bottom: 1em;
}

.quality-footer p {
  font-size: 1.2em;
  line-height: 1.6;
  font-weight: 500;
}




.order-process {
  padding: 4em 1em;
  text-align: center;
  background-color: #f7f7f7;
 
}

.order-process h2 {
  font-size: 2em;
  margin-bottom: 2em;

}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2em;
 

}

.step {
  flex: 1 1 200px;
  max-width: 250px;

}

.circle {
  width: 40px;
  height: 40px;
  background-color: black;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.step h4 {
  margin-bottom: 0.5em;
}




.frame-categories {
  padding: 4em 1em;
  background-color: #fff;
  text-align: center;
 
}

.frame-categories h2 {
  font-size: 2em;
  margin-bottom: 2em;

}

.frame-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2em;

}

.frame-card {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 1.5em;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;

}

.frame-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1em;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1); /* smoother */
  will-change: transform; /* performance boost */
}

.frame-card:hover img {
  transform: scale(1.05);
}

.frame-card h3 {
  font-size: 1.2em;
  margin-bottom: 0.5em;

}

.frame-card p {
  font-size: 0.95em;
  margin-bottom: 1em;

}

.frame-card a {
  color: #f26a4f;
  text-decoration: none;
  font-weight: bold;

}








.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;
  }
}










/* ===== Base cleanups (don’t break desktop) ===== */
.hero { gap: 1.5rem; max-width: 1200px; }
.hero-text, .hero-image { flex: 1 1 480px; max-width: 600px; }
.info-banner { min-height: 6em; height: auto; }            /* remove fixed height */
.categories { height: auto; }                              /* remove fixed height */
.custom-frame-content { height: auto; margin-left: 0; }    /* stop overflow on mobile */
.exploded-view, .feature-info { width: auto; flex: 1 1 420px; } /* more flexible */
.card, .testimonial-card, .frame-card { height: auto; }    /* allow natural height */

/* Images always scale down safely */
img { max-width: 100%; height: auto; }

/* Buttons: let them wrap and be tappable */
.cta-button, .learn-more-btn { white-space: normal; }



/* === MOBILE HERO (≤768px): image first, overlapping white card, full-width CTA === */
@media (max-width: 768px) {
  /* Header spacing only */
  .navbar { padding: .75rem 1rem; }

  /* Stack hero */
  .hero {
    /* flex-direction: column; */
    align-items: stretch;
    padding: 1rem;
    gap: 1;
    max-width: 640px;
  
  }

  .hero-image {
    order: 1;
    max-width: 100%;
    border: none;          /* kill debug border on mobile */
  }
  .hero-image img {
    border-radius: 12px;
  }

  /* Floating card */

  .hero-text {
    order: 2;
    max-width: 100%;
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 1.25rem 1rem 1.25rem;
    margin: -3.5rem .5rem 0;   /* MORE negative to pull card up into image */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    text-align: center;
    position: relative;
    z-index: 1;

  }

  .hero-text .trust {
    margin: .25rem 0 .5rem;
    color: #222;
    font-size: .9rem;
    letter-spacing: .12em;
  }
  /* star color */
  .hero-text .trust::first-line { color: #e07a63; }

  .hero-text h1 {
    font-size: 1.75rem;
    line-height: 1.18;
    margin: .25rem 0 .5rem;
  }
  .hero-text .subtext {
    font-size: 1rem;
    color: #111;
    margin-bottom: 0;
  }

  /* CTA below the card, full-width */
  .buttonNewline {
    padding: 0.5rem .5rem ; /*tighter so button is closer to card*/

  }

  
  .cta-button {
    width: 100%;
    max-width: none;
    height: 3.25rem;
    border-radius: 10px;
    font-size: 1rem;
    letter-spacing: .02em;
  }

  /* Info banner on mobile */
  .info-banner {
    padding: 1.25rem 1rem;
    font-size: 1rem;
    border: none;          /* remove debug border on mobile */
  }
}

/* Tiny phones tweak */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.6rem; }
}


/* === Categories: mobile cards like the mock === */
@media (max-width: 768px) {
  .categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    height: auto;          /* override fixed height */
    border: none;          /* hide debug border */
  }

  .card {
    background: transparent;
    padding: 0;
    border-radius: 12px;
    display: block;
    min-height: 0;         /* let content define height */
  }

  .Categories-Image {
    position: relative;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  /* Image height ~ like mock; adjust if needed (4/3 → 16/9) */
  .Categories-Image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
  }

  /* dark gradient for text readability */
  .Categories-Image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.38) 100%);
  }

  /* Title overlay on the image */
  .Categories-Image h3 {
    position: absolute;
    left: 14px;
    bottom: 14px;
    margin: 0;
    color: #fff;
    z-index: 1;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: .02em;
    /* scales nicely from small to big phones */
    font-size: clamp(20px, 7vw, 28px);
  }

  /* Caption line under the image */
  .Categories-Text {
    border: 0;
    padding: .5rem .25rem 1.25rem;
  }
  .Categories-Text p {
    color: #111;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
  }
  /* add the arrow after the text */
  .Categories-Text p::after {
    content: "→";
  }
}




/* === Testimonials: mobile layout like mock === */
@media (max-width: 768px) {
  .testimonials {
    text-align: left;
    padding: 1.5rem 1rem 2.25rem;
    background: #fff;
    border: none;                 /* remove debug */
  }

  .testimonials h2 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0 0 .35rem;
    border: none;
  }

  /* "★★★★★ from 416 reviews ✅" row */
  .rating-stars {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: #222;
    border: none;
  }
  /* color the stars only (first 5 chars) */
  .rating-stars::first-line { color: #f2b01e; }

  /* Horizontal swipe cards with snap */
.testimonial-cards {
  display: flex;
  flex-wrap: nowrap;              /* force one row */
  gap: 1rem;                       /* space between cards */
  overflow-x: auto;                /* horizontal scrolling */
  overflow-y: hidden;
  scroll-snap-type: x mandatory;   /* snap to cards */
  padding: 0 1rem 1.25rem;         /* side padding */
  scroll-padding-inline: 1rem;     /* snap room for first/last */
  justify-content: flex-start;     /* start from first card */
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

.testimonial-card {
  flex: 0 0 85%;                   /* width = 85% of screen */
  min-width: 0;
  scroll-snap-align: start;        /* snap point at start of card */
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* Spacer so last card is fully visible */
.testimonial-cards::after {
  content: "";
  flex: 0 0 1rem;
}

  .testimonial-card .stars {
    color: #f2b01e;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .5rem;
    border: none;
  }
  .testimonial-card .text {
    font-size: .95rem;
    color: #222;
    margin-bottom: .75rem;
    border: none;
  }
  .testimonial-card .author {
    font-weight: 700;
    font-size: .9rem;
    color: #333;
    border: none;
  }
}



/* Tiny phones */
@media (max-width: 400px) {
  .testimonials h2 { font-size: 1.2rem; }
  .testimonial-cards { grid-auto-columns: 92%; }
}



/* === Custom Frame section (matches your mobile mock) === */
.custom-frame {
  background: #f7f7f7;                    /* lighter gray like mock */
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1rem;   /* responsive vertical space */
  border: none;                           /* remove debug border */
}

.custom-frame-text {
  max-width: 720px;                       /* center block width */
  margin: 0 auto;
}

.custom-frame-text h2 {
  margin: 0 0 .75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  font-size: clamp(22px, 5.5vw, 34px);    /* scales on phones */
  border: none;
}

.custom-frame-text p {
  max-width: 58ch;                        /* comfortable line length */
  margin: 0 auto;
  font-size: clamp(16px, 4.4vw, 18px);
  line-height: 1.6;
  color: #111;
  opacity: .9;
  border: none;
}

/* tiny phones tweak */
@media (max-width: 400px) {
  .custom-frame { padding: 1.5rem 1rem; }
}






/* MOBILE */
@media (max-width: 768px) {
  .Models { padding: 0 1rem 2.25rem; }

  .custom-frame-content {
    display: flex;
    flex-direction: column;     /*stack */
    align-items: stretch;
    gap: .75rem;
    margin-top: 1.5rem;
    border: none;
  }

  /* Always show image first (your 2nd block had info first) */
  .custom-frame-image { order: 1; max-width: 100%; height: auto; border: none; }
  .custom-frame-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;        /* nice card height; use 16/9 if you prefer shorter */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .custom-frame-info {
    order: 2;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    border: none;
    padding: .25rem .25rem 0;
  }

  .custom-frame-info h3 {
    margin: .5rem 0 .5rem;
    font-size: clamp(18px, 5.4vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    border: none;
  }

  .custom-frame-info p {
    margin: 0 auto 1rem;
    max-width: 60ch;            /* readable line length */
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.55;
    color: #222;
    opacity: .95;
    border: none;
  }

  .learn-more-btn {
    background-color: #f26a4f;  /* close to your mock’s coral */
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .9rem 1.2rem;
    height: auto;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    width: 80%;                 /* wide button like mock */
    max-width: 320px;
    margin: 0 auto 1.25rem;
  }
  .learn-more-btn:active { transform: translateY(1px); }
}



/* ===== Product Details — mobile card layout ===== */
@media (max-width: 768px) {
  .product-details {
    background: #f7f7f7;              /* gray background like mock */
    padding: 1.25rem 1rem;
    border: none;
    display: block;                   /* don’t force a row on small screens */
  }

  /* Make the whole block a white card */
  .product-details-container {
    display: block;
    max-width: 680px;
    margin: 0 auto;
    padding: .75rem .75rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    border: none;
  }

  /* Image on top, rounded */
  .exploded-view {
    width: auto;
    margin: 0;
    border: none;
  }
  .exploded-view img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;             /* adjust to 16/9 if you want shorter */
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  /* Text block */
  .feature-info {
    width: auto;
    border: none;
    padding: 1rem .5rem 0;
    text-align: center;
    display: block;                   /* no flex needed here */
  }

  .feature-info h3 {
    font-size: clamp(20px, 5.4vw, 24px);
    font-weight: 800;
    line-height: 1.25;
    margin: 1rem 0 .75rem;
    padding: 0;
  }

  .feature-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;                        /* even spacing between bullets */
  }

  .feature-info li {
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.6;
    color: #222;
  }

  /* Turn the <strong> in each li into a small heading */
  .feature-info li strong {
    display: block;
    font-size: clamp(15px, 4.6vw, 17px);
    font-weight: 800;
    margin-bottom: .25rem;
  }
}





/* ===== Order Process — mobile timeline ===== */
@media (max-width: 768px) {
  .order-process {
    background: #f7f7f7;
    padding: 1.5rem 1rem 2rem;
    text-align: left;                /* left-align like mock */
    border: none;
  }

  .order-process h2 {
    font-size: clamp(20px, 5.4vw, 26px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    border: none;
  }

  /* Turn steps into a vertical stack */
  .steps {
    display: block;                  /* stop the flex grid */
    position: relative;
    border: none;
  }

  .step {
    display: grid;
    grid-template-columns: 60px 1fr; /* left column for circle/line */
    column-gap: 1rem;
    align-items: start;
    padding: .35rem 0 1.15rem;      /* room for the connector line */
    position: relative;
    max-width: none;
    border: none;
  }

  /* Connector line under each circle (except last) */
  .step::after {
    content: "";
    position: absolute;
    left: 29px;                      /* center under the 60px column */
    top: 52px;                       /* just below the circle */
    width: 2px;
    height: calc(100% - 52px);
    background: #111;
    opacity: .15;                    /* subtle like mock */
  }
  .step:last-child::after { content: none; }

  /* Numbered circle */
  .circle {
    grid-column: 1 / 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    border: 3px solid #111;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0;                       /* remove bottom margin */
  }

  /* Text block */
  .step h4 {
    grid-column: 2 / 3;
    margin: .25rem 0 .25rem;
    font-size: clamp(16px, 4.8vw, 18px);
    font-weight: 800;
    line-height: 1.25;
  }

  .step p {
    grid-column: 2 / 3;
    margin: 0 0 .25rem;
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.6;
    color: #222;
    opacity: .95;
  }
}



/* ===== Frame Categories — mobile 2-column grid ===== */
@media (max-width: 768px) {
  .frame-categories {
    padding: 1.5rem 1rem 2rem;
    background: #fff;
    text-align: left;          /* like the mock */
    border: none;
  }

  .frame-categories h2 {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.2;
    margin: 0 0 1rem;
    border: none;
  }

  .frame-options {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* two columns on phones */
    gap: 1rem;
    border: none;
  }

  .frame-card {
    background: #f2f2f2;
    border-radius: 12px;
    padding: .75rem;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: none;
  }

  .frame-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;       /* consistent card height; use 16/9 if shorter */
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 .6rem;
  }

  .frame-card h3 {
    font-size: clamp(14px, 4.2vw, 16px);
    font-weight: 800;
    line-height: 1.25;
    margin: .2rem 0 .25rem;
    border: none;
  }

  .frame-card p {
    font-size: clamp(12px, 3.8vw, 14px);
    line-height: 1.45;
    color: #222;
    opacity: .9;
    margin: 0 0 .75rem;
    border: none;
  }

  .frame-card a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #111;               /* darker like mock */
    font-weight: 700;
    text-decoration: none;
    border: none;
  }
  .frame-card a::after { content: "→"; }
}

/* super-narrow phones: fall back to 1 column */
@media (max-width: 360px) {
  .frame-options { grid-template-columns: 1fr; }
}


/* 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; }
}








/* --- СТИЛИ КОРЗИНЫ --- */


/* Контейнер заголовка, чтобы текст и кружок стояли в ряд */
.cart-header h2 {
    display: flex;
    align-items: center;
    gap: 10px; /* Расстояние между словом Корзина и кружком */
    font-size: 20px;
    font-weight: 700;
}

/* Стили самого кружка */
.cart-count-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-color: #000; /* Цвет кружка */
    color: #fff;            /* Цвет цифры */
    
    font-size: 14px;        /* Размер шрифта цифры */
    font-weight: 600;
    
    width: 24px;            /* Ширина кружка */
    height: 24px;           /* Высота кружка */
    border-radius: 50%;     /* Делаем его идеально круглым */
    
    padding-bottom: 1px;    /* Небольшая коррекция центровки текста по вертикали */
}


/* Бейдж (красный кружок с цифрой) */
/* Контейнер иконки должен быть relative */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Стиль самого кружка */


.cart-badge {
    position: absolute;
    top: -5px;      /* Немного подправил */
    right: -8px;    /* Чтобы не улетал слишком далеко */
    background-color: #ff0000;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;    /* Фиксированная ширина */
    height: 18px;   /* Фиксированная высота */
    display: none;  /* Скрыт по умолчанию, JS включит flex */
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    z-index: 10;
    line-height: 1; /* Чтобы цифра была строго по центру */
}

/* Добавь это для красоты кнопок внутри корзины */
.stepper-mini {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    gap: 10px;
    padding: 2px 8px;
}
.stepper-mini button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}


/* Затемнение фона */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 1500;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Сама панель корзины */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px; /* Скрыта по умолчанию */
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 1600;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.1s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Список товаров */
.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 10px;
}

.item-details h4 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.item-details p strong {
    font-weight: 600;
    color: #777; /* Серый цвет для подписей, как на фото */
    display: inline-block;
    width: 90px; /* Фиксированная ширина, чтобы двоеточия стояли в ряд */
}

.item-price {
    font-weight: bold;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* Ряд управления количеством и удалением */
.cart-controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Белый контейнер для кнопок +/- */
.qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e1e1e1;
    padding: 10px 15px;
    width: 140px; /* Делаем широким как на фото */
}

.qty-stepper button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    color: #000;
    transition: opacity 0.2s;
}

.qty-stepper button:hover {
    opacity: 0.5;
}

.qty-stepper span {
    font-size: 16px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Кнопка мусорки */
.delete-trash-btn {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.delete-trash-btn:hover {
    transform: scale(1.1);
    color: #e31e24; /* Краснеет при наведении */
}

/* Футер корзины */
.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: #A42325;
    color: #fff;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-methods img {
    height: 30px;
    opacity: 0;
}

/* Промокод */
.promo-container {
    margin-bottom: 15px;
}

.promo-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    width: 100%;
    
}

.promo-input {
    display: none;
    gap: 5px;
    margin-top: 5px;
}

.promo-input.active {
    display: flex;
}

.promo-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
}

.empty-cart {
    text-align: center;
    padding-top: 50px;
}



/* ОБЩИЕ СТИЛИ (Ноутбук / Десктоп) */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ровно 2 колонки */
    gap: 15px;                             /* Расстояние между контейнерами */
    width: 100%;
    max-width: 300px;                      /* Ограничиваем общую ширину сетки */
    margin-left: auto;
    margin-right: auto;
}

.pay-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;                   /* Легкий фон контейнера (как на фото) */
    border-radius: 8px;                    /* Скругление углов */
    padding: 12px;                         /* Внутренний отступ контейнера */
    height: 40px;                          /* Высота самого контейнера */
    border: 1px solid #eee;                /* Тонкая рамка */
}

.payment-methods-grid .pay-item:nth-child(2){
    background-color: black !important;                 /* Легкий фон контейнера (как на фото) */               /* Тонкая рамка */
}

.payment-methods-grid .pay-item:nth-child(3){
    background-color: black !important;                 /* Легкий фон контейнера (как на фото) */               /* Тонкая рамка */
}

.pay-item img {
    height: 35px;                          /* РАЗМЕР ИКОНКИ (как ты просил) */
    width: auto;
    object-fit: contain;
}



/* =========================
   MOBILE (корзина на весь экран)
   ========================= */
@media (max-width: 767px){
  .cart-sidebar{
    width: 90% !important;
    max-width: 100vw;
    right: 0 !important;
    overflow-x: hidden;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .cart-sidebar.active{ transform: translateX(0); }

  .close-cart{
    position:absolute;
    right:15px;
    top:15px;
    z-index:999;
    padding:10px;
  }
}