/* ASTERSIP.UZ — Shared Styles */

:root {
  --blue: #1a56db;
  --blue-dark: #1240a8;
  --blue-light: #e8f0fe;
  --accent: #0ea5e9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --bg: #f8fafc;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 70px; display: flex; align-items: center; gap: 24px;
}

.logo { font-size: 22px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; flex-shrink: 0; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
nav a {
  padding: 7px 12px; border-radius: 8px; font-size: 14px;
  font-weight: 500; color: var(--text-muted); transition: all .2s; white-space: nowrap;
}
nav a:hover, nav a.active { color: var(--blue); background: var(--blue-light); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-switch { display: flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 2px; }
.lang-btn {
  padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; background: none; color: var(--text-muted); transition: all .2s;
}
.lang-btn.active { background: var(--white); color: var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }

.btn-header {
  padding: 9px 18px; background: var(--blue); color: var(--white); border-radius: 8px;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: background .2s;
}
.btn-header:hover { background: var(--blue-dark); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text);
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  color: var(--white); padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -20%; width: 140%; height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 54px); font-weight: 900; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero p {
  font-size: 18px; opacity: 0.9; margin-bottom: 40px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px;
}
.btn-primary {
  padding: 16px 32px; background: var(--white); color: var(--blue); border-radius: 10px;
  font-size: 16px; font-weight: 700; border: none; cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.btn-outline {
  padding: 16px 32px; background: transparent; color: var(--white); border-radius: 10px;
  font-size: 16px; font-weight: 600; border: 2px solid rgba(255,255,255,0.5); cursor: pointer; transition: all .2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 32px; font-weight: 900; }
.hero-stat span { font-size: 14px; opacity: 0.8; }

/* SECTIONS */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; }

.section-head { margin-bottom: 48px; }
.section-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 600px; }

.badge {
  display: inline-block; background: var(--blue-light); color: var(--blue);
  padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* CARDS */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all .3s;
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px; background: var(--blue-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 26px;
}
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--blue); font-size: 14px; font-weight: 600; margin-top: 14px;
}

/* SERVICE CARD */
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden; transition: all .3s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--blue); border-radius: 4px 0 0 4px;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* FEATURE LIST */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.feature-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* PRICING */
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 16px; padding: 36px; text-align: center; transition: all .3s; position: relative;
}
.pricing-card.popular { border-color: var(--blue); box-shadow: 0 8px 40px rgba(26,86,219,0.15); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white; padding: 4px 20px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap;
}
.price-amount { font-size: 40px; font-weight: 900; color: var(--blue); line-height: 1; margin: 14px 0 4px; }
.price-amount span { font-size: 18px; font-weight: 600; }
.price-period { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.btn-blue {
  display: block; padding: 14px; background: var(--blue); color: white;
  border-radius: 10px; font-weight: 700; font-size: 15px; text-align: center;
  border: none; cursor: pointer; transition: background .2s; margin-top: 24px; width: 100%;
}
.btn-blue:hover { background: var(--blue-dark); }
.btn-blue-outline {
  display: block; padding: 14px; background: transparent; color: var(--blue);
  border: 2px solid var(--blue); border-radius: 10px; font-weight: 700; font-size: 15px;
  text-align: center; cursor: pointer; transition: all .2s; margin-top: 24px; width: 100%;
}
.btn-blue-outline:hover { background: var(--blue); color: white; }

/* REGIONS */
.regions-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.region-tag {
  padding: 8px 16px; background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; font-size: 14px; font-weight: 500; color: var(--text); transition: all .2s;
}
.region-tag:hover { background: var(--blue); color: white; border-color: var(--blue); }

/* CTA */
.cta-block {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  border-radius: 20px; padding: 60px 48px; color: white; text-align: center;
}
.cta-block h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 16px; }
.cta-block p { opacity: 0.9; font-size: 17px; margin-bottom: 32px; }
.cta-contacts { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.cta-contact-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 15px;
}

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: 16px; padding: 40px;
  width: 100%; max-width: 480px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 24px; cursor: pointer; color: var(--text-muted); line-height: 1;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color .2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--blue); color: white; border: none;
  border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 8px;
}
.form-submit:hover { background: var(--blue-dark); }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  color: white; padding: 60px 24px;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { font-size: 14px; opacity: 0.7; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }
.page-header h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.page-header p { font-size: 17px; opacity: 0.85; max-width: 600px; }

/* STEPS */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: white;
  font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step-content p { color: var(--text-muted); font-size: 15px; }

/* COMPARE TABLE */
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; overflow: hidden; border-radius: 12px; }
.compare-table th {
  background: var(--blue); color: white; padding: 14px 20px;
  text-align: left; font-weight: 700;
}
.compare-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bg); }
.check { color: var(--success); font-weight: 700; }
.dash { color: var(--text-muted); }

/* FOOTER */
footer { background: #0f172a; color: rgba(255,255,255,0.8); padding: 60px 24px 30px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-size: 22px; font-weight: 800; color: white; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; opacity: 0.7; }
.footer-contacts a { display: block; color: white; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.footer-contacts a:hover { color: var(--accent); }
.footer-col h4 { color: white; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; opacity: 0.7; transition: opacity .2s; }
.footer-col a:hover { opacity: 1; color: white; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; opacity: 0.5; flex-wrap: wrap; gap: 8px;
}

/* MOBILE */
@media (max-width: 960px) {
  nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-block { padding: 40px 24px; }
  .hero { padding: 70px 20px 60px; }
  .hero-stats { gap: 24px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}
nav.open {
  display: flex !important; flex-direction: column; position: fixed;
  top: 70px; left: 0; right: 0; background: white;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); z-index: 99; gap: 4px;
}

/* LANG SWITCHER */
.ru-block, .uz-block { display: none; }
.ru-flex, .uz-flex { display: none; }
body.ru .ru-block { display: block; }
body.uz .uz-block { display: block; }
body.ru .ru-flex { display: flex; }
body.uz .uz-flex { display: flex; }
