@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --lime: #9fe870;
  --lime-deep: #8bd95b;
  --forest: #163300;
  --ink: #0e0f0c;
  --muted: #454745;
  --mint: #e2f6d5;
  --pink: #ffd7ef;
  --sky: #cdf1ff;
  --line: #dfe3da;
  --white: #ffffff;
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: 1180px;
  --head: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; color: var(--forest); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(54px, 9.5vw, 128px); line-height: 0.88; letter-spacing: -0.005em; }
h2 { font-size: clamp(40px, 6.2vw, 80px); line-height: 0.92; }
h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 640px; color: var(--forest); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border: 0; border-radius: 999px;
  font: 600 18px/1.1 var(--body); text-decoration: none; cursor: pointer;
  background: var(--lime); color: var(--forest);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: scale(1.05); background: var(--lime-deep); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--dark { background: var(--forest); color: var(--lime); }
.btn--dark:hover { background: #0f2500; }
.btn--soft { background: rgba(22, 51, 0, 0.08); color: var(--forest); }
.btn--soft:hover { background: rgba(22, 51, 0, 0.14); }
.btn--sm { padding: 10px 20px; font-size: 16px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { font-family: var(--head); font-size: 30px; letter-spacing: 0.01em; text-decoration: none; color: var(--forest); line-height: 1; }
.brand span { background: var(--lime); padding: 2px 8px 3px; border-radius: 10px; margin-left: 2px; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 16px; border-radius: 999px; color: var(--forest); }
.nav a:not(.btn):hover { background: var(--mint); }

/* ---------- hero ---------- */
.hero { background: var(--lime); padding: 72px 0 96px; }
.hero__head { text-align: left; margin-bottom: 40px; }
.hero__head .lead { margin-top: 26px; }

/* ---------- widget ---------- */
.widget { background: var(--white); border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 2px 0 rgba(22, 51, 0, 0.12); }
.zone {
  border: 2.5px dashed #b7c9a8; border-radius: var(--radius-lg); background: #f7fbf3;
  padding: 56px 24px; text-align: center; transition: background-color 0.15s, border-color 0.15s;
}
.zone.is-over { background: var(--mint); border-color: var(--forest); }
.zone h3 { margin-bottom: 8px; }
.zone p { color: var(--muted); margin-bottom: 24px; }
.work__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.work__count { font-weight: 700; color: var(--forest); }
.work__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.files { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.file { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: 0; }
.file.is-dragging { opacity: 0.45; }
.file.is-over { background: var(--mint); }
.file__handle { color: #9aa393; letter-spacing: -2px; cursor: grab; user-select: none; font-weight: 800; }
.file__thumb {
  flex: none; width: 52px; height: 52px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; font: 800 12px/1 var(--body); background: var(--mint); color: var(--forest);
}
.file__thumb img { width: 100%; height: 100%; object-fit: cover; }
.file__thumb--pdf { background: var(--pink); }
.file__thumb--heic { background: var(--sky); }
.file__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__sub { font-size: 14px; color: var(--muted); }
.file__actions { display: flex; gap: 4px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(22, 51, 0, 0.07); color: var(--forest); font: 700 18px/1 var(--body);
}
.icon-btn:hover:not([disabled]) { background: rgba(22, 51, 0, 0.16); }
.icon-btn[disabled] { opacity: 0.3; cursor: not-allowed; }
.work__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.work__foot label { font-weight: 600; font-size: 16px; color: var(--forest); display: inline-flex; gap: 10px; align-items: center; }
.work__foot select { font: 500 16px var(--body); padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); color: var(--ink); }
.status { min-height: 1.6em; margin-top: 14px; font-weight: 500; color: var(--forest); }
.status:empty { display: none; }
.status.is-error { color: #9c1c1c; font-weight: 600; }
.progress { height: 10px; border-radius: 999px; background: var(--mint); overflow: hidden; margin-top: 12px; }
.progress > div { height: 100%; width: 0; background: var(--forest); transition: width 0.2s; }
.result { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--forest); color: var(--lime); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.result h3 { color: var(--lime); }
.result p { margin: 4px 0 0; color: #d6f5bd; }
.result .btn { background: var(--lime); color: var(--forest); }
.clist { flex-basis: 100%; list-style: none; margin: 4px 0 0; padding: 0; max-height: 320px; overflow: auto; border-radius: var(--radius-md); background: rgba(159, 232, 112, 0.1); }
.cfile { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid rgba(159, 232, 112, 0.18); }
.cfile:last-child { border-bottom: 0; }
.cfile__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e7f7d9; font-weight: 600; }
.cfile__size { color: #b9dba0; font-size: 14px; }
.result__note { flex-basis: 100%; margin: 0; font-size: 15px; color: #d6f5bd; }
.result__note:empty { display: none; }
.result .btn--soft { background: rgba(159, 232, 112, 0.18); color: var(--lime); }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section__head { margin-bottom: 52px; max-width: 760px; }
.section__head .lead { margin-top: 20px; }
.band-lime { background: var(--lime); }
.band-mint { background: var(--mint); }

/* demo */
.demo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.demo-grid--even { grid-template-columns: 1fr 1fr; }
.demo { position: relative; background: var(--forest); border-radius: var(--radius-xl); height: 380px; overflow: hidden; }
.demo__bar { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; gap: 8px; align-items: center; padding: 0 20px; background: rgba(255, 255, 255, 0.07); }
.demo__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(159, 232, 112, 0.45); }
.chip {
  position: absolute; left: 12%; width: 54%; height: 58px; border-radius: 16px;
  display: flex; align-items: center; gap: 14px; padding: 0 16px; font-weight: 700; color: var(--forest); opacity: 0;
}
.chip b { font: 800 12px/1 var(--body); width: 40px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, 0.6); display: grid; place-items: center; }
.chip--1 { top: 82px; background: var(--pink); animation: chip1 9s infinite; }
.chip--2 { top: 156px; background: var(--lime); animation: chip2 9s infinite; }
.chip--3 { top: 230px; background: var(--sky); animation: chip3 9s infinite; }
.merged {
  position: absolute; right: 9%; top: 98px; width: 150px; height: 200px; border-radius: 16px; background: var(--white); color: var(--forest);
  padding: 20px 16px; opacity: 0; animation: merged 9s infinite;
}
.merged strong { font-family: var(--head); font-size: 30px; line-height: 1; display: block; text-transform: uppercase; }
.merged span { display: block; height: 8px; border-radius: 4px; background: var(--mint); margin-top: 12px; }
.merged span:nth-child(3) { width: 80%; }
.merged span:nth-child(4) { width: 60%; }
.merged em { position: absolute; bottom: 14px; left: 16px; right: 16px; font-style: normal; font-weight: 700; font-size: 14px; background: var(--lime); border-radius: 999px; text-align: center; padding: 6px 0; }
@keyframes chip1 { 0% { opacity: 0; transform: translateX(-30px); } 6%, 46% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateX(120px) scale(0.85); } }
@keyframes chip2 { 0%, 8% { opacity: 0; transform: translateX(-30px); } 14%, 46% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateX(120px) scale(0.85); } }
@keyframes chip3 { 0%, 16% { opacity: 0; transform: translateX(-30px); } 22%, 46% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateX(120px) scale(0.85); } }
@keyframes merged { 0%, 54% { opacity: 0; transform: scale(0.85); } 64%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; counter-increment: s; }
.steps li::before {
  content: counter(s); font-family: var(--head); font-size: 28px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime); color: var(--forest); display: grid; place-items: center; line-height: 1;
}
.steps h3 { margin-bottom: 6px; font-size: 28px; }
.steps p { margin: 0; color: var(--muted); }
.band-lime .steps p { color: var(--forest); }
.band-lime .steps li::before { background: var(--forest); color: var(--lime); }

/* function cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { border-radius: var(--radius-xl); padding: 40px; min-height: 330px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.card h3 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 14px; line-height: 0.95; }
.card p { margin: 0; max-width: 440px; }
.card--forest { background: var(--forest); color: #e7f7d9; }
.card--forest h3 { color: var(--lime); }
.card--mint { background: var(--mint); }
.card--pink { background: var(--pink); }
.card--sky { background: var(--sky); }
.card .btn { align-self: flex-start; }
.card--forest .btn { background: var(--lime); color: var(--forest); }
.card--mint .btn, .card--pink .btn, .card--sky .btn { background: var(--forest); color: var(--lime); }

/* benefits */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.benefit { background: var(--white); border-radius: var(--radius-xl); padding: 36px; }
.benefit h3 { margin-bottom: 12px; font-size: 34px; }
.benefit p { margin: 0; color: var(--muted); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-weight: 700; font-size: 21px; color: var(--forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 26px; line-height: 1; transition: transform 0.2s;
}
.faq details[open] summary::after { content: "\2212"; background: var(--lime); }
.faq details p { padding: 0 56px 26px 0; margin: 0; color: var(--muted); }

/* cta */
.cta { background: var(--forest); border-radius: var(--radius-xl); padding: 72px 48px; text-align: center; }
.cta h2 { color: var(--lime); margin-bottom: 18px; }
.cta p { color: #d6f5bd; max-width: 560px; margin: 0 auto 32px; }

/* article pages */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(34px, 4.6vw, 52px); margin: 56px 0 16px; }
.article p, .article li { color: #262826; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin-bottom: 0.6em; }
.article .btn { margin-top: 12px; }
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: clamp(46px, 7vw, 84px); margin-bottom: 12px; }
.legal h2 { font-size: 36px; margin: 44px 0 12px; }
.legal mark { background: #fff2a8; padding: 0 4px; border-radius: 4px; }
.legal .updated { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__grid h4 { margin: 0 0 16px; font: 700 16px var(--body); color: var(--forest); }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__grid .brand { font-size: 30px; color: var(--forest); }
.footer__grid a { text-decoration: none; color: var(--muted); font-size: 16px; }
.footer__grid a:hover { color: var(--forest); text-decoration: underline; }
.footer__about { color: var(--muted); font-size: 16px; max-width: 300px; margin-top: 14px; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* responsive */
@media (max-width: 900px) {
  .demo-grid, .cards, .benefits { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .nav a:not(.btn) { display: none; }
  .card { padding: 30px; min-height: 0; }
  .demo { height: 340px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .widget { padding: 16px; border-radius: 28px; }
  .zone { padding: 36px 16px; }
  .file { gap: 10px; padding: 8px 10px; }
  .file__handle { display: none; }
  .file__thumb { width: 44px; height: 44px; }
  .icon-btn { width: 34px; height: 34px; }
  .cta { padding: 48px 24px; }
  .faq summary { font-size: 18px; }
  .btn { padding: 14px 24px; }
  .site-header .wrap { height: 64px; }
  .brand { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .chip, .merged { animation: none; }
  .chip { opacity: 1; transform: none; }
  .merged { opacity: 1; }
}
