:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e1ea;
  --blue: #0b5cad;
  --cyan: #00a6c8;
  --green: #43a047;
  --surface: #ffffff;
  --soft: #eef5f8;
  --navy: #0b1726;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #f7fafc;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid rgba(217, 225, 234, 0.9);
  background: rgba(247, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(217, 225, 234, 0.85);
  overflow: hidden;
}

.brand-logo {
  width: 52px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a,
.link-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.main-nav a:hover,
.link-button:hover {
  color: var(--blue);
  background: #e8f2f8;
}

.nav-action {
  color: var(--blue) !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(40px, 8vw, 90px) clamp(18px, 5vw, 70px);
  overflow: hidden;
  color: #fff;
  background: #081421;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(0deg, #f7fafc, transparent);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 33, 0.78), rgba(8, 20, 33, 0.3)),
    radial-gradient(circle at 78% 34%, rgba(0, 166, 200, 0.52), transparent 32%),
    linear-gradient(135deg, #0b1726, #123d63 48%, #142f31);
}

.hero-media::before {
  content: "";
  position: absolute;
  right: clamp(0px, 5vw, 85px);
  top: 9%;
  width: min(56vw, 660px);
  height: min(70vh, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 166, 200, 0.34), rgba(11, 92, 173, 0.16) 42%, transparent 70%);
  filter: blur(10px);
}

.fiber-visual {
  position: absolute;
  right: clamp(10px, 8vw, 130px);
  top: 15%;
  width: min(48vw, 560px);
  height: min(58vh, 520px);
  border: 0;
  border-radius: 0;
  object-fit: cover;
  box-shadow:
    0 0 90px rgba(0, 166, 200, 0.34),
    0 0 150px rgba(11, 92, 173, 0.24);
  opacity: 0.9;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 34%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 34%, rgba(0, 0, 0, 0.72) 58%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(430px, 78vw);
  max-height: 220px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 18px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(67, 160, 71, 0.28);
}

.button.secondary,
.button.compact {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.compact {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
}

.section,
.prices-section,
.contact-band,
.admin-shell {
  padding: clamp(44px, 7vw, 90px) clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 8px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f4;
  color: var(--blue);
  font-weight: 800;
}

.service-card small {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.prices-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 166, 200, 0.16), transparent 34%),
    linear-gradient(135deg, #eef7fb, #f8fbfd 50%, #e8f1f6);
}

.prices-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 92, 173, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 173, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.price-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.price-toolbar strong,
.price-toolbar span {
  display: block;
}

.price-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.price-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 20px;
}

.price-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 178px;
  border: 1px solid rgba(11, 92, 173, 0.14);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    linear-gradient(135deg, rgba(0, 166, 200, 0.1), rgba(67, 160, 71, 0.06));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.price-card.is-tv {
  grid-column: span 3;
}

.price-card.is-fah {
  grid-column: span 2;
  border-color: rgba(0, 166, 200, 0.2);
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 166, 200, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(232, 245, 244, 0.98), rgba(255, 255, 255, 0.86) 58%, rgba(221, 244, 249, 0.9));
}

.price-card.is-fah::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, transparent 0 32%, rgba(0, 166, 200, 0.16) 33%, transparent 35% 100%),
    linear-gradient(rgba(11, 92, 173, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 92, 173, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px, 34px 34px;
  opacity: 0.7;
  pointer-events: none;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card span {
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  background: #e8f5f4;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.price-card strong {
  align-self: end;
  color: var(--navy);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
}

.price-card.is-fah span {
  background: rgba(0, 166, 200, 0.12);
  color: #075985;
}

.table-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prices-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
}

.prices-table th,
.prices-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.prices-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.prices-table th:first-child,
.prices-table td:first-child {
  text-align: left;
}

.prices-table tbody th {
  color: var(--ink);
  font-weight: 700;
}

.prices-table tbody tr:nth-child(even) {
  background: #f7fafc;
}

.price-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.clients-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 92, 173, 0.05), rgba(0, 166, 200, 0.08)),
    #fff;
}

.client-grid {
  position: relative;
  display: flex;
  gap: 14px;
  width: min(100%, 1180px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.client-grid::before,
.client-grid::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 80px;
  height: 100%;
  pointer-events: none;
}

.client-grid::before {
  left: 0;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.client-grid::after {
  right: 0;
  background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.client-track {
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  padding: 16px 0 16px 16px;
  animation: client-marquee 42s linear infinite;
}

.client-grid:hover .client-track {
  animation-play-state: paused;
}

.client-logo {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 0 0 190px;
  min-height: 132px;
  gap: 12px;
  border: 1px solid rgba(217, 225, 234, 0.78);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 248, 0.92)),
    #f8fbfd;
}

.client-logo img {
  max-width: 168px;
  max-height: 82px;
  object-fit: contain;
}

.client-logo strong {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 18px;
}

.client-logo span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

@keyframes client-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 14px));
  }
}

.payment-section {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 5vw, 70px);
  background:
    linear-gradient(135deg, rgba(11, 92, 173, 0.08), rgba(0, 166, 200, 0.1)),
    #eef5f8;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.payment-grid article {
  border: 1px solid rgba(11, 92, 173, 0.14);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.payment-grid strong,
.payment-grid span {
  display: block;
}

.payment-grid strong {
  color: var(--navy);
  font-size: 18px;
}

.payment-grid span {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.metrics {
  display: grid;
  gap: 12px;
}

.metrics div {
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 28px;
}

.metrics span {
  margin-top: 6px;
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  color: #fff;
}

.contact-band p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.74);
}

.contact-band h2 {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 70px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer span,
.site-footer small {
  display: block;
}

.site-footer small {
  margin-top: 5px;
  font-size: 12px;
  color: #7b8491;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

.assistant-chat {
  position: fixed;
  right: 20px;
  bottom: 154px;
  z-index: 30;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 190px));
  overflow: hidden;
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.assistant-chat[hidden] {
  display: none;
}

.assistant-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), #173b78);
  color: #fff;
}

.assistant-chat-header strong,
.assistant-chat-header span {
  display: block;
}

.assistant-chat-header span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.assistant-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(238, 245, 248, 0.72), rgba(255, 255, 255, 0.96)),
    #f7fafc;
}

.assistant-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
}

.assistant-message.is-bot {
  align-self: flex-start;
  border: 1px solid rgba(217, 225, 234, 0.85);
  background: #fff;
  color: var(--ink);
}

.assistant-message.is-user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assistant-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.assistant-form button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.assistant-form svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.assistant-float {
  position: fixed;
  right: 90px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--blue), #173b78);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(11, 92, 173, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.assistant-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(11, 92, 173, 0.36);
}

.assistant-float svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.42);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.admin-page {
  background:
    linear-gradient(135deg, rgba(11, 92, 173, 0.08), transparent 42%),
    #f7fafc;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.login-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-panel {
  max-width: 460px;
  margin: 4vh auto;
}

.login-panel h1,
.admin-heading h1 {
  margin: 0 0 22px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.login-form,
.admin-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-transform: none;
}

input:focus {
  outline: 3px solid rgba(0, 166, 200, 0.18);
  border-color: var(--cyan);
}

.form-note {
  min-height: 24px;
  margin: 4px 0 0;
  color: #b42318;
  font-weight: 700;
}

.form-note.success {
  color: var(--green);
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-actions {
  margin-top: 0;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-table-wrap {
  box-shadow: none;
}

.editor-table input {
  min-width: 130px;
  text-align: right;
}

@media (max-width: 860px) {
  .site-header,
  .price-toolbar,
  .split-section,
  .contact-band,
  .admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 720px;
  }

  .service-grid,
  .client-grid,
  .payment-grid,
  .split-section,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .price-cards {
    grid-template-columns: 1fr;
  }

  .price-card.is-tv,
  .price-card.is-fah {
    grid-column: span 1;
  }

  .fiber-visual {
    width: 82vw;
    top: 46%;
    right: -8vw;
  }
}

@media (min-width: 861px) and (max-width: 1120px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-grid,
  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .hero-actions,
  .contact-actions,
  .admin-actions {
    width: 100%;
  }

  .button,
  .button.compact {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .assistant-chat {
    right: 14px;
    bottom: 84px;
    width: calc(100vw - 28px);
    height: min(540px, calc(100vh - 110px));
  }

  .assistant-float {
    right: 82px;
    bottom: 16px;
    max-width: calc(100vw - 28px);
    font-size: 13px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 16px;
  }
}
