@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --bg: #eef5f9;
  --surface: rgba(255,255,255,.72);
  --surface-solid: #ffffff;
  --text: #0b1d2e;
  --muted: #4a657a;
  --accent: #0088cc;
  --accent-light: #4ecdc4;
  --danger: #e63946;
  --success: #2a9d8f;
  --warn: #f4a261;
  --shadow-xs: 0 1px 2px rgba(0,60,100,.06);
  --shadow-sm: 0 4px 16px rgba(0,60,100,.08);
  --shadow: 0 8px 32px rgba(0,60,100,.12);
  --glow: 0 0 20px rgba(78,205,196,.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 80% -5%, rgba(78,205,196,.18) 0%, transparent 55%),
    radial-gradient(900px 600px at 10% 20%, rgba(0,136,204,.12) 0%, transparent 55%),
    radial-gradient(800px 700px at 90% 110%, rgba(78,205,196,.14) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,136,204,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,136,204,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(0,136,204,.12);
  box-shadow: var(--shadow-xs);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: .8rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--text); font-weight: 700; letter-spacing: .02em;
  min-width: 0;
}
.logo-icon {
  color: var(--accent-light);
  filter: drop-shadow(0 0 6px rgba(78,205,196,.4));
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Oswald', sans-serif; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em;
  overflow-wrap: anywhere;
}
.logo-text small {
  display: block; font-size: .74rem; font-family: 'Manrope', sans-serif; font-weight: 500; letter-spacing: .08em;
  color: var(--accent); text-transform: uppercase; margin-top: 0px;
}
.nav-links {
  display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem;
  padding: .35rem .75rem; border-radius: 8px; transition: all .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: rgba(0,136,204,.08);
}
.nav-toggle {
  display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: .2rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,136,204,.12);
    padding: .5rem 1.25rem 1rem;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display:block; padding: .6rem .5rem; border-radius: 8px; white-space: normal; }
}

/* HERO */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  padding: 5rem 1.25rem 6rem;
  text-align: center;
}
.hero::after {
  content: "";
  position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23eef5f9' fill-opacity='1' d='M0,64L80,58.7C160,53,320,43,480,48C640,53,800,75,960,80C1120,85,1280,75,1360,69.3L1440,64L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 1; pointer-events: none;
}
.hero-badge {
  display: inline-block; margin-bottom: 1.2rem;
  background: rgba(0,136,204,.1); color: var(--accent);
  border: 1px solid rgba(0,136,204,.25);
  padding: .35rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .06em;
}
.hero h1 {
  font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; margin: 0 auto 1rem; max-width: 900px; line-height: 1.15;
  background: linear-gradient(135deg, #006699, #4ecdc4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
  max-width: 720px; margin: 0 auto 1.6rem; font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--muted);
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* CARD / GLASS */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(0,136,204,.14);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: .5;
}

.card h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600;
  letter-spacing: .01em; color: var(--accent); margin: 0 0 .5rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* BADGE */
.badge {
  display: inline-block; padding: .25rem .75rem; border-radius: 999px;
  background: rgba(0,136,204,.1); border: 1px solid rgba(0,136,204,.25);
  color: var(--accent); font-weight: 600; font-size: .88rem;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem;
  padding: .65rem 1.25rem; border-radius: 12px; border: none; text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #0077b3);
  color: #fff; box-shadow: 0 4px 14px rgba(0,136,204,.3);
  transition: transform .15s, box-shadow .2s, filter .2s;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,136,204,.4); filter: brightness(1.05); }
.btn-outline {
  background: rgba(255,255,255,.55); border: 1px solid rgba(0,136,204,.25);
  color: var(--accent); box-shadow: none;
}
.btn-outline:hover { background: rgba(0,136,204,.08); box-shadow: var(--shadow-sm); }
.btn-danger {
  background: linear-gradient(135deg, #e63946, #c62835); box-shadow: 0 4px 14px rgba(230,57,70,.3);
}
.btn-danger:hover { box-shadow: 0 6px 20px rgba(230,57,70,.4); }
.btn-success {
  background: linear-gradient(135deg, #2a9d8f, #21867a); box-shadow: 0 4px 14px rgba(42,157,143,.3);
}
.btn-success:hover { box-shadow: 0 6px 20px rgba(42,157,143,.4); }
.btn-sm { padding: .45rem .9rem; font-size: .82rem; border-radius: 10px; }

/* FORMS */
form .field { margin-bottom: 1rem; }
label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
input[type="text"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: .65rem .85rem; border-radius: 12px;
  border: 1px solid rgba(0,136,204,.22); background: rgba(255,255,255,.65);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: rgba(0,136,204,.55); box-shadow: 0 0 0 4px rgba(0,136,204,.1); }
textarea { min-height: 140px; resize: vertical; }

/* FLASH */
.flash {
  padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid; font-weight: 500;
}
.flash.success { background: rgba(42,157,143,.1); border-color: rgba(42,157,143,.4); color: #1d7a6e; }
.flash.danger { background: rgba(230,57,70,.1); border-color: rgba(230,57,70,.4); color: #b91d2a; }

/* FOOTER */
.footer { position: relative; margin-top: 2rem; }
.footer-wave { position: absolute; top: -60px; left: 0; width: 100%; height: 60px; color: var(--bg); pointer-events: none; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding: 2.5rem 1.25rem;
}
.footer h4 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .04em; margin: 0 0 .6rem; font-size: .95rem; color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; text-decoration: none; color: var(--muted); padding: .2rem 0; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(0,136,204,.12);
  padding: 1.2rem 1.25rem;
}

/* SECTIONS */
.section-title {
  font-family: 'Oswald', sans-serif; font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-weight: 600; letter-spacing: .01em;
  margin: 0 0 1.2rem; display: flex; align-items: center; gap: .6rem;
}
.section-title .icon { color: var(--accent-light); filter: drop-shadow(0 0 4px rgba(78,205,196,.4)); }

.meta { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.empty { color: var(--muted); font-style: italic; }

/* NEWS CARD */
.news-item {
  display: grid; grid-template-columns: 1fr; gap: .6rem;
  border-bottom: 1px solid rgba(0,136,204,.1); padding: 1.2rem 0;
}
.news-item:last-child { border-bottom: none; }
.news-item h3 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.news-item h3 a { text-decoration: none; color: var(--text); transition: color .2s; }
.news-item h3 a:hover { color: var(--accent); }

/* SERVICE */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem;
}
@media (min-width: 1200px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,136,204,.12), rgba(78,205,196,.12));
  border: 1px solid rgba(0,136,204,.18); font-size: 1.4rem; margin-bottom: .7rem;
}

/* LOGIN */
.login-box { max-width: 420px; margin: 5rem auto; }

/* ADMIN TABLES */
.table-wrap { overflow-x: auto; max-width: 100%; border-radius: 12px; }
.admin-table { width:100%; min-width: 560px; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align:left; padding:.55rem .6rem; border-bottom:1px solid rgba(0,136,204,.1); font-size:.9rem; }
.admin-table th { font-weight:600; color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.04em; }
.admin-table td { word-break: normal; overflow-wrap: anywhere; }

/* TARIFF TABLE */
.tariff-table { width:100%; border-collapse: collapse; }
.tariff-table thead th {
  text-align: left; padding: .7rem .8rem;
  font-family: 'Oswald', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); border-bottom: 2px solid rgba(0,136,204,.2);
  white-space: nowrap;
}
.tariff-table tbody tr:nth-child(odd) { background: rgba(0,136,204,.04); }
.tariff-table tbody td { padding: .65rem .8rem; border-bottom: 1px solid rgba(0,136,204,.1); }
.tariff-table tbody tr:hover { background: rgba(0,136,204,.08); }

@media (max-width: 640px) {
  .tariff-table thead { display: none; }
  .tariff-table, .tariff-table tbody, .tariff-table tr, .tariff-table td { display: block; width: 100%; }
  .tariff-table tbody tr { margin-bottom: .8rem; border: 1px solid rgba(0,136,204,.15); border-radius: 12px; padding: .6rem .8rem; }
  .tariff-table td { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-bottom: 1px solid rgba(0,136,204,.06); padding: .5rem 0; }
  .tariff-table td:last-child { border-bottom: none; }
  .tariff-table td::before { content: attr(data-label); font-weight: 600; color: var(--accent); font-size: .85rem; }
}
