﻿/* ===== GLOBAL STYLES ===== */
html,body{height:100%;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  background:#0e1621;
  color:#e6e9ee;
  margin:0;
  height:100vh; /* ????????? ???????? */
  display:flex;
  flex-direction:column;
  overflow:auto; /* restored: allow page scroll while header/footer fixed */
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:16px}

/* ===== CSS VARIABLES ===== */
:root{
  --nav-bg-top:#8cb6ec;
  --nav-bg-bot:#2a4466;
  --nav-accent:#4da3ff;
  --nav-accent-2:#79b8ff;
  --nav-text:#e6eefc;
  --nav-border:rgba(255,255,255,.08);
  --shadow-1:0 8px 16px rgba(0,0,0,.45);
  --shadow-2:0 12px 24px rgba(0,0,0,.5);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  background:linear-gradient(180deg,var(--nav-bg-top) 0%,var(--nav-bg-bot) 100%);
  border-bottom:1px solid var(--nav-border);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}

.site-header .header-inner{
  display:flex;align-items:center;justify-content:space-between; /* ???? ? ????, ?????? ? ????? */
  gap:16px;padding:12px 32px;
}

.site-header .brand{
  display:flex;align-items:center;gap:0;
  color:var(--nav-text);
  order:1; /* ???? ? ???? */
}

/* Header logo container with MECHOREZ title */
.header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* White logo */
  transition: all 0.3s ease;
}

.header-logo-right {
  transform: scaleX(-1); /* Mirror the right logo */
}

.header-logo:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.header-logo-right:hover {
  transform: scaleX(-1) scale(1.05);
}

.header-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.header-title {
  font-size: 3rem;
  font-weight: 900;
  color: #e6eefc;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-subtitle {
  font-size: 1rem;
  color: #a9b6c7;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-transform: lowercase;
}

.site-header .logo{
  height:140px;width:auto;object-fit:contain;
}
.brand-title{display:none}

.main-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end; /* ?????? ? ????? */
  order:2; /* ?????? ???? ?????? */
}

.nav-btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  padding:8px 18px;border-radius:12px;
  color:var(--nav-text);font-weight:700;letter-spacing:.2px;
  border:1px solid var(--nav-border);
  background:linear-gradient(90deg,#22344a 0%,#203143 50%,#22344a 100%);
  background-size:200% 100%;
  box-shadow:var(--shadow-1), 0 1px 0 rgba(255,255,255,.05) inset, 0 -1px 0 rgba(0,0,0,.25) inset;
  transform:translateZ(0); transition:transform .16s ease, background-position .18s ease, filter .16s ease;
}
.nav-btn:before{
  content:"";position:absolute;inset:-1px;border-radius:12px;padding:1px;
  background:linear-gradient(180deg,#9fb6d1 0%,#3b4b5f 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  z-index:-1;
}
.nav-btn:hover{
  transform:scale(1.05);
  background-position:right center;
  filter:brightness(1.06);
  box-shadow:var(--shadow-2);
}
.nav-btn.active{
  color:#fff;
  background:linear-gradient(90deg,var(--nav-accent) 0%,var(--nav-accent-2) 100%);
  box-shadow:0 10px 20px rgba(77,163,255,.35);
}

/* Header responsive */
@media (max-width: 900px){
  .site-header .header-inner{flex-wrap:wrap;gap:6px}
  .main-nav{justify-content:flex-start}
}
@media (max-width: 560px){
  .site-header .logo{height:70px}
  .header-logo {
    width: 70px;
    height: 70px;
  }
  .header-title {
    font-size: 1.7rem;
  }
  .header-subtitle {
    font-size: 0.7rem;
  }
  .header-logo-container {
    gap: 20px;
  }
  .nav-btn{padding:2px 2px;border-radius:12px}
  .main-nav{gap:3px}
}
@media (max-width: 420px){
  .main-nav{width:100%;justify-content:stretch}
  .nav-btn{flex:1 1 calc(20% - 8px); text-align:flex-start}
}

/* ===== HOMEPAGE / ?????? ===== */
.welcome-section{
  background:linear-gradient(135deg, #1a2332 0%, #0f1621 100%);
  padding:10px 0;
  text-align:center;
}
.welcome-title{
  font-size:3.5rem;font-weight:900;color:#e6eefc;margin:0 0 16px 0;
  text-shadow:0 4px 2px hsla(221, 100%, 73%, 0.302);
}
.welcome-subtitle{
  font-size:1.5rem;color:#dfe5ec;margin:0;text-align:center;font-weight:500;
}


.welcome-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  margin-bottom: 0.25rem;
}

.welcome-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.welcome-logo-right {
  transform: scaleX(-1);
}

.welcome-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.welcome-logo-right:hover {
  opacity: 1;
  transform: scaleX(-1) scale(1.05);
}

.about-section{
  padding:60px 0;background:#0e1621;
}
.about-section h2{
  font-size:2.5rem;font-weight:700;color:#e6eefc;text-align:center;margin:0 0 40px 0;
}
.about-panel{
  border:4px solid #6bdcff79;
  border-radius:14px;
  padding:18px;
  box-shadow: inset 0 6px 12px rgba(24,48,73,0.25);
}
.about-content{
  max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr;gap:30px;align-items:stretch;
}
.about-text-container{
  background:#f8f9fa;
  border-radius:12px;
  padding:40px;
  box-shadow:
    inset 0 0 20px 10px rgba(0, 11, 49, 0.295),  /* ?????? ??? ???????? */
    inset 0 4px 15px -2px rgba(20, 35, 60, 0.55);
  display:flex;
  align-items:center;
}
.about-text{
  font-size:1.1rem;line-height:1.7;color:#2d3748;
}
.about-text p{
  margin:0 0 20px 0;
}
.about-images-grid{
  display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:15px;
  overflow:visible; /* ??????????? ?? ??????? ?? ?????? ????? ???????? ??? ???????????? */
}
.about-images-grid img{
  width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden;
  box-shadow:0 6px 15px rgba(0,0,0,.2);
  object-fit:cover;
  filter:grayscale(100%);
  transition:all 0.3s ease;
  cursor:pointer;
  will-change: transform, filter;
}
.about-images-grid img:hover{
  filter:grayscale(0%);
  transform:scale(1.2);
  box-shadow:0 10px 25px rgba(0,0,0,.4);
  z-index:10;
  position:relative;
  /* ????????? ????????? ??????? ?? layout-?, ??? ?? ????????? aspect/width/height */
}

.products-section{
  padding:60px 0;background:linear-gradient(180deg, #0e1621 0%, #121c2a 100%);
}
.products-section h2{
  font-size:2.5rem;font-weight:700;color:#e6eefc;text-align:center;margin:0 0 50px 0;
}

.feature-cards{
  display:grid;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:30px;max-width:1000px;margin:0 auto;
}
.feature-card{
  background:linear-gradient(180deg, hsl(218, 31%, 35%) 0%, #0f1621 100%);
  border-radius:16px;padding:30px;text-align:center;
  border:2px solid #6bdcff79;
  box-shadow:0 10px 25px rgba(0,0,0,.3);
  transition:transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 20px #ffffffc2;
}
.feature-icon{
  width:80px;height:80px;margin:0 auto 20px auto;
  background:linear-gradient(135deg, #4da3ff 0%, #79b8ff 100%);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
}
.feature-icon img{
  width:40px;height:40px;filter:brightness(0) invert(1);
}
.feature-card h3{
  font-size:1.5rem;font-weight:700;color:#e6eefc;margin:0 0 15px 0;
}
.feature-card p{
  font-size:1rem;line-height:1.6;color:#a9b6c7;margin:0;
}


/* Homepage responsive */
@media (max-width: 768px){
  .welcome-subtitle{font-size:1.1rem}
  .about-section h2, .products-section h2{font-size:2rem}
  .feature-cards{grid-template-columns:1fr;gap:20px}
  .feature-card{padding:25px}
  .about-panel{ padding:12px; }
  .about-content{
    grid-template-columns:1fr;gap:30px;
  }
  .about-text-container{
    padding:25px;
  }
  .about-images-grid{
    grid-template-columns:1fr 1fr;gap:10px;
  }
  .about-images-grid img{
    aspect-ratio:1;
  }
  .about-images-grid img:active{
    filter:grayscale(0%);
    transform:scale(1.2);
    box-shadow:0 10px 25px rgba(0,0,0,.4);
    /* ????????? ????????? ??????? ?? layout-? ? ?? ??????? */
  }
}

/* ===== GALLERY / ??????? ===== */
/* Gallery page */
.gallery-page{
  height:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Gallery tabs */
.gallery-tabs{
  position:fixed;bottom:80px;left:50%;transform:translateX(-50%);
  display:flex;gap:8px;z-index:50;
  background:rgba(14,22,33,.95);backdrop-filter:blur(10px);
  padding:8px;border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 8px 20px rgba(0,0,0,.4);
}

.tab-btn{
  padding:10px 20px;border-radius:8px;
  background:transparent;color:#a9b6c7;
  border:2px solid transparent;font-weight:600;
  transition:all .2s ease;cursor:pointer;
}
.tab-btn:hover{
  background:#65b5ff81;
  color:#e6eefc;
}
.tab-btn.active{
  background:linear-gradient(90deg,#2667ac,#79b8ff);
  color:#fff;border-color:rgba(255,255,255,.2);
  box-shadow:0 4px 12px rgba(77,163,255,.3);
}

/* Gallery container */
.gallery-container{
  overflow-y:auto;
  overflow-x:hidden;
  padding:20px;
  padding-bottom:120px; /* ????? ?? ???????? */
}

.gallery-container .section{
  width:100%;max-width:1200px;
  text-align:center;
  margin:0 auto;
}

.gallery-container h2{
  margin:0 0 30px 0; /* ???? ????? margin */
  font-size:2rem;
  color:#e6eefc;
  text-align:center; /* ?????????? ?????????? */
}

/* Gallery thumbnails */
.gallery-container .thumb-card{
  display:inline-block;margin:10px;
  transition:transform .2s ease;
}

.gallery-container .thumb{
  width:280px;height:200px; /* ???????? ?????? */
  border-radius:12px;overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.4);
  transition:transform .2s ease, box-shadow .2s ease;
}

.gallery-container .thumb:hover{
  transform:scale(1.05);
  box-shadow:0 12px 30px rgba(0,0,0,.6);
}

.gallery-container .thumb img{
  width:100%;height:100%;object-fit:cover;
}

.gallery-container .thumb-title{
  margin-top:10px;font-size:14px;
  color:#e6eefc;font-weight:600;
}

.gallery-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  align-items:flex-start; /* ???????????? ? ?????? ???? */
}

/* Gallery responsive */
@media (max-width: 768px){
  
  .gallery-container{
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    padding:10px;
    max-height: calc(100vh - 350px); /* ?????????? ???????? ?????? ????????? */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .available-container{
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    padding:10px;
    max-height: calc(100vh - 250px); /* ?????????? ???????? ?????? ????????? */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .contact-page .container, .homepage{
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    padding:10px;
    max-height: calc(100vh - 200px); /* ?????????? ???????? ?????? ????????? */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  
  .gallery-tabs{
    bottom: calc(var(--footer-h, 60px) + 20px);
    left: 10px;
    right: 10px;
    transform: none;
    justify-content:center;
  }
  
  .tab-btn{
    flex:1;
    text-align:center;
    padding:6px 10px;
  }
  
  .gallery-container .thumb{
    width:250px;
    height:160px;
  }
  
  .gallery-container h2{
    font-size:1.5rem;
    margin-bottom:20px;
  }


}


@media (max-width: 480px){
  .gallery-container .thumb{
    width:200px;height:140px;
  }
}

/* ===== AVAILABLE / ??????? ===== */
/* Available page layout */
.available-page{
  height:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.available-container{
  overflow-y:auto;
  overflow-x:hidden;
  padding:20px;
  padding-bottom:60px;
}

.available-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
  gap:20px;
  max-width:1200px;
  margin:0 auto;
}

/* Mobile layout - one product per screen */
@media (max-width: 768px){
  .available-grid{
    display:flex;
    flex-direction:column;
    gap:0;
    max-width:100%;
  }
  
  .available-container{
    padding:10px;
  }
}

/* Product cards */
.product{display:flex;flex-direction:column}
.product .thumb{width:100%;height:160px}

/* Product specifications */
.specs{
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 4px;
  row-gap: 4px;
  align-items: start;
}
.specs .spec-key{
  text-align: left;
  white-space: nowrap;
  font-weight: 800;
  color: #d7e7ff;
}
.specs .spec-val{
  color: #e6e9ee;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

/* Free text block */
.free-block{
  margin-top:12px;
  padding:12px;
  border:2px solid rgba(76, 189, 255, 0.527);
  border-radius:10px;
  background:linear-gradient(180deg,hsl(215, 40%, 28%),#0e1621);
  display:flex;
  flex-direction:column;
  align-items:center;
}
.free-title{
  display:block;
  font-weight:800;
  color:#d7e7ff;
  font-size:14px;
  margin-bottom:6px;
  text-align:center;
  width:100%;
}
.free-text{
  color:#cbd6e6;
  line-height:1.55;
  white-space:pre-line;
  margin:0;
  align-self:stretch;
  text-align:left;
}

/* Available responsive */
@media (max-width: 480px){
  .specs{ column-gap: 6px; }
}

/* ===== CONTACT / ???????? ===== */
/* Contact page layout */
.contact-page{
  height:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.contact-page .container{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:20px;
  padding-bottom:50px; /* ????? ?? footer */
}

/* Contact form section */
.contact-form-section{
  background:linear-gradient(180deg, #121c2a, #0e1621);
  border-radius:16px;
  padding:30px;
  margin-bottom:30px;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 25px rgba(0,0,0,.3);
}

/* Follow Me section */
.follow-section{
  background:linear-gradient(135deg, #1a2332 0%, #0e1621 100%);
  border-radius:16px;
  padding:30px;
  border:2px solid rgba(76, 189, 255, 0.3);
  box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.follow-section h3{
  text-align:center;
  font-size:1.8rem;
  color:#e6eefc;
  margin:0 0 25px 0;
  font-weight:700;
}

/* Social media buttons */
.social-buttons{
  display:flex;
  gap:15px;
  justify-content:center;
  flex-wrap:wrap;
}

.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  transition:all .3s ease;
  box-shadow:0 6px 12px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.1);
  min-width:140px;
}

.social-btn .icon{
  width:24px;
  height:24px;
  margin-right:8px;
}

.social-btn .icon img{
  width:100%;
  height:100%;
  filter:brightness(0) invert(1);
}

/* Instagram button */
.social-btn.instagram{
  background:linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color:#fff;
}

.social-btn.instagram:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(225, 48, 108, 0.4);
}

/* Facebook button */
.social-btn.facebook{
  background:linear-gradient(45deg, #1877f2, #42a5f5);
  color:#fff;
}

.social-btn.facebook:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(24, 119, 242, 0.4);
}

/* TikTok button */
.social-btn.tiktok{
  background:linear-gradient(45deg, #000, #313438);
  color:#fff;
}

.social-btn.tiktok:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(255, 0, 80, 0.4);
}

/* ===== HISTORY / ??????? ===== */
/* History Section */
.history-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* History images */
.history-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 20px 0;
}

.history-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  filter: grayscale(100%);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.history-img:hover {
  filter: grayscale(0%);
  transform: scale(1.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  z-index: 10;
  position: relative;
}

.history-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 60px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.history-card .feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.history-card .feature-icon {
  width: 145px;
  height: 145px;
  background: linear-gradient(135deg, #4da3ff 0%, #79b8ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(77, 163, 255, 0.3);
}

.history-card .feature-icon img {
  width: 140px;
  height: 140px;
  filter: brightness(0) invert(1);
}

.history-card h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #4fd1c7;
  font-weight: 700;
  text-align: center;
}

.history-card h3 {
  font-size: 1.8rem;
  margin: 40px 0 20px 0;
  color: #4fd1c7;
  font-weight: 600;
}

.history-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a0aec0;
  margin-bottom: 20px;
  text-align: justify;
}

.history-card p:last-child {
  margin-bottom: 0;
}

/* Mobile responsive for history */
@media (max-width: 768px) {
  .history-section {
    padding: 40px 0;
  }
  
  .history-card {
    padding: 30px 20px;
    margin: 0 10px;
  }
  
  .history-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .history-card h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
  }
  
  .history-card p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .history-card .feature-icon img {
    width: 120px;
    height: 120px;
    padding: 15px;
  }
  
  .history-images {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }
  
  .history-img {
    height: 150px;
  }
  
  /* Mobile active state for touch devices */
  .history-img:active {
    filter: grayscale(0%);
    transform: scale(1.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 10;
    position: relative;
  }
}

/* ===== TRADEMARK STYLES ===== */
/* TM for specific text elements - only JavaScript generated */
.tm-brand::after {
  content: "™";
  font-size: 0.6em;
  vertical-align: super;
  color: #4fd1c7;
  margin-left: 2px;
}

/* ===== SHARED COMPONENTS ===== */
/* Feature cards expandable functionality */
.feature-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 10;
  position: relative;
}

.feature-card p:not(.design-intro):not(.prototype-intro):not(.product-intro) {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin: 0 !important;
}

/* Hover effect to expand all cards */
.feature-card:hover p:not(.design-intro):not(.prototype-intro):not(.product-intro) {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.feature-card:hover .design-steps {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

/* Design card specific styles */
.design-intro {
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px !important;
}

.design-steps {
  margin: 15px 0;
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.design-steps li {
  color: #a9b6c7;
  margin-bottom: 8px;
  line-height: 1.5;
}

.design-note {
  font-size: 0.9rem !important;
  color: #8a9bb0 !important;
  font-style: italic;
  margin-top: 15px !important;
}

/* Prototype card specific styles */
.prototype-intro {
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px !important;
}

.prototype-note {
  margin: 15px 0 10px 0 !important;
}

.prototype-final {
  font-size: 0.9rem !important;
  color: #8a9bb0 !important;
  font-style: italic;
  margin-top: 15px !important;
}

/* Product card specific styles */
.product-intro {
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px !important;
}

.product-details {
  margin: 15px 0 10px 0 !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.product-optimization {
  font-size: 0.9rem !important;
  color: #8a9bb0 !important;
  font-style: italic;
  margin-top: 15px !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Layout helpers */
.section{margin:30px 0}
.grid{display:grid;gap:12px}
.grid-available{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.card{
  background:linear-gradient(180deg,#121c2a,#0e1621);
  border-radius:12px;border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 18px rgba(0,0,0,.35);overflow:hidden
}
.card .body{padding:12px}
.muted{color:#a9b6c7}
.price{font-weight:700;color:#cfe3ff;margin-top:6px}

.site-footer{
  margin-top:auto;
  padding:14px 16px;
  text-align:center;
  color:#a9b6c7;
  background:linear-gradient(180deg,#101826,#0e1621);
  border-top:1px solid rgba(255,255,255,.08);
  box-shadow:0 -4px 10px rgba(0,0,0,.25) inset;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left {
  flex: 1;
}

.footer-right {
  flex-shrink: 0;
}

.privacy-link {
  color: #4da3ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #79b8ff;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  /* Prevent last contact block from being hidden behind fixed footer */
  .contact-page .container{
    padding-bottom: calc(var(--footer-h, 60px) + 40px);
  }
}

/* Mobile fixed footer */
@media (max-width: 768px){
  .site-footer{
    position:fixed;
    bottom:0;left:0;right:0;
    z-index:1000;
    margin-top:0;
  }
}

/* Mobile footer links tighter */
@media (max-width: 768px){
  .footer-right{ white-space: nowrap; }
  .privacy-link{ font-size: 0.75rem; }
  .footer-content{ gap:6px; }
}

.page{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding-top:calc(140px + 20px); /* header + spacing */
}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:10px;
  background:linear-gradient(180deg,#2a3a4f,#1f2c3d);
  color:#eaf2ff;font-weight:700;
  box-shadow:0 6px 12px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.08)
}
.btn:hover{background:linear-gradient(180deg,#354a64,#2a3a4f)}
.btn[disabled]{opacity:.55;cursor:not-allowed}

.btn .icon{width:18px;height:18px;margin-right:8px;display:inline-block;vertical-align:middle}
.btn .icon img,.btn .icon svg{width:100%;height:100%}

/* Thumbnails (shared) */
.thumb{
  position:relative;width:240px;height:160px;border-radius:10px;overflow:hidden;
  background:#101826;border:1px solid rgba(255,255,255,.06);
  box-shadow:0 6px 12px rgba(0,0,0,.35);
  transition:transform .2s ease, filter .2s ease, box-shadow .2s ease
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb:hover{
  transform:scale(1.02);
  filter:brightness(1.1);
  box-shadow:0 10px 18px rgba(0,0,0,.5)
}

.thumb-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.thumb-title{font-size:14px;color:#e6e9ee}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;background:rgba(0,0,0,.9);
  display:none;align-items:center;justify-content:center;z-index:100
}
.lightbox.open{display:flex}
.lightbox img,.lightbox video{
  max-width:92vw;max-height:90vh;border-radius:8px;
  box-shadow:0 10px 24px rgba(0,0,0,.6)
}
.lightbox .arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  font-size:32px;color:#fff;cursor:pointer;
  padding:12px 16px;background:rgba(255,255,255,.08);border-radius:8px
}
.lightbox .prev{left:16px}
.lightbox .next{right:16px}
.lightbox .close{
  position:absolute;top:12px;right:12px;font-size:28px;cursor:pointer;
  padding:8px 12px;background:rgba(255,255,255,.08);border-radius:8px
}

/* Modal */
.modal{
  position:fixed;inset:0;display:none;align-items:center;justify-content:center;
  background:rgba(0,0,0,.65);z-index:120
}
.modal.open{display:flex}
.modal .panel{
  width:min(560px,92vw);
  background:linear-gradient(180deg,#111a28,#0c131c);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;box-shadow:0 16px 32px rgba(0,0,0,.5);
  padding:16px
}
.field{display:flex;flex-direction:column;margin:8px 0}
.field label{font-size:12px;color:#a9b6c7;margin-bottom:4px}
.field input,.field textarea{
  background:#0b1320;color:#e6eefc;border:1px solid rgba(255,255,255,.08);
  border-radius:8px;padding:10px 12px;outline:none
}
.field textarea{min-height:120px}
.note{font-size:12px;color:#8fa2b8;margin-top:8px}

/* Scroll modes */
.row-scroll{
  display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;padding-bottom:8px
}
.row-scroll>*{scroll-snap-align:start;flex:0 0 auto}
.col-scroll{
  display:flex;flex-direction:column;gap:12px;
  overflow-y:auto;overflow-x:hidden;
  max-height:calc(100vh - 80px)
}
@media(min-width:769px){
  .gallery-scroll{display:block}
  .desktop-horizontal{display:block}
  .mobile-vertical{display:none}
}
@media(max-width:768px){
  .desktop-horizontal{display:none}
  .mobile-vertical{display:block}
}

/* Contact form buttons spacing */
.contact-form .field:last-child{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:20px;
}

.contact-form .field:last-child .btn{
  flex:1;
  max-width:120px;
}

.contact-form .field:last-child .btn[data-close]{
  background:linear-gradient(180deg,#4a5568,#2d3748);
  color:#e2e8f0;
}

.contact-form .field:last-child .btn[data-close]:hover{
  background:linear-gradient(180deg,#718096,#4a5568);
}

/* Thank you page styles */
.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  padding: 2rem;
  background: rgba(45, 55, 72, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.thank-you-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #4fd1c7;
  font-weight: 700;
}

.thank-you-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #a0aec0;
  line-height: 1.6;
}

.thank-you-content .btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4fd1c7, #38b2ac);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.thank-you-content .btn:hover {
  background: linear-gradient(135deg, #38b2ac, #319795);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 209, 199, 0.3);
}

/* Story Cards Section */
.story-cards-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.story-card {
  margin-bottom: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.story-content {
  display: flex;
  align-items: center;
  min-height: 400px;
}

.story-text {
  flex: 1;
  padding: 40px;
  color: #e2e8f0;
}

.story-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #4fd1c7;
  font-weight: 700;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a0aec0;
  margin-bottom: 16px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-link {
  color: #4fd1c7;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.story-link:hover {
  color: #38b2ac;
  border-bottom-color: #4fd1c7;
  text-shadow: 0 0 8px rgba(79, 209, 199, 0.3);
}

.story-image {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  filter: grayscale(100%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.story-image img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .story-cards-section {
    padding: 40px 0;
  }
  
  .story-content {
    flex-direction: column;
    min-height: auto;
  }
  
  .story-text {
    padding: 30px 20px;
  }
  
  .story-text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .story-text p {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .story-image {
    padding: 20px;
    aspect-ratio: 1;
  }
  
  .story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Mobile active state for touch devices */
  .story-image img:active {
    filter: grayscale(0%);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  }
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
  display: flex;
  gap: 3px;
  margin-left: 12px;
  align-items: center;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--nav-text);
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 24px;
  text-align: center;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
  background: var(--nav-accent);
  border-color: var(--nav-accent-2);
  color: white;
}

.lang-btn.active:hover {
  background: var(--nav-accent-2);
}

/* Stage tooltip */
.stage-tip { position: relative; cursor: pointer; font-weight: 700; }
.stage-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  background: rgba(42, 68, 102, 0.98);
  color: #e6eefc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(77,163,255,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 260px;
  z-index: 50;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
}
.stage-tooltip.open{ opacity: 1; pointer-events: auto; }
.stage-tooltip::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(42, 68, 102, 0.98);
}

