:root {
  --bg: #eef7ff;
  --surface: #ffffff;
  --surface-2: #e5f4ff;
  --text: #172637;
  --muted: #5f7285;
  --primary: #1268b3;
  --primary-dark: #083d77;
  --accent: #20b8d8;
  --line: #cfe3f5;
  --shadow: 0 18px 45px rgba(8, 61, 119, .14);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(32,184,216,.14) 0 24%, transparent 24% 100%),
    radial-gradient(circle at 85% 12%, rgba(18,104,179,.16), transparent 24rem),
    var(--bg);
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.site-logo img { width: 176px; height: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.menu, .footer-menu { list-style: none; padding: 0; margin: 0; }
.menu { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.menu a { color: var(--text); }
.menu .current-menu-item > a,
.menu .current_page_item > a,
.menu .current_page_parent > a,
.menu .current-menu-ancestor > a {
  color: var(--primary);
}
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 5px auto; }

.btn, .search-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover, .search-form button:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--primary-dark); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface-2); color: var(--primary-dark); }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-form label { flex: 1; }
.search-form input[type="search"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.search-form--compact input { width: 220px; }

.home-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 74px 0 48px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238,247,255,.98) 0%, rgba(238,247,255,.88) 42%, rgba(238,247,255,.22) 66%, rgba(238,247,255,.06) 100%),
    url("../img/hero-techdomu.webp") center right / cover no-repeat;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(260px, .28fr); gap: 44px; align-items: center; }
.hero-copy { max-width: 660px; position: relative; z-index: 1; }
.eyebrow, .pill { color: var(--primary-dark); font-weight: 800; font-size: 14px; letter-spacing: 0; text-transform: uppercase; }
h1, h2 { font-family: "Manrope", system-ui, sans-serif; line-height: 1.12; letter-spacing: 0; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: 34px; }
.compact-hero h1 { font-size: 40px; }
.hero-lead, .compact-hero p { font-size: 21px; color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-panel { display: none; }
.hero-note { color: var(--muted); font-weight: 600; }

.section, .search-band, .cta-section { margin-top: 56px; }
.search-band, .cta-section {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(39,58,42,.08);
}
.as-h2 { font-family: "Manrope", system-ui, sans-serif; font-size: 25px; font-weight: 800; line-height: 1.18; margin-bottom: 10px; }
.cards-grid, .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.post-card, .category-card, .widget, .author-box, .hub-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(39,58,42,.08);
}
.post-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; min-height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__image { aspect-ratio: 16/8.2; max-height: 230px; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { display: block; color: var(--text); font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: 21px; line-height: 1.24; margin: 10px 0 8px; }
.post-card p { color: var(--muted); margin: 0 0 14px; }
.post-card .post-meta { margin-top: auto; padding-top: 6px; }
.post-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.post-meta a, .post-meta span { color: var(--muted); }
.pill, .tag-cloud a { display: inline-flex; align-items: center; min-height: 30px; border-radius: 999px; background: var(--surface-2); padding: 3px 10px; }

.category-card { padding: 20px; display: grid; gap: 8px; color: var(--text); }
.category-card span:not(.category-icon) { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: 21px; }
.category-card small { color: var(--muted); font-size: 15px; }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: #daf2ff; color: var(--primary); font-size: 24px; }

.trust-section { margin-top: 64px; padding: 56px 0; background: linear-gradient(135deg, #083d77, #1268b3); color: #f4fbff; }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.trust-grid h2 { color: #fff; }
.trust-grid p { color: #d8edff; }
.trust-items { display: grid; gap: 14px; }
.trust-items div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px; }
.trust-items strong, .trust-items span { display: block; }
.trust-items span { color: #d8edff; margin-top: 5px; }

.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

.page-hero { padding: 48px 0 28px; }
.breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; font-size: 15px; margin-bottom: 18px; color: var(--muted); }
.breadcrumbs a::after { content: "/"; color: var(--muted); margin-left: 9px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-top: 34px; margin-bottom: 64px; }
.archive-layout { margin-top: 34px; margin-bottom: 34px; }
.archive-layout .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-layout { max-width: 880px; margin-top: 34px; margin-bottom: 34px; }
.main-column { min-width: 0; }
.sidebar { display: grid; gap: 16px; }
.widget { padding: 16px; }
.widget-title, .footer-title { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; margin-bottom: 10px; }
.compact-list { margin: 0; padding-left: 18px; }
.compact-list li { margin: 7px 0; }
.tag-cloud { display: flex; gap: 8px; flex-wrap: wrap; }

.single-wrap { padding-top: 36px; }
.article-main h1 { font-size: 46px; }
.article-lead { font-size: 21px; color: var(--muted); margin-top: 0; }
.featured-figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.featured-figure img { width: 100%; }
.toc, .toc-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.toc-inline { display: block; margin-bottom: 20px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 6px 0; }
.toc-level-3 { margin-left: 14px !important; font-size: 15px; }
.article-content { background: transparent; }
.article-content h2 { font-size: 30px; margin-top: 36px; }
.article-content h3 { font-family: "Manrope", system-ui, sans-serif; font-size: 23px; margin-top: 24px; }
.article-content figure { margin: 28px 0; }
.article-content figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.article-content table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 12px; text-align: left; }
.article-content th { background: var(--surface-2); }
.callout, .info-box, .warning-box { border-radius: var(--radius); padding: 16px; margin: 20px 0; border: 1px solid var(--line); background: var(--surface-2); }
.warning-box { background: #fff4df; border-color: #efd4a6; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; margin: 32px 0; }
.author-box img, .author-head img { border-radius: 50%; background: var(--surface-2); }
.author-head { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.muted { color: var(--muted); }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pagination .page-numbers { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 800; }
.pagination .current { background: var(--primary); color: #fff; }
.empty-state { padding: 22px; background: var(--surface); border: 1px dashed var(--primary); border-radius: var(--radius); color: var(--muted); }

.page-content { max-width: 1040px; margin-top: 34px; margin-bottom: 64px; }
.page-content .article-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.feature-grid, .contact-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.feature-tile, .contact-tile, .process-step {
  background: linear-gradient(145deg, #fff, #eef8ff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(8,61,119,.08);
}
.feature-tile strong, .contact-tile strong, .process-step strong { display: block; font-family: "Manrope", system-ui, sans-serif; font-size: 20px; margin-bottom: 6px; }
.feature-tile span, .contact-tile span, .process-step span { color: var(--muted); display: block; }
.interactive-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}
.interactive-strip details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.interactive-strip summary { cursor: pointer; font-weight: 800; color: var(--primary-dark); }

.content-hub {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
  margin-bottom: 64px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(229,244,255,.74)),
    radial-gradient(circle at 8% 10%, rgba(32,184,216,.18), transparent 18rem);
  box-shadow: var(--shadow);
}
.hub-intro {
  padding: 18px 18px 18px 6px;
  align-self: center;
}
.hub-intro p { color: var(--muted); margin-bottom: 0; max-width: 360px; }
.hub-panel {
  padding: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(207,227,245,.86);
  box-shadow: none;
}
.hub-panel--recent {
  grid-column: 1 / -1;
}
.hub-panel p { color: var(--muted); margin-top: 0; }
.hub-links, .hub-list { display: grid; gap: 8px; }
.hub-links a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  min-height: 74px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 12px;
  background: linear-gradient(145deg, #fff, #eef8ff);
  color: var(--text);
}
.hub-links strong { font-family: "Manrope", system-ui, sans-serif; font-size: 18px; line-height: 1.2; }
.hub-links small { color: var(--muted); grid-column: 1 / -1; font-size: 14px; line-height: 1.35; padding-right: 42px; }
.hub-links a:hover, .hub-list a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(8,61,119,.1); color: var(--primary-dark); }
.hub-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hub-list a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #f7fbff;
  color: var(--text);
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-list span {
  width: max-content;
  border-radius: 999px;
  background: #dff3ff;
  color: var(--primary-dark);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}
.hub-list strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.28;
}
.hub-list small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}
.hub-links span {
  position: absolute;
  right: 12px;
  top: 12px;
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
}
.hub-panel--tags .tag-cloud { gap: 7px; }
.hub-panel--tags .tag-cloud a { background: #dff3ff; color: var(--primary-dark); }
.hub-panel--tags {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.hub-panel--tags .widget-title { margin-bottom: 0; white-space: nowrap; }
.wpcf7-form input, .wpcf7-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; font: inherit; }

.site-footer { background: #071d36; color: #d8edff; padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr .8fr; gap: 26px; }
.footer-logo img { width: 176px; margin-bottom: 14px; }
.footer-title { color: #fff; }
.footer-menu li { margin: 7px 0; }
.site-footer a { color: #eef7eb; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; color: #b9d8ef; font-size: 15px; }
.techdomu-cookie {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  z-index: 80;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.techdomu-cookie p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.cmplz-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cmplz-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: var(--surface-2);
  color: var(--primary-dark);
  font-weight: 800;
  white-space: nowrap;
}
.cmplz-accept { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 920px) {
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100vh;
    transform: translateX(100%);
    transition: transform .2s ease;
    background: var(--surface);
    padding: 86px 20px 20px;
    display: block;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { transform: translateX(0); }
  .menu { display: grid; gap: 12px; }
  .menu a { display: block; min-height: 44px; padding: 10px 0; }
  .header-search { margin-top: 20px; }
  .menu-backdrop:not([hidden]) { position: fixed; inset: 0; background: rgba(0,0,0,.28); }
  .home-hero { min-height: auto; background-position: 58% center; }
  .hero-grid, .trust-grid, .search-band, .cta-section, .content-layout, .footer-grid, .contact-layout, .content-hub, .feature-grid, .contact-action-grid, .interactive-strip { grid-template-columns: 1fr; }
  .hub-panel--tags { grid-column: auto; display: block; }
  .hub-panel--recent { grid-column: auto; }
  .hub-panel--tags .widget-title { margin-bottom: 10px; }
  .techdomu-cookie { grid-template-columns: 1fr; }
  .cards-grid, .category-grid, .cards-grid--compact, .cards-grid--related, .archive-layout .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .toc { display: none; }
  .toc-inline { display: block; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  h1 { font-size: 42px; }
  .compact-hero h1, .article-main h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .home-hero { padding-top: 42px; }
  .cards-grid, .category-grid, .cards-grid--compact, .cards-grid--related, .archive-layout .cards-grid { grid-template-columns: 1fr; }
  .hub-list { grid-template-columns: 1fr; }
  .home-hero { background: linear-gradient(180deg, rgba(238,247,255,.96), rgba(238,247,255,.82)), url("../img/hero-techdomu-mini.png") center bottom / cover no-repeat; padding-bottom: 240px; }
  .hero-actions, .search-form { display: grid; }
  .btn, .search-form button { width: 100%; }
  .search-form--compact input { width: 100%; }
  .article-content table, .article-content thead, .article-content tbody, .article-content th, .article-content td, .article-content tr { display: block; width: 100%; }
  .article-content thead { display: none; }
  .article-content tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  .article-content td { border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
  .article-content td::before { content: attr(data-label); font-weight: 800; color: var(--primary-dark); }
  .author-box, .author-head { grid-template-columns: 1fr; }
  .page-content .article-content { padding: 20px; }
}
