@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/inter-latin.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 {
  --surface: #f4efe4;
  --paper: #f8f6ef;
  --card: #fffdf8;
  --ink: #292421;
  --muted: #6b5c54;
  --line: #ded2c6;
  --accent: #9a372d;
  --accent-ink: #fffaf0;
  --tint: #f0e4db;
  --drop: #faf4eb;
  --dash: #bba89c;
  --radius: 22px;
  --focus: #416cfe;
  --shadow: 0 15px 32px #29201a12;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 15px/1.55 Inter, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.07; }
h1 { font-size: clamp(2.45rem, 5vw, 5.4rem); font-weight: 700; letter-spacing: -.075em; }
h2 { font-size: 1.23rem; font-weight: 700; letter-spacing: -.04em; }
h3 { font-size: 1rem; letter-spacing: -.025em; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 1rem; top: 1rem; transform: translateY(-200%); background: white; color: #182323; padding: 9px 14px; border-radius: 7px; z-index: 5; }
.skip-link:focus { transform: none; }
.dim { color: var(--muted); }
.site-header, .site-footer, .hero, .extras { width: min(calc(100% - 84px), 1240px); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.site-header { min-height: 94px; }
.site-footer { border-top: 1px solid var(--line); padding: 21px 0 27px; color: var(--muted); font-size: .8rem; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 9px 20px; }
.site-footer nav { flex-wrap: wrap; }
.site-footer .wordmark { font-size: 1.02rem; letter-spacing: -.06em; }
.site-footer .mark { width: 28px; height: 28px; border-radius: 8px; }
.site-footer .mark .icon { width: 16px; height: 16px; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; font-size: clamp(1.04rem, 2.3vw, 1.45rem); letter-spacing: -.07em; font-weight: 760; white-space: nowrap; }
.mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); }
.plain { background: none; border: 0; padding: 6px 0; color: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 620; }
.plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.plain .icon { width: 17px; height: 17px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; border: 1px solid transparent; border-radius: 10px; padding: 8px 16px; font-weight: 670; line-height: 1.2; text-align: center; }
.button .icon { width: 17px; height: 17px; }
.primary { color: var(--accent-ink); background: var(--accent); }
.primary:disabled { color: var(--muted); background: var(--paper); border-color: var(--line); }
.secondary { color: var(--ink); background: var(--card); border-color: var(--line); }
.button:not(:disabled):hover { filter: brightness(.91); }
.icon-button { display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); width: 38px; height: 38px; padding: 0; border-radius: 8px; flex: none; }
.icon-button:hover { background: var(--paper); color: var(--ink); }
.icon-button:disabled { opacity: .4; }
.transfer { min-width: 0; scroll-margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); padding: clamp(17px, 3vw, 31px); box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.card-heading h2 { font-size: clamp(1.09rem, 2vw, 1.36rem); }
.heading-icon, .resource-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; flex: none; color: var(--ink); background: var(--tint); }
.heading-icon .icon, .resource-icon .icon { width: 17px; height: 17px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 15px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 7px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 7px; min-height: 39px; font-size: .83rem; font-weight: 665; padding: 5px; line-height: 1.22; }
.tab .icon { width: 15px; height: 15px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected=true] { color: var(--ink); border-color: var(--line); background: var(--card); box-shadow: 0 1px 3px #101b2020; }
.drop { border: 1px dashed var(--dash); background: var(--drop); border-radius: 14px; min-height: 170px; padding: 18px 10px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 7px; }
.drop.dragging { background: var(--tint); border-style: solid; }
.pick-icon { display: grid; place-items: center; width: 47px; height: 47px; background: var(--tint); border-radius: 13px; }
.pick-icon .icon { width: 23px; height: 23px; }
.drop strong { font-size: .92rem; }
.drop .button { min-height: 39px; font-size: .81rem; padding: 6px 12px; }
.queue-count { color: var(--muted); font-size: .76rem; margin: 9px 0 10px; }
.send-actions, .file-actions { display: flex; gap: 7px; }
.send-actions .primary { flex: 1; }
.file-actions { flex-wrap: wrap; margin-top: 12px; }
.file-actions .button { min-height: 39px; font-size: .8rem; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 190px; overflow: auto; }
.file-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.file-list li, .resource-row { display: flex; align-items: center; gap: 11px; min-width: 0; }
.file-list li > .icon, .resource-row > .icon { color: var(--muted); }
.file-meta { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.file-meta strong, .file-meta small { display: block; }
.file-meta small { color: var(--muted); }
.file-meta strong { font-size: .89rem; }
.feedback { font-size: .84rem; margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: var(--paper); }
.feedback[data-type=error] { color: var(--error-text, #862d32); background: var(--error-background, #fbeded); }
.field-label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 660; }
.field { width: 100%; min-width: 0; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; min-height: 46px; padding: 8px 12px; }
.field::placeholder { color: var(--muted); }
.open-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.receive-result { border: 1px solid var(--line); background: var(--paper); margin-top: 14px; padding: 13px; border-radius: 11px; }
.receive-result h3 { overflow-wrap: anywhere; }
.receive-result p { margin-top: 4px; font-size: .8rem; }
#save-link { font-size: .8rem; padding-bottom: 0; }
.extras { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; padding: 25px 0 39px; align-items: stretch; }
.section-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 2.8vw, 27px); scroll-margin-top: 20px; }
.section-card h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.resource-row { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 0; color: var(--ink); }
button.resource-row:hover { color: var(--link-ink, var(--ink)); background: var(--paper); }
.resource-row > .icon:last-child { width: 17px; height: 17px; margin-right: 3px; }
.resource-row small { font-size: .76rem; }
.resource-icon { width: 31px; height: 31px; background: var(--paper); border: 1px solid var(--line); }
.search { display: flex; gap: 8px; align-items: center; padding: 0 9px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.search .icon { width: 16px; height: 16px; }
.search .field { border: none; background: transparent; min-height: 39px; padding: 5px 1px; font-size: .83rem; }
#saved-list .resource-row { margin-top: 7px; font-size: .82rem; }
.empty-message { color: var(--muted); margin-top: 11px; font-size: .81rem; }
dialog { width: min(490px, calc(100% - 32px)); padding: 24px; max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
dialog::backdrop { background: #0b1422a0; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#dialog-body p { margin-bottom: 9px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); border-radius: 10px; background: #20252b; color: white; padding: 10px 15px; z-index: 3; box-shadow: 0 8px 22px #0002; font-size: .83rem; pointer-events: none; }
.toast:empty { display: none; }
.hero-copy { min-width: 0; }
.hero-copy > p { max-width: 34ch; font-size: clamp(.94rem, 1.5vw, 1.09rem); margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px 14px; margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .button, .resource-row, .drop { transition: background-color 150ms ease, filter 150ms ease, border-color 150ms ease; }
  .resource-row > .icon:last-child { transition: transform 150ms ease; }
  button.resource-row:hover > .icon:last-child { transform: translate(2px, -2px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 900px) {
  .site-header, .site-footer, .hero, .extras { width: calc(100% - 48px); }
  .site-header { min-height: 77px; }
}
@media (max-width: 690px) {
  .site-header, .site-footer, .hero, .extras { width: calc(100% - 30px); }
  .site-header { min-height: 67px; gap: 8px; }
  .site-header nav { gap: 9px; font-size: .8rem; }
  .site-header nav .button { min-height: 39px; padding: 5px 9px; font-size: .75rem; }
  .site-header nav .button .icon, .site-header nav .plain .icon { display: none; }
  .wordmark { letter-spacing: -.055em; gap: 7px; }
  .mark { width: 33px; height: 33px; border-radius: 9px; }
  .mark .icon { width: 17px; height: 17px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .site-footer nav { gap: 6px 12px; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0 23px; }
}
@media (max-width: 370px) {
  .site-header nav [data-page=help] .icon { display: block; }
  .site-header nav [data-page=help] span { position: absolute; clip-path: inset(50%); }
  .site-header nav [data-page=help] { min-width: 29px; }
  .tab { font-size: .77rem; }
  .tab .icon { display: none; }
}
@media (max-width: 330px) {
  .open-form { grid-template-columns: minmax(0, 1fr); }
}

.sprig {
  color-scheme: dark;
  --surface: #111b16;
  --paper: #16251c;
  --card: #1b2a20;
  --ink: #f1f5e9;
  --muted: #b4c5b7;
  --line: #36493b;
  --accent: #c2f276;
  --accent-ink: #19230d;
  --tint: #2d432b;
  --drop: #17261b;
  --dash: #627c63;
  --link-ink: #d3fb9a;
  --focus: #ccf88d;
  --error-text: #ffcece;
  --error-background: #482b2b;
  --shadow: 0 22px 58px #0b120ca3;
}
.sprig .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(370px, 1fr);
  gap: clamp(26px, 6vw, 85px);
  align-items: center;
  padding: clamp(26px, 5vw, 65px);
  min-height: 525px;
  border: 1px solid #394a37;
  border-radius: 29px;
  background: radial-gradient(ellipse at 30% 105%, #29462e, transparent 70%), #15231a;
}
.sprig .hero-copy { position: relative; isolation: isolate; min-height: 385px; padding-top: 13px; }
.sprig .hero-copy > p { max-width: 27ch; color: #c7d3c2; }
.sprig .hero h1 { font-size: clamp(2.65rem, 5.25vw, 4.85rem); }
.sprig .hero h1 em { color: var(--accent); font-style: normal; }
.sprig .hero-actions .plain { color: var(--accent); }
.sprig .folder-art {
  position: absolute;
  z-index: -1;
  inset: 152px -34px -28px 30%;
  border-radius: 22px;
  background: linear-gradient(115deg, #15231adc, #12211900 55%), url("assets/folder.jpg") center 55% / cover, #213926;
  mask-image: radial-gradient(ellipse at 63% 60%, #000 33%, #0009 50%, transparent 72%);
}
.sprig .tab[aria-selected=true] { background: #314932; border-color: #5c7956; }
.sprig #choose-files { background: var(--tint); border-color: #5c7956; }
.sprig .section-card { box-shadow: 0 5px 13px #0c140c40; }
@media (max-width: 990px) {
  .sprig .hero { grid-template-columns: minmax(0, 1fr) minmax(315px, 1.1fr); padding: 27px; min-height: 475px; }
  .sprig .hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.3rem); }
  .sprig .folder-art { left: 8%; }
}
@media (max-width: 690px) {
  .sprig .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 19px 13px 13px; border-radius: 21px; }
  .sprig .hero-copy { min-height: 0; padding: 6px 4px 7px; }
  .sprig .folder-art { inset: 54px -14px -12px 41%; opacity: .61; }
  .sprig .hero h1 { font-size: clamp(2.22rem, 9vw, 3.4rem); }
  .sprig .hero-copy > p { max-width: 25ch; }
}

.site-header nav { margin-left: auto; }
.language-select {
  flex: none;
  max-width: 100%;
  min-height: 42px;
  padding: 6px 25px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='gray' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
  appearance: none;
  font: 650 .83rem/1.2 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}
.language-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (max-width: 540px) {
  .site-header nav { gap: 5px; }
  .site-header nav [data-page=help] .icon { display: block; }
  .site-header nav [data-page=help] span { position: absolute; clip-path: inset(50%); }
  .site-header nav [data-page=help] { min-width: 26px; }
  .language-select { min-height: 39px; padding: 5px 17px 5px 6px; background-position: right 3px center; border-radius: 8px; font-size: .71rem; }
}
@media (max-width: 370px) {
  .site-header { column-gap: 5px; }
  .site-header .wordmark { font-size: .92rem; }
  .site-header .mark { width: 28px; height: 28px; }
  .site-header nav .button { font-size: .69rem; padding-inline: 5px; }
  .site-header nav [data-page=help] { min-width: 22px; }
}

