﻿:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #13223a;
  --muted: #5d6b80;
  --primary: #0077b6;
  --accent: #ff6b35;
  --line: #d9e2ec;
  --radius: 16px;
  --shadow: 0 14px 28px rgba(19, 34, 58, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", sans-serif;
  background:
    radial-gradient(circle at 85% -10%, rgba(0, 119, 182, 0.14) 0, transparent 40%),
    radial-gradient(circle at 10% 0%, rgba(255, 107, 53, 0.14) 0, transparent 35%),
    var(--bg);
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand img {
  width: 168px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.mobile-search-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: "Cairo", sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 130;
  background: #1f2a37;
  border: 1px solid #344457;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(9, 15, 26, 0.45);
  padding: 10px;
}

.search-panel[hidden] {
  display: none;
}

.search-head {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  border: 1px solid #4b6078;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Cairo", sans-serif;
  background: #121a24;
  color: #e8f0fa;
}

.search-close {
  border: 1px solid #4b6078;
  background: #121a24;
  color: #e8f0fa;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.search-results {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}

.search-results a {
  display: block;
  padding: 8px 4px;
  border-bottom: 1px dashed #4b6078;
  color: #e8f0fa;
  font-weight: 700;
}

.search-empty {
  color: #b7c5d7;
  padding: 10px 4px;
}

.top-nav a {
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.top-nav a.active,
.top-nav a:hover {
  background: linear-gradient(90deg, var(--primary), #00a8e8);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  margin-top: 24px;
}

.content,
.sidebar .widget,
.article-view {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content,
.article-view {
  padding: 24px;
}

.section-title {
  margin: 0 0 18px;
  font-size: 1.9rem;
}

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

.article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-card .card-body {
  padding: 14px;
}

.badge {
  display: inline-block;
  background: #e8f3fb;
  color: #055e8a;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.article-card h3 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  line-height: 1.55;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.article-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--ink);
}

.pagination .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar .widget {
  padding: 16px;
}

.widget h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget li {
  margin-bottom: 8px;
}

.widget .small-post {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
}

.widget .small-post:last-child {
  border-bottom: 0;
}

.widget .small-post img {
  width: 78px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.widget .small-post a {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.article-header h1 {
  margin: 0 0 12px;
  line-height: 1.55;
  font-size: 2rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.hero-img {
  border-radius: 14px;
  margin: 18px 0;
}

.lead {
  font-size: 1.08rem;
  line-height: 2;
  color: #213452;
}

.article-view h2 {
  margin: 26px 0 10px;
}

.article-view p,
.article-view li {
  line-height: 2;
  color: #2c3f5c;
}

.article-view ul {
  padding-right: 22px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #f8fbff;
}

.download-box {
  margin: 24px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
}

.btn-android {
  background: linear-gradient(90deg, #24c36c, #1ca55a);
  color: #fff;
}

.btn-ios {
  background: linear-gradient(90deg, #2b2d42, #444a78);
  color: #fff;
}

.related-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.related-list img {
  width: 88px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 26px;
  background: #0e1b30;
  color: #d4dded;
  padding: 28px 0 10px;
}

.site-footer a {
  color: #93d5ff;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.copy {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
}

.site-footer.slim {
  padding: 12px 0;
  text-align: center;
}

.legal-page {
  max-width: 900px;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.legal-page h1,
.legal-page h2 {
  color: #142d4c;
}

@media (max-width: 960px) {
  .header-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 64px;
    padding: 12px 0;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 3;
  }

  .brand img {
    width: 126px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }

  .mobile-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
  }

  .top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 120;
    background: #1f2a37;
    border: 1px solid #344457;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(9, 15, 26, 0.45);
    padding: 10px;
    flex-direction: column;
    gap: 6px;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    width: 100%;
    text-align: right;
    color: #e8f0fa;
    background: #121a24;
    border: 1px solid #4b6078;
  }

  .top-nav a.active,
  .top-nav a:hover {
    background: #284766;
    color: #ffffff;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
  margin-top: 16px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fdfefe;
  padding: 16px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 700;
  color: #1f3552;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Cairo", sans-serif;
  font-size: 0.98rem;
  color: #1e2e46;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .check-line {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  color: #2c3f5c;
}

.form-status {
  min-height: 20px;
  margin: 6px 0 0;
  font-weight: 700;
}

.form-status.error {
  color: #a82020;
}

.form-status.ok {
  color: #157347;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  background: #0f1f36;
  color: #e6eefb;
  border: 1px solid #2b4365;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(10, 18, 32, 0.35);
  padding: 14px;
}

.cookie-banner p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid #4d6282;
  border-radius: 10px;
  padding: 9px 12px;
  background: #162b47;
  color: #ffffff;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn.primary {
  background: #1c7ed6;
  border-color: #1c7ed6;
}

.cookie-btn.reject {
  background: #3b4556;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
