/* ============================================
   CERTSTANDART — shared styles (all pages)
   ============================================ */
:root {
  --green-dark: #14503f;
  --green: #1a6e56;
  --green-soft: #eaf7f2;
  --mint: #d7f0e6;
  --ink: #1a1a2e;
  --muted: #5b6b66;
  --red: #e74c3c;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(20, 80, 63, 0.08);
  --shadow-hover: 0 10px 30px rgba(20, 80, 63, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}

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

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

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8f0ec;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.logo small {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.logo-uz { color: var(--red); }

.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d5e5de;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.nav-phone:hover { background: var(--green-soft); border-color: var(--green); }

/* Nav actions group: phone + social icons + language */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s, filter 0.2s;
}
.icon-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.icon-btn-telegram { background: #29a9eb; }
.icon-btn-whatsapp { background: #2fbb5d; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #d5e5de;
  border-radius: 999px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: var(--green-soft); border-color: var(--green); }
.lang-btn svg { transition: transform 0.2s; }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }

.lang-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  background: #fff;
  border: 1px solid #e8f0ec;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: var(--green-soft); color: var(--green-dark); }
.lang-menu button.active { color: var(--green-dark); background: var(--mint); }

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #d5e5de;
  border-radius: 8px;
  width: 42px; height: 42px;
  font-size: 20px;
  color: var(--green-dark);
  cursor: pointer;
}

/* ---------- Hero (shared pattern, page heroes reuse it) ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 70px 20px 50px;
  background: linear-gradient(180deg, #f4fbf8 0%, #fff 100%);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.55;
  z-index: 0;
}
.hero::before { width: 260px; height: 260px; top: -90px; left: -70px; }
.hero::after  { width: 200px; height: 200px; bottom: -80px; right: -50px; }
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
  letter-spacing: 1px;
  line-height: 1.25;
}
.hero-sub {
  font-size: 14px;
  color: #7a8a84;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}
.hero .btn { margin-top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green-soft); }

/* ---------- Badges row (hero) ---------- */
.badges-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.badge-item {
  width: 94px; height: 94px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.badge-item:hover { transform: translateY(-6px); }
.badge-iaf   { background: #2c5aa0; color: #fff; }
.badge-egac  { background: #b8860b; color: #fff; }
.badge-iso14 { background: var(--green); color: #fff; font-size: 11px; }
.badge-iso22 { background: #1e3a5f; color: #fff; font-size: 11px; }
.badge-iso9  { background: #1a1a2e; color: #fff; font-size: 11px; }

/* ---------- Section basics ---------- */
.section { padding: 60px 0; }
.section-alt { background: #f4fbf8; }
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-lead {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- Standards grid (main page) ---------- */
.std-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.std-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.std-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.std-logo {
  flex: 0 0 78px;
  width: 78px; height: 78px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  line-height: 1.15;
}
.std-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.std-info p { font-size: 13px; color: #5f6f69; line-height: 1.6; }

/* ---------- Features ---------- */
.features-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.feature-item { text-align: center; max-width: 210px; }
.feature-icon {
  width: 62px; height: 62px;
  margin: 0 auto 12px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 24px;
}
.feature-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 12px; color: var(--muted); }

/* ---------- About page ---------- */
.about-inner {
  display: flex;
  gap: 44px;
  align-items: center;
}
.about-img {
  flex: 0 0 45%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.about-text h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--green-dark);
}
.about-text p { font-size: 14px; color: #4d5c56; margin-bottom: 12px; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--green-dark);
}
.stat-item span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Partners page ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.partner-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}
.partner-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.partner-logo {
  width: 90px; height: 90px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}
.partner-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.partner-card p { font-size: 13px; color: #5f6f69; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.map-area {
  background: #e8e8e8;
  border-radius: var(--radius);
  height: 380px;
  overflow: hidden;
}
.map-area iframe { width: 100%; height: 100%; border: none; }

.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5e0da;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: none; }
.form-note.show { display: block; color: var(--green-dark); font-weight: 600; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .feature-icon { margin-bottom: 10px; }
.contact-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-card a, .contact-card p {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.contact-card a:hover { color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-band h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { font-size: 14px; color: #bcd9cf; margin-bottom: 22px; }
.cta-band .btn { background: #fff; color: var(--green-dark); }
.cta-band .btn:hover { background: var(--mint); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #aab5b1;
  padding: 36px 0 24px;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: #aab5b1; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { width: 100%; text-align: center; margin-top: 20px; font-size: 12px; color: #6f7a76; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e8f0ec;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .nav-phone span { display: none; }
  .nav-phone { padding: 9px 12px; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; }
  .lang-btn { padding: 8px 10px; }

  .hero h1 { font-size: 27px; }
  .about-inner { flex-direction: column; }
  .about-img { flex: none; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
