﻿:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --muted: #5b6577;
  --line: #e5e9f0;
  --line-strong: #d3dae5;
  --brand: #0d9488;
  --brand-dark: #0b7a70;
  --brand-soft: #e7f6f3;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --gold: #b8860b;
  --gold-soft: #fdf6e3;
  --danger: #b42318;
  --danger-soft: #fdf0ef;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 44px rgba(15, 23, 42, .1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 10% -8%, #e5f6f3 0%, rgba(229, 246, 243, 0) 60%),
    radial-gradient(900px 460px at 92% 2%, #eaf1ff 0%, rgba(234, 241, 255, 0) 62%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Noto Sans Georgian", "Noto Sans Armenian", "Noto Sans Devanagari", sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); }

img, svg { max-width: 100%; }

.wrap { width: min(1120px, 100% - 36px); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; inset-inline-start: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 40; }
.skip:focus { inset-inline-start: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- шапка ---------- */

.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: 66px; flex-wrap: wrap; padding-block: 9px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 18.5px; letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.logo-mark svg { color: #fff; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; box-shadow: 0 4px 12px rgba(13, 148, 136, .3);
}

.tools-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-inline-start: auto; }
.tools-nav a {
  padding: 7px 11px; border-radius: 9px; text-decoration: none;
  color: var(--muted); font-size: 14.5px; white-space: nowrap; transition: background .15s, color .15s;
}
.tools-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.tools-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; }

.langs { position: relative; }
.langs summary {
  cursor: pointer; list-style: none; padding: 7px 11px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap;
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary { border-color: var(--brand); color: var(--brand-dark); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 40;
  display: grid; grid-template-columns: repeat(2, minmax(124px, 1fr)); gap: 2px;
  max-height: 62vh; overflow: auto; min-width: 270px;
}
.lang-list a { display: block; padding: 7px 9px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 14px; }
.lang-list a:hover { background: var(--brand-soft); }
.lang-list a[aria-current="true"] { background: var(--brand-soft); font-weight: 650; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  padding: 12px 20px; font: inherit; font-weight: 650; font-size: 15px;
  text-decoration: none; line-height: 1.2; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, .26);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(13, 148, 136, .32); }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-gold { background: #fff; color: #7a5900; border-color: #ecd9a6; box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-icon {
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  padding: 4px 8px; font-size: 13px; border-radius: 8px; cursor: pointer;
}
.btn-icon:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- главная: герой ---------- */

main { padding-block: 26px 64px; }

.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0;
  font-size: 13.5px; color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: #b7c0cd; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); }

.hero-home {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding-block: 18px 8px;
}
.hero { margin-block: 0 18px; }
.hero h1, .hero-home h1 {
  font-size: clamp(30px, 4.6vw, 47px);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800;
}
.hero-home h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead, .hero-home .lead { font-size: 18px; color: var(--muted); margin: 0; max-width: 56ch; }
.hero-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.hero-tool h1 { margin-block-end: 8px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 22px; }

.hero-stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 26px 0 0; padding: 0;
}
.hero-stats li {
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 12px; display: grid; gap: 2px; backdrop-filter: blur(6px);
}
.stat-num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--brand-dark); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 40px rgba(15, 23, 42, .1)); }

/* анимация иллюстрации */
.art-tile { animation: bob 5.5s ease-in-out infinite; }
.art-tile:nth-child(2) { animation-delay: .5s; }
.art-tile:nth-child(3) { animation-delay: 1s; }
.art-merged { animation: pop 5.5s ease-in-out infinite; transform-origin: 470px 210px; }
.art-arrow { stroke-dasharray: 10 10; animation: dash 1.6s linear infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pop { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.03); } }
@keyframes dash { to { stroke-dashoffset: -40; } }

@media (prefers-reduced-motion: reduce) {
  .art-tile, .art-merged, .art-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- полоса «файл → браузер → готово» ---------- */

.flow-band {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-block: 30px 6px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.flow-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.flow-item svg { color: var(--brand); flex: none; }
.flow-item.is-server {
  color: #9a4a42; font-weight: 600; background: var(--danger-soft);
  border: 1px solid #f3d2cd; border-radius: 999px; padding: 5px 12px;
}
.flow-item.is-server svg { color: #c27066; }
html[dir="rtl"] .flow-arrow { transform: scaleX(-1); }
.flow-arrow { color: #b7c0cd; font-size: 18px; line-height: 1; }
.flow-band .flow-sep { width: 1px; height: 26px; background: var(--line); }

/* ---------- карточки инструментов ---------- */

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .18s, border-color .15s;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfe6e2; }
.card strong { display: block; font-size: 16.5px; margin-block-end: 4px; letter-spacing: -.01em; }
.card span { font-size: 13.8px; color: var(--muted); display: block; line-height: 1.5; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; margin-block-end: 12px;
  color: var(--brand-dark); background: linear-gradient(135deg, var(--brand-soft), #eef7ff);
}
/* .card span ниже сбрасывает display в block — возвращаем центрирование иконке */
.card .card-icon { display: inline-flex; align-items: center; justify-content: center; }
.card:nth-child(2) .card-icon { color: #4338ca; background: linear-gradient(135deg, #eef0ff, #eef7ff); }
.card:nth-child(3) .card-icon { color: #b45309; background: linear-gradient(135deg, #fff5e6, #fef7ea); }
.card:nth-child(4) .card-icon { color: #0e7490; background: linear-gradient(135deg, #e6f6fb, #eef7ff); }
.card-feature { background: linear-gradient(180deg, #fff, #fbfcfe); }
.card-feature strong { font-size: 15.5px; }

/* ---------- страница инструмента ---------- */

.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-block: 0 14px;
}

.limit-badge {
  display: inline-block; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 999px; padding: 5px 12px; margin-block-end: 14px; font-weight: 600;
}
.limit-badge.is-zero { background: var(--danger-soft); color: var(--danger); }

.drop {
  border: 2px dashed #cfd8e3; border-radius: 14px; padding: 32px 20px; text-align: center;
  background: linear-gradient(180deg, #fbfdff, #f7fafc); transition: border-color .15s, background .15s;
}
.drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop-title { font-size: 17.5px; font-weight: 700; margin: 0 0 5px; letter-spacing: -.01em; }
.drop-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 14.5px;
}
.file-list .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .fmeta, .fmeta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.file-list .idx {
  width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

.file-one {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-block-start: 14px;
  border: 1px solid var(--line); border-radius: 11px; font-size: 14.5px; background: #fbfdff;
}

.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 20px; }

.opts { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.opts legend { font-size: 13.5px; font-weight: 650; color: var(--muted); padding: 0 0 6px; }
.opts label { display: flex; align-items: center; gap: 9px; font-size: 15px; }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-block-start: 16px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 650; color: var(--muted); }
.field input[type="text"], .field select {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: #fff; color: var(--ink); width: 100%;
}
.field input[type="text"]:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }

.result { margin-block-start: 16px; }
.result-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #cbe9e3;
  border-radius: 11px; margin-block-end: 8px; background: var(--brand-soft);
}
.result-item .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.ready { font-weight: 700; margin: 0 0 10px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-block-start: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.gallery figcaption { font-size: 12px; color: var(--muted); text-align: center; }

.panel {
  border-radius: 13px; padding: 17px 19px; margin-block-start: 16px;
  border: 1px solid #f0d6a8; background: linear-gradient(180deg, #fffaf0, #fdf3dd);
}
.panel h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.01em; }
.panel p { margin: 0 0 10px; font-size: 14.5px; }
.panel-error { border-color: #f2c3bd; background: var(--danger-soft); }
.panel-error h2 { color: var(--danger); }

.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-block: 0 10px; }
.privacy-note svg { color: var(--brand); flex: none; }

/* ---------- блоки ---------- */

.block { margin-block-start: 46px; }
.block > h2 { font-size: clamp(22px, 3vw, 29px); letter-spacing: -.02em; margin: 0 0 18px; font-weight: 780; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.steps li {
  counter-increment: s; position: relative; padding-inline-start: 52px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding-block: 16px; padding-inline-end: 18px;
}
.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 15px; top: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(13, 148, 136, .28);
}
.steps h3 { font-size: 16px; margin: 0 0 4px; letter-spacing: -.01em; }
.steps p { margin: 0; font-size: 14.5px; color: var(--muted); }

.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; margin-block-end: 9px; transition: border-color .15s, box-shadow .15s;
}
.faq details[open] { border-color: #cfe6e2; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--brand); line-height: 1; flex: none;
  transition: transform .18s;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

.upsell {
  margin-block-start: 46px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; border-radius: var(--radius); padding: 22px 24px;
  background:
    radial-gradient(420px 180px at 100% 0%, #fff3d6 0%, rgba(255, 243, 214, 0) 70%),
    linear-gradient(135deg, #fffdf7, #fdf6e6);
  border: 1px solid #eed9a8;
}
.upsell h2 { font-size: 20px; margin: 0 0 5px; letter-spacing: -.01em; }
.upsell p { margin: 0; font-size: 14.5px; color: #6b5a2e; }

.fineprint { font-size: 12.5px; color: var(--muted); margin-block-start: 30px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- премиум ---------- */

.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); margin-block: 22px 0;
  background-image: radial-gradient(500px 200px at 100% 0%, #fff6e0, rgba(255, 246, 224, 0));
}
.plan-price { margin: 0 0 16px; font-size: 16px; }
.plan-price strong { font-size: 38px; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); }
.plan-features { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan-features li { position: relative; padding-inline-start: 28px; font-size: 15px; }
.plan-features li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.prose h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -.01em; }
.prose p { margin: 0 0 10px; font-size: 15.5px; color: #374151; }

/* ---------- подвал ---------- */

.site-footer {
  border-block-start: 1px solid var(--line); background: #fff; padding-block: 34px 18px; margin-block-start: 20px;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
.footer-inner nav { display: grid; gap: 7px; align-content: start; }
.footer-inner a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-inner a:hover { color: var(--brand-dark); }
.footer-brand { font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.footer-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 40ch; }
.footer-copy {
  margin-block-start: 24px; padding-block-start: 16px; border-block-start: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero-home { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: 2; max-width: 520px; margin-block-start: 6px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { gap: 8px; }
  .tools-nav {
    margin-inline-start: 0; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap;
    padding-block-end: 2px; scrollbar-width: none;
  }
  .tools-nav::-webkit-scrollbar { display: none; }
  .tools-nav a { font-size: 13.5px; }
  .langs { margin-inline-start: auto; }
  .hero h1, .hero-home h1 { font-size: clamp(27px, 7.4vw, 36px); }
  .hero .lead, .hero-home .lead { font-size: 16px; }
  .tool { padding: 16px; }
  .drop { padding: 24px 14px; }
  .block { margin-block-start: 34px; }
  .flow-band { gap: 10px; padding: 14px; font-size: 13px; }
  .flow-band .flow-sep { display: none; }
  .flow-arrow { display: none; }
  .flow-band { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .flow-item { font-size: 13.5px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .lang-list {
    position: fixed; inset-inline: 12px; top: 74px; width: auto; min-width: 0;
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-price strong { font-size: 32px; }
}

@media (max-width: 760px) {
  .cards-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cards-4 .card { padding: 14px; }
  .cards-4 .card strong { font-size: 15px; }
  .cards-4 .card span { font-size: 13px; }
  .cards-4 .card-icon { width: 34px; height: 34px; margin-block-end: 9px; }
}

@media (max-width: 420px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { padding: 11px 16px; }
}

/* ---------- реклама ---------- */

.ad-slot { margin-block: 34px; position: relative; }
.ad-slot--mobile { display: none; }
.ad-slot--desktop { display: block; }
@media (max-width: 760px) {
  .ad-slot--desktop { display: none; }
  .ad-slot--mobile { display: block; }
  .ad-slot--mobile .ad-body { min-height: 100px; }
}
body.is-premium .ad-slot { display: none !important; }
.ad-label {
  display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #98a2b3; margin-block-end: 6px;
}
.ad-body {
  min-height: 250px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px dashed var(--line); border-radius: 12px; overflow: hidden;
}
.ad-body iframe { max-width: 100%; border: 0; }