/* Remontstuudio (демо-сайт TelliApp) — style.css
   Палитра: бирюзовый + белый. Тема: [data-theme="light|dark"] на <html>, выставляется до отрисовки (js/theme-init.js). */

:root {
  --brand: #089781;          /* заливки: кнопки, акценты */
  --brand-600: #067d6b;
  --accent: #089781;         /* цвет иконок и текста-акцента */
  --accent-2: #2bdcc2;       /* светлый синий для градиентов */
  --tint: #e7faf8;           /* голубоватая подложка иконок */
  --bg: #ffffff;
  --bg-alt: #f2fcfb;
  --surface: #ffffff;
  --text: #0b2e2d;
  --muted: #588681;
  --line: #e0f3f1;
  --ok: #16a06a;
  --shadow-sm: 0 1px 2px rgb(8 80 78 / .05), 0 6px 18px -6px rgb(8 80 78 / .10);
  --shadow-md: 0 2px 4px rgb(8 80 78 / .04), 0 18px 40px -16px rgb(8 120 115 / .22);
  --shadow-lg: 0 30px 70px -28px rgb(8 120 115 / .38);
  --hero-glow: radial-gradient(60% 60% at 80% 10%, rgb(43 220 194 / .16), transparent 70%), radial-gradient(40% 40% at 0% 30%, rgb(8 151 129 / .08), transparent 70%);
  --r-sm: 12px; --r: 20px; --r-lg: 28px;
  --bar-bg: rgb(255 255 255 / .92);
  --tab-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --brand: #1ac6b2;
  --brand-600: #15ad9c;
  --accent: #61f6e2;
  --accent-2: #4aead4;
  --tint: #154e4b;
  --bg: #0a2525;
  --bg-alt: #0d2f2f;
  --surface: #123a3a;
  --text: #e9faf9;
  --muted: #95c1be;
  --line: #1f5251;
  --ok: #34c58a;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .25);
  --shadow-md: 0 18px 40px -16px rgb(0 0 0 / .55);
  --shadow-lg: 0 30px 70px -28px rgb(0 0 0 / .7);
  --bar-bg: rgb(14 49 49 / .92);
  --hero-glow: radial-gradient(60% 60% at 80% 5%, rgb(43 220 194 / .20), transparent 70%), radial-gradient(40% 40% at 0% 35%, rgb(26 198 178 / .12), transparent 70%);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s;
}
main { animation: pageFade .5s ease both; }
body.lock { overflow: hidden; }
@keyframes pageFade { from { opacity: 0; } }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-2) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.center { display: flex; justify-content: center; margin-top: 28px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.lucide { width: 1.25em; height: 1.25em; stroke-width: 2; flex: none; }

h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: 1.15rem; line-height: 1.3; }
.grad { background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .grad { background-image: linear-gradient(95deg, #8cfff1, #3fe6d0); }

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(24px, 4vw, 48px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 680px; margin-bottom: 36px; }
.section__head h2 { margin-top: 8px; }
.section__head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* мотив «линии скорости» из буквы T логотипа */
.speed { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.speed i { display: block; height: 3px; border-radius: 2px; background: var(--accent); }
.speed i:nth-child(1) { width: 16px; } .speed i:nth-child(2) { width: 10px; margin-left: 4px; } .speed i:nth-child(3) { width: 6px; margin-left: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; color: var(--muted); font-size: .9rem; max-width: 760px; }
.note .lucide { margin-top: 3px; color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--brand)); background-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--brand), inset 0 1px 0 rgb(255 255 255 / .22); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-white { background: #fff; color: #067d6b; box-shadow: 0 10px 24px -12px rgb(0 0 0 / .4); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { border: 1.5px solid rgb(255 255 255 / .55); color: #fff; }
.btn-outline-white:hover { background: rgb(255 255 255 / .12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn:disabled { opacity: .6; pointer-events: none; }


/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); background: var(--bar-bg); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgb(8 80 78 / .25); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.nav { display: none; }
.header__tools { display: flex; align-items: center; gap: 8px; }
.header__book { display: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button .lucide { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.seg.theme button span { display: none; }
.seg.theme button { padding: 0 9px; }

/* ---------- bottom app bar (mobile) ---------- */
.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; width: 100%; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 8px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); background: var(--bar-bg); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-top: 1px solid var(--line); transform: translateZ(0); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--muted); border-radius: 16px; transition: color .2s, background .2s; }
.tabbar .lucide { width: 22px; height: 22px; }
.tabbar [aria-current="page"], .tabbar .is-active { color: var(--accent); background: var(--tint); }
.tabbar__main .lucide { color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--brand)); width: 26px; height: 26px; padding: 9px; border-radius: 16px; margin-top: -18px; box-shadow: 0 10px 22px -8px var(--brand); border: 3px solid var(--surface); box-sizing: content-box; }
.tabbar__main[aria-current="page"] { background: none; }
.tabbar__main span { margin-top: 0; }
.sheet { position: fixed; z-index: 45; inset: 0; display: flex; align-items: flex-end; background: rgb(5 30 30 / .45); backdrop-filter: blur(3px); animation: fade .2s both; }
.sheet__panel { width: 100%; margin: 0 12px calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); padding: 10px 12px 12px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease) both; }
.sheet__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 8px; }
.sheet a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; font-weight: 700; }
.sheet a:hover, .sheet a[aria-current] { background: var(--tint); color: var(--accent); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---------- FAB ---------- */
.fab { position: fixed; z-index: 48; right: 16px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--brand)); box-shadow: 0 14px 30px -8px var(--brand), 0 0 0 4px color-mix(in srgb, var(--bg) 70%, transparent); transition: transform .25s var(--ease); }
.fab__btn .lucide { width: 24px; height: 24px; }
.fab__btn .i-close { display: none; }
.fab.open .fab__btn { transform: rotate(90deg); }
.fab.open .fab__btn .i-open { display: none; }
.fab.open .fab__btn .i-close { display: block; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.fab__item { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .2s, transform .25s var(--ease); }
.fab__item .lucide { color: var(--accent); }
.fab.open .fab__menu { pointer-events: auto; }
.fab.open .fab__item { opacity: 1; transform: none; }
.fab.open .fab__item:nth-child(2) { transition-delay: .04s; } .fab.open .fab__item:nth-child(1) { transition-delay: .08s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); background: var(--hero-glow); }
.hero::after { content: ''; position: absolute; right: 0; top: 0; width: 55%; height: 100%; pointer-events: none; opacity: .5; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
  background: linear-gradient(var(--accent-2), var(--accent-2)) 100% 12% / 260px 3px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 100% calc(12% + 14px) / 150px 3px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 100% calc(12% + 28px) / 80px 3px no-repeat,
             linear-gradient(var(--accent-2), var(--accent-2)) 100% 88% / 200px 3px no-repeat, linear-gradient(var(--accent-2), var(--accent-2)) 100% calc(88% + 14px) / 110px 3px no-repeat; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 36px; align-items: center; }
.hero__text > * + * { margin-top: 20px; }
.hero__tagline { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.hero__sub { color: var(--muted); font-size: 1.05rem; max-width: 540px; }
.hero__text .btn-row { margin-top: 28px; }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); position: relative; }
.hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(5 50 49 / .55)); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.glass { background: var(--surface); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border: 1px solid color-mix(in srgb, var(--line) 70%, #fff 30%); box-shadow: var(--shadow-md); }
.hero__logo { position: absolute; left: 16px; bottom: 16px; padding: 12px 18px; border-radius: 18px; background: rgb(6 54 52 / .55); border-color: rgb(255 255 255 / .22); }
.chip { background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 16px; font-size: .85rem; line-height: 1.25; animation: float 6s ease-in-out infinite; }
.chip b { display: block; font-weight: 800; } .chip small { color: var(--muted); font-size: .76rem; }
.chip--status { top: 14px; right: 14px; }
.chip--warranty { right: 14px; bottom: 16px; display: none; animation-delay: -3s; }
.chip--warranty .lucide { color: var(--accent); width: 26px; height: 26px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(22 160 106 / .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(22 160 106 / 0); } 100% { box-shadow: 0 0 0 0 rgb(22 160 106 / 0); } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- features / popular / trust ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature h3 { margin-top: 16px; font-size: 1.05rem; }
.feature p { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 15px; background: var(--tint); color: var(--accent); }
.ico .lucide { width: 24px; height: 24px; }
.popular { display: grid; gap: 14px; }
.pcard { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pcard .ico { margin-bottom: 10px; }
.pcard p { color: var(--muted); font-size: .92rem; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); }
.arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--accent); transition: background .2s, color .2s, transform .3s var(--ease); }
.pcard:hover .arrow { background: var(--brand); color: #fff; transform: rotate(45deg); }
.price { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.price small { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price--text { font-size: .95rem; color: var(--accent); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.trust .lucide { color: var(--accent); }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding: clamp(36px, 7vw, 80px) 0 clamp(8px, 2vw, 24px); background: var(--hero-glow); }
.page-hero h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); margin-top: 16px; max-width: 800px; }
.page-hero__sub { margin-top: 16px; color: var(--muted); font-size: 1.08rem; max-width: 640px; }

/* ---------- services ---------- */
.featured { display: grid; gap: 0; margin-bottom: 18px; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: linear-gradient(135deg, #056d5e 0%, #089781 55%, #1bcbb0 100%); box-shadow: var(--shadow-lg); position: relative; }
[data-theme="dark"] .featured { background: linear-gradient(135deg, #0c524c 0%, #0f7e71 55%, #17aa98 100%); border: 1px solid #1d756d; }
.featured::before { content: ''; position: absolute; right: -20px; top: 28px; width: 220px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .25); box-shadow: 40px 16px 0 -0px rgb(255 255 255 / .18), 90px 32px 0 0 rgb(255 255 255 / .12); }
.featured__main { position: relative; padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.featured__main p { color: rgb(255 255 255 / .82); max-width: 520px; }
.featured h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(6px); }
.badge .lucide { width: 14px; height: 14px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: .95rem; margin: 6px 0; }
.ticks .lucide { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.featured__prices { position: relative; padding: 8px 24px 24px; }
.featured__prices li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid rgb(255 255 255 / .18); }
.featured__prices h4 { font-size: 1rem; } .featured__prices p { font-size: .85rem; color: rgb(255 255 255 / .72); }
.featured .price small { color: rgb(255 255 255 / .7); } .featured .price--text { color: #fff; }
.accordion { display: grid; gap: 12px; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: border-color .3s, box-shadow .3s; }
.acc.open { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: var(--shadow-md); }
.acc__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; }
.acc__title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.acc__title b { font-size: 1.05rem; line-height: 1.3; } .acc__title small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.chev { transition: transform .35s var(--ease); color: var(--muted); }
.acc.open .chev { transform: rotate(180deg); color: var(--accent); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc.open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.price-list { padding: 0 18px 8px; }
.price-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list h4 { font-size: .98rem; font-weight: 700; } .price-list p { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.cta-band { display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 5vw, 48px); border-radius: var(--r-lg); color: #fff; background: linear-gradient(120deg, #056d5e, #089781 60%, #1bcbb0); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #0c524c, #0f7e71 60%, #17aa98); border: 1px solid #1d756d; }
.cta-band p { color: rgb(255 255 255 / .82); margin-top: 8px; }

/* ---------- how ---------- */
.steps { display: grid; gap: 16px; max-width: 860px; counter-reset: s; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; }
.step::before { content: ''; position: absolute; left: 21px; top: 48px; bottom: -18px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 12px); }
.step:last-child::before { display: none; }
.step__num { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--brand)); box-shadow: 0 8px 18px -8px var(--brand); z-index: 1; }
.step__ico { display: none; }
.step > div { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.step p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.docs { display: grid; gap: 28px; }
.docwrap figcaption { margin-top: 12px; text-align: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.paper { position: relative; padding: 20px; border-radius: 16px; background: #fff; color: #143a38; font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-md); border: 1px solid #e3f4f2; overflow: hidden; transition: transform .35s var(--ease); flex: 1; }
.docwrap { display: flex; flex-direction: column; }
.docwrap:hover .paper { transform: translateY(-6px) rotate(-.4deg); }
[data-theme="dark"] .paper { border-color: #2a6665; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .7); }
.paper__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #089781; }
.paper__head img { height: 18px; width: auto; }
.paper__no { font: 700 11px/1 ui-monospace, 'SF Mono', Consolas, monospace; color: #588681; letter-spacing: .04em; }
.paper h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.kv > div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #dbf0ee; }
.kv dt { color: #6a9591; font-weight: 600; } .kv dd { margin: 0; font-weight: 700; }
.kv--small { margin-top: 12px; }
.sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; color: #6a9591; font-weight: 600; }
.sign svg { width: 150px; height: 44px; color: #0a7871; border-bottom: 1px solid #9dc7c2; }
.stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 10px; border: 2px solid #089781; color: #089781; border-radius: 8px; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-4deg); }
.stamp .lucide { width: 14px; height: 14px; }
.paper:has(.stamp--paid) { padding-bottom: 58px; }
.stamp--paid { border-color: #16a06a; color: #16a06a; position: absolute; right: 18px; bottom: 18px; margin: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e6f6f5; }
.mini-list .total { border-bottom: 0; border-top: 2px solid #143a38; margin-top: 4px; font-size: 14px; font-weight: 800; }
.photos { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: #6a9591; font-weight: 600; font-size: 12px; }
.photos i { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #cdeae7, #8fcfc9); }
.photos i:nth-child(2) { background: linear-gradient(135deg, #b9e0dc, #5fb0a8); } .photos i:nth-child(3) { background: linear-gradient(135deg, #ddf2f0, #a3d8d2); }
.photos span { margin-left: 6px; }
.paper--mail { padding: 0; background: #f4fcfb; }
.mail__bar { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid #e3f4f2; }
.mail__bar .lucide { color: #089781; width: 22px; height: 22px; }
.mail__bar b { display: block; font-size: 14px; } .mail__bar small { color: #6a9591; }
.mail__body { padding: 18px; } .mail__body p + p { margin-top: 10px; }
.mail__btn { display: inline-block; margin-top: 16px; padding: 10px 20px; border-radius: 999px; background: #089781; color: #fff; font-weight: 700; }
.mail__foot { margin-top: 18px; color: #6a9591; font-size: 12px; border-top: 1px solid #e3f4f2; padding-top: 12px; }
.paper--tg { padding: 0; background: #c9ece8 linear-gradient(160deg, #cff0ec, #b7e6e1); display: flex; flex-direction: column; }
.tg__bar { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e3f4f2; }
.tg__ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2bdcc2, #089781); }
.tg__bar b { display: block; } .tg__bar small { color: #6a9591; }
.tg__chat { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bubble { align-self: flex-start; max-width: 88%; padding: 8px 12px 18px; border-radius: 14px 14px 14px 4px; background: #fff; position: relative; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.bubble em { position: absolute; right: 10px; bottom: 4px; font-size: 10px; font-style: normal; color: #8ab4b0; }
.bubble--out { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #dcfff9; }
.tg__btn { display: block; margin-top: 8px; padding: 7px; text-align: center; border-radius: 8px; background: #e5faf8; color: #089781; font-weight: 800; }

.badge--sm { position: absolute; left: 10px; top: 10px; background: var(--brand); }

/* ---------- blog ---------- */
.posts { display: grid; gap: 18px; margin-bottom: 28px; }
.post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.post__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(5 50 49 / .35)); }
.post__img .badge { z-index: 1; background: var(--brand); }
.post__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__body p { color: var(--muted); font-size: .92rem; flex: 1; }

/* ---------- status ---------- */
.status { max-width: 780px; margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: clamp(20px, 4vw, 32px); }
.status__form { display: grid; gap: 16px; }
label > span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
input, textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
input:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 22%, transparent); }
input.invalid { border-color: #e5484d; }
.hint { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; }
.hint .lucide { width: 16px; height: 16px; color: var(--accent); }
.form__err { color: #e5484d; font-weight: 700; font-size: .88rem; }
#status-result { margin-top: 22px; }
.result { display: flex; flex-direction: column; gap: 24px; animation: rise .5s var(--ease) both; }
.result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.result__head small { color: var(--muted); font-weight: 700; } .result__head h3 { font-size: 1.4rem; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--tint); color: var(--accent); font-weight: 800; font-size: .88rem; }
.stages { display: grid; gap: 0; }
.stages li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--muted); font-weight: 700; font-size: .92rem; }
.stages li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 38px; width: 2px; height: calc(100% - 20px); background: var(--line); }
.stages li.done:not(:last-child)::after { background: var(--brand); }
.stages__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; background: var(--bg-alt); border: 2px solid var(--line); z-index: 1; }
.stages .done { color: var(--text); } .stages .done .stages__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stages .done .lucide { width: 16px; height: 16px; stroke-width: 3; }
.stages .now { color: var(--accent); } .stages .now .stages__dot { border-color: var(--accent-2); color: var(--accent); background: var(--surface); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 22%, transparent); animation: ring 2s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent-2) 8%, transparent); } }
.result__info { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--bg-alt); }
.result__info small { display: block; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.result__info b { font-size: 1.2rem; display: block; } .result__info p { color: var(--muted); font-size: .92rem; }
.result--none { align-items: flex-start; }
.result--none p { color: var(--muted); max-width: 520px; }
.skeleton { min-height: 280px; background: linear-gradient(100deg, var(--surface) 30%, var(--bg-alt) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- contacts ---------- */
.contacts { display: grid; gap: 20px; margin-bottom: 20px; align-items: start; }
.contacts__info { display: grid; gap: 14px; }
.contact-list { display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s; }
.contact:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.contact small { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; } .contact b { font-size: 1.02rem; }
.contact > span { min-width: 0; } .contact b { overflow-wrap: anywhere; } /* длинная почта переносится, а не раздвигает страницу */
.hours h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; } .hours .lucide { color: var(--accent); }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.booking h3 { font-size: 1.4rem; } .booking .muted { margin: 6px 0 20px; }
.form { display: grid; gap: 14px; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); height: 340px; }
.reviews { display: grid; gap: 14px; }
.review { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { color: var(--text); flex: 1; font-size: .98rem; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: .92rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--accent-2), var(--brand)); color: #fff; font-weight: 800; }

/* ---------- modal ---------- */
.modal { width: min(480px, 100% - 24px); max-height: calc(100dvh - 24px); overflow: auto; margin: auto; padding: 26px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgb(5 30 30 / .6); backdrop-filter: blur(5px); }
.modal[open] { animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal h3 { font-size: 1.5rem; padding-right: 40px; } .modal .muted { margin: 6px 0 20px; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); color: var(--muted); }
.modal__close:hover { color: var(--text); }
.thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 0; }
.thanks p { color: var(--muted); max-width: 320px; }
.thanks h4 { font-size: 1.35rem; }
.thanks__ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #2fcf94, var(--ok)); animation: pop .5s var(--ease) both; }
.thanks__ico .lucide { width: 32px; height: 32px; stroke-width: 3; }
.thanks__ico--warn { background: linear-gradient(180deg, var(--accent-2), var(--brand)); }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 56px 0 28px; background: #072b29; color: #b9e1de; }
[data-theme="dark"] .site-footer { background: #061c1c; border-top: 1px solid var(--line); }
.site-footer .logo-for-light { display: none !important; } .site-footer .logo-for-dark { display: block !important; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin: 14px 0 18px; font-weight: 700; color: #e6faf8; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li { margin: 8px 0; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; } .footer__contacts .lucide { margin-top: 3px; color: #61f6e2; width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; color: #8abcb8; }
.demo-tag { color: #61f6e2; font-weight: 700; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.features .reveal:nth-child(2), .popular .reveal:nth-child(2), .posts .reveal:nth-child(2), .docs .reveal:nth-child(2), .reviews .reveal:nth-child(2), .hero__text .reveal:nth-child(3) { transition-delay: .08s; }
.features .reveal:nth-child(3), .popular .reveal:nth-child(3), .posts .reveal:nth-child(3), .docs .reveal:nth-child(3), .reviews .reveal:nth-child(3), .hero__text .reveal:nth-child(4) { transition-delay: .16s; }
.features .reveal:nth-child(4), .docs .reveal:nth-child(4), .reviews .reveal:nth-child(4), .hero__text .btn-row { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- ≥ 600 ---------- */
@media (min-width: 600px) {
  .popular, .posts { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .chip--warranty { display: flex; }
  .result__info { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .stages { grid-template-columns: repeat(6, 1fr); }
  .stages li { flex-direction: column; text-align: center; gap: 10px; padding: 0 2px; font-size: .8rem; }
  .stages li:not(:last-child)::after { left: calc(50% + 20px); top: 15px; width: calc(100% - 40px); height: 2px; }
}

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  .seg.theme button span { display: none; }
  .features { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .featured { grid-template-columns: 1.1fr 1fr; }
  .featured__main { padding: 40px; } .featured__prices { padding: 24px 40px 24px 0; display: flex; flex-direction: column; justify-content: center; }
  .featured__prices li:first-child { border-top: 0; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band > div:first-child { max-width: 560px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .contacts { grid-template-columns: 1fr 1fr; }
  .map { height: 420px; }
}

/* ---------- ≥ 1080: desktop nav, no tabbar ---------- */
@media (min-width: 1080px) {
  :root { --tab-h: 0px; }
  body { padding-bottom: 0; }
  .tabbar, .sheet { display: none !important; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 8px 11px; white-space: nowrap; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: color .2s, background .2s; position: relative; }
  .nav a:hover { color: var(--text); background: var(--bg-alt); }
  .nav a[aria-current="page"] { color: var(--accent); background: var(--tint); }
  .header__in { height: 76px; } .brand img { height: 30px; }
  
  .hero__grid { grid-template-columns: 1.02fr 1fr; gap: 64px; }
  .hero__photo { aspect-ratio: 1 / 1.02; }
  .hero__logo { left: 22px; bottom: 22px; padding: 16px 24px; } .hero__logo img { height: 34px; }
  .chip--status { top: 28px; right: -18px; } .chip--warranty { right: -18px; bottom: 90px; }
  .popular { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .docs { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(4, 1fr); }
  .fab { right: 28px; bottom: 28px; }
  .hero__text .btn-row { margin-top: 32px; }
}
@media (min-width: 1280px) {
  .header__book { display: inline-flex; }
  .seg.theme button span { display: inline; }
  .seg.theme button { padding: 0 12px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand img { height: 22px; }
  .seg button { padding: 0 8px; }
  .header__tools { gap: 6px; }
}

/* ---------- отзывы на главной: свайп на телефоне, 3 в ряд на десктопе ---------- */
.reviews--scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc((100% - 100vw) / 2); padding: 6px calc((100vw - 100%) / 2) 22px; scroll-padding-inline: 20px; }
@media (max-width: 380px) { .reviews--scroll { scroll-padding-inline: 16px; } }
.reviews--scroll::-webkit-scrollbar { display: none; }
.reviews--scroll .review { flex: 0 0 82%; scroll-snap-align: start; }
.review--compact { padding: 22px; }
.review--compact blockquote { font-size: .95rem; line-height: 1.55; }
@media (min-width: 600px) { .reviews--scroll .review { flex-basis: 46%; } }
@media (min-width: 900px) {
  .reviews--scroll { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .reviews--scroll .review { flex-basis: auto; }
}

/* ---------- демо-сайт: текстовый логотип, карта-рисунок, пометка отзывов, сообщение «демо» ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: 800; }
.wordmark__icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--brand)); }
.wordmark__icon .lucide { width: 18px; height: 18px; }
.hero__logo .wordmark { color: #fff; }
.hero__logo .wordmark b { color: #7ff0dc; }
.paper__head .wordmark { font-size: .95rem; }
.paper__head .wordmark__icon { width: 22px; height: 22px; border-radius: 7px; }
.paper__head .wordmark__icon .lucide { width: 13px; height: 13px; }
.site-footer .wordmark { color: #fff; }
.map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review__tag { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--tint); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; max-width: min(92vw, 460px); padding: 14px 18px; border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); text-align: center; }
.toast[hidden] { display: none; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ---------- плашка «Демо-сайт · сделано TelliApp»: маленькая, левый нижний угол, над нижней панелью на телефоне ---------- */
.demo-badge { position: fixed; left: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); z-index: 47; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-size: .75rem; font-weight: 700; line-height: 1.2; box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-badge:hover, .demo-badge:focus-visible { color: #fff; background: var(--brand); border-color: var(--brand); }
@media (min-width: 1080px) { .demo-badge { left: 20px; bottom: 20px; } }
/* плашка прячется, пока под ней кнопка, ссылка или форма (класс ставит скрипт); с клавиатуры — видна */
.demo-badge { transition: opacity .2s; }
.demo-badge.is-tucked:not(:focus-visible) { opacity: 0; pointer-events: none; }
/* место под плашку внизу страницы: в конце прокрутки она не закрывает строку «©» */
.site-footer { padding-bottom: 64px; }

/* Шапка на телефоне: название, языки и тема помещаются в ширину экрана (от 320px) — без значка, название мельче */
@media (max-width: 480px) {
  .site-header .wordmark__icon { display: none; }
  .site-header .wordmark { font-size: 1.05rem; }
}
@media (max-width: 360px) {
  .site-header .wordmark { font-size: .95rem; }
  .header__in { gap: 8px; }
}
@media (max-width: 340px) {
  .site-header .wordmark { font-size: .88rem; }
  .seg button, .seg.theme button { padding: 0 6px; }
  .header__in, .header__tools { gap: 5px; }
}
