:root {
  color-scheme: light;
  --ink: #181930;
  --muted: #535774;
  --line: #dfe2ef;
  --paper: #f7f8fc;
  --accent: #5142b8;
  --yellow: #ffe565;
  --navy: #171a37;
  --radius: 20px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.52;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #735df6; outline-offset: 4px; }
svg { flex-shrink: 0; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 4; padding: 10px 16px; transform: translateY(-150%); background: white; }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid #e8e9f3; background: #fff; }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.05em; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #242746; color: #f5f1ff; }
.brand-icon svg { width: 28px; }
.header-nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 55px); }
.header-nav a, .header-search { font-size: .93rem; font-weight: 650; text-decoration: none; }
.header-nav a:hover, .quiet-link:hover, .back:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.header-search { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 9px 14px; background: #f7f7fc; }
.header-search:hover { background: #eeecfb; }
.header-search svg, .field-control svg, .hero-search svg { width: 21px; height: 21px; }
.hero-wrap { margin-top: 29px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: white; border-radius: 27px; min-height: 470px; }
.hero-content { position: relative; padding: 42px 20px 38px clamp(26px, 5.05vw, 76px); max-width: 740px; z-index: 1; }
.hero-label { color: #ece9fc; font-size: .9rem; font-weight: 640; display: flex; align-items: center; gap: 8px; }
.hero-label span { width: 15px; height: 3px; background: var(--yellow); border-radius: 9px; }
.hero h1 { margin: 16px 0 17px; font-size: clamp(2.65rem, 4.55vw, 4.65rem); line-height: .99; font-weight: 800; letter-spacing: -.073em; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-description { max-width: 440px; color: #e2e5f5; font-size: clamp(1rem, 1.32vw, 1.17rem); }
.hero-art { position: absolute; overflow: hidden; isolation: isolate; inset: 0 0 0 38%; }
.hero-photo { position: absolute; inset: -5% -13% -14% -1%; background: url('/assets/snow-leopard.webp') center 23% / cover no-repeat; filter: saturate(.73) contrast(1.04) brightness(.78); }
.hero-art::after { content: ""; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(90deg, #171a37 0%, #171a37e0 8%, #171a3749 37%, transparent 68%), linear-gradient(0deg, #171a376e 0%, transparent 37%); }
.hero-grid { position: absolute; z-index: 1; right: 0; inset-block: 0; width: 67%; opacity: .22; background-image: linear-gradient(#e4e8ff55 1px,transparent 1px),linear-gradient(90deg,#e4e8ff55 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg,transparent,black 63%); }
.hero-pin { display: grid; place-items: center; position: absolute; z-index: 1; right: 9%; bottom: 13%; color: var(--yellow); background: #171a37bf; border: 1px solid #f9e67ba6; border-radius: 50%; width: 57px; height: 57px; box-shadow: 0 0 0 13px #171a3740, 0 0 0 14px #f9e67b70, 0 0 0 27px #171a3730, 0 0 0 28px #f9e67b3b; }
.hero-pin svg { width: 24px; height: 24px; }
.hero-search { display: flex; align-items: center; gap: 11px; max-width: 476px; background: #fff; color: #535774; border-radius: 13px; padding: 5px 5px 5px 14px; margin-top: 24px; box-shadow: 0 10px 24px #0b0a262b; }
.hero-search input, .field-control input { border: 0; color: var(--ink); background: transparent; width: 100%; min-width: 0; padding: 8px 0; }
.hero-search input::placeholder, .field-control input::placeholder { color: #626782; opacity: 1; }
.hero-search button { padding: 10px 19px; border: 0; border-radius: 9px; background: var(--yellow); color: #222139; font-weight: 750; }
.hero-search button:hover { background: #ffed98; }
.hero-examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.hero-examples a { font-size: .86rem; font-weight: 590; text-decoration: none; padding: 4px 11px; border: 1px solid #a7add06e; background: #272a48ad; border-radius: 50px; }
.hero-examples a:hover { border-color: var(--yellow); color: var(--yellow); }
.section-heading { padding-block: 32px 43px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.heading-row h2, .related h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); letter-spacing: -.05em; line-height: 1.12; }
.quiet-link { font-size: .94rem; color: #4834ad; font-weight: 700; text-underline-offset: 4px; }
.section-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.section-card { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; min-height: 164px; padding: 17px 19px 18px; border-radius: 16px; border: 1px solid var(--line); background: white; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.section-card:hover, .result-card:hover { border-color: #9b8ae7; box-shadow: 0 6px 14px #28234812; }
.section-card:hover { transform: translateY(-2px); }
.section-card h3 { font-size: 1.14rem; letter-spacing: -.032em; margin-top: 10px; line-height: 1.14; }
.section-card p { color: var(--muted); margin-top: 6px; font-size: .91rem; line-height: 1.38; }
.section-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; }
.section-icon svg { width: 22px; height: 22px; }
.ya-color { color: #753c00; background: #fff2ba; }
.gis-color { color: #205b3d; background: #d9f3e4; }
.web-color { color: #472b9a; background: #ebe5ff; }
.terms-color { color: #244681; background: #dfebff; }
.catalog-wrap { padding: 37px 0 59px; border-top: 1px solid var(--line); background: #eff0fa; min-height: 340px; scroll-margin-top: 12px; }
.catalog-heading p { margin-top: 8px; color: var(--muted); }
.catalog-panel { padding: 19px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.filter-tabs, .quick { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs { padding-bottom: 16px; border-bottom: 1px solid #e9e9f4; }
.filter-tabs button, .quick button { flex-shrink: 0; border: 1px solid var(--line); color: #3f415d; background: white; border-radius: 9px; padding: 8px 12px; min-height: 40px; font-weight: 610; font-size: .9rem; }
.filter-tabs button:hover, .quick button:hover { border-color: #8d7ae8; }
.filter-tabs button[aria-pressed="true"] { background: #292647; color: #fff; border-color: #292647; }
.filter-fields { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto; align-items: end; gap: 14px; padding-top: 16px; }
.filter-field { display: grid; gap: 6px; color: #373a55; font-size: .92rem; font-weight: 640; }
.field-control { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 12px; border: 1px solid #d0d3e4; border-radius: 9px; color: #5b607b; font-weight: 480; font-size: 1rem; background: #fafafe; }
.field-control:focus-within { border-color: #7865d3; }
.select-control { padding: 0; position: relative; }
.select-control::after { content: ""; position: absolute; pointer-events: none; right: 15px; width: 7px; height: 7px; transform: translateY(-2px) rotate(45deg); border: solid #444467; border-width: 0 2px 2px 0; }
.select-control select { appearance: none; border: 0; border-radius: 9px; width: 100%; min-height: 44px; padding: 7px 35px 7px 12px; background: transparent; color: var(--ink); }
.reset, .more { min-height: 46px; padding: 8px 15px; border-radius: 10px; border: 1px solid #cfc8f0; background: #f6f3ff; color: #41308e; font-weight: 700; }
.reset:hover, .more:hover { background: #ebe4ff; }
.quick { margin-top: 13px; }
.quick button { border-radius: 30px; background: #f8f7ff; min-height: 35px; padding-block: 5px; }
.quick button[aria-pressed=true] { background: #e9e1ff; border-color: #a58de7; color: #412784; }
.result-bar { margin: 20px 0 11px; color: var(--muted); font-size: .94rem; }
.results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.result-card { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-decoration: none; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.badge { display: inline-flex; width: fit-content; max-width: 100%; border-radius: 6px; padding: 3px 8px; background: #eeebfb; color: #493681; font-weight: 700; font-size: .82rem; }
.result-card h3 { font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.23; overflow-wrap: anywhere; }
.result-card p { color: var(--muted); font-size: .92rem; line-height: 1.42; overflow-wrap: anywhere; }
.result-note { margin-top: auto; padding-top: 4px; color: #51428f; font-weight: 630; font-size: .85rem; }
.empty { grid-column: 1/-1; border-radius: 15px; background: #fff; padding: 20px; color: var(--muted); }
.more { display: block; margin: 20px auto 0; }
.reader { padding-block: 27px 50px; }
.back { display: inline-flex; color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.reader-title { padding: clamp(20px,4vw,48px); margin: 16px 0 23px; border-radius: var(--radius); background: #ece9fb; }
.reader-title h1 { margin: 12px 0 10px; font-size: clamp(2rem,4.5vw,3.8rem); line-height: 1.06; letter-spacing: -.055em; max-width: 960px; overflow-wrap: anywhere; }
.reader-title p:not(.badge) { max-width: 800px; color: var(--muted); }
.reading-layout { display: flex; align-items: flex-start; gap: 22px; }
.outline { flex: 0 0 255px; max-width: 30%; position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: white; }
.outline summary { cursor: pointer; font-weight: 760; }
.outline ol { margin: 10px 0 0; padding-left: 20px; font-size: .91rem; }
.outline li + li { margin-top: 6px; }
.outline a { text-underline-offset: 2px; color: #45368c; }
.reading-body { flex: 1; min-width: 0; max-width: 950px; padding: clamp(17px,4vw,46px); border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow-wrap: anywhere; }
.reading-body > :first-child { margin-top: 0; }
.reading-body h2 { margin: 1.35em 0 .4em; font-size: clamp(1.35rem,2.5vw,1.8rem); line-height: 1.2; scroll-margin-top: 16px; }
.reading-body h3 { margin: 1em 0 .35em; }
.reading-body p + p, .reading-body ul, .reading-body ol { margin-block: .7em; }
.reading-body a { color: #4832a9; text-underline-offset: 3px; }
.reading-body img { height: auto; max-width: 100%; border-radius: 12px; }
.reading-body figure { margin: 1.1em 0; }
.reading-body pre, .table-wrap { overflow-x: auto; }
.reading-body table { border-collapse: collapse; width: 100%; }
.reading-body td, .reading-body th { border: 1px solid var(--line); padding: 8px; }
.related { margin-top: 32px; }
.related h2 { margin-bottom: 14px; }
.footer { background: var(--navy); color: #f0f0f8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; gap: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 9px 22px; }
.footer-links a { font-size: .93rem; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .shell { width: calc(100% - 56px); }
  .hero { min-height: 422px; }
  .hero-content { padding-top: 36px; }
  .hero-photo { inset: -4% -17% -12% -3%; background-position: 54% center; }
  .section-grid { gap: 10px; }
  .section-card { padding-inline: 13px; }
  .results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { min-height: 60px; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
  .header-nav { order: 3; width: 100%; gap: 6px 19px; padding-bottom: 10px; flex-wrap: wrap; }
  .header-nav a { font-size: .88rem; }
  .brand { font-size: 1.36rem; }
  .brand-icon { width: 34px; height: 34px; border-radius: 9px; }
  .header-search { padding: 5px 9px; }
  .hero-wrap { margin-top: 15px; }
  .hero { min-height: 0; border-radius: 18px; }
  .hero-content { padding: 23px 16px 21px; }
  .hero h1 { font-size: clamp(2.2rem,8.2vw,3.4rem); margin: 13px 0 10px; }
  .hero-art { inset: 0 0 35% 40%; opacity: .67; }
  .hero-art::after { background: linear-gradient(90deg,#171a37 0%,#171a3799 25%,transparent 63%),linear-gradient(0deg,#171a37 0%,transparent 53%); }
  .hero-photo { inset: -1% -33% -5% -6%; background-position: 65% 26%; }
  .hero-pin { display: none; }
  .hero-grid { width: 100%; }
  .hero-description { max-width: 350px; }
  .hero-search { margin-top: 17px; padding-left: 9px; gap: 6px; }
  .hero-search button { padding-inline: 12px; }
  .hero-examples { gap: 5px; }
  .hero-examples a { padding-inline: 7px; font-size: .82rem; }
  .section-heading { padding-block: 24px 31px; }
  .section-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-card { min-height: 139px; padding: 12px 11px; }
  .section-card h3 { font-size: 1.04rem; }
  .section-card p { font-size: .875rem; }
  .catalog-wrap { padding-block: 28px 36px; }
  .catalog-panel { padding: 13px; }
  .filter-fields { grid-template-columns: minmax(0,1fr); }
  .reset { justify-self: start; min-height: 40px; }
  .results { grid-template-columns: minmax(0,1fr); }
  .reading-layout { display: grid; }
  .outline { position: static; max-height: none; max-width: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.reader-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.reader-links a { color: var(--accent); font-weight: 680; text-underline-offset: 3px; }
.reader .reader-title a { color: var(--accent); }
.reader-description { margin-top: 8px; }
.reader-title .reader-category { text-decoration: none; }
.reader-title .reader-category:hover { text-decoration: underline; }
.reader .reading-body { line-height: 1.65; }
.reading-body img { width: auto; max-height: 640px; object-fit: contain; }
.reading-body .directory-list { padding-left: 21px; margin: 12px 0 4px; }
.directory-details { margin-block: 10px; border: 1px solid var(--line); border-radius: 13px; background: #faf9ff; padding: 11px 14px; }
.directory-details summary { font-weight: 720; cursor: pointer; }
.directory-list li { margin-bottom: 6px; break-inside: avoid; }
.directory-grid { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.directory-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf9ff; }
.directory-card h3 { margin: 0 0 6px; line-height: 1.22; }
.directory-card ul { padding-left: 20px; margin: 0; }
.reading-body:has(.directory-grid) { max-width: none; }
@media (min-width: 850px) { .directory-list { columns: 2; column-gap: 32px; } }
@media (max-width: 840px) { .directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 540px) { .directory-grid { grid-template-columns: minmax(0,1fr); } }

.company-page { min-height: 55vh; }
.company-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: var(--gap, 20px); align-items: start; }
.company-contact-grid .reading-body { width: 100%; }
.company-contact-grid h2:first-child, .request-block h2:first-child { margin-top: 0; }
.contact-details address { font-style: normal; }
.company-requisites { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.company-requisites dt { font-weight: 650; }
.company-requisites dd { margin: 0; }
.service-request { margin-top: 24px; }
.request-form { display: grid; gap: 12px; margin-top: 16px; }
.request-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.request-form label { display: grid; gap: 5px; font-weight: 620; }
.request-form input:not([type="checkbox"]):not([type="hidden"]), .request-form select, .request-form textarea {
  width: 100%; padding: 9px 11px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 400;
}
.request-form textarea { resize: vertical; }
.request-form .request-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 450; }
.request-consent input { flex: none; margin-top: .35em; }
.request-help, .request-status { font-size: .92rem; }
.request-help { color: var(--muted); }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request-status { min-height: 1.5em; margin: 0; }
.request-actions button:disabled { opacity: .65; cursor: wait; }
.cookie-notice {
  position: fixed; z-index: 10; bottom: 14px; right: 14px; width: min(460px, calc(100% - 28px));
  padding: 14px 16px; display: flex; align-items: flex-end; gap: 12px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 36px #27244222;
}
.cookie-notice p { margin: 4px 0; font-size: .9rem; }
.cookie-notice a { color: var(--accent); }
.cookie-notice .reset { flex: none; }
.request-form[hidden], .cookie-notice[hidden] { display: none; }
@media (max-width: 790px) { .company-contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 510px) {
  .request-fields { grid-template-columns: minmax(0, 1fr); }
  .company-requisites { grid-template-columns: minmax(0, 1fr); }
  .company-requisites dd:not(:last-child) { margin-bottom: 5px; }
}
