/* Ramitech Networks Ltd — site styles */

:root {
  --navy: #0B1830;
  --navy-2: #13274D;
  --line-dark: #2A4270;
  --line-dark-2: #3A5485;
  --brand: #1F5FAE;
  --brand-ink: #16447E;
  --brand-tint: #EEF4FC;
  --accent: #C8202B;
  --accent-ink: #A51A23;
  --sky: #8DB8F2;
  --ground: #F4F5F7;
  --media: #EEF1F5;
  --line: #DDE2EA;
  --field: #C9D1DD;
  --text: #0B1830;
  --muted: #4B5669;
  --muted-dark: #B9C5DA;
  --success: #1B7F4B;
  --wa: #15803D;
  --wa-ink: #116932;
  --wa-tint: #E9F7EE;

  --display: "Archivo", "Helvetica Neue", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.ic { flex-shrink: 0; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.05;
}
.h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1;
}
.h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--muted); }
.section--dark .lead, .hero .lead, .page-hero .lead, .cta-band .lead { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-weight: 600; font-size: 16px; line-height: 1.2;
  cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-dark:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: var(--line-dark-2); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--sky); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
  border-radius: var(--radius-sm); cursor: pointer;
}
.icon-btn:hover { background: var(--ground); color: var(--text); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: var(--muted-dark); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar__group { display: flex; gap: 28px; align-items: center; }
.topbar__item { display: inline-flex; gap: 8px; align-items: center; }
.topbar__link { color: #fff; }
.topbar__link:hover { color: var(--sky); }

.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
/* Logo: "Ring R" symbol (SVG) + live-text name in Montserrat — crisp at any size */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__mark { width: 50px; height: 50px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: Montserrat, var(--display), sans-serif; }
.logo__text b { font-weight: 800; font-size: 24px; letter-spacing: .04em; color: #0E3F8C; }
.logo__ltd { margin-top: 4px; font-weight: 700; font-size: 8.8px; letter-spacing: .42em; color: #ED1C24; white-space: nowrap; }
.logo__text em { margin-top: 5px; font-style: italic; font-weight: 500; font-size: 11px; color: rgba(255, 255, 255, .8); }
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__ltd { color: #FF8A8F; }
.nav { display: flex; align-items: center; }
.nav__links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; display: flex; align-items: center; }
.nav__links a:hover { color: var(--brand); }
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.nav__icon, .nav__head, .nav__status, .nav__contact, .nav__topics, .nav .nav__cta-mobile { display: none; }
.site-header__actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle, .show-md { display: none; }
.icon-btn--bordered { border: 1px solid var(--line); }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* "Online" badge in the header — always on, blinking green dot */
.online-badge {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--wa-tint);
  color: var(--wa); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.online-badge__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: online-blink 1.4s ease-in-out infinite;
}
@keyframes online-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  50% { opacity: .35; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .online-badge__dot { animation: none; } }
.logo { flex-shrink: 0; }
.nav__links a { white-space: nowrap; }
.btn { white-space: nowrap; }
@media (min-width: 1181px) {
  /* desktop header: WhatsApp is a green icon button here (the Online badge sits right beside it). */
  .header-wa { width: 44px; padding: 0; }
  .header-wa .header-wa__long { display: none; }
}

/* WhatsApp buttons */
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-ink); color: #fff; }
.header-wa { border-color: var(--line); background: #fff; color: var(--text); }
.header-wa .ic { color: var(--wa); }
.header-wa:hover { border-color: var(--wa); color: var(--text); }
.header-wa__short { display: none; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--ground { background: var(--ground); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--lg { gap: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 80px 0; }
.hero__lines { position: absolute; right: 0; top: 0; width: 62%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .lead { max-width: 600px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sky); padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 4px;
}
.hero__note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted-dark); }
.hero__note .ic { color: var(--sky); }

.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 64px 0 56px; }
.page-hero .hero__lines { width: 55%; }
.page-hero__inner { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 48px; flex-wrap: wrap; }
.page-hero__copy { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.breadcrumb { font-size: 14px; color: var(--muted-dark); }
.breadcrumb a { color: var(--sky); }
.page-hero .h1 { font-size: clamp(36px, 4.4vw, 54px); }

/* ---------- Cards & forms ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.card--form { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 0; padding: 32px; gap: 16px; color: var(--text); }
.card--soft { background: var(--ground); border: 0; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.card__text { font-size: 14px; color: var(--muted); line-height: 1.5; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: var(--radius-sm);
  padding: 0 14px; font-size: 16px; font-weight: 400; background: #fff; color: var(--text);
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 95, 174, .18); }
.field__hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); }
.form__status--error { background: #FDECEC; color: #8E1620; }
.form__status[hidden] { display: none; }
.form__status--ok { background: var(--wa-tint, #E9F7EE); color: #14532D; }
.geo__btn { justify-content: flex-start; font-weight: 500; }
.geo__btn .ic { color: var(--accent); }
.geo__btn.is-done { border-color: var(--wa, #15803D); color: #14532D; background: var(--wa-tint, #E9F7EE); }
.geo__btn.is-done .ic { color: var(--wa, #15803D); }
.geo__status { font-weight: 400; font-size: 13px; color: var(--muted); }
.geo--compact { display: flex; flex-direction: column; gap: 4px; }
.footer__credit { opacity: .75; }
.footer__credit a { color: inherit; text-decoration: underline; }

/* Shorter hero form: tighter spacing, slimmer fields */
.coverage-form--compact { padding: 22px 24px; gap: 11px; }
.coverage-form--compact .card__title { font-size: 21px; }
.coverage-form--compact .card__text { font-size: 13px; }
.coverage-form--compact .field { gap: 4px; font-size: 12.5px; }
.coverage-form--compact .field input, .coverage-form--compact .field select { min-height: 42px; font-size: 15px; }
.coverage-form--compact .form__row { gap: 10px; }
.coverage-form--compact .seg button { min-height: 38px; }
.coverage-form--compact .geo__btn { min-height: 42px; font-size: 14px; }
.coverage-form--compact .btn--block[type="submit"] { min-height: 48px; }
@media (max-width: 767px) {
  .coverage-form--compact { padding: 18px 16px; }
  .coverage-form--compact .form__row[data-show="home"] { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.seg button {
  min-height: 44px; border: 1px solid var(--field); background: #fff; color: var(--text);
  border-radius: var(--radius-sm); font-weight: 500; font-size: 14px; cursor: pointer;
}
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.coverage-form { padding: 32px; gap: 16px; }
.hero .coverage-form { border: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: var(--text); }
.seg button[aria-pressed="true"] { border: 2px solid var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; }

.tabs { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.tabs button {
  min-height: 44px; padding: 0 22px; border: 0; border-radius: 7px; background: transparent;
  font-weight: 500; font-size: 14px; cursor: pointer; color: var(--text);
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; font-weight: 600; }
[role="tabpanel"][hidden] { display: none; }

/* Big two-way service tabs in a dark page hero */
.hero-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px;
  width: min(560px, 100%); padding: 6px; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255, 255, 255, .04);
}
.hero-tabs button {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; text-align: left;
  border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; transition: background-color .15s;
}
.hero-tabs button:hover { background: rgba(255, 255, 255, .08); }
.hero-tabs__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(141, 184, 242, .14); color: var(--sky); display: flex; align-items: center; justify-content: center; }
.hero-tabs__title { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.hero-tabs__sub { display: block; font-size: 13px; color: var(--muted-dark); line-height: 1.35; margin-top: 2px; }
.hero-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); }
.hero-tabs button[aria-selected="true"] .hero-tabs__icon { background: var(--accent); color: #fff; }
.hero-tabs button[aria-selected="true"] .hero-tabs__sub { color: var(--muted); }
@media (max-width: 480px) {
  .hero-tabs button { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--ground); border-bottom: 1px solid var(--line); }
.trust__inner { display: flex; align-items: center; gap: 24px 40px; min-height: 112px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.trust__label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 15px;
}
.badge__dot {
  width: 32px; height: 32px; border-radius: 50%; background: #E40000; color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.trust__text { color: var(--muted); font-size: 15px; flex: 1 1 320px; }

/* ---------- Services ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service__icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.service__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.service .link-arrow { margin-top: auto; padding-top: 6px; }
a.card { color: var(--text); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--brand); color: var(--text); }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.check-list .ic { color: var(--brand); margin-top: 2px; }
.check-list--sm { font-size: 14px; gap: 8px; }
.section--dark .check-list .ic, .pkg--featured .check-list .ic { color: var(--sky); }
.check-list--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }

/* ---------- Packages ---------- */
.pkg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.pkg--featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.pkg__tag { position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.pkg__kind { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pkg--featured .pkg__kind { color: var(--sky); }
.pkg__name { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2; }
.pkg__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkg__price strong { font-family: var(--display); font-weight: 800; font-size: 28px; }
.pkg__price span { font-size: 14px; color: var(--muted); }
.pkg--featured .pkg__price span { color: var(--muted-dark); }
.pkg__rule { height: 1px; background: var(--line); margin: 4px 0; }
.pkg--featured .pkg__rule { background: var(--line-dark); }
.pkg .btn { margin-top: auto; }
.pkg .check-list { margin-bottom: 12px; }

/* ---------- Products ---------- */
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product__media { height: 160px; background: var(--media); color: #6A768A; display: flex; align-items: center; justify-content: center; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.product__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.product__name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.product__spec { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.product__price { font-weight: 700; font-size: 16px; margin-top: auto; padding-top: 8px; }
.product__price span { font-weight: 400; font-size: 13px; color: var(--muted); }
.product__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: auto; padding-top: 10px; }
.product__row .product__price { padding-top: 0; margin-top: 0; }
.product__actions { display: flex; gap: 8px; margin-top: 10px; }
.product__actions .btn { flex-grow: 1; padding: 0 12px; white-space: nowrap; }
.product.is-added { border-color: var(--brand); }

.qty { display: flex; align-items: center; border: 1px solid var(--field); border-radius: var(--radius-sm); min-height: 44px; }
.qty button { width: 36px; height: 42px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--text); }
.qty button:hover { background: var(--ground); }
.qty input {
  width: 44px; border: 0; text-align: center; font-family: var(--mono); font-size: 14px; background: transparent;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Catalogue layout */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.catalog__side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 108px; }
.cats { list-style: none; margin: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 2px; }
.cats__title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 10px; }
.cat {
  width: 100%; min-height: 44px; text-align: left; padding: 0 10px; border: 0; border-radius: var(--radius-sm);
  background: transparent; font-size: 15px; cursor: pointer; color: var(--text);
}
.cat:hover { background: var(--ground); }
.cat.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.catalog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.catalog__count { font-size: 15px; color: var(--muted); }
.catalog__count strong { color: var(--text); }
.sort { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.sort select { min-height: 44px; border: 1px solid var(--field); border-radius: var(--radius-sm); padding: 0 12px; background: #fff; color: var(--text); font-size: 14px; }
.catalog__empty { padding: 48px 24px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--field); border-radius: var(--radius); }
.search {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; width: 420px; max-width: 100%;
  background: #fff; border-radius: 10px; color: var(--muted);
}
.search input { flex-grow: 1; border: 0; outline: none; font-size: 16px; color: var(--text); background: transparent; min-width: 0; }

.quote { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.quote__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote__title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.quote__count { padding: 3px 9px; border-radius: 12px; background: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.quote__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.quote__item { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-dark); }
.quote__qty { font-family: var(--mono); color: var(--sky); white-space: nowrap; }
.quote__remove { width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted-dark); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.quote__remove:hover { background: var(--navy-2); color: #fff; }
.quote__empty { font-size: 14px; color: var(--muted-dark); line-height: 1.5; }
.quote__note { font-size: 13px; color: var(--muted-dark); line-height: 1.5; }
.quote .field { color: #fff; }
.quote .field input { border-color: var(--line-dark-2); background: var(--navy-2); color: #fff; }
.quote .field input::placeholder { color: #8C9AB3; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.step:last-child { border-bottom: 0; }
.step__num {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--sky); color: var(--sky);
  font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.step__title { font-weight: 600; font-size: 16px; }
.step__text { font-size: 14px; color: var(--muted-dark); line-height: 1.5; }
.steps--light .step { border-bottom-color: var(--line); }
.steps--light .step__num { border-color: var(--brand); color: var(--brand); }
.steps--light .step__text { color: var(--muted); }
.panel-dark {background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 32px; }
.panel-dark__title { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 12px; }

.steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps-row .step-card { padding-top: 20px; border-top: 2px solid var(--brand); display: flex; flex-direction: column; gap: 8px; }
.steps-row .step-card__num { font-family: var(--mono); font-size: 13px; color: var(--brand); }
.steps-row .step-card__title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.steps-row .step-card__text { font-size: 15px; color: var(--muted); }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 80px; align-items: center; }
.split--form { grid-template-columns: minmax(0, 1fr) 600px; align-items: start; }
.contact-list { display: flex; flex-direction: column; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.contact-item:last-child { border-bottom: 0; }
a.contact-item:hover { color: var(--brand); }
.contact-item__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.contact-item__label { display: block; font-size: 13px; color: var(--muted); }
.contact-item__value { display: block; font-weight: 600; font-size: 17px; }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--media); }

.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .h2 { font-size: clamp(26px, 3vw, 36px); max-width: 640px; }

.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .service__icon { margin-bottom: 4px; }
.feature__title { font-weight: 600; font-size: 18px; }
.feature__text { font-size: 15px; color: var(--muted); line-height: 1.55; }

.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 720px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--muted-dark); padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { font-size: 15px; max-width: 360px; }
.footer__logo { align-self: flex-start; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col a { color: var(--muted-dark); }
.footer__col a:hover { color: #fff; }
.footer__title { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 4px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 20px; font-size: 14px; }
.socials { display: flex; gap: 10px; }
.social { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--navy-2); color: #fff; display: flex; align-items: center; justify-content: center; }
.social:hover { background: var(--line-dark); color: #fff; }

.callbar, .bottom-nav { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 80;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 15px;
  box-shadow: 0 12px 32px rgba(11, 24, 48, .3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Horizontal scroll cues ---------- */
.hscroll { position: relative; --hs-bg: #fff; }
.section--ground .hscroll { --hs-bg: var(--ground); }
.hscroll--cats { --hs-bg: #fff; }
[data-hscroll]::-webkit-scrollbar { display: none; }
.hscroll::before, .hscroll::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.hscroll--cards::before, .hscroll--cards::after { bottom: 44px; }
.hscroll::before { left: 0; background: linear-gradient(to right, var(--hs-bg), transparent); }
.hscroll::after { right: 0; background: linear-gradient(to left, var(--hs-bg), transparent); }
.hscroll.is-scrollable:not(.at-start)::before, .hscroll.is-scrollable:not(.at-end)::after { opacity: 1; }
.hscroll__btn {
  display: none; position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(11, 24, 48, .18);
  transition: opacity .2s;
}
.hscroll--cards .hscroll__btn { top: calc(50% - 22px); }
.hscroll__btn--prev { left: 4px; }
.hscroll__btn--next { right: 4px; }
.hscroll.is-scrollable .hscroll__btn { display: flex; }
.hscroll.at-start .hscroll__btn--prev, .hscroll.at-end .hscroll__btn--next { opacity: 0; pointer-events: none; }
.hscroll--cats .hscroll__btn { width: 32px; height: 32px; }
.hscroll__bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; min-height: 30px; }
.hscroll.is-scrollable .hscroll__bar { display: flex; }
.hscroll__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: opacity .3s; }
.hscroll.has-scrolled .hscroll__hint { opacity: 0; }
.hscroll__dots { display: flex; gap: 2px; margin-left: auto; }
.hscroll__dot { width: 24px; height: 30px; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; }
.hscroll__dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #B8C2D1; transition: width .2s, background-color .2s; }
.hscroll__dot.is-active::before { width: 20px; background: var(--navy); }

.center-page { min-height: 60vh; display: flex; align-items: center; }
.center-page__inner { max-width: 640px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 22px; }
  .hide-md { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .split, .split--form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
/* Small tablets (portrait): desktop design, but the widest two-column blocks stack so nothing is squeezed */
@media (min-width: 768px) and (max-width: 980px) {
  .hero__grid, .split, .split--form { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__grid .coverage-form { max-width: 560px; }
  .catalog { grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
  .catalog [data-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .topbar__item--wide { display: none; }
  .nav-toggle, .show-md { display: inline-flex; }
  .site-header__actions { gap: 8px; }
  .header-wa { background: var(--wa); border-color: var(--wa); color: #fff; padding: 0 16px; }
  .header-wa .ic { color: #fff; }
  .header-wa:hover { background: var(--wa-ink); color: #fff; }
  .header-wa__long { display: none; }
  .header-wa__short { display: inline; }

  /* Mobile menu: a sheet that puts contact first */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 60;
    flex-direction: column; align-items: stretch; gap: 20px; padding: 10px 20px 28px;
    overflow-y: auto; overscroll-behavior: contain;
    background: #fff; box-shadow: -12px 0 40px rgba(11, 24, 48, .2);
    transform: translateX(100%); transition: transform .25s; visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__head { display: flex; align-items: center; min-height: 44px; margin-right: 56px; font-family: var(--display); font-weight: 700; font-size: 22px; }
  .nav__status {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
    background: var(--ground); font-size: 14px; line-height: 1.45; color: var(--muted);
  }
  .nav__status strong { color: var(--text); }
  .nav__dot { width: 10px; height: 10px; flex-shrink: 0; margin-top: 5px; border-radius: 50%; background: #98A2B3; }
  .nav__status.is-open { background: var(--wa-tint); }
  .nav__status.is-open .nav__dot { background: var(--wa); box-shadow: 0 0 0 4px rgba(21, 128, 61, .18); }
  .nav__contact { display: flex; flex-direction: column; gap: 10px; }
  .nav__contact .btn--wa { min-height: 56px; font-size: 17px; }
  .nav__contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
  .nav__links a { gap: 14px; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after {
    content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #98A2B3; border-top: 2px solid #98A2B3; transform: rotate(45deg);
  }
  .nav__links a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__links a:last-child[aria-current="page"] { border-bottom: 0; }
  .nav__icon {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 9px; background: var(--brand-tint); color: var(--brand);
  }
  .nav__topics { display: flex; flex-direction: column; gap: 10px; }
  .nav__label { font-size: 14px; color: var(--muted); }
  .topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .topic-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 22px; color: var(--text); font-size: 14px; font-weight: 500;
  }
  .topic-chip .ic { color: var(--wa); }
  .topic-chip:hover, .topic-chip:active { border-color: var(--wa); background: var(--wa-tint); color: var(--text); }
  .nav .nav__cta-mobile { display: inline-flex; }
  .nav-toggle { position: relative; z-index: 70; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 24, 48, .45); z-index: 45; }
  body.nav-open .callbar { display: none; }

  .hero { padding: 48px 0 56px; }
  .hero__grid, .split, .split--form, .section__head, .catalog { grid-template-columns: minmax(0, 1fr); }
  .section__head { gap: 16px; }
  .hero__lines { width: 100%; opacity: .6; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog [data-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #fiber-home .coverage-form, #enterprise .coverage-form { order: -1; }
  .catalog { gap: 20px; }
  .catalog__side { display: contents; }
  .catalog__side > .hscroll { order: 0; min-width: 0; }
  .catalog__main { order: 1; }
  .catalog .quote { order: 2; margin-top: 20px; }
  .cats { flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; scrollbar-width: none; }
  .cats__title { display: none; }
  .cat { white-space: nowrap; width: auto; padding: 0 14px; background: var(--ground); }
  .quote { position: static; }
  .section { padding: 64px 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  body { padding-bottom: 72px; }
  .topbar { display: none; }
  .site-header__inner { min-height: 64px; }
  /* phone header: official bubbles + RAMITECH in the logo's red (full lettering is too small here) */
  .site-header .logo { gap: 6px; }
  .site-header .logo__mark { width: 40px; height: 40px; }
  .site-header .logo__text b { font-size: 18px; }
  .site-header .logo__ltd { display: none; }
  .site-header__actions { gap: 6px; }
  .online-badge { padding: 5px 9px 5px 7px; font-size: 12px; gap: 6px; }
  .header-wa { padding: 0 12px; }
  .grid-4, .grid-2, .form__row, .check-list--2col, .steps-row { grid-template-columns: minmax(0, 1fr); }
  .hero .btn-row .btn, .cta-band .btn { width: 100%; }
  .card, .pkg { padding: 22px; }
  .card--form { padding: 24px 20px; }
  .cta-band { padding: 32px 24px; }
  .section__head { margin-bottom: 32px; }
  .product-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-grid-home .product__media { height: 110px; }
  .product-grid-home .product__body { padding: 12px; }
  .product-grid-home .product__spec, .product-grid-home .btn { display: none; }
  .product-grid-home .product__name { font-size: 15px; }
  .product-grid-home .product__row { padding-top: 4px; }
  .pkg-scroll { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pkg-scroll > * { flex: 0 0 86%; scroll-snap-align: start; }
  .search { width: 100%; }
  .catalog [data-grid] { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog .product__media { height: 130px; }
  .footer__grid { gap: 28px; }
  .callbar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 24, 48, .12);
  }
  .callbar .btn { min-height: 50px; font-size: 15px; }

  /* App-style bottom navigation for the services */
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 24, 48, .10);
  }
  .bottom-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; color: var(--muted); font-size: 10.5px; font-weight: 600; line-height: 1.15; text-align: center; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav__icon {
    display: flex; align-items: center; justify-content: center; width: 46px; height: 30px; border-radius: 15px;
    transition: background-color .15s, color .15s, transform .15s;
  }
  .bottom-nav a:active .bottom-nav__icon { transform: scale(.92); }
  .bottom-nav a[aria-current="page"] { color: var(--brand); }
  .bottom-nav a[aria-current="page"] .bottom-nav__icon { background: var(--brand-tint); color: var(--brand); }
  body.nav-open .bottom-nav { display: none; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Phone header sizing — kept last so it wins over the general phone rules above.
   Order left→right: logo · Online · Chat · Call · ☰ */
@media (max-width: 430px) {
  .site-header__inner { gap: 6px; }
  .site-header__actions { gap: 4px; }
  .site-header .logo { gap: 4px; }
  .site-header .logo__mark { width: 36px; height: 36px; }
  .site-header .logo__text b { font-size: 15px; }
  .online-badge { padding: 4px 7px 4px 6px; font-size: 11.5px; gap: 5px; }
  .header-wa { padding: 0 9px; gap: 5px; font-size: 13.5px; }
  .site-header .icon-btn { width: 36px; height: 40px; }
}
@media (max-width: 370px) {
  .site-header .logo__mark { width: 32px; height: 32px; }
  .site-header .logo__text b { font-size: 13.5px; }
  .online-badge { padding: 4px 6px 4px 5px; font-size: 11px; gap: 4px; }
  .header-wa { padding: 0 8px; }
  .site-header .icon-btn { width: 34px; }
}
@media (max-width: 345px) {
  .site-header .logo__text { display: none; }
  .online-badge__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .online-badge { padding: 7px; }
}

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