/* ==========================================================================
   Qasem IT (it.qasem.ae) — tech look on top of the QasemOS theme
   ========================================================================== */
.it-site {
  --it-deep: #090d26;
  --it-navy: #111842;
  --it-blue: #3b82f6;
  --it-cyan: #22d3ee;
  --it-violet: #8b5cf6;
  --it-grad: linear-gradient(135deg, #7c3aed 0%, #3b82f6 55%, #06b6d4 100%);
  --it-soft: #eef4ff;
}
.it-site .brand-name { color: var(--it-navy); }
.it-site .brand-name b { background: var(--it-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.it-site .brand.on-dark .brand-name { color: #fff; }
.it-site ::selection { background: #c7dbff; color: var(--it-navy); }
.it-btn { background: var(--it-grad); background-size: 160% 160%; border: 0; animation: gradShift 8s ease infinite; }
.it-btn:hover { box-shadow: 0 14px 30px -12px rgba(59, 130, 246, .7); }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.it-eyebrow { color: var(--it-blue); }
.it-eyebrow.on-dark { color: var(--it-cyan); }
.it-site .nav > a[aria-current="page"], .it-site .nav-trigger.is-current { color: var(--it-blue); background: var(--it-soft); }
.it-site .chip[aria-pressed="true"] { background: var(--it-navy); border-color: var(--it-navy); }

/* Icon chips */
.it-ic { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: var(--it-grad); box-shadow: 0 10px 22px -12px rgba(59, 130, 246, .8); }
.it-ic .icon { width: 20px; height: 20px; }
.it-ic.sm { width: 30px; height: 30px; border-radius: 9px; }
.it-ic.sm .icon { width: 15px; height: 15px; }
.it-ic.lg { width: 54px; height: 54px; border-radius: 16px; }
.it-ic.lg .icon { width: 26px; height: 26px; }
.it-ic.xl { width: 70px; height: 70px; border-radius: 20px; margin-bottom: 18px; }
.it-ic.xl .icon { width: 34px; height: 34px; }
.it-ic.ok { background: linear-gradient(135deg, #22c55e, #15803d); }
.it-ic.cyan { background: linear-gradient(135deg, #22d3ee, #0e7490); }

/* Mega menu */
.it-mega { width: min(1000px, 94vw); grid-template-columns: repeat(4, 1fr); gap: 6px 12px; padding: 18px; }
.it-mega-col { display: grid; gap: 2px; align-content: start; }
.it-mega-label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--it-blue); }
.it-mega-label .icon { width: 14px; height: 14px; }
.it-mega a { align-items: center; gap: 10px; padding: 8px; font-weight: 650; font-size: .9rem; color: var(--ink); }
.it-mega a:hover { background: var(--it-soft); }

/* Hero */
.it-hero, .it-page-hero { position: relative; overflow: hidden; isolation: isolate; color: #c9d3f5;
  background: radial-gradient(900px 500px at 80% 0%, rgba(59,130,246,.35), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(124,58,237,.35), transparent 60%), var(--it-deep); }
.it-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(70px, 9vw, 120px); }
.it-grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(120,160,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(120,160,255,.08) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 25%, transparent 75%); animation: gridMove 20s linear infinite; }
@keyframes gridMove { to { background-position: 48px 48px; } }
.it-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.it-orb.o1 { width: 420px; height: 420px; background: #3b82f6; top: -140px; right: 6%; }
.it-orb.o2 { width: 340px; height: 340px; background: #7c3aed; bottom: -160px; left: 4%; animation-delay: -6s; }
.it-orb.o3 { width: 240px; height: 240px; background: #06b6d4; top: 40%; left: 42%; opacity: .25; animation-delay: -11s; }
.it-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.it-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: .84rem; font-weight: 650; color: #e2e8ff; }
.it-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--it-cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.7); animation: ping 2s infinite; }
.it-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; margin-top: 22px; }
.it-rotate { margin-top: 16px; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; color: #fff; }
.it-rotate .rotator span { background: linear-gradient(90deg, #60a5fa, #22d3ee 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.it-hero .hero-lead { color: #b9c4ec; }
.it-hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: #c9d3f5; }
.it-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.it-hero-points .icon { width: 17px; height: 17px; color: var(--it-cyan); }

/* Code editor mock */
.it-hero-visual { position: relative; min-height: 440px; perspective: 1200px; }
.code-win { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: rgba(10, 15, 45, .85); border: 1px solid rgba(120,160,255,.22);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03) inset; backdrop-filter: blur(14px);
  transform: rotateY(-8deg) rotateX(4deg); animation: windowIn 1s var(--ease) .15s both; }
.cw-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); }
.cw-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.08); font: 600 .76rem 'JetBrains Mono', monospace; color: #dbe4ff; }
.cw-tab .icon { width: 13px; height: 13px; color: var(--it-cyan); }
.cw-tab.dim { background: none; color: #6f7bb0; }
.cw-code { margin: 0; padding: 20px 22px 26px; min-height: 300px; font: 500 .86rem/1.75 'JetBrains Mono', ui-monospace, monospace; color: #c9d3f5; white-space: pre-wrap; counter-reset: ln; }
.cw-code code { font: inherit; }
.cw-code .ln { display: block; padding-left: 34px; position: relative; }
.cw-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 20px; text-align: right; color: #4b5687; }
.tk-k { color: #c084fc; } .tk-s { color: #86efac; } .tk-f { color: #60a5fa; } .tk-c { color: #5f6b9c; font-style: italic; } .tk-n { color: #fbbf24; } .tk-p { color: #22d3ee; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--it-cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.it-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.6); animation: cardFloat 7s ease-in-out infinite, windowIn .9s var(--ease) both; }
.it-float span:last-child { display: grid; line-height: 1.25; }
.it-float strong { font-size: .92rem; }
.it-float small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.it-float .live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: ping 2s infinite; }
.f-deploy { top: -18px; right: -10px; animation-delay: -1s, .5s; }
.f-ssl { bottom: 54px; left: -30px; animation-delay: -3s, .7s; }
.f-uptime { bottom: -14px; right: 12%; animation-delay: -5s, .9s; }
.f-phone { top: 34%; right: -36px; padding: 0; background: none; box-shadow: none; animation-delay: -2s, .6s; }
.mini-phone, .dev-phone { position: relative; width: 112px; height: 216px; border-radius: 22px; padding: 22px 10px 10px; background: #fff; border: 5px solid #1c2350; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7); display: grid; gap: 8px; align-content: start; }
.mp-notch { position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 38px; height: 7px; border-radius: 99px; background: #1c2350; }
.mp-card { height: 70px; border-radius: 12px; background: var(--it-grad); }
.mp-line { height: 8px; border-radius: 6px; background: #e3e9fb; }
.mp-line.w80 { width: 80%; } .mp-line.w60 { width: 60%; }
.mp-btn { height: 26px; border-radius: 9px; background: var(--it-navy); margin-top: 4px; }

/* Tech marquee */
.tech-marquee { overflow: hidden; background: var(--it-navy); border-top: 1px solid rgba(255,255,255,.06); padding: 16px 0; }
.tm-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.tech-marquee:hover .tm-track { animation-play-state: paused; }
.tech-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: #dbe4ff; font: 600 .86rem 'JetBrains Mono', monospace; white-space: nowrap; }
.tech-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--it-grad); }

/* Services */
.center-chips { justify-content: center; }
.it-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.it-svc { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px; border-radius: 22px; background: #fff; border: 1px solid #e5eaf7; color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.it-svc::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,.10), transparent 60%); transition: opacity .4s; }
.it-svc:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(30, 64, 175, .45); border-color: #bcd2ff; }
.it-svc:hover::after { opacity: 1; }
.it-svc .it-ic { transition: transform .5s var(--ease); }
.it-svc:hover .it-ic { transform: rotate(-8deg) scale(1.08); }
.it-svc strong { font-size: 1.12rem; }
.it-svc-text { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.it-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .88rem; color: var(--it-blue); }
.it-more .icon { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.it-svc:hover .it-more .icon { transform: translateX(4px); }
.it-svc.service-card { padding: 26px 22px; box-shadow: none; }
.it-svc.service-card::before { display: none; }
.it-cat-block + .it-cat-block { margin-top: 56px; }
.it-cat-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin-bottom: 20px; }

/* What we build */
.it-build { background: linear-gradient(180deg, var(--it-soft), #fff); }
.it-tabs .tab-indicator { background: var(--it-grad); }
.it-build .tab-panel { grid-template-columns: 1fr 1.1fr; }
.it-check { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.it-check li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.it-check .icon { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: #dbeafe; color: var(--it-blue); stroke-width: 3; margin-top: 2px; }
.device-stage { position: relative; min-height: 340px; display: grid; place-items: center; }
.dev-browser { width: 100%; max-width: 560px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #dfe6f7; box-shadow: 0 40px 80px -36px rgba(30, 64, 175, .5); }
.db-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #f3f6fd; border-bottom: 1px solid #e3e9f7; }
.db-url { flex: 1; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: .76rem; font-weight: 600; color: var(--muted); }
.db-url .icon { width: 12px; height: 12px; color: #22c55e; }
.db-nav { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.db-nav i { width: 46px; height: 8px; border-radius: 6px; background: #e3e9fb; }
.db-nav i:first-child { width: 70px; background: var(--it-navy); }
.db-nav b { margin-left: auto; width: 70px; height: 24px; border-radius: 99px; background: var(--it-grad); }
.db-hero { margin: 4px 18px; padding: 30px 24px; border-radius: 14px; background: var(--it-grad); display: grid; gap: 10px; }
.db-hero span { height: 12px; border-radius: 8px; background: rgba(255,255,255,.85); }
.db-hero .l1 { width: 70%; height: 18px; } .db-hero .l2 { width: 50%; opacity: .7; } .db-hero .l3 { width: 110px; height: 26px; border-radius: 99px; background: #fff; margin-top: 6px; }
.db-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 18px 20px; }
.db-cards i { height: 74px; border-radius: 12px; background: linear-gradient(90deg, #eef2fc 25%, #e2e9fb 50%, #eef2fc 75%); background-size: 200% 100%; animation: shimmer 2s infinite; }
.db-app { display: grid; grid-template-columns: 90px 1fr; min-height: 260px; }
.db-app aside { display: grid; gap: 10px; align-content: start; padding: 16px 12px; background: var(--it-navy); }
.db-app aside i { height: 10px; border-radius: 6px; background: rgba(255,255,255,.2); }
.db-app aside i:first-child { background: var(--it-cyan); }
.db-app > div { padding: 16px; display: grid; gap: 14px; align-content: start; }
.db-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.db-kpis i { height: 54px; border-radius: 12px; background: #f1f5fe; border: 1px solid #e3e9f7; }
.db-chart { height: 140px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-radius: 12px; background: #f8faff; border: 1px solid #e3e9f7; }
.db-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: var(--it-grad); transform-origin: bottom; animation: grow 1s var(--ease) both; animation-delay: calc(var(--i) * .07s); }
.tab-panel:not(.is-active) .db-chart span { animation: none; }
.dev-phone { width: 170px; height: 330px; border-radius: 30px; padding: 30px 12px 12px; gap: 10px; z-index: 1; animation: cardFloat 7s ease-in-out infinite; }
.dev-phone.back { position: absolute; right: 12%; top: 30px; transform: rotate(8deg) scale(.88); z-index: 0; opacity: .9; animation-delay: -3s; }
.device-stage.mob .dev-phone:not(.back) { margin-right: 120px; }
.dp-head { height: 12px; width: 60%; border-radius: 6px; background: #e3e9fb; }
.dp-hero { height: 110px; border-radius: 16px; background: var(--it-grad); }
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-row i { height: 50px; border-radius: 12px; background: #eef2fc; }
.dp-tab { display: flex; justify-content: space-around; margin-top: auto; padding-top: 8px; border-top: 1px solid #eef2fc; }
.dp-tab i { width: 18px; height: 18px; border-radius: 6px; background: #dbe4fb; }
.dp-tab i:first-child { background: var(--it-blue); }
.dp-list { display: grid; gap: 8px; }
.dp-list i { height: 38px; border-radius: 10px; background: linear-gradient(90deg, #eef2fc 25%, #e2e9fb 50%, #eef2fc 75%); background-size: 200% 100%; animation: shimmer 2s infinite; }

/* Process timeline */
.it-process { background: var(--it-deep); color: #c9d3f5; overflow: hidden; }
.it-process .section-title { color: #fff; }
.it-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 18px; position: relative; }
.it-timeline::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, #7c3aed, #3b82f6, #06b6d4); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.it-timeline.in-view::before { transform: scaleX(1); }
.it-timeline li { position: relative; display: grid; justify-items: start; gap: 10px; padding: 0 6px; }
.itl-dot { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font: 700 .95rem 'JetBrains Mono', monospace; color: #fff; background: var(--it-navy); border: 1px solid rgba(120,160,255,.3); box-shadow: 0 0 0 6px var(--it-deep), 0 0 30px -6px rgba(59,130,246,.7); }
.it-timeline li:hover .itl-dot { background: var(--it-grad); }
.it-timeline h3 { color: #fff; font-size: 1.12rem; margin-top: 8px; }
.it-timeline p { color: #9faad6; font-size: .92rem; }

/* Hosting plans */
.it-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.it-plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 30px 26px; border-radius: 24px; background: #fff; border: 1px solid #e3e9f7; transition: transform .45s var(--ease), box-shadow .45s; }
.it-plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(30, 64, 175, .5); }
.it-plan.hot { background: linear-gradient(var(--it-deep), var(--it-deep)) padding-box, var(--it-grad) border-box; border: 2px solid transparent; color: #c9d3f5; }
.it-plan.hot h3, .it-plan.hot .it-price { color: #fff; }
.it-plan.hot .it-check li { color: #e2e8ff; }
.it-plan.hot .it-check .icon { background: rgba(59,130,246,.25); color: var(--it-cyan); }
.it-plan h3 { font-size: 1.3rem; margin-top: 8px; }
.it-price { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.it-price small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.it-plan .it-check { margin-bottom: 22px; }
.it-plan .btn { margin-top: auto; }
.it-host-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.it-host-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #e2e8ff; font-weight: 650; font-size: .88rem; }
.it-host-badges .icon { width: 16px; height: 16px; color: var(--it-cyan); }

/* Why */
.it-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.it-why-card { padding: 28px 24px; border-radius: 22px; background: linear-gradient(160deg, #fff, var(--it-soft)); border: 1px solid #e3e9f7; transition: transform .45s var(--ease), box-shadow .45s; }
.it-why-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(30, 64, 175, .5); }
.it-why-card h3 { font-size: 1.1rem; margin-top: 18px; }
.it-why-card p { color: var(--muted); margin-top: 8px; font-size: .93rem; }

/* CTA */
.it-cta { background: linear-gradient(120deg, #0b1140, #1e3a8a 55%, #0e7490); }
.it-cta::before { background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%); }
.it-cta-glow { position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,.45), transparent 65%); animation: float 16s ease-in-out infinite; }

/* Inner pages */
.it-page-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(56px, 7vw, 90px); }
.it-page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.03em; line-height: 1.08; }
.it-page-hero .lead { font-size: 1.12rem; margin-top: 16px; max-width: 660px; color: #b9c4ec; }
.it-page-hero .breadcrumb { color: #8f9bd0; }
.it-svc-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.it-deliver { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.06); border: 1px solid rgba(120,160,255,.22); backdrop-filter: blur(12px); }
.it-deliver-title { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; margin-bottom: 14px; }
.it-deliver-title .icon { color: var(--it-cyan); }
.it-deliver ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.it-deliver li { display: flex; align-items: center; gap: 10px; color: #e2e8ff; font-weight: 600; animation: panelIn .6s var(--ease) both; animation-delay: calc(.3s + var(--i) * .1s); }
.it-deliver li span { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(34,211,238,.15); color: var(--it-cyan); }
.it-deliver li .icon { width: 15px; height: 15px; stroke-width: 3; }
.it-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.it-feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f7; transition: border-color .3s, transform .4s var(--ease); }
.it-feature:hover { border-color: #bcd2ff; transform: translateY(-3px); }
.it-num { flex: none; font: 700 .9rem 'JetBrains Mono', monospace; color: var(--it-blue); padding: 4px 8px; border-radius: 8px; background: var(--it-soft); }
.it-feature p { font-weight: 650; color: var(--ink); }
.it-next { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 16px; }
.it-next li { display: flex; gap: 14px; }
.it-next li > span { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--it-grad); color: #fff; font-weight: 800; }
.it-next strong { color: var(--ink); }
.it-next p { color: var(--muted); font-size: .93rem; }
.it-footer { background: var(--it-deep); }
.it-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
.it-footer ul.mb { margin-bottom: 22px; }
.it-site .fab { background: var(--it-blue); }
.it-site .fab::before { border-color: var(--it-blue); }
.plan-row { padding: 14px 0; border-bottom: 1px dashed var(--line); align-items: end; }

@media (max-width: 1080px) {
  .it-hero-inner, .it-svc-hero, .it-build .tab-panel { grid-template-columns: 1fr; }
  .it-hero-visual { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .it-svc-grid, .it-why { grid-template-columns: repeat(2, 1fr); }
  .it-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .it-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .it-timeline::before { display: none; }
  .it-mega { grid-template-columns: repeat(2, 1fr); }
  .it-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .it-hero-visual { min-height: 360px; }
  .code-win { transform: none; }
  .cw-code { font-size: .74rem; min-height: 250px; padding: 16px 14px 20px; }
  .cw-code .ln { padding-left: 26px; }
  .f-ssl { left: -4px; bottom: 30px; }
  .f-deploy { right: 0; }
  .f-phone { display: none; }
  .f-uptime { right: 4px; }
  .it-svc-grid, .it-why, .it-feature-grid { grid-template-columns: 1fr; }
  .it-svc { padding: 20px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .it-svc strong { flex: 1; }
  .it-svc-text { flex-basis: 100%; }
  .it-timeline { grid-template-columns: 1fr; }
  .dev-phone { width: 140px; height: 280px; }
  .device-stage.mob .dev-phone:not(.back) { margin-right: 80px; }
  .db-app { grid-template-columns: 56px 1fr; }
  .it-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .it-grid-bg, .it-orb, .it-float, .dev-phone, .tm-track, .it-btn { animation: none !important; }
}

/* Phones: services as compact 2-column tiles (details on each service page) */
@media (max-width: 640px) {
  .it-svc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .it-svc, .it-svc.service-card { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 10px; padding: 16px 14px; border-radius: 18px; }
  .it-svc strong { flex: none; font-size: .95rem; line-height: 1.3; }
  .it-svc .it-ic.lg { width: 44px; height: 44px; border-radius: 13px; }
  .it-svc .it-ic.lg .icon { width: 22px; height: 22px; }
  .it-svc-text { display: none; }
  .it-more { font-size: .8rem; }
  .it-cat-title { font-size: 1.25rem; }
}

/* Services grid: same card widths, but an incomplete last row is centred */
.it-svc-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.it-svc-grid > .it-svc { flex: 0 1 calc((100% - 54px) / 4); min-width: 0; }
@media (max-width: 1080px) { .it-svc-grid > .it-svc { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 640px) { .it-svc-grid { gap: 10px; } .it-svc-grid > .it-svc { flex-basis: calc((100% - 10px) / 2); } }
