:root {
  /* Brand colors from asiapharm.uz */
  --primary: #0F9191;
  --primary-dark: #0b6e6e;
  --primary-light: #e6f7f7;
  
  --text: #40464D;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-section: #f3f6f8;
  
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(15, 145, 145, 0.08);
  --shadow-hover: 0 8px 25px rgba(15, 145, 145, 0.15);
  
  --radius: 12px;
  --radius-lg: 20px;
  
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo img { height: 40px; width: auto; }

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.nav a:hover,
.nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone:hover { color: var(--primary-dark); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  padding: 4px;
  border-radius: 8px;
}

.lang-switch a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--primary);
  color: #fff;
}

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 90px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(60px);
}

.hero .container { position: relative; z-index: 2; }

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 35px;
  opacity: 0.95;
  font-weight: 300;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

/* ===== STATS ===== */
.stats {
  padding: 65px 0;
  background: var(--bg);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px 15px;
  text-align: center;
}

.stat__number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat__label {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
}

/* ===== SECTION COMMON ===== */
.section { padding: 75px 0; }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--bg); }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: 1.1rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-left: 35px;
  padding-bottom: 32px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline__year {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.timeline__text {
  color: var(--text);
  font-size: 1.05rem;
}

/* ===== SERVICES / CARDS ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 18px;
  font-size: 0.95rem;
}

.card-link:hover { gap: 10px; }

/* ===== CONTACT FORM ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: start;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 25px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.checkbox-group label {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.checkbox-group a { color: var(--primary); }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* ===== CONTACT INFO ===== */
.contact-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
}

.contact-info strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.contact-info p {
  margin: 14px 0;
  color: var(--text-light);
  line-height: 1.7;
}

.contact-info a { color: var(--primary); font-weight: 500; }
.contact-info a:hover { color: var(--primary-dark); }

.map-placeholder {
  background: linear-gradient(135deg, var(--primary-light), #d1f2f2);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 500;
}

.map-placeholder div { max-width: 220px; }
.map-placeholder .icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.8; }

/* ===== FOOTER ===== */
.footer {
  background: #0d1b2a;
  color: #cbd5e1;
  padding: 55px 0 25px;
  margin-top: 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 35px 25px;
  margin-bottom: 35px;
}

.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

.footer__nav a {
  display: block;
  padding: 6px 0;
  color: #94a3b8;
  font-size: 0.98rem;
}

.footer__nav a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer__social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #64748b;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-banner p {
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.5;
}

.cookie-banner a { color: var(--primary-light); text-decoration: underline; }

.cookie-banner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-banner button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 1px solid var(--border);
  }
  .nav.active { display: flex; }
  
  .nav a { padding: 12px 16px; border-radius: 8px; }
  
  .burger { display: block; }
  
  .header__inner { flex-wrap: wrap; }
  .header__actions { order: 3; width: 100%; justify-content: center; padding-top: 12px; }
  
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1.1rem; }
  
  .section-title { font-size: 1.7rem; }
  
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__social { justify-content: center; }
  
  .cookie-banner { flex-direction: column; gap: 15px; padding: 18px 20px; }
  .cookie-banner p { text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero { padding: 70px 0 90px; }
  .hero h1 { font-size: 1.9rem; }
  .btn { padding: 12px 28px; font-size: 1rem; }
  .stat__number { font-size: 2rem; }
  .form-card, .contact-info { padding: 26px 22px; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-30 { margin-bottom: 30px; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .timeline__item, .stat {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; opacity: 1; }
.card:nth-child(2) { animation-delay: 0.2s; opacity: 1; }
.card:nth-child(3) { animation-delay: 0.3s; opacity: 1; }
.timeline__item:nth-child(n) { animation-delay: calc(0.1s * var(--i, 1)); opacity: 1; }