/* DoAI — "кошторис і печатка": paper documents, blue-black ink, violet-blue seal. */

@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/fonts/unbounded-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url("/fonts/unbounded-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("/fonts/unbounded-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("/fonts/unbounded-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --desk: #f5f7fa;      /* page: cool light grey, not cream */
  --paper: #ffffff;     /* documents */
  --ink: #152033;       /* blue-black ballpoint ink */
  --muted: #5a6577;
  --rule: #d8dee6;
  --seal: #3b3fd0;      /* violet-blue seal ink */
  --seal-soft: #eceefc;
  --error: #b42318;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--text); }
img { max-width: 100%; }
a { color: var(--seal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--seal-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.1; text-wrap: balance; }
h2 { text-wrap: balance; }
h2 { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.18; margin-bottom: 18px; }
h3 { font-family: var(--text); font-weight: 600; font-size: 18px; letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.measure { max-width: 68ch; }

/* Buttons */
.btn { display: inline-block; border: 2px solid var(--seal); border-radius: 6px; padding: 12px 20px; background: var(--seal); color: #fff; font: 600 16px/1.2 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: #2f33b3; border-color: #2f33b3; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: .55; cursor: wait; }

/* Masthead */
.masthead { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wordmark { font: 700 22px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark--small { font-size: 16px; }
.masthead .btn { padding: 9px 14px; font-size: 15px; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); overflow-x: clip; }

/* Hero: headline on the left, the halved estimate on the right */
.hero { display: grid; gap: 40px; padding: 28px 0 56px; align-items: center; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; margin: 20px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 16px; }
.terms b { color: var(--ink); font-weight: 600; }

.estimate { margin: 0; }
.sheet { position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 24px 22px 28px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(21, 32, 51, .35); }
.estimate .sheet { transform: rotate(-1.2deg); max-width: 460px; margin-left: auto; }
.sheet__title { font: 700 15px/1.3 var(--display); margin-bottom: 4px; }
.sheet__subject { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.sheet__table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sheet__table th, .sheet__table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet__table thead th { font-weight: 400; color: var(--muted); font-size: 13px; }
.sheet__table td:last-child, .sheet__table th:last-child { text-align: right; padding-left: 12px; white-space: nowrap; }
.sheet__table tfoot th, .sheet__table tfoot td { font-weight: 600; border-bottom: 0; border-top: 2px solid var(--ink); padding-top: 12px; }
.estimate figcaption { color: var(--muted); font-size: 14px; margin: 18px 0 0 auto; max-width: 460px; }
.estimate .sheet { padding-bottom: 150px; }
.sheet__sign { position: absolute; left: 22px; bottom: 30px; margin: 0; font-size: 14px; color: var(--muted); max-width: calc(100% - 190px); }
.sheet__sign b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }

/* The seal: the one bold moment on the page, stamped in the sign-off zone, clear of the totals */
.seal { position: absolute; right: 26px; bottom: 14px; width: 128px; height: 128px; border-radius: 50%; border: 3px solid var(--seal); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--seal); color: var(--seal); display: grid; place-content: center; text-align: center; transform: rotate(-12deg); opacity: .92; mix-blend-mode: multiply; animation: stamp .42s cubic-bezier(.2, .9, .3, 1.2) .6s both; }
.seal__name { font: 700 13px/1 var(--display); letter-spacing: .02em; }
.seal__value { font: 700 31px/1 var(--display); margin: 4px 0 3px; letter-spacing: -0.03em; }
.seal__note { font: 600 9px/1.2 var(--text); max-width: 84px; margin: 0 auto; }
@keyframes stamp { from { opacity: 0; transform: rotate(-22deg) scale(1.35); } to { opacity: .92; transform: rotate(-12deg) scale(1); } }

/* Sections: separated by space and one rule, no card grid */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }

.reasons { display: grid; gap: 22px 40px; margin: 28px 0 0; }
.reasons div { border-left: 3px solid var(--seal); padding-left: 16px; }
.reasons dt { font-weight: 600; margin-bottom: 4px; }
.reasons dd { margin: 0; color: var(--muted); }

.split { display: grid; gap: 28px; }
.split__aside { color: var(--muted); }
.split__aside h3 { color: var(--ink); margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--seal); border-bottom: 2.5px solid var(--seal); transform: rotate(-45deg); }

.sequence { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; display: grid; gap: 0; }
.sequence li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.sequence li::before { content: counter(step); grid-row: span 2; font: 700 26px/1 var(--display); color: var(--seal); }
.sequence b { color: var(--ink); font-weight: 600; }

.live { background: var(--seal-soft); border-top: 0; margin: 0 calc(var(--gutter) * -1); padding: 48px var(--gutter); border-radius: 6px; }

.cases { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.cases li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.cases p { margin: 0; color: var(--muted); }

.packages { margin: 0; display: grid; gap: 14px; }
.packages div { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 16px 18px; }
.packages dt { font: 700 18px/1.3 var(--display); margin-bottom: 4px; }
.packages dd { margin: 0; color: var(--muted); }

.faq { max-width: 76ch; }
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details:first-child { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--seal); flex: none; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 10px 0 0; color: var(--muted); }

/* Form: another document to fill in */
.sheet--form { max-width: 680px; padding: 30px 24px; }
form { display: grid; gap: 16px; margin-top: 10px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, textarea { width: 100%; font: 400 16px/1.5 var(--text); color: var(--ink); background: var(--desk); border: 1px solid var(--rule); border-bottom: 2px solid var(--muted); border-radius: 4px 4px 0 0; padding: 11px 12px; }
input:focus, textarea:focus { outline: none; border-bottom-color: var(--seal); background: #fff; }
input[type=file] { background: transparent; border: 1px dashed var(--rule); border-radius: 4px; padding: 10px; font-size: 15px; color: var(--muted); cursor: pointer; }
input[type=file]::file-selector-button { font: 600 14px/1.2 var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 8px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]:hover::file-selector-button { background: var(--ink); color: #fff; }
.optional { font-weight: 400; color: var(--muted); font-size: 14px; }
[aria-invalid="true"] { border-bottom-color: var(--error) !important; background: #fff7f6 !important; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.field-error { display: block; color: var(--error); font-weight: 600; font-size: 14px; }
.check .field-error { flex-basis: 100%; }
.check { flex-wrap: wrap; }
.check > span { flex: 1; min-width: 0; }
.btn[aria-busy="true"] { cursor: progress; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--seal); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); margin: 0; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.trace { margin-top: 24px; padding-top: 18px; border-top: 2px solid var(--ink); }
.trace h3, .trace__title { font: 600 18px/1.35 var(--text); margin: 0 0 10px; }
.trace ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.trace__note { font-size: 14px; margin: 14px 0 0; }
.trace--demo { background: var(--paper); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: 0 0 4px 4px; padding: 18px 20px; }
.step { position: relative; padding-left: 30px; font-weight: 600; animation: step-in .3s ease-out both; }
.step::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; }
.step--ok { color: var(--ink); }
.step--ok::before { background: var(--seal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.step--retrying { color: var(--muted); }
.step--retrying::before { border: 2px dashed var(--muted); }
@keyframes step-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.success h3 { font: 700 22px/1.25 var(--display); margin-bottom: 8px; }
.success h3:focus { outline: none; }
.success .btn { margin-top: 22px; }

.sources { font-size: 14px; color: var(--muted); }

/* Footer */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); }
.footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; font-size: 15px; }
.footer a { color: var(--muted); }
body.has-consent { padding-bottom: 240px; }

/* Consent banner */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; max-width: 600px; margin: 0 auto; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 16px 40px -20px rgba(21, 32, 51, .45); padding: 16px; font-size: 15px; z-index: 10; }
.consent p { margin: 0 0 12px; }
.consent__actions { display: flex; gap: 10px; }
.consent .btn { padding: 9px 18px; }
[hidden] { display: none !important; }

/* Simple pages (privacy, 404) */
.notfound { padding-top: 64px; padding-bottom: 120px; }
.notfound .btn { margin-top: 12px; }
.page { max-width: 76ch; padding: 24px 0 56px; }
.page h1 { font-size: clamp(26px, 4.4vw, 40px); margin-bottom: 8px; }
.page h2 { font-size: 20px; margin: 30px 0 10px; }

@media (min-width: 880px) {
  :root { --gutter: 32px; }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 56px; padding: 48px 0 80px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .live { margin: 0; padding: 56px 48px; }
  .cases { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

@media (max-width: 879px) {
  .estimate .sheet { margin: 0 6px 0 0; padding-bottom: 136px; }
  .seal { width: 112px; height: 112px; right: 18px; bottom: 14px; }
  .seal__value { font-size: 27px; }
  .sheet__sign { max-width: calc(100% - 160px); }
  .seal__note { font-size: 9px; max-width: 80px; }
  .estimate figcaption { margin: 18px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal, .step { animation: none; }
  summary::after { transition: none; }
}
