* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { font-weight: 400; text-align: left; }
th + th, td + td { text-align: right; }
th, td { padding: .7rem 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.btn { display: inline-block; border: 0; text-decoration: none; }
.switch { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.switch button { border: 0; background: none; padding: .35rem 0; }
.cause { margin-top: 1.25rem; }
.note { margin-top: 1rem; font-size: .9375rem; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks button { display: flex; justify-content: space-between; gap: 1rem; width: 100%; text-align: left; border: 0; background: none; padding: .85rem 0; }
.checks button::after { content: "+"; }
form { display: grid; gap: 1.25rem; }
label { display: grid; gap: .25rem; }
input:not([type=checkbox]) { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: .4rem 0; width: 100%; }
.agree { display: flex; gap: .6rem; align-items: flex-start; }
.agree input { width: 18px; height: 18px; margin: .2rem 0 0; flex: none; }
.trap { position: absolute; left: -9999px; }
.status { font-size: 1rem; }
.status:empty { display: none; }
dialog { width: min(460px, calc(100vw - 2rem)); padding: 2rem; opacity: 0; translate: 0 12px;
  transition: opacity .2s, translate .2s, display .2s allow-discrete, overlay .2s allow-discrete; }
dialog[open] { opacity: 1; translate: 0; }
@starting-style { dialog[open] { opacity: 0; translate: 0 12px; } }
dialog p { margin-bottom: 1.5rem; }
dialog h2 { margin-bottom: 1.25rem; }
.close { position: absolute; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem; border: 0; background: none; font-size: 1.75rem; line-height: 1; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, ::backdrop { transition: none !important; animation: none !important; } }
/* инструменты */
.tool { display: grid; gap: 1rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
.s-vat .two { grid-template-columns: 1.7fr 1fr; }
select { font: inherit; color: inherit; background: none; border: 1px solid currentColor; border-radius: 0; padding: .55rem .5rem; width: 100%; }
select option { color: #111; }
input[type=range] { width: 100%; accent-color: currentColor; margin: .4rem 0 0; padding: 0; border: 0; }
output { font-weight: 700; }
.res { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.res b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.res.big b { white-space: normal; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.dates b { white-space: nowrap; }
.dates span { text-align: right; }
.q-a { display: flex; gap: .75rem; }
.q-b { padding: .6rem 1.4rem; border: 1px solid currentColor; background: none; }
.q-t { font-weight: 700; }
.q-w { margin: 0; padding-left: 1.2rem; }
details { padding: .7rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: .5rem; }
.call { position: fixed; right: 1rem; bottom: 1rem; z-index: 5; }
@media (max-width: 520px) { .two, .s-vat .two { grid-template-columns: 1fr; } }
/* Сервис: яркие скруглённые блоки */
:root { --ink: #14122B; --violet: #5B3DF5; --lime: #C9F24C; --coral: #FF6B4A; --bg: #F1EFFA; }
body { background: var(--bg); color: var(--ink); font: 500 1.0625rem/1.5 'Onest', Arial, sans-serif; padding: 1rem; max-width: 1240px; margin: 0 auto; }
h1, h2 { font-weight: 800; letter-spacing: -.02em; }
header { background: var(--violet); color: #fff; border-radius: 32px; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem 3rem; align-items: start; }
.logo { font: 800 clamp(1.9rem, 8.6vw, 3.5rem)/1 'Tektur', 'Onest', sans-serif; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; grid-column: 1 / -1; margin-bottom: 2rem; }
.n1 { color: var(--coral); }
.n2 { color: var(--ink); }
.n3 { color: var(--lime); }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); line-height: 1.04; grid-column: 1; }
.lead { font-size: 1.25rem; grid-column: 1; margin-top: .5rem; }
header .btn { grid-column: 1; justify-self: start; margin-top: 1rem; }
.btn { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 1.05rem 1.75rem; font-weight: 700; transition: scale .15s; }
.btn:hover { scale: 1.04; }
.chat { grid-column: 2; grid-row: 2 / span 3; background: #fff; color: var(--ink); border-radius: 24px; padding: 1.25rem; display: grid; gap: .75rem; align-self: center; rotate: 1.5deg; }
.chat p { padding: .7rem 1rem; border-radius: 18px; max-width: 88%; font-size: 1rem; }
.chat .me { background: var(--bg); justify-self: end; }
.chat .bot { background: var(--lime); }
.chat small { font-size: .8125rem; color: #5a5870; }
main { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 1rem; }
section { border-radius: 32px; padding: clamp(1.5rem, 3vw, 2.5rem); }
section h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.1; margin-bottom: 1.25rem; }
.s-act { grid-column: span 4; background: #fff; }
.s-checks { grid-column: span 2; background: var(--ink); color: #fff; }
.s-steps { grid-column: span 3; background: var(--lime); }
.s-price { grid-column: span 3; background: #fff; }
.s-cta { grid-column: span 6; background: var(--coral); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.s-cta h2 { margin: 0; }
.s-cta .btn { background: var(--ink); color: #fff; }
.switch button { background: var(--bg); padding: .45rem 1rem; border-radius: 999px; }
.switch button[aria-pressed="true"] { background: var(--violet); color: #fff; }
th { color: #5a5870; }
th, td { border-bottom: 1px solid var(--bg); }
.bad td { color: #C4301A; font-weight: 700; }
.cause.bad { color: #C4301A; font-weight: 700; }
.note { color: #5a5870; }
.checks button { border-bottom: 1px solid rgb(255 255 255 / .18); }
.checks li:last-child button { border: 0; }
.checks button::after { color: var(--lime); font-weight: 800; }
.checks button:hover { color: var(--lime); }
ol { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: .9rem; }
ol li { counter-increment: n; display: flex; gap: .9rem; align-items: flex-start; }
ol li::before { content: counter(n); flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.s-price p { font-size: 1.25rem; }
footer { padding: 1.5rem .5rem; color: #5a5870; font-size: .9375rem; }
dialog { border: 0; border-radius: 28px; color: var(--ink); }
dialog .btn { background: var(--violet); color: #fff; }
dialog::backdrop { background: rgb(20 18 43 / .6); }
label { font-size: .9375rem; color: #5a5870; }
input:not([type=checkbox]) { color: var(--ink); background: var(--bg); border: 0; border-radius: 14px; padding: .75rem 1rem; }
.agree input { accent-color: var(--violet); }
@media (max-width: 860px) {
  body { padding: .5rem; }
  header { grid-template-columns: 1fr; }
  .chat { grid-column: 1; grid-row: auto; rotate: 0deg; margin-top: 1rem; }
  main { grid-template-columns: 1fr; }
  section { grid-column: 1 !important; }
  .btn { width: 100%; text-align: center; }
}
/* инструменты */
.s-cost { grid-column: span 4; background: #fff; }
.s-staff { grid-column: span 2; background: var(--violet); color: #fff; }
.s-vat { grid-column: span 2; background: #fff; }
.s-dates { grid-column: span 2; background: var(--ink); color: #fff; }
.s-quiz { grid-column: span 2; background: var(--lime); }
.s-faq { grid-column: span 6; background: #fff; }
.s-cost input[type=range], .s-cost .agree input { accent-color: var(--violet); }
.s-staff input[type=range] { accent-color: var(--lime); }
.res b { font-size: 1.5rem; font-weight: 800; }
.s-cost .res b { color: var(--violet); }
.s-staff .res.big b { color: var(--lime); font-size: 1.25rem; }
select { background: var(--bg); color: var(--ink); border: 0; border-radius: 14px; padding: .75rem .9rem; }
#v-sum { background: var(--bg); border: 0; border-radius: 14px; padding: .75rem 1rem; }
.s-dates select { background: rgb(255 255 255 / .12); color: #fff; }
.s-dates label, .s-cost label, .s-vat label { color: inherit; }
.s-staff label, .s-staff .note, .s-dates .note { color: inherit; }
.dates li { border-bottom: 1px solid rgb(255 255 255 / .18); }
.q-b { border: 0; background: var(--ink); color: #fff; border-radius: 999px; }
.q-b:hover { background: var(--violet); }
.call { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.3rem; font-weight: 700; box-shadow: 0 8px 20px rgb(20 18 43 / .28); }
details + details { border-top: 1px solid var(--bg); }
/* мозаика по бокам */
@media (min-width: 1100px) {
  html { background: url(tile.svg) left top / 96px auto repeat-y, url(tile.svg) right top / 96px auto repeat-y, var(--bg); }
  body { background: none; max-width: min(1240px, calc(100vw - 232px)); }
  .call { right: 7rem; }
}
/* значок: на светлом поле справа от мозаики, где поле узкое, плашкой на мозаике, без полей скрыт */
.corner { display: none; }
@media (min-width: 1100px) {
  .corner { display: block; position: fixed; top: 0; left: 0; z-index: 4; width: 96px; height: 96px; padding: 10px; background: var(--bg); }
}
@media (min-width: 1650px) {
  .corner { top: 16px; left: 112px; width: clamp(96px, calc(50vw - 728px), 384px); height: auto; padding: 0; background: none; }
}
/* услуги */
.s-services { grid-column: span 6; background: #fff; }
.s-services .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; align-items: start; }
.s-services ul { margin: .5rem 0 .25rem; padding-left: 1.1rem; font-weight: 500; font-size: 1rem; }
.s-services li + li { margin-top: .3rem; }
.tag { display: inline-block; padding: 0 .4rem; border-radius: 6px; background: var(--bg); font-size: .8125rem; color: #3d3a55; }
@media (max-width: 860px) { .s-services .list { grid-template-columns: 1fr; } .s-services .list > div + div { border-top: 1px solid var(--bg); } }
/* робот говорит галочкой и моргает */
.mouth, .eyes { transform-box: fill-box; transform-origin: center; }
.mouth { animation: talk 5s ease-in-out infinite; }
.eyes { animation: blink 5s ease-in-out infinite; }
@keyframes talk {
  0%, 26%, 100% { transform: none; }
  4% { transform: scaleY(.45); }
  8% { transform: scaleY(1.2); }
  12% { transform: scaleY(.55); }
  16% { transform: scaleY(1.15); }
  20% { transform: scaleY(.6); }
}
@keyframes blink {
  0%, 60%, 66%, 100% { transform: none; }
  63% { transform: scaleY(.1); }
}
