/* ILKSYNC — корпоративный сайт. Без фреймворков. Мобильный макет по умолчанию, сетка с 760px. */
:root {
  --navy: #0c3a52;
  --navy-700: #0a2d41;
  --navy-900: #061d2b;
  --teal: #11968f;
  --teal-dark: #0b746f;
  --teal-soft: #e6f4f2;
  --amber: #e9a23b;
  --ink: #0e1f2a;
  --text: #415969;
  --muted: #74889a;
  --line: #e4eaf0;
  --line-soft: #eff3f7;
  --bg: #ffffff;
  --bg-alt: #f6f9fb;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(14, 31, 42, .05), 0 2px 8px rgba(14, 31, 42, .04);
  --shadow: 0 2px 6px rgba(14, 31, 42, .05), 0 18px 40px -18px rgba(14, 31, 42, .22);
  --shadow-lg: 0 30px 70px -30px rgba(10, 45, 65, .45);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.022em; }
h3, h4 { font-weight: 700; letter-spacing: -0.012em; }
p, ul, ol { margin: 0; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
::selection { background: rgba(17, 150, 143, .22); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .04em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.logo { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 4px 10px rgba(11, 116, 111, .35)); }
.logo rect { fill: url(#lg); }
.logo path { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; background: #fff; }
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; width: 100%; flex-direction: column; gap: 2px; padding: 6px 0 10px; }
.nav-toggle:checked ~ .nav { display: flex; }
.nav a { color: var(--text); font-size: 15px; font-weight: 500; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.nav a.active { color: var(--navy); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 12px; width: 100%; padding-bottom: 12px; }
.nav-toggle:checked ~ .top-actions { order: 3; }
.lang { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.lang:hover { color: var(--navy); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border: 1px solid transparent; border-radius: 11px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .14s, box-shadow .14s, background .14s, border-color .14s, color .14s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #14a59d, #0b746f); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 116, 111, .9); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(11, 116, 111, .95); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { padding: 10px 18px; border-color: #cfe0e5; color: var(--navy); font-size: 14px; background: #fff; }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 52px; background:
  radial-gradient(1100px 460px at 86% -8%, rgba(17, 150, 143, .16), transparent 60%),
  radial-gradient(820px 420px at 4% 0%, rgba(12, 58, 82, .10), transparent 62%),
  linear-gradient(180deg, #f3f8fa 0%, #fbfdfd 62%, #fff 100%);
  border-bottom: 1px solid var(--line-soft); }
.hero::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(12, 58, 82, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 58, 82, .045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%); pointer-events: none; }
.hero-small { padding: 40px 0 36px; }
.hero-grid { position: relative; display: grid; gap: 34px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d8e6ea; color: var(--navy); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(17, 150, 143, .18); }
.hero h1 { margin-top: 20px; font-size: clamp(30px, 5.4vw, 52px); max-width: 17ch; }
.hero-small h1 { font-size: clamp(27px, 4.4vw, 41px); max-width: 24ch; }
.hero-lead { margin-top: 18px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink); font-weight: 500; max-width: 58ch; }
.hero-text { margin-top: 14px; max-width: 70ch; }

/* иллюстрация: поток документов → реестр */
.hero-art { position: relative; display: none; }
.art-stack { position: absolute; left: -6px; top: 18px; z-index: 2; }
.art-doc { position: absolute; display: block; width: 104px; height: 132px; border-radius: 12px; background: #fff; border: 1px solid #dde8ee; box-shadow: var(--shadow); }
.art-doc::before, .art-doc::after { content: ""; position: absolute; left: 14px; right: 30px; height: 7px; border-radius: 4px; background: #e8eef3; }
.art-doc::before { top: 22px; }
.art-doc::after { top: 38px; right: 48px; }
.art-doc-1 { transform: rotate(-9deg) translate(0, 16px); }
.art-doc-2 { transform: rotate(-3deg) translate(16px, 6px); }
.art-doc-3 { transform: rotate(4deg) translate(32px, 0); border-color: #bfe0dc; }
.art-doc-3::before, .art-doc-3::after { background: #d6ece9; }
.art-panel { position: relative; margin-left: 92px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid #dde8ee; box-shadow: var(--shadow-lg); }
.art-panel::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 162, 59, .25), transparent 68%); }
.art-panel-top { display: flex; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.art-panel-top span { width: 9px; height: 9px; border-radius: 50%; background: #e3eaf0; }
.art-panel-top span:first-child { background: #f3c6a0; }
.art-rows { display: grid; gap: 9px; padding-top: 12px; }
.art-row { display: flex; align-items: center; gap: 10px; }
.art-dot { width: 9px; height: 9px; border-radius: 50%; background: #d7e1e9; flex: none; }
.art-dot.ok { background: var(--teal); }
.art-dot.wait { background: var(--amber); }
.art-row b { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, #e9eff4, #f4f8fa); }
.art-row u { display: block; margin-left: auto; width: 34px; height: 9px; border-radius: 5px; background: #eef3f7; }

/* ---------- секции ---------- */
.section { padding: 54px 0; }
.section-tight { padding: 8px 0 40px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section h2 { font-size: clamp(24px, 3.1vw, 34px); max-width: 24ch; }
.section-lead { margin-top: 13px; max-width: 70ch; color: var(--muted); font-size: 17px; }
.body-text { margin-top: 15px; }
.body-text + .body-text { margin-top: 13px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }

.card { position: relative; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--teal), #5ac8bf); opacity: 0; transition: opacity .18s; }
.card h3 { font-size: 18.5px; margin-top: 16px; }
.card p { margin-top: 9px; font-size: 15px; }
.card .bullets { margin-top: 12px; }
.card-icon { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(140deg, #e8f6f4, #d7eeeb); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(17, 150, 143, .12); }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-num { position: absolute; top: 22px; right: 24px; font-family: var(--display); font-size: 14px; font-weight: 800; color: #d3dfe7; }
.card-link { display: block; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.card-link:hover { text-decoration: none; border-color: #b7dcd8; box-shadow: var(--shadow); transform: translateY(-3px); }
.card-link:hover::after { opacity: 1; }
.card-more { display: inline-block; margin-top: 16px; color: var(--teal-dark); font-weight: 600; font-size: 14.5px; }
.card-link:hover .card-more { text-decoration: underline; }

.feature { position: relative; padding: 22px 24px 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--teal), #7fd4cc); }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 7px; font-size: 15px; }

.bullets { margin: 16px 0 0; padding-left: 0; list-style: none; }
.bullets li { position: relative; margin: 8px 0; padding-left: 24px; font-size: 15px; break-inside: avoid; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); opacity: .55; transform: rotate(45deg); }
.bullets-num { counter-reset: n; }
.bullets-num li { padding-left: 34px; }
.bullets-num li::before { counter-increment: n; content: counter(n); left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; transform: none; opacity: 1; }

.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; display: flex; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, var(--navy), #14536f); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 7px; font-size: 14.5px; }

.section-dark { position: relative; overflow: hidden; background: linear-gradient(160deg, #0c3a52 0%, #0a2b3e 100%); color: #c6dbe5; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 85% 10%, rgba(17, 150, 143, .3), transparent 65%); }
.section-dark > .wrap { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lead { color: #a4c0ce; }
.flow { display: grid; gap: 14px; margin-top: 30px; }
.flow-item { position: relative; padding: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); }
.flow-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--amber); color: #3a2405; font-family: var(--display); font-weight: 800; font-size: 13px; }
.flow-item h3 { margin-top: 12px; font-size: 16.5px; }
.flow-item p { margin-top: 7px; font-size: 14px; }

.faq { margin-top: 26px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: border-color .18s; }
.faq details[open] { border-color: #bfdedb; }
.faq summary { padding: 17px 48px 17px 20px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 20px 18px; font-size: 15px; }

.note { position: relative; padding: 20px 22px 20px 24px; background: linear-gradient(180deg, #fdf8ee, #fffdf9); border: 1px solid #f0e0c2; border-radius: var(--radius); }
.note::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.note h3 { font-size: 16.5px; margin-bottom: 7px; }
.note p { font-size: 15px; }

.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); }
.contact-list span { min-width: 110px; color: var(--muted); font-size: 14px; }

/* ---------- форма заявки ---------- */
.section-cta { position: relative; overflow: hidden; background: linear-gradient(155deg, #0c3a52 0%, #092738 100%); }
.section-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 320px at 12% 0%, rgba(17, 150, 143, .32), transparent 62%); }
.section-cta > .wrap { position: relative; }
.section-cta h2 { color: #fff; }
.section-cta .section-lead { color: #a4c0ce; }
.calc { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: block; margin-top: 14px; }
.field-grid .field { margin-top: 0; }
.field > span { display: block; margin-bottom: 7px; color: #cde0e9; font-size: 13.5px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07); color: #fff; font: inherit; font-size: 15px; transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255, 255, 255, .12); border-color: rgba(122, 214, 206, .7); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9fc0d0 50%), linear-gradient(135deg, #9fc0d0 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { color: #10212c; }
.form-hint { margin-top: 16px; color: #8fb0c1; font-size: 13px; }
.calc-result { margin-top: 20px; padding: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.calc-result h3 { color: #fff; font-size: 17px; }
.calc-result pre { margin: 13px 0 0; padding: 15px; background: rgba(4, 23, 33, .55); border-radius: var(--radius-sm); color: #dce9f0; font-size: 14px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.section-cta .btn-outline { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.section-cta .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- подвал ---------- */
.footer { padding: 46px 0 28px; background: var(--navy-900); color: #93adbb; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 13px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin: 8px 0; font-size: 14px; }
.footer a { color: #c8dce6; }
.footer a:hover { color: #fff; }
.footer .muted { color: #76909f; }
.footer-note { margin-top: 15px; font-size: 13px; line-height: 1.6; max-width: 46ch; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; }

@media (min-width: 760px) {
  .top-row { flex-wrap: nowrap; min-height: 74px; }
  .nav-burger { display: none; }
  .nav { display: flex; flex-direction: row; width: auto; gap: 22px; padding: 0; margin-left: 10px; }
  .nav a { padding: 0; border: none; font-size: 14.5px; }
  .nav a:hover { color: var(--navy); text-decoration: none; }
  .top-actions { width: auto; margin-left: auto; padding: 0; }
  .hero { padding: 78px 0 72px; }
  .hero-small { padding: 58px 0 46px; }
  .section { padding: 76px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .bullets-cols { columns: 2; column-gap: 36px; }
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .field-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { padding: 28px; }
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 48px; }
  .hero-art { display: block; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { flex-direction: column; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow-item::after { content: ""; position: absolute; right: -19px; top: 50%; width: 14px; height: 2px; background: rgba(255, 255, 255, .28); }
  .flow-item:last-child::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card-link { transition: none; }
  .card-link:hover, .btn:hover { transform: none; }
}
@media print { .top, .footer, .section-cta, .hero-art { display: none; } .hero, .section-dark { background: #fff; color: #000; } }
