/* ── Page base ── */
body { background-color: #030014; color: #fff; }

/* ── Navbar ── */
.hosting-navbar {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 40px;
  background: rgba(3,0,20,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-sizing: border-box;
}
.hosting-logo-link { justify-self: start; display: flex; align-items: center; }
.hosting-logo { width: 200px; height: auto; }
.hosting-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 10px 20px;
}
.hosting-nav-links a {
  color: rgba(243,243,243,0.5);
  font-size: 15px;
  font-family: "Mulish";
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 50px;
  transition: color 0.2s;
}
.hosting-nav-links a:hover { color: #fff; }
.hosting-nav-links a.active { color: #f04f79; }
.hosting-btn-contact {
  justify-self: end;
  background: linear-gradient(-45deg, #f04f79 0%, #4b2099 100%);
  color: #fff !important;
  font-family: "Mulish";
  font-weight: 600;
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 30px;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.hosting-btn-contact:hover { opacity: 0.88; }

/* ── Hero ── */
.hosting-hero {
  width: 100%;
  padding: 90px 80px 60px;
  text-align: center;
  background-image: url("public/bg/bg04-1200w.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.hosting-hero h1 {
  font-family: "Mulish";
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.hosting-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 9px 22px;
  font-family: "Mulish";
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.hosting-hero p {
  font-family: "Mulish";
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Section wrapper ── */
.hosting-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 48px;
}
.hosting-section-title {
  font-family: "Mulish";
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.hosting-section-sub {
  font-family: "Mulish";
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

/* ── Base price table ── */
.hosting-table-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hosting-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Mulish";
}
.hosting-table thead tr {
  background: linear-gradient(-45deg, rgba(240,79,121,0.3) 0%, rgba(75,32,153,0.3) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.hosting-table thead th {
  padding: 16px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hosting-table thead th:last-child { text-align: right; }
.hosting-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.hosting-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.hosting-table tbody td {
  padding: 18px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  vertical-align: top;
}
.hosting-table tbody td:last-child {
  text-align: right;
  white-space: nowrap;
}
.hosting-table tbody td:first-child {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  width: 40px;
}
.td-name { color: #fff !important; font-weight: 600; margin-bottom: 4px; }
.td-spec { color: rgba(255,255,255,0.45); font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
.td-price {
  color: #f04f79 !important;
  font-size: 18px !important;
  font-weight: 700;
}
.td-unit { color: rgba(255,255,255,0.35); font-size: 12px; font-weight: 400; }
.td-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ── Divider ── */
.hosting-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* ── Package cards ── */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.package-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.package-card:hover { border-color: rgba(240,79,121,0.4); }
.package-card-header {
  padding: 24px 28px;
  background: linear-gradient(-45deg, rgba(240,79,121,0.18) 0%, rgba(75,32,153,0.25) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.package-name {
  font-family: "Mulish";
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.package-total-badge {
  background: linear-gradient(-45deg, #f04f79 0%, #4b2099 100%);
  border-radius: 50px;
  padding: 7px 20px;
  font-family: "Mulish";
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.package-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.package-table { width: 100%; border-collapse: collapse; font-family: "Mulish"; }
.package-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.package-table th:nth-child(3),
.package-table th:nth-child(4),
.package-table th:nth-child(5) { text-align: right; }
.package-table td {
  padding: 14px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}
.package-table td:nth-child(3),
.package-table td:nth-child(4),
.package-table td:nth-child(5) { text-align: right; white-space: nowrap; }
.package-table td:first-child { color: rgba(255,255,255,0.3); font-size: 12px; width: 32px; }
.pkg-row-name { color: #fff; font-weight: 600; font-size: 13px; }
.pkg-row-spec { color: rgba(255,255,255,0.38); font-size: 11.5px; margin-top: 3px; line-height: 1.4; }
.pkg-qty { color: #bd93d1; font-weight: 700; }
.pkg-price { color: rgba(255,255,255,0.55); }
.pkg-total { color: #f04f79; font-weight: 700; }
.package-footer {
  padding: 16px 20px;
  background: rgba(240,79,121,0.06);
  border-top: 1px solid rgba(240,79,121,0.15);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-family: "Mulish";
}
.package-footer-label { font-size: 13px; color: rgba(255,255,255,0.45); }
.package-footer-total { font-size: 20px; font-weight: 800; color: #fff; }
.package-footer-cur { font-size: 13px; color: rgba(255,255,255,0.45); margin-left: 4px; }

/* ── Footer ── */
.hosting-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(0,0,0,0.4);
}
.hosting-footer a, .hosting-footer span {
  font-family: "Mulish";
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.hosting-footer a:hover { color: rgba(255,255,255,0.8); }

/* ── Tablet ── */
@media (max-width: 900px) {
  .hosting-section { padding: 40px 16px; }
  .packages-grid { grid-template-columns: 1fr; gap: 20px; }
  .hosting-hero { padding: 60px 16px 40px; }
  .hosting-footer { padding: 20px 16px; flex-direction: column; gap: 8px; text-align: center; }
  .package-card { min-width: 0; }
  .hosting-section-title { font-size: 22px; }
  .hosting-table { min-width: 560px; }
  .package-table { min-width: 400px; }
}

/* ── Mobile: таблиці як картки ── */
@media (max-width: 600px) {
  .hosting-hero h1 { font-size: 28px; }
  .hosting-section { padding: 30px 12px; }
  .package-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* — Service Catalog: card layout — */
  .hosting-table-wrap {
    overflow: visible;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
  }
  .hosting-table,
  .hosting-table thead,
  .hosting-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .hosting-table thead tr { display: none; }
  .hosting-table tbody td { border-bottom: none !important; }
  .hosting-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-width: 0;
  }
  .hosting-table tbody tr:last-child { border-bottom: none; }
  /* # number — top-right */
  .hosting-table tbody td:nth-child(1) {
    display: block; grid-column: 2; grid-row: 1;
    padding: 0; width: auto; text-align: right;
    font-size: 11px; color: rgba(255,255,255,0.22);
    align-self: start;
  }
  /* name+spec — col1 rows 1-2 */
  .hosting-table tbody td:nth-child(2) {
    display: block; grid-column: 1; grid-row: 1 / 3;
    padding: 0 0 8px 0;
  }
  /* unit (Qty) badge — col2 row2 */
  .hosting-table tbody td:nth-child(3) {
    display: flex; grid-column: 2; grid-row: 2;
    padding: 0; justify-content: flex-end; align-items: center;
  }
  /* billing (1 month) badge — col2 row3 */
  .hosting-table tbody td:nth-child(4) {
    display: flex; grid-column: 2; grid-row: 3;
    padding: 0; justify-content: flex-end; align-items: center;
  }
  /* price — col1 row3 */
  .hosting-table tbody td:nth-child(5) {
    display: block; grid-column: 1; grid-row: 3;
    padding: 4px 0 0 0; text-align: left; white-space: nowrap;
  }

  /* — Package tables: card layout — */
  .package-table-wrap { overflow: visible; }
  .package-table,
  .package-table thead,
  .package-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .package-table thead tr { display: none; }
  .package-table tbody td { border-bottom: none !important; }
  .package-table tbody tr {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    align-items: start;
    min-width: 0;
  }
  .package-table tbody tr:last-child { border-bottom: none; }
  /* # */
  .package-table tbody td:nth-child(1) {
    display: block; grid-column: 1; grid-row: 1 / 3;
    padding: 2px 0; width: auto;
    font-size: 11px; color: rgba(255,255,255,0.25);
    align-self: center;
  }
  /* Service name+spec */
  .package-table tbody td:nth-child(2) {
    display: block; grid-column: 2; grid-row: 1;
    padding: 0;
  }
  /* QTY */
  .package-table tbody td:nth-child(3) {
    display: block; grid-column: 3; grid-row: 1;
    text-align: right; padding: 0; white-space: nowrap;
    font-weight: 600; color: rgba(200,150,255,0.9);
  }
  /* Unit price */
  .package-table tbody td:nth-child(4) {
    display: block; grid-column: 2; grid-row: 2;
    text-align: left; padding: 2px 0; white-space: nowrap;
    font-size: 12px; color: rgba(255,255,255,0.45);
  }
  /* Total */
  .package-table tbody td:nth-child(5) {
    display: block; grid-column: 3; grid-row: 2;
    text-align: right; padding: 2px 0; white-space: nowrap;
    font-weight: 700;
  }
}

/* ── Mobile ≤768px: navbar + contact form ── */
@media (max-width: 768px) {
  .hosting-navbar {
    grid-template-columns: 1fr auto;
    padding: 12px 20px;
  }
  .hosting-nav-links,
  .hosting-btn-contact { display: none; }
  .hosting-burger { display: flex; }
  .hosting-logo { width: 140px; }

  .homepage-contactus {
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  .homepage-container52.center {
    max-width: 100% !important;
    width: 100% !important;
    padding: 40px 16px !important;
    height: auto !important;
    background-position: center top !important;
    background-size: 200% !important;
  }
  .homepage-container53 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .homepage-text45 {
    padding: 30px 16px 0 !important;
    font-size: 28px !important;
  }
}
