/* ippbx.uz — sayt uslublari
   Rang tizimi T568B kabel ranglariga asoslangan: har bir xizmat o'z "kabeli"ga ega. */

:root {
  --bg: #E9EDF1;
  --surface: #FFFFFF;
  --surface-2: #F4F6F8;
  --ink: #18233A;
  --ink-2: #47556F;
  --ink-3: #6B7890;
  --line: #CDD5DE;
  --rack: #18233A;
  --rack-2: #24324F;
  --jack: #0E1626;
  --orange: #E9731C;
  --orange-ink: #B4530B;
  --green: #2C9A5B;
  --blue: #2E6BD3;
  --brown: #8A5536;
  --danger: #C2362F;
  --focus: #2E6BD3;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ico { width: 20px; height: 20px; flex: none; }

/* Kabel ranglari */
.cable-orange { --c: var(--orange); --c2: var(--orange); }
.cable-green { --c: var(--green); --c2: var(--green); }
.cable-blue { --c: var(--blue); --c2: var(--blue); }
.cable-brown { --c: var(--brown); --c2: var(--brown); }
.cable-orange-white { --c: var(--orange); --c2: #fff; }
.cable-green-white { --c: var(--green); --c2: #fff; }
.cable-blue-white { --c: var(--blue); --c2: #fff; }
.cable-brown-white { --c: var(--brown); --c2: #fff; }
.dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(135deg, var(--c, var(--blue)) 0 4px, var(--c2, var(--blue)) 4px 7px);
  box-shadow: inset 0 0 0 1px rgba(24, 35, 58, .18);
}

/* Tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #F2893A; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--rack-2); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sarlavha */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(233, 237, 241, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { width: 38px; height: 38px; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.logo-word span { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav ul a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.main-nav ul a:hover, .main-nav ul a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--orange); }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: var(--ink-2); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone .ico { color: var(--orange-ink); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero-copy { max-width: 860px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px 6px 12px; border-radius: 999px; margin-bottom: 28px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(44, 154, 91, .18); }
.status.is-closed .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(233, 115, 28, .18); }
.hero h1 { font-size: clamp(2.05rem, 4.9vw, 3.75rem); line-height: 1.1; max-width: 18ch; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 54ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-actions .ico { color: var(--orange-ink); }
.hero-actions .btn-ghost:hover .ico { color: var(--orange); }

/* Patch-panel — saytning asosiy vizual elementi */
.panel { margin: 56px 0 0; }
.panel-svg { width: 100%; height: auto; overflow: visible; }
.rack-ear { fill: var(--rack); }
.rack-screw { fill: var(--rack-2); stroke: #3A4B6E; stroke-width: 2; }
.port-num { fill: #8E9DB8; font: 600 15px var(--text); }
.port-jack { fill: var(--jack); }
.port-led { fill: var(--green); }
.port { cursor: pointer; }
.port .port-boot { transition: transform .2s; transform-box: fill-box; transform-origin: center top; }
.port:hover .port-boot, .port:focus-visible .port-boot, .port.is-hot .port-boot { transform: translateY(-3px); }
.port:focus-visible { outline: none; }
.port:focus-visible .port-jack { stroke: var(--orange); stroke-width: 3; }
.cable, .cable-stripe { fill: none; stroke-width: 10; stroke-linecap: round; }
.cable-stripe { stroke-dasharray: 10 12; stroke-linecap: butt; opacity: .9; }
.port-cable { transition: opacity .2s; }
.packets { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: .002 .248; opacity: 0; }
.panel.has-hot .port-cable { opacity: .3; }
.panel.has-hot .port-cable.is-hot { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .cable { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plug 1.1s cubic-bezier(.3, .7, .3, 1) forwards; }
  .cable-stripe { opacity: 0; animation: fade .4s ease-out forwards; }
  .port-cable:nth-of-type(1) > * { animation-delay: .15s; }
  .port-cable:nth-of-type(2) > * { animation-delay: .27s; }
  .port-cable:nth-of-type(3) > * { animation-delay: .39s; }
  .port-cable:nth-of-type(4) > * { animation-delay: .51s; }
  .port-cable:nth-of-type(5) > * { animation-delay: .63s; }
  .port-cable:nth-of-type(6) > * { animation-delay: .75s; }
  .port-cable:nth-of-type(7) > * { animation-delay: .87s; }
  .port-cable:nth-of-type(n+8) > * { animation-delay: .99s; }
  .port-cable > .cable-stripe { animation-delay: 1.3s !important; }
  .port-led { animation: blink 2.4s steps(1) infinite; }
  .port:nth-of-type(2n) .port-led { animation-delay: .7s; }
  .port:nth-of-type(3n) .port-led { animation-delay: 1.3s; }
}
@keyframes plug { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: .9; } }
@keyframes blink { 0%, 86% { opacity: 1; } 88%, 92% { opacity: .25; } 94% { opacity: 1; } }

.panel-labels { display: grid; gap: 8px; margin-top: 4px; }
.panel-labels.cols-1 { grid-template-columns: 1fr; }
.panel-labels.cols-2 { grid-template-columns: repeat(2, 1fr); }
.panel-labels.cols-3 { grid-template-columns: repeat(3, 1fr); }
.panel-labels.cols-4 { grid-template-columns: repeat(4, 1fr); }
.panel-labels.cols-5 { grid-template-columns: repeat(5, 1fr); }
.panel-labels.cols-6 { grid-template-columns: repeat(6, 1fr); }
.panel-labels.cols-7 { grid-template-columns: repeat(7, 1fr); }
.panel-labels.cols-8 { grid-template-columns: repeat(8, 1fr); }
.panel-labels.cols-9 { grid-template-columns: repeat(9, 1fr); }
.panel-labels.cols-10 { grid-template-columns: repeat(10, 1fr); }
.panel-labels.cols-11 { grid-template-columns: repeat(11, 1fr); }
.panel-labels.cols-12 { grid-template-columns: repeat(12, 1fr); }
.panel-labels a {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 10px 8px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s;
}
.panel-labels a:hover, .panel-labels a.is-hot { border-color: var(--c); transform: translateY(-2px); }
.panel figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }

/* Realistik 3D sahna */
.panel-3d {
  position: relative; height: clamp(300px, 40vw, 500px); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px;
  background:
    radial-gradient(4px 4px at 12% 22%, rgba(93, 255, 155, .55), transparent 70%),
    radial-gradient(6px 6px at 86% 18%, rgba(255, 181, 71, .35), transparent 70%),
    radial-gradient(5px 5px at 92% 74%, rgba(93, 255, 155, .35), transparent 70%),
    radial-gradient(3px 3px at 6% 80%, rgba(120, 170, 255, .5), transparent 70%),
    radial-gradient(120% 90% at 50% 25%, #27365a 0%, #141d31 55%, #090e19 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(14, 22, 38, .55);
}
.panel-3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(5, 8, 15, .55) 100%); }
.panel-3d canvas { display: block; width: 100%; height: 100%; }
.panel.has-3d .panel-svg { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .panel.has-3d .panel-3d { animation: fadein 1s ease-out both; }
}

/* Bo'limlar */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); max-width: 56ch; }

/* Xizmatlar */
.services { padding-top: 72px; }
.svc-list { display: grid; gap: 28px; }
.svc {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center;
  background: var(--surface); border-radius: var(--r-lg); padding: 36px 48px 36px 56px; overflow: hidden;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px;
  background: repeating-linear-gradient(180deg, var(--c) 0 18px, var(--c2) 18px 30px);
}
.svc:nth-child(4n+3) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.svc:nth-child(4n+3) .svc-art { order: 2; }
.svc-art { background: var(--surface-2); border-radius: var(--r-md); }
.svc-port { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink-3); margin-bottom: 14px; }
.svc h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.svc-short { margin-top: 14px; color: var(--ink-2); }
.ticks { display: grid; gap: 10px; margin-top: 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--c, var(--green)); margin-top: 3px; stroke-width: 2.6; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Dialog oynalar */
.dlg, .lightbox {
  border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink);
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px);
  box-shadow: 0 30px 80px rgba(14, 22, 38, .35);
}
.dlg::backdrop, .lightbox::backdrop { background: rgba(14, 22, 38, .6); }
.dlg-inner { padding: 40px 44px 44px; border-top: 10px solid transparent; border-image: repeating-linear-gradient(90deg, var(--c) 0 18px, var(--c2) 18px 30px) 10; }
.dlg h3 { font-size: 1.6rem; margin-bottom: 18px; padding-right: 40px; }
.dlg p { color: var(--ink-2); margin-bottom: 14px; }
.dlg h4 { font-family: var(--text); font-weight: 800; font-size: 1rem; margin-top: 26px; }
.dlg .ticks { margin: 14px 0 30px; }
.dlg-close {
  position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.dlg-close:hover { background: var(--surface-2); }

/* Jarayon */
.process { background: var(--surface); }
.process h2 { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 70px; right: -20px; top: 27px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 22px); }
.step-n {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: var(--ink); color: #fff; font: 500 22px var(--display); margin-bottom: 22px;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); }

/* Nega biz */
.why-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin: 40px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font: 500 2rem/1.1 var(--display); }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { background: var(--surface); border-radius: var(--r-md); padding: 28px; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: var(--ink-2); }

/* Narxlar */
.prices { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-groups { display: grid; gap: 36px; margin-bottom: 40px; }
.price-group[hidden] { display: none; }
.price-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; margin-bottom: 8px; }
.price-group h3::before { content: ""; width: 26px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--c) 0 8px, var(--c2) 8px 13px); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-weight: 600; padding-right: 24px; }
.price-table th small { display: block; font-weight: 400; color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.price-table .unit { color: var(--ink-3); white-space: nowrap; padding-right: 24px; width: 1%; }
.price-table .amount { font-weight: 800; white-space: nowrap; text-align: right; width: 1%; }
.price-table .amount.is-request { font-weight: 600; color: var(--ink-3); }

/* Uskunalar */
.dev-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.dev-group h3 { font-family: var(--text); font-weight: 800; font-size: 1rem; margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 28px; background: var(--surface); border-radius: 6px 999px 999px 6px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line);
}
.tag::before { content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); }
.tag img { height: 20px; width: auto; }

/* Sertifikatlar va mijozlar */
.certs h2, .clients h2 { margin-bottom: 40px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cert { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; cursor: zoom-in; }
.cert img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); width: 100%; }
.cert-t { display: block; font-weight: 700; margin-top: 12px; }
.cert-m { display: block; font-size: 14px; color: var(--ink-3); }
.lightbox { width: min(1000px, calc(100% - 32px)); padding: 24px; }
.lightbox img { margin: 0 auto; max-height: 75vh; width: auto; }
.lightbox p { text-align: center; margin-top: 14px; font-weight: 600; }
.clients { background: var(--surface); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.client-grid li { background: var(--surface); display: grid; place-items: center; min-height: 120px; padding: 20px; }
.client-grid a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.client-grid img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.client-grid li:hover img { filter: none; opacity: 1; }
.client-name { font-weight: 700; text-align: center; color: var(--ink-2); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { transition: transform .2s; color: var(--ink-3); }
.faq-list details[open] summary .ico { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Aloqa */
.contact { background: var(--rack); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-info > p { color: #B9C4D8; margin-top: 18px; max-width: 46ch; }
.contact-list { display: grid; gap: 22px; margin-top: 40px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .ico { width: 24px; height: 24px; color: var(--orange); margin-top: 2px; }
.contact-list .k { display: block; font-size: 14px; color: #8E9DB8; }
.contact-list a, .contact-list span:not(.k) { display: block; font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 36px; display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--surface);
  min-height: 50px; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 107, 211, .18); }
.field.is-error input, .field.is-error select { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.check.is-error { color: var(--danger); }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Pastki qism */
.site-footer { background: #121B2E; color: #B9C4D8; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 1.5fr; gap: 40px; }
.footer-logo { height: 38px; width: auto; margin-bottom: 16px; }
.site-footer nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contacts { display: grid; gap: 8px; align-content: start; }
.footer-contacts a { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid #26324B; margin-top: 48px; padding-top: 22px; font-size: 14px; color: #8E9DB8; }

/* Mobil pastki panel */
.mbar { display: none; }

/* Chat-bot */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 22px 0 18px; height: 56px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 30px rgba(14, 22, 38, .3);
}
.chat-fab .ico { width: 24px; height: 24px; color: var(--orange); }
.chat-fab:hover { background: var(--rack-2); }
.chat.is-open .chat-fab { display: none; }
.chat-panel {
  width: 390px; height: min(620px, calc(100vh - 40px)); background: var(--surface); border-radius: var(--r-lg);
  box-shadow: 0 24px 70px rgba(14, 22, 38, .35); display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 14px 12px 14px 16px; }
.chat-head .logo-mark { width: 36px; height: 36px; }
.chat-head div { flex: 1; min-width: 0; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { display: block; font-size: 13px; color: #B9C4D8; }
.chat-icon { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-icon:hover { background: var(--rack-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.msg-bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { font-weight: 700; color: var(--blue); }
.msg ul { margin: 6px 0 0; display: grid; gap: 4px; }
.msg li { padding-left: 14px; position: relative; }
.msg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.msg .price-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.msg .price-row b { white-space: nowrap; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; background: var(--surface-2); }
.chat-quick:empty { display: none; }
.chat-quick button, .chat-quick a {
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.chat-quick button:hover, .chat-quick a:hover { background: var(--ink); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.notfound p { color: var(--ink-2); margin-bottom: 28px; max-width: 50ch; }

/* Moslashuvchan dizayn */
@media (max-width: 1080px) {
  .main-nav ul { gap: 16px; }
  .header-phone span { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-phone { margin-left: auto; }
  .header-phone span { display: inline; }
  .nav-toggle { margin-left: 0; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; gap: 16px;
    box-shadow: 0 20px 40px rgba(14, 22, 38, .12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--surface-2); font-size: 17px; }
  .lang-switch { align-self: flex-start; }
  .section { padding: 72px 0; }
  .section-head, .why-grid, .faq-wrap, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid, .contact-grid { gap: 40px; }
  .svc, .svc:nth-child(4n+3) { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px 28px 34px; }
  .svc:nth-child(4n+3) .svc-art { order: 0; }
  .svc-art { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; }
  .header-row { gap: 12px; }
  .header-phone span { display: none; }
  .header-phone { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero { padding: 36px 0 24px; }
  .status { margin-bottom: 20px; font-size: 13px; }
  .hero-actions .btn { width: 100%; }
  .panel { margin-top: 40px; }
  .panel-3d { height: 340px; margin-left: -6px; margin-right: -6px; }
  .panel-svg .port-num { font-size: 26px; }
  .panel-labels[class*="cols-"] { grid-template-columns: 1fr 1fr; }
  .panel-labels a { justify-content: flex-start; padding: 12px; }
  .svc { padding: 22px 18px 24px 28px; }
  .svc::before { width: 8px; }
  .svc-actions .btn { flex: 1 1 100%; }
  .why-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .facts dt { font-size: 1.6rem; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table th { grid-column: 1 / -1; margin-bottom: 4px; }
  .price-table .amount { width: auto; }
  .lead-form { padding: 24px 18px; }
  .dlg-inner { padding: 30px 22px 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .chat { right: 12px; bottom: 12px; }
  .chat-fab span { display: none; }
  .chat-fab { width: 58px; padding: 0; justify-content: center; }
  .chat.is-open { left: 0; right: 0; top: 0; bottom: 0; }
  .chat-panel { width: 100%; height: 100%; border-radius: 0; }
  body { padding-bottom: 76px; }
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 800; text-decoration: none; }
  .mbar-call { background: var(--ink); color: #fff; }
  .mbar-call .ico { color: var(--orange); }
  .mbar-req { background: var(--orange); color: var(--ink); }
  .mbar:has(> a:only-child) { grid-template-columns: 1fr; }
  .chat { bottom: 86px; }
  .chat.is-open { bottom: 0; }
}
/* ================= ANIMATSIYALAR =================
   Hammasi faqat "harakatni kamaytirish" sozlamasi yoqilmagan qurilmalarda ishlaydi. */
.section h2::after {
  content: ""; display: block; width: 72px; height: 6px; margin-top: 18px; border-radius: 3px;
  background: linear-gradient(90deg, var(--orange) 0 25%, var(--blue) 25% 50%, var(--green) 50% 75%, var(--brown) 75%);
  transform-origin: left center;
}
.contact h2::after { background: linear-gradient(90deg, var(--orange) 0 25%, #fff 25% 50%, var(--orange) 50% 75%, #fff 75%); }

@media (prefers-reduced-motion: no-preference) {
  /* Bosh ekran: matnning ketma-ket paydo bo'lishi */
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .22s; }
  .hero-copy > :nth-child(4) { animation-delay: .34s; }
  .panel-svg { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .panel-labels li { animation: pop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
  .panel-labels li:nth-child(1) { animation-delay: 1.05s; }
  .panel-labels li:nth-child(2) { animation-delay: 1.15s; }
  .panel-labels li:nth-child(3) { animation-delay: 1.25s; }
  .panel-labels li:nth-child(4) { animation-delay: 1.35s; }
  .panel-labels li:nth-child(5) { animation-delay: 1.45s; }
  .panel-labels li:nth-child(n+6) { animation-delay: 1.55s; }
  .panel figcaption { animation: fadein .6s ease-out 1.8s both; }

  /* "Ishlayapmiz" indikatori */
  .status-dot { position: relative; }
  .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }

  /* Kabellar bo'ylab oqayotgan ma'lumot paketlari */
  .packets { animation: fadein .5s ease-out 1.7s forwards, packets 2.6s linear 1.7s infinite; }
  .port-cable:nth-of-type(2n) .packets { animation-duration: .5s, 3.1s; }
  .port-cable:nth-of-type(3n) .packets { animation-duration: .5s, 2.2s; }
  .port-cable.is-hot .packets { stroke-width: 7; }

  /* Sahifa aylantirilganda paydo bo'lish */
  .anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
  .anim .reveal.is-in { opacity: 1; transform: none; }
  .anim .svc.reveal .svc-art { transform: scale(.94); transition: transform 1s cubic-bezier(.2, .7, .2, 1) .15s; }
  .anim .svc.reveal.is-in .svc-art { transform: none; }
  .anim .svc.reveal::before { transform: scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(.6, 0, .2, 1) .1s; }
  .anim .svc.reveal.is-in::before { transform: none; }
  .anim .svc.reveal .ticks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s; }
  .anim .svc.reveal.is-in .ticks li { opacity: 1; transform: none; }
  .anim .svc.reveal.is-in .ticks li:nth-child(1) { transition-delay: .35s; }
  .anim .svc.reveal.is-in .ticks li:nth-child(2) { transition-delay: .45s; }
  .anim .svc.reveal.is-in .ticks li:nth-child(3) { transition-delay: .55s; }
  .anim .svc.reveal.is-in .ticks li:nth-child(4) { transition-delay: .65s; }
  .anim h2.reveal { transform: none; }
  .anim h2.reveal::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.6, 0, .2, 1) .25s; }
  .anim h2.reveal.is-in::after { transform: scaleX(1); }

  /* Ish tartibi: bosqichlarni bog'lovchi chiziq chiziladi */
  .anim .steps li::after { transform: scaleX(0); transform-origin: left; transition: transform .7s ease-out; }
  .anim .steps.is-drawn li::after { transform: scaleX(1); }
  .anim .steps.is-drawn li:nth-child(2)::after { transition-delay: .5s; }
  .anim .steps.is-drawn li:nth-child(3)::after { transition-delay: 1s; }
  .anim .steps .step-n { transition: background-color .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .anim .steps.is-drawn li .step-n { background: var(--orange); color: var(--ink); transform: scale(1.06); }
  .anim .steps.is-drawn li:nth-child(1) .step-n { transition-delay: 0s; }
  .anim .steps.is-drawn li:nth-child(2) .step-n { transition-delay: .55s; }
  .anim .steps.is-drawn li:nth-child(3) .step-n { transition-delay: 1.05s; }
  .anim .steps.is-drawn li:nth-child(4) .step-n { transition-delay: 1.55s; }

  /* Sichqoncha olib borilganda */
  .svc-art img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .svc:hover .svc-art img { transform: scale(1.04); }
  .why-item { transition: transform .3s, box-shadow .3s; }
  .why-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14, 22, 38, .08); }
  .tag { transition: border-color .2s, transform .2s; }
  .tag:hover { border-color: var(--ink); transform: translateY(-2px); }
  .tag:hover::before { background: var(--green); box-shadow: none; }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); transition: left .6s ease;
  }
  .btn-primary:hover::after { left: 120%; }

  /* Chat tugmasi e'tiborni tortadi */
  .chat-fab { animation: rise .6s cubic-bezier(.2, .7, .2, 1) 2.2s both; }
  .chat-fab::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--orange);
    animation: ring 2s ease-out 4s 3; opacity: 0; pointer-events: none;
  }
  .chat-fab { position: relative; }
  .chat-panel:not([hidden]) { animation: panel-in .35s cubic-bezier(.2, .8, .2, 1); transform-origin: bottom right; }
  .msg { animation: msg-in .35s cubic-bezier(.2, .8, .2, 1) both; }
  .msg-user { transform-origin: right bottom; }
  .chat-quick button, .chat-quick a { animation: fadein .3s ease-out both; }

  /* Forma muvaffaqiyatli yuborilganda */
  .form-status.is-ok { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1); }

  /* Mobil pastki panel */
  .mbar { animation: slide-up .6s cubic-bezier(.2, .7, .2, 1) 1s both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@keyframes packets { to { stroke-dashoffset: .25; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

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