/* ========================================
   NEODERM® Website Stylesheet
   Bilingual (UZ default / RU)
   Pixel-matched to provided design
   ======================================== */

/* ---------- Tokens ---------- */
:root {
  /* Primary palette (user-specified) */
  --c-blue: #385183;          /* deep blue (footer / buttons / brand) */
  --c-blue-deep: #2A3D63;     /* hover for deep blue */
  --c-blue-light: #A6E1FF;    /* light blue (hero accents / pills) */
  --c-blue-bubble: #A6E1FF;   /* hero bubbles */
  --c-blue-bg: #E5F4FE;       /* lighter than light-blue, for hero bg */
  --c-blue-soft: #CFEAFB;     /* soft pill bg */
  --c-blue-pill: #B8DEF5;     /* effect pill bg */

  --c-red: #E5302C;
  --c-red-light: #FF4844;
  --c-text: #2A2A2A;
  --c-muted: #6B7280;
  --c-light: #F8FAFC;
  --c-border: #E5E7EB;
  --c-card-shadow:   0 8px 24px rgba(56, 81, 131, .10);
  --c-card-shadow-h: 0 14px 36px rgba(56, 81, 131, .18);

  --font-base: 'Myriad Pro', 'MyriadPro', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --radius-card: 18px;
  --radius-pill: 999px;

  --t-fast: .25s ease;
  --t-mid:  .45s cubic-bezier(.2,.8,.2,1);
  --t-slow: .8s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--t-mid), transform .9s var(--t-mid);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.06); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
}

.logo img {
  height: 46px;
  width: auto;
  transition: transform var(--t-fast);
}
.logo:hover img { transform: scale(1.04); }

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: 30px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #2C2C2C;
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-red);
  transition: width var(--t-fast);
}
.main-nav a:hover { color: var(--c-red); }
.main-nav a:hover::after { width: 100%; }

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  width: 220px;
}
.search-box input {
  width: 100%;
  padding: 9px 38px 9px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-fast);
}
.search-box input:focus { border-color: var(--c-blue); }
.search-box button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue);
}

.lang-switch {
  display: flex;
  background: var(--c-blue);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switch button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: var(--radius-pill);
  transition: all var(--t-fast);
}
.lang-switch button.active {
  background: #fff;
  color: var(--c-blue);
}

.burger { display: none; width: 32px; height: 32px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-blue); transition: all .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #fff 0%, var(--c-blue-bg) 30%, #fff 100%);
  overflow: hidden;
}

/* Bubbles */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--c-blue-bubble);
  opacity: .55;
  animation: floatBubble 8s ease-in-out infinite;
}
.bubble.b1 { width: 130px; height: 130px; top: 8%; left: 5%;  animation-delay: 0s; }
.bubble.b2 { width:  70px; height:  70px; top: 22%; left: 28%; animation-delay: 1s; }
.bubble.b3 { width:  40px; height:  40px; top: 14%; left: 38%; animation-delay: 2s; opacity: .7; }
.bubble.b4 { width: 100px; height: 100px; top: 60%; left: 2%;  animation-delay: 1.5s; opacity: .35; }
.bubble.b5 { width:  60px; height:  60px; top: 50%; left: 22%; animation-delay: .7s; opacity: .4; }
.bubble.b6 { width:  80px; height:  80px; top: 70%; left: 32%; animation-delay: 2.5s; opacity: .45; }

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(8px, -14px); }
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}
.hero-tube {
  width: 110%;
  max-width: 700px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 18px 40px rgba(56, 81, 131, .25));
  animation: floatTube 6s ease-in-out infinite;
  margin-left: -40px;
  margin-top: 20px;
}
@keyframes floatTube {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(-12px); }
}

.hero-arrow {
  position: absolute;
  bottom: 30px; left: 0px;
  width: 130px;
  opacity: .8;
  transform: rotate(15deg);
  animation: spinSubtle 12s linear infinite;
}
@keyframes spinSubtle {
  0%   { transform: rotate(15deg); }
  50%  { transform: rotate(20deg); }
  100% { transform: rotate(15deg); }
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  right: 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  width: 270px;
  box-shadow: 0 14px 40px rgba(56, 81, 131, .14);
  z-index: 3;
}
.hero-badge h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.35;
}
.hero-badge p {
  font-size: 11.5px;
  color: var(--c-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.hero-badge p:last-child { margin-bottom: 0; }

.hero-content { padding-left: 10px; }

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: 38px;
  font-weight: 800;
  color: var(--c-red);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span:first-child { display: inline; }

.hero-desc {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-checklist h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-red);
  margin-bottom: 14px;
}
.hero-checklist ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--c-text);
}
.hero-checklist ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background: var(--c-blue);
  border-radius: 4px;
}
.hero-checklist ul li::after {
  content: '';
  position: absolute;
  left: 4px; top: 7px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero-socials {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.hero-socials a {
  width: 40px; height: 40px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.hero-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(56, 81, 131, .15);
  border-color: var(--c-blue);
}
.hero-socials img { width: 18px; }
.hero-socials .github-icon svg { width: 22px; height: 22px; }

.hero-watermark {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: .5;
}
.hero-watermark img {
  width: 90%;
  max-width: 1200px;
  filter: blur(.3px);
}

/* ============================================
   CONDITIONS GRID
   ============================================ */
.conditions {
  padding: 80px 0;
  background: #fff;
}
.cond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cond-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: var(--c-card-shadow);
  transition: all var(--t-mid);
}
.cond-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--c-card-shadow-h);
}
.cond-card img {
  width: 92px; height: 92px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.cond-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-red);
  margin-bottom: 6px;
  text-transform: lowercase;
}
.cond-card p {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ============================================
   TAGLINE BANNER
   ============================================ */
.tagline {
  padding: 60px 0 40px;
  text-align: center;
  background: #fff;
}
.tagline h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-red);
  margin-bottom: 18px;
  letter-spacing: .2px;
}
.tagline p {
  font-size: 14px;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-works {
  padding: 60px 0 100px;
  background: #fff;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-blue);
  font-weight: 500;
  margin-bottom: 16px;
}
.section-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
}

.how-head {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 24px;
  position: relative;
}
.how-head h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-red);
}
.how-arrow {
  width: 100px;
  opacity: .6;
  animation: arrowWiggle 3s ease-in-out infinite;
}
@keyframes arrowWiggle {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(8deg); }
}

.how-desc {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 50px;
  max-width: 1100px;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.ingr-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--c-card-shadow);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.ingr-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--c-card-shadow-h);
}
.ingr-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
  margin-bottom: 18px;
}
.ingr-image {
  width: 100%;
  aspect-ratio: 1.05/1;
  border-radius: 14px;
  overflow: hidden;
  background: #F1F5F9;
  margin-bottom: 22px;
}
.ingr-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.ingr-card:hover .ingr-image img { transform: scale(1.06); }

.ingr-lead {
  font-weight: 600;
  font-size: 13px;
  color: var(--c-text);
  margin-bottom: 12px;
}
.ingr-card p {
  font-size: 12.5px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.ingr-result strong { color: var(--c-text); font-weight: 700; }
.ingr-result { font-size: 12.5px; color: var(--c-muted); }

.how-cta {
  background: var(--c-blue-soft);
  color: var(--c-text);
  border-radius: 18px;
  padding: 22px 30px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.how-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4), transparent 70%);
  transform: translateX(-100%);
  animation: shimmerCTA 4s ease-in-out infinite;
}
@keyframes shimmerCTA {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   EFFECT
   ============================================ */
.effect {
  padding: 60px 0 100px;
  background: #fff;
}
.effect-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 50px;
  max-width: 460px;
  line-height: 1.2;
}

.effect-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: start;
}

.effect-left { display: flex; flex-direction: column; gap: 30px; }

.effect-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}
.effect-text {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.7;
  text-align: center;
}
.effect-pill {
  background: var(--c-blue-pill);
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  transition: all var(--t-mid);
}
.effect-pill:hover {
  background: var(--c-blue);
  color: #fff;
  transform: translateX(8px);
}

.btn-primary {
  display: inline-block;
  background: var(--c-blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25), transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-primary:hover {
  background: var(--c-blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(56, 81, 131, .35);
}
.btn-primary:hover::before { transform: translateX(100%); }

.effect-right {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  /* Same height as the 4 text rows on the left */
  align-self: start;
  height: 540px;
  width: 100%;
}
.effect-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--c-blue);
  color: #fff;
  padding: 60px 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1.4fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.65;
  opacity: .9;
  margin-bottom: 12px;
}
.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
}
.contact-list svg { flex-shrink: 0; margin-top: 2px; }

.footer-nav { display: flex; align-items: flex-start; padding-top: 60px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a {
  font-size: 14px;
  position: relative;
  transition: opacity var(--t-fast), padding-left var(--t-fast);
}
.footer-nav a:hover { padding-left: 6px; opacity: .85; }

.footer-cta { padding-top: 60px; }
.footer-cta h3 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
}
.footer-cta h3 em {
  font-style: normal;
  color: #FFB6B4;
}
.footer-tube {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.3));
}

.footer-social { padding-top: 60px; }
.footer-social p { font-size: 12.5px; }
.social-row {
  display: flex;
  gap: 14px;
  margin: 14px 0 6px;
}
.social-row a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.social-row a:hover {
  background: #fff;
  transform: translateY(-3px);
}
.social-row a img { width: 18px; }
.social-row a:hover img { filter: none; }

.social-caption {
  font-size: 12px;
  opacity: .7;
  margin-top: 10px;
}

.footer-bottom {
  text-align: center;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  opacity: .85;
}
.footer-bottom img { height: 22px; filter: brightness(0) invert(1); opacity: .9; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: auto; }
  .hero-tube { margin-left: 0; max-width: 500px; }
  .hero-content { padding-left: 0; }
  .hero-badge { right: 0; bottom: 30px; width: 240px; }
  .hero-title { font-size: 32px; }
  .effect-grid { grid-template-columns: 1fr; }
  .effect-right { height: auto; }
  .effect-right img { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav, .footer-cta, .footer-social { padding-top: 0; }
}

@media (max-width: 900px) {
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .ingredients-grid { grid-template-columns: 1fr; gap: 20px; }
  .how-head h2 { font-size: 24px; }
  .how-arrow { width: 70px; }
  .effect-title { font-size: 26px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 12px 18px; gap: 12px; }
  .main-nav {
    position: fixed;
    top: 70px; right: 0;
    flex-direction: column;
    background: #fff;
    width: 240px;
    height: calc(100vh - 70px);
    padding: 30px 24px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
    transform: translateX(100%);
    transition: transform .3s;
    margin: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .burger { display: flex; }
  .search-box { display: none; }
  .logo img { height: 38px; }

  .hero { padding: 40px 0 60px; }
  .hero-title { font-size: 26px; }
  .hero-desc { font-size: 13px; }
  .hero-tube { max-width: 380px; transform: rotate(-10deg); }
  .hero-badge {
    position: relative;
    bottom: auto; right: auto;
    width: 100%;
    margin-top: 20px;
  }
  .hero-watermark img { width: 110%; }

  .conditions, .how-works, .effect { padding: 50px 0; }
  .cond-grid { grid-template-columns: 1fr; }
  .cond-card img { width: 70px; height: 70px; }

  .tagline h2 { font-size: 18px; }
  .tagline p { font-size: 12px; }

  .how-head { flex-direction: column; align-items: flex-start; }
  .how-cta { font-size: 16px; padding: 18px 22px; }

  .effect-title { font-size: 22px; }
  .effect-row { grid-template-columns: 1fr; gap: 14px; }
  .effect-pill { font-size: 14px; padding: 16px 18px; }
  .effect-right img { min-height: 320px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-cta h3 { font-size: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 22px; }
  .hero-checklist h4 { font-size: 16px; }
  .how-head h2 { font-size: 22px; }
  .how-cta { font-size: 14px; }
}

/* Print friendly */
@media print {
  .site-header, .hero-bg, .hero-watermark, .footer-bottom { display: none; }
}
