/* AvtoTarix umumiy sayt chrome — navbar, footer, til tanlagich, tipografiya. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-deep: #0b1727;
  --card: rgba(255, 255, 255, 0.88);
  --card-solid: #ffffff;
  --line: #e1e8f2;
  --line-strong: #c9d3e0;
  --text: #102033;
  --text-soft: #2a3a52;
  --muted: #5c6f82;
  --brand: #0f9d7a;
  --brand-dark: #0a7e62;
  --brand-soft: #d7f1e8;
  --accent: #2d6cdf;
  --accent-soft: #dde8fb;
  --warn: #e6a400;
  --danger: #d64545;
  --shadow-sm: 0 6px 18px rgba(16, 32, 51, 0.06);
  --shadow: 0 20px 55px rgba(16, 32, 51, 0.1);
  --shadow-strong: 0 28px 70px rgba(16, 32, 51, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Segoe UI", "Inter", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(15, 157, 122, 0.12), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(45, 108, 223, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
  overflow-x: hidden;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

.container {
  position: relative;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* ======================================================
   Navbar
====================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}
.site-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.site-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-brand-logo.logo-missing img { display: none; }
.site-brand-logo.logo-missing::after {
  content: "AT";
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 1px;
}
.site-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand-copy strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.site-brand-copy span { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav-links a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background .2s ease, color .2s ease;
}
.site-nav-links a:hover { background: rgba(16, 32, 51, 0.05); color: var(--text); }
.site-nav-links a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  position: relative;
}
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-switcher-btn:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.lang-switcher-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.lang-switcher[data-open="true"] .lang-switcher-btn svg { transform: rotate(180deg); }
.lang-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 120;
}
.lang-switcher[data-open="true"] .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-switcher-menu button:hover { background: var(--bg-soft); color: var(--text); }
.lang-switcher-menu button.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.lang-switcher-menu button .lang-code { font-size: 0.72rem; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 157, 122, 0.3);
}
.btn-primary:hover { box-shadow: 0 18px 36px rgba(15, 157, 122, 0.4); }
.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost {
  background: rgba(15, 157, 122, 0.08);
  color: var(--brand-dark);
}
.btn-ghost:hover { background: rgba(15, 157, 122, 0.14); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Mobile navbar */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 39, 0.55);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s;
  display: flex;
  justify-content: flex-end;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav-panel {
  width: min(340px, 86%);
  height: 100%;
  background: #fff;
  padding: 22px 22px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(20px);
  transition: transform .25s ease;
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-links a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 500;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.mobile-nav-actions .btn { width: 100%; }

/* ======================================================
   Hero / typography
====================================================== */
main { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section { padding: 72px 0; position: relative; }
.section + .section { padding-top: 20px; }

/* ======================================================
   Footer
====================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  background: var(--bg-deep);
  color: #cfd8e3;
  padding: 60px 0 28px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(15, 157, 122, 0.25), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(45, 108, 223, 0.2), transparent 40%);
  pointer-events: none;
}
.site-footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer-brand .site-brand { color: #fff; }
.site-footer-brand .site-brand-copy span { color: rgba(207, 216, 227, 0.75); }
.site-footer-brand p { color: rgba(207, 216, 227, 0.78); margin-top: 14px; font-size: 0.92rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a {
  color: rgba(207, 216, 227, 0.8);
  font-size: 0.9rem;
  transition: color .2s ease;
}
.site-footer ul a:hover { color: #fff; }
.site-footer .contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}
.site-footer .contact-line small { color: rgba(207, 216, 227, 0.55); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer .contact-line a,
.site-footer .contact-line strong { color: #fff; font-weight: 600; }
.site-footer-bottom {
  position: relative;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(207, 216, 227, 0.6);
}

/* ======================================================
   Cards / grids (shared)
====================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.feature-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.feature-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.93rem;
}
.feature-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 4px 10px rgba(15, 157, 122, 0.25);
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft) 0%, rgba(45, 108, 223, 0.14) 100%);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
}
.icon-chip svg { width: 22px; height: 22px; }

/* Decorative photo block (for services/about/contact) */
.media-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.media-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-block .media-overlay {
  position: absolute;
  inset: auto 18px 18px;
  background: rgba(11, 23, 39, 0.78);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: center;
}
.media-block .media-overlay strong { font-size: 1rem; }

/* Page hero (lighter variant for inner pages) */
.page-hero {
  padding: 64px 0 36px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 14px 0 16px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.contact-card {
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: transparent;
}
.contact-card .icon-chip { flex-shrink: 0; }
.contact-card small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-card strong { font-size: 1.08rem; display: block; margin-top: 4px; }
.contact-card a { color: var(--brand-dark); font-weight: 600; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* Responsive */
@media (max-width: 960px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer-brand { grid-column: 1 / -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-nav-links { display: none; }
  .site-nav-actions .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 48px 0; }
}
@media (max-width: 620px) {
  .site-brand-copy span { display: none; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 44px 0 22px; }
  .site-nav-inner { padding: 12px 0; }
  .section-head h2 { font-size: 1.7rem; }
}
