:root {
  color: #0b1735;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --brand: #1f63ed;
  --brand-deep: #172b9d;
  --ink: #0b1735;
  --muted: #66758f;
  --line: #dce5f1;
  --surface: #f6f8fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220, 229, 241, .9); background: rgba(255,255,255,.95); backdrop-filter: blur(18px); }
.site-header__inner { width: min(1460px, calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .04em; }
.brand img { width: 46px; height: 52px; object-fit: contain; }
.brand span { background: linear-gradient(115deg, #121a78, #2667f1 58%, #7259e8); color: transparent; background-clip: text; -webkit-background-clip: text; font-size: 18px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2vw, 36px); white-space: nowrap; color: #48556d; font-size: 15px; font-weight: 750; }
.primary-nav > a, .nav-dropdown > button { position: relative; border: 0; padding: 29px 0; color: inherit; background: transparent; cursor: pointer; transition: color .2s ease; }
.primary-nav > a::after, .nav-dropdown > button::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; content: ''; background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.primary-nav > a:hover, .primary-nav > a:focus-visible, .nav-dropdown > button:hover, .nav-dropdown > button:focus-visible { color: var(--brand); outline: none; }
.primary-nav > a:hover::after, .primary-nav > a:focus-visible::after, .nav-dropdown:hover > button::after, .nav-dropdown:focus-within > button::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.chevron { display: inline-block; width: 8px; height: 8px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.nav-dropdown:hover .chevron, .nav-dropdown:focus-within .chevron { transform: translateY(3px) rotate(225deg); }
.product-menu { position: absolute; top: calc(100% - 12px); left: 50%; width: min(760px, 84vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 65px rgba(14, 35, 79, .16); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.product-menu::before { position: absolute; top: -15px; right: 0; left: 0; height: 16px; content: ''; }
.nav-dropdown:hover .product-menu, .nav-dropdown:focus-within .product-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.product-menu a { padding: 11px 13px; border-radius: 11px; color: #34425c; font-size: 15px; font-weight: 700; transition: color .18s ease, background .18s ease, transform .18s ease; }
.product-menu a:hover, .product-menu a:focus-visible { color: var(--brand); background: #eff5ff; outline: none; transform: translateX(2px); }
.system-link { flex: 0 0 auto; padding: 12px 18px; border-radius: 13px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 800; box-shadow: 0 8px 22px rgba(31,99,237,.22); transition: background .2s, transform .2s; }
.system-link:hover { background: #1755cf; transform: translateY(-1px); }

main { min-height: 60vh; }
.page-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 34px; color: #71809a; font-size: 14px; }
.breadcrumbs a:hover { color: var(--brand); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 44px; }
.article-detail { min-width: 0; }
.article-hero h1 { max-width: 900px; margin: 10px 0 18px; font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -.04em; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.article-excerpt { margin: 0 0 28px; color: #53647f; font-size: 19px; line-height: 1.65; }
.author-line { display: flex; align-items: center; gap: 13px; margin: 0 0 34px; }
.author-line img, .author-placeholder { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.author-placeholder { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #94c4ff, #2463ec); font-size: 13px; font-weight: 900; }
.author-line div { display: flex; flex-direction: column; }
.author-line a { font-weight: 850; }
.author-line span { color: #71809a; font-size: 14px; }
.featured-image { margin: 0 0 38px; }
.featured-image img { width: 100%; height: auto; border-radius: 24px; background: #eaf1ff; }
.featured-image figcaption { margin-top: 9px; color: #71809a; text-align: center; font-size: 14px; }
.article-content { color: #202c43; font-size: 17px; line-height: 1.8; }
.article-content h2, .article-content h3 { scroll-margin-top: 125px; color: var(--ink); line-height: 1.25; letter-spacing: -.025em; }
.article-content h2 { margin: 44px 0 15px; font-size: 28px; }
.article-content h3 { margin: 32px 0 12px; font-size: 23px; }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote { margin: 0 0 22px; }
.article-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { padding: 18px 22px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: #f2f6ff; }
.article-content img { height: auto; margin: 28px auto; border-radius: 16px; }
.article-sidebar { position: sticky; top: 104px; align-self: start; min-width: 0; max-height: calc(100vh - 124px); overflow-y: auto; overscroll-behavior: contain; padding-right: 3px; font-size: 15px; }
.article-sidebar__sticky { display: grid; gap: 20px; }
.toc, .experience-card, .related-list { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.toc h2, .experience-card h2, .related-list h2 { margin: 0 0 14px; font-size: 18px; }
.toc a { display: flex; gap: 8px; padding: 7px 0; color: #586983; line-height: 1.45; }
.toc a span { color: var(--brand); font-weight: 850; }
.toc a:hover, .related-list a:hover { color: var(--brand); }
.experience-card { background: #f6f9ff; }
.experience-card p { color: #687994; line-height: 1.55; }
.button { display: block; margin-top: 10px; padding: 11px 13px; border: 1px solid #bed1f7; border-radius: 11px; color: var(--brand); text-align: center; font-weight: 800; transition: transform .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(31,99,237,.12); }
.button--primary { color: #fff; border-color: var(--brand); background: var(--brand); }
.button--hotline { color: #087d62; border-color: #a7e8d7; background: #f0fdf9; }
.related-list a { display: block; padding: 9px 0; border-bottom: 1px solid #edf1f7; color: #43516a; font-weight: 700; line-height: 1.45; }
.related-list a:last-child { border-bottom: 0; }

.listing-page { padding-top: 64px; }
.listing-hero { max-width: 820px; margin-bottom: 38px; }
.listing-hero h1 { margin: 10px 0 12px; font-size: clamp(38px, 5vw, 62px); line-height: 1.1; letter-spacing: -.045em; }
.listing-hero p { color: #62728d; font-size: 20px; }
.article-search { display: flex; max-width: 680px; margin-bottom: 42px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 25px rgba(24,45,84,.06); }
.article-search label { flex: 1; }
.article-search input { width: 100%; height: 48px; padding: 0 14px; border: 0; outline: 0; color: var(--ink); }
.article-search button { padding: 0 22px; border: 0; border-radius: 10px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 34px rgba(18, 38, 79, .055); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 17px 42px rgba(18,38,79,.1); }
.article-card__image { display: block; aspect-ratio: 16 / 9; background: #eaf1ff; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: 22px; }
.article-card__link { display: block; height: 100%; }
.article-card__title { display: block; margin: 7px 0 10px; font-size: 22px; font-weight: 850; line-height: 1.32; letter-spacing: -.02em; }
.article-card__link:hover .article-card__title { color: var(--brand); }
.article-card__excerpt { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: #63738d; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.article-card__meta { color: #7d8aa0; font-size: 14px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 42px; }
.pagination a, .pagination span { padding: 10px 15px; border: 1px solid var(--line); border-radius: 11px; }
.pagination a:hover { color: var(--brand); border-color: #a9c4fb; }
.empty-state { grid-column: 1 / -1; padding: 60px; border: 1px dashed #bfcce0; border-radius: 20px; color: #66758f; text-align: center; }
.author-hero { display: flex; align-items: center; gap: 28px; margin-bottom: 44px; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, #f7faff, #fff); }
.author-hero img, .author-placeholder--large { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; }
.author-hero h1 { margin: 4px 0; font-size: 42px; line-height: 1.15; }
.author-hero p { max-width: 720px; margin: 10px 0; color: #63738d; }
.not-found { width: min(720px, calc(100% - 40px)); margin: 0 auto; padding: 110px 0; text-align: center; }
.not-found > span { color: var(--brand); font-size: 80px; font-weight: 900; }
.not-found h1 { margin: 0; font-size: 38px; }
.not-found .button { display: inline-block; }

.site-footer { color: #d9e3f6; background: #0b1735; }
.site-footer__grid { width: min(1460px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2fr .8fr .8fr; gap: 44px; padding: 64px 0 48px; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font-size: 16px; }
.site-footer section > a:not(.brand) { display: block; margin: 8px 0; color: #bdcae0; font-size: 14px; }
.site-footer section > a:hover, .footer-products a:hover { color: #fff; }
.brand--footer span { color: #fff; background: none; -webkit-text-fill-color: initial; }
.brand--footer img { filter: grayscale(1) brightness(0) invert(1); }
.site-footer p { max-width: 330px; color: #aebbd1; font-size: 15px; }
.footer-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px 18px; }
.footer-products a { color: #bdcae0; font-size: 14px; }
.site-footer__bottom { padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8696b2; text-align: center; font-size: 13px; }

.marketing-page { padding-top: 0; }
.marketing-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); align-items: center; gap: 54px; min-height: 560px; padding: 70px 0; }
.marketing-hero > div:only-child { grid-column: 1 / -1; max-width: 900px; }
.marketing-hero h1 { max-width: 850px; margin: 12px 0 20px; font-size: clamp(44px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -.05em; }
.marketing-hero p, .marketing-section > header p, .marketing-cta p { max-width: 760px; color: #60708a; font-size: 19px; }
.marketing-hero img { width: 100%; border-radius: 28px; box-shadow: 0 24px 60px rgba(29, 71, 150, .14); }
.marketing-button { display: inline-block; width: auto; padding: 13px 22px; }
.marketing-section { padding: 72px 0; border-top: 1px solid var(--line); }
.marketing-section > header, .marketing-section > h2 { margin: 0 0 34px; }
.marketing-section h2, .marketing-cta h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.14; letter-spacing: -.035em; }
.feature-grid, .product-grid, .stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-grid article, .stats-grid article, .product-grid a { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(18, 38, 79, .05); }
.feature-grid h3, .stats-grid h3, .product-grid strong { display: block; margin: 0 0 9px; font-size: 21px; }
.feature-grid p, .stats-grid p, .product-grid span { margin: 0; color: #687994; }
.product-grid a { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.product-grid a:hover { border-color: #a8c4fb; box-shadow: 0 17px 38px rgba(31,99,237,.1); transform: translateY(-3px); }
.product-grid b { color: var(--brand); }
.stats-grid h3 { color: var(--brand); font-size: 34px; }
.marketing-timeline { display: grid; gap: 18px; counter-reset: timeline; }
.marketing-timeline article { position: relative; padding: 24px 28px 24px 74px; border: 1px solid var(--line); border-radius: 18px; background: #f8faff; counter-increment: timeline; }
.marketing-timeline article::before { position: absolute; top: 24px; left: 24px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; content: counter(timeline); color: #fff; background: var(--brand); font-weight: 850; }
.marketing-timeline h3 { margin: 0 0 4px; }
.marketing-timeline p { margin: 0; color: #687994; }
.marketing-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin: 60px 0; padding: 42px; border-radius: 28px; color: #fff; background: linear-gradient(130deg, #0d2872, #1f63ed); }
.marketing-cta h2, .marketing-cta p { color: #fff; }
.marketing-cta p { margin-bottom: 0; opacity: .84; }
.marketing-cta .button { color: var(--brand); border-color: #fff; background: #fff; }
.contact-details a { color: var(--brand); font-weight: 800; }
.consultation-section { scroll-margin-top: 100px; }
.consultation-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #f7faff; }
.consultation-form fieldset { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.consultation-form label { display: grid; gap: 7px; color: #394861; font-weight: 750; }
.consultation-form input:not([type="checkbox"]), .consultation-form select, .consultation-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd8e9; border-radius: 11px; color: var(--ink); background: #fff; }
.consultation-form__wide, .consultation-form__consent { grid-column: 1 / -1; }
.consultation-form__consent { display: flex !important; grid-template-columns: none; align-items: flex-start; font-weight: 500 !important; }
.consultation-form button { justify-self: start; padding: 12px 24px; border: 0; border-radius: 11px; color: #fff; background: var(--brand); font-weight: 850; cursor: pointer; }
.consultation-form button:disabled { cursor: wait; opacity: .6; }
.consultation-form__honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.consultation-form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.consultation-form__actions p { margin: 0; color: #b42318; font-size: 14px; font-weight: 700; }
.consultation-success { grid-column: 1 / -1; padding: 22px; border: 1px solid #9de2c8; border-radius: 16px; color: #087d62; background: #effcf7; font-weight: 800; }
.article-index { padding-top: 12px; }

@media (max-width: 1080px) {
  .site-header__inner { gap: 22px; }
  .primary-nav { gap: 18px; font-size: 15px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header { position: relative; }
  .site-header__inner { width: min(100% - 30px, 720px); min-height: 78px; flex-wrap: wrap; padding: 10px 0; }
  .brand img { width: 42px; height: 48px; }
  .brand span { font-size: 18px; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; }
  .primary-nav > a, .nav-dropdown > button { padding: 10px 0 16px; }
  .primary-nav > a::after, .nav-dropdown > button::after { bottom: 8px; }
  .product-menu { position: fixed; top: 120px; width: calc(100vw - 30px); grid-template-columns: repeat(2, 1fr); }
  .system-link { margin-left: auto; font-size: 14px; }
  .page-shell { width: min(100% - 30px, 720px); padding-top: 34px; }
  .article-layout { display: block; }
  .article-sidebar { position: static; max-height: none; overflow: visible; margin-top: 40px; padding-right: 0; }
  .article-content { font-size: 17px; }
  .article-grid { grid-template-columns: 1fr; }
  .site-footer__grid { width: min(100% - 30px, 720px); grid-template-columns: 1fr; }
  .footer-products { grid-template-columns: repeat(2, 1fr); }
  .marketing-hero { grid-template-columns: 1fr; min-height: 0; padding: 52px 0; }
  .feature-grid, .product-grid, .stats-grid { grid-template-columns: 1fr; }
  .marketing-cta { align-items: flex-start; flex-direction: column; padding: 30px; }
  .consultation-form { grid-template-columns: 1fr; padding: 22px; }
  .consultation-form fieldset { grid-template-columns: 1fr; }
  .consultation-form__wide, .consultation-form__consent, .consultation-form__actions { grid-column: auto; }
}

@media (max-width: 520px) {
  .system-link { padding: 10px 12px; }
  .article-hero h1, .listing-hero h1 { font-size: 36px; }
  .article-excerpt { font-size: 18px; }
  .author-line span { font-size: 13px; }
  .author-hero { align-items: flex-start; padding: 22px; }
  .author-hero img, .author-placeholder--large { width: 76px; height: 76px; }
  .author-hero h1 { font-size: 30px; }
  .article-search button { padding: 0 13px; }
}
