* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #343a40;
  --blue: #0b6cf0;
  --blue-dark: #0657c7;
  --bg: #f4f5f9;
  --row: #ececec;
  --row-dark: #e1e1e1;
  --text: #212529;
  --muted: #6c757d;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--dark);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.navbar .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.navbar .brand { color: #fff; font-weight: 500; font-size: 18px; margin-right: 28px; }
.navbar nav { display: flex; gap: 26px; align-items: center; }
.navbar nav a { color: rgba(255,255,255,.88); font-size: 15px; transition: color .2s; }
.navbar nav a:hover { color: #fff; }
.navbar .left { display: flex; align-items: center; gap: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #8c8c8c url('../assets/mountains.svg') center bottom / cover no-repeat;
  color: #fff; text-align: center;
  padding: 80px 20px 70px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.35));
}
.hero > * { position: relative; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 6vw, 68px); letter-spacing: .5px; }
.hero h2 { font-weight: 300; font-size: clamp(20px, 2.5vw, 28px); margin: 22px 0 18px; }
.hero p {
  max-width: 980px; margin: 0 auto;
  text-transform: uppercase; letter-spacing: 2px; font-size: 14px; opacity: .95;
}

/* number page hero */
.hero.number-hero { padding: 50px 20px 60px; }
.hero.number-hero h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 300; }
.hero .big-flag {
  width: 120px; height: 80px; object-fit: cover;
  margin: 34px auto 6px; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero .num-id {
  display: inline-block; font-size: clamp(22px, 3vw, 30px); font-weight: 300;
  border-bottom: 1px dashed rgba(255,255,255,.9); cursor: pointer; padding: 0 4px;
}
.hero .num-id:hover { opacity: .85; }
.hero h3 { font-weight: 300; font-size: 26px; margin: 26px 0 16px; }
.hero .sub { font-size: 19px; font-weight: 300; text-transform: none; letter-spacing: 0; }

/* ---------- Filters ---------- */
.filters {
  max-width: 1060px; margin: 34px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #d5d8de; background: #fff; color: #333;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 300; cursor: pointer;
  transition: all .2s;
}
.chip img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Number cards ---------- */
.grid {
  max-width: 1060px; margin: 34px auto 60px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.card {
  background: #fff; border-radius: 14px; border: 1px solid #efefef;
  padding: 46px 28px 38px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.02);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.card .flag { width: 140px; height: 84px; object-fit: cover; margin: 0 auto 36px; }
.card .number {
  font-size: 19px; font-weight: 300; color: #222;
  letter-spacing: .2px; margin-bottom: 8px;
}
.card .country {
  color: #b5b5b5; font-size: 14px; font-weight: 300;
  margin-bottom: 28px;
}
.card .btn-open {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 240px; padding: 11px 20px;
  background: #fff; color: #2b85e4;
  border: 1px solid #2b85e4; border-radius: 3px;
  font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .3px;
  transition: background .2s, color .2s;
}
.card .btn-open:hover {
  background: #2b85e4; color: #fff;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(40,167,69,.6)} 70%{box-shadow:0 0 0 7px rgba(40,167,69,0)} 100%{box-shadow:0 0 0 0 rgba(40,167,69,0)} }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  font-size: 16px; font-family: inherit; padding: 10px 34px; border-radius: 4px;
  transition: background .2s;
}
.btn:hover { background: var(--blue-dark); }
.btn.block { display: flex; width: 100%; padding: 13px; font-size: 17px; }

/* ---------- Info section ---------- */
.info { background: #fff; padding: 60px 24px; }
.info .inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.info h4 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.info p { color: var(--muted); font-size: 15px; }

/* ---------- Number page layout ---------- */
.page {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px;
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start;
}
.notes { list-style: none; max-width: 560px; margin: 0 auto 20px; }
.notes li { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 8px; }
.notes .n {
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.actions { max-width: 300px; margin: 0 auto 30px; display: grid; gap: 12px; }
.actions .btn { padding: 11px; }
.spin { display: inline-block; }
.spinning .spin { animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.msg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #28a745; font-weight: 500; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #28a745; animation: pulse 1.6s infinite; }

.messages { display: flex; flex-direction: column; gap: 22px; }
.msg {
  display: grid; grid-template-columns: 1fr 140px 140px;
  background: var(--row); border-radius: 10px; overflow: hidden;
}
.msg > div { padding: 18px 22px; }
.msg .label { font-size: 12px; color: #444; margin-bottom: 2px; }
.msg .text { font-size: 16px; word-break: break-word; }
.msg .sender { background: var(--row-dark); font-size: 16px; word-break: break-all; }
.msg .time { font-size: 16px; }
.msg.new { animation: arrive 1.2s ease; }
@keyframes arrive {
  0% { opacity: 0; transform: translateY(-14px); background: #d4f5dc; }
  40% { opacity: 1; transform: none; background: #d4f5dc; }
  100% { background: var(--row); }
}
.msg .copy {
  margin-left: 6px; font-size: 12px; border: 1px solid #bbb; background: #fff; border-radius: 4px;
  padding: 1px 7px; cursor: pointer; vertical-align: middle; color: #333;
}
.msg .copy:hover { border-color: var(--blue); color: var(--blue); }

/* sidebar */
.sidebar { background: #fff; border-radius: 4px; border: 1px solid #e6e8ee; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.sidebar a {
  display: flex; align-items: center; gap: 22px; padding: 12px 22px;
  border-bottom: 1px solid #eef0f3; font-size: 14px; font-weight: 300; color: #333; transition: background .15s;
}
.sidebar a:hover { background: #f5f8ff; }
.sidebar a.current { color: var(--blue); background: #f0f5ff; }
.sidebar img { width: 40px; height: 26px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  background: #fff; border: 2px solid #f0b429; border-radius: 12px;
  padding: 10px 18px; color: var(--blue); font-size: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  transform: translateY(120px); opacity: 0; transition: all .35s;
}
.toast.show { transform: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #f0f0f0; border-top: 1px solid #e2e2e2; padding: 10px 24px 36px; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; position: relative; }
.to-top {
  display: block; width: 32px; height: 32px; margin: 0 0 18px 18%;
  background: #fff; border: 1px solid #cfcfcf; color: #555; cursor: pointer;
  font-size: 16px; line-height: 1; transition: all .2s;
}
.to-top:hover { border-color: var(--blue); color: var(--blue); }
.f-right { text-align: right; padding-right: 8%; }
.f-links { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; font-size: 17px; margin-bottom: 12px; }
.f-links a { color: #222; padding: 0 6px; position: relative; }
.f-links a + a::before {
  content: ''; position: absolute; left: -1px; top: 2px; height: 10px; width: 1px; background: #999;
}
.f-links a:hover { color: var(--blue); }
.f-copy { font-size: 17px; color: #222; }
@media (max-width: 640px) {
  .to-top { margin: 0 auto 16px; }
  .f-right { text-align: center; padding: 0; }
  .f-links { justify-content: center; }
}

/* ---------- Content pages (Privacy / Sitemap / Contact) ---------- */
.hero.page-hero { padding: 60px 20px 56px; }
.hero.page-hero h1 { font-size: clamp(32px, 4.5vw, 48px); }
.hero.page-hero p { margin-top: 14px; }
.content-wrap { background: #f0f0f0; padding: 30px 24px 0; }
.content {
  max-width: 1100px; margin: 0 auto; background: #fff;
  padding: 36px 40px 30px;
}
.content h2 { font-size: 22px; font-weight: 400; margin: 26px 0 12px; }
.content h2:first-child { margin-top: 0; }
.content p, .content li { font-size: 15px; line-height: 1.75; color: #222; }
.content p { margin-bottom: 12px; }
.content ul { padding-left: 22px; margin-bottom: 12px; }
.content a { color: var(--blue); }
.content .updated { color: var(--muted); font-size: 14px; }

/* number page guide */
.guide-wrap { background: transparent; padding: 10px 24px 50px; }
.guide h2 { font-size: 26px; margin-top: 30px; }
.guide h3 { font-size: 17px; font-weight: 500; margin: 20px 0 8px; }
.guide .faq h3 { font-size: 16px; margin-top: 16px; }
.facts { border-collapse: collapse; width: 100%; max-width: 640px; margin: 6px 0 14px; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 9px 14px; border-bottom: 1px solid #eceef2; }
.facts th { width: 42%; font-weight: 500; color: #444; background: #f7f8fb; }
.related { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.related a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e6e8ee; border-radius: 6px; color: var(--text) !important; font-weight: 300; }
.related a:hover { border-color: var(--blue); }
.related img { width: 26px; height: 17px; object-fit: cover; }
.related span { color: var(--muted); font-size: 13px; margin-left: auto; }

/* sitemap */
.sitemap-pages { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0 !important; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 6px; }
.sitemap-country { border: 1px solid #e6e8ee; border-radius: 8px; padding: 14px 16px; }
.sitemap-country h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.sitemap-country h3 img { width: 30px; height: 20px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sitemap-country ul { list-style: none; padding: 0; margin: 0; }
.sitemap-country li { font-size: 15px; font-weight: 300; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: #333; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid #cfd4da; border-radius: 4px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,108,240,.15);
}
.form-row .err { color: #dc3545; font-size: 13px; margin-top: 4px; display: none; }
.form-row.invalid input, .form-row.invalid textarea { border-color: #dc3545; }
.form-row.invalid .err { display: block; }
.form-ok { display: none; background: #d4f5dc; border: 1px solid #a6e3b5; color: #1d6b32; padding: 12px 14px; border-radius: 4px; margin-bottom: 16px; font-size: 15px; }
.form-ok.show { display: block; }
.contact-info { background: #f7f8fb; border: 1px solid #e6e8ee; border-radius: 8px; padding: 22px; align-self: start; }
.contact-info h3 { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.contact-info p { font-size: 14px; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .content { padding: 26px 20px; }
}

/* guides & articles */
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin: 18px 0 26px; }
.article-card { border: 1px solid #e6e8ee; border-radius: 8px; padding: 20px; background: #fbfcfe; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .2s, box-shadow .2s; }
.article-card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(11,108,240,.08); }
.article-tag { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--blue); background: #eaf2ff; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; }
.article-card h3 { font-size: 17px; font-weight: 500; margin: 0 0 10px !important; line-height: 1.4; }
.article-card h3 a { color: #222; }
.article-card p { font-size: 14px; color: #555; margin-bottom: 14px; }
.article-card .read-more { font-size: 14px; font-weight: 500; color: var(--blue); }

/* cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 960px; margin: 0 auto; background: #212529; color: #f8f9fa; padding: 14px 20px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: space-between; gap: 18px; z-index: 999; font-size: 14px; line-height: 1.5; }
.cookie-banner a { color: #6ea8fe; text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner button { cursor: pointer; border: none; border-radius: 4px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 500; }
.cookie-banner .btn-accept { background: var(--blue); color: #fff; }
.cookie-banner .btn-decline { background: #343a40; color: #dee2e6; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .page { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .navbar nav.right { display: none; }
  .msg { grid-template-columns: 1fr 1fr; }
  .msg .text-cell { grid-column: 1 / -1; }
  .msg > div { padding: 14px 16px; }
}
