:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #162033;
  --muted: #667085;
  --line: #e5e7eb;
  --primary: #1d4ed8;
  --primary-dark: #163ea8;
  --accent: #eff6ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(14px, 0.92vw, 16px);
  line-height: 1.72;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

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

.container {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100%);
  margin: 0 auto;
}

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

.header-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-size: clamp(1.1rem, 1.2vw, 1.3rem);
  font-weight: 800;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-size: clamp(14px, 0.9vw, 15px);
  color: var(--text);
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  cursor: pointer;
}

.breadcrumb-section {
  padding: 14px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.hero {
  padding: 20px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: clamp(18px, 2vw, 30px);
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 2vw, 30px);
  box-shadow: var(--shadow);
}

.hero-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: clamp(12px, 0.8vw, 14px);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: clamp(13px, 0.85vw, 15px);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cad3;
}

.hero-text {
  font-size: clamp(14px, 0.92vw, 16px);
  color: #344054;
  margin-bottom: 18px;
  max-width: 760px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: clamp(14px, 0.9vw, 15px);
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: #c8d0db;
  transform: translateY(-1px);
}

.btn.large {
  min-height: 54px;
  padding: 0 28px;
}

.full {
  width: 100%;
}

section {
  padding: 8px 0 18px;
}

.section-head {
  margin-bottom: 8px;
}

.section-head h2,
.content-card h2,
.content-section h2,
.faq-section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.8vw, 1.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 0.9vw, 15px);
  line-height: 1.6;
}

.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid img {
  width: calc((100% - 16px) / 2.35);
  min-width: 300px;
  max-width: 430px;
  height: 180px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.55);
}

.info-grid {
  display: block;
}

.content-card,
.sidebar-card,
.feature-card,
.download-box,
.related-block,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card {
  padding: clamp(18px, 2vw, 28px);
}

.content-card h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.content-card p {
  margin: 0 0 14px;
  color: #344054;
  font-size: clamp(14px, 0.92vw, 16px);
  line-height: 1.76;
}

.app-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 20px 0;
}

.app-table > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.app-table strong {
  color: var(--text);
  font-size: clamp(13px, 0.85vw, 14px);
  line-height: 1.35;
}

.app-table span {
  color: #344054;
  word-break: break-word;
  font-size: clamp(14px, 0.92vw, 15px);
  line-height: 1.55;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.share-row a,
.tag-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: clamp(13px, 0.85vw, 14px);
}

.share-row a:hover,
.tag-grid a:hover {
  border-color: #c7d2fe;
  color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 22px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.feature-card p {
  margin: 0;
  color: #475467;
  font-size: clamp(14px, 0.9vw, 15px);
  line-height: 1.65;
}

.content-section .narrow,
.faq-section .narrow {
  display: grid;
  gap: 16px;
}

.download-box {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.download-box h2 {
  margin: 0 0 8px;
}

.download-box p {
  margin: 0;
  color: #475467;
  font-size: clamp(14px, 0.92vw, 15px);
}

.related-section .container {
  display: grid;
  gap: 18px;
}

.related-block {
  padding: 22px;
}

.related-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-item {
  padding: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: clamp(0.96rem, 1vw, 1.05rem);
  line-height: 1.3;
}

.faq-item p {
  margin: 0;
  color: #475467;
  font-size: clamp(14px, 0.9vw, 15px);
  line-height: 1.7;
}

.site-footer {
  margin-top: 8px;
  background: #0f172a;
  color: #e5e7eb;
}

.footer-bottom {
  padding: 10px 0;
  color: #94a3b8;
  font-size: clamp(13px, 0.85vw, 15px);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  line-height: 1.5;
}

.footer-bottom a {
  display: inline;
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 1024px) {
  .container {
    width: min(100%, calc(100% - 22px));
  }

  .hero-grid {
    grid-template-columns: 220px 1fr;
    gap: 22px;
  }

  .gallery-grid img {
    width: calc((100% - 16px) / 2);
    min-width: 280px;
    height: 170px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.65;
  }

  .container {
    width: min(100%, calc(100% - 18px));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav.show {
    display: flex;
  }

  .header-wrap {
    min-height: 64px;
  }

  .hero {
    padding: 14px 0 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 18px;
  }

  .hero-thumb img {
    max-width: 220px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.12;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.68;
    margin-bottom: 16px;
  }

  .meta-top {
    gap: 8px;
    font-size: 13px;
  }

  section {
    padding: 6px 0 16px;
  }

  .section-head h2,
  .content-card h2,
  .content-section h2,
  .faq-section h2 {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

  .content-card h3 {
    font-size: clamp(1rem, 4.3vw, 1.18rem);
    margin-top: 18px;
  }

  .content-card p,
  .faq-item p,
  .app-table span {
    font-size: 14px;
    line-height: 1.7;
  }

  .app-table strong {
    font-size: 12px;
  }

  .app-table {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-grid {
    gap: 14px;
  }

  .gallery-grid img {
    width: 78%;
    min-width: 250px;
    max-width: 290px;
    height: 156px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .btn.large {
    width: 100%;
    font-size: 14px;
  }

  .content-card {
    padding: 18px;
  }

  .faq-item {
    padding: 16px;
  }

  .footer-bottom {
    padding: 8px 0;
    font-size: 13px;
  }
}
