@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Часть 1. Общая база, навигация, портфолио и сервисы */
:root {
  --bg: #0b0f19;
  --card: #101826;
  --text: #e4e9f3;
  --muted: #e4e9f3;
  --line: rgba(255, 255, 255, .12);
  --accent: #6ea8fe;
  --accent2: #7cf5c2;
  --radius: 18px;
  --max: 1400px;
  --navH: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(110, 168, 254, .35), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(124, 245, 194, .22), transparent 55%),
    radial-gradient(900px 600px at 40% 120%, rgba(110, 168, 254, .18), transparent 55%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-right: 10px;
  padding-left: 10px;
  padding-top: calc(28px + var(--navH));
  overflow-x: hidden;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11, 15, 25, .9), rgba(11, 15, 25, .6));
  border-bottom: 1px solid var(--line);
}

section[id]> :first-child {
  margin-top: 0;
}

section[id] {
  padding-top: 12px;
  margin-bottom: 20px;
}

.navin {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  opacity: .9;
}

.logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  letter-spacing: .2px;
  font-size: 20px;
}

.menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--muted);
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 12px;
}

.menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.hero {
  padding: 44px 0 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-bottom: 15px;
}

.hcard,
.side {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 0px;
  }

  .menu {
    display: none;
  }
}

.hcard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 38, .85), rgba(16, 24, 38, .65));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.hcard:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 180px at 20% 0%, rgba(110, 168, 254, .18), transparent 60%),
    radial-gradient(700px 180px at 80% 0%, rgba(124, 245, 194, .12), transparent 60%);
  pointer-events: none;
}

.hcard>* {
  position: relative;
}

h1 {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.4;
  color: #f4f6fa;
}

h2 {
  line-height: 1.4;
  font-size: 22px;
  margin: 0 0 10px;
}

h3 {
  font-size: 22px;
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  white-space: pre-line;
}

.content p {
  margin: 10px 0;
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px;
  }
}

.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 14px;
}

.li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #f4f6fa;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  width: 200px;
}


.btnnav {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}

.btnnav-top {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 45px;
  padding: 11px 12px;
  margin-top: 1px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}

.btn:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

.btnnav:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  border-color: rgba(110, 168, 254, .55);
  background: linear-gradient(135deg, rgba(110, 168, 254, .28), rgba(124, 245, 194, .18));
  width: 205px;
  position: relative;
  overflow: hidden;
}

.btn small {
  color: var(--muted);
  font-weight: 500;
}

.side {
  display: grid;
  gap: 20px;
}

.kpi {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(16, 24, 38, .58);
  border-radius: var(--radius);
  padding: 16px;
}

.kpi b {
  font-size: 18px;
}

.kpi span {
  color: var(--muted);
  font-size: 16px;
}

section {
  padding: 15px 0 0;
}

.grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--line);
  background: rgba(16, 24, 38, .58);
  border-radius: var(--radius);
  padding: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.card p {
  margin-top: 10px;
  margin-bottom: 7px;
  font-size: 16px;
}

.note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 15px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: rgba(16, 24, 38, .58);
  border-radius: var(--radius);
  padding: 14px;
}

.muted {
  text-decoration: none;
}

.copyfooter {
  font-size: 14px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contacts {
    grid-template-columns: 1fr;
  }
}

.contactRow {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  margin-bottom: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  max-width: 100%;
}

.pill:hover {
  background: rgba(255, 255, 255, .10);
}

.pill code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.primery {
  gap: 8px;
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .16);
}

.primery:hover {
  background: rgba(255, 255, 255, .10);
}

.primery::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120px;
  width: 100px;
  height: 100%;
  background-image: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 70%);
  filter: blur(7px);
  animation: shine 7s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -400px;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.card,
.hcard,
.kpi,
.step {
  min-width: 0;
}

p,
li,
a,
code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn.primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.45),
      transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn.primary:hover::before {
  left: 130%;
}

.privacy-page .content {
  white-space: normal;
  max-width: none !important;
  width: 100% !important;
}

@media (min-width: 900px) {
  .privacy-page .content {
    text-align: justify;
    text-justify: inter-word;
  }
}

.privacy-page .hero {
  grid-template-columns: 1fr !important;
}

.privacy-page h1,
.subtitle {
  text-align: center;
}

.privacy-page .content h2 {
  margin: 18px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.privacy-page .content h3 {
  margin: 14px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
}

.privacy-page .content p {
  margin: 10px 0;
}

.privacy-page .content a {
  color: #7cc4ff;
  text-decoration: none;
}

.privacy-page .content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.separator {
  opacity: 0.6;
}

.works h1 {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 0px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.work-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
  transition: .25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .18);
}

.work-preview {
  display: flex;
  justify-content: center;
  font-size: 13px;
}

.work-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  padding: 15px 8px 15px 8px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.work-body p {
  display: block;
  font-size: 16px;
  margin-top: 3px;
  margin-bottom: 10px;
}

.work-link {
  display: inline-block;
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #7cc4ff;
  align-self: center;
}

.work-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .2s ease;
}

.work-link:hover::after {
  width: 100%;
}

@media (max-width:1200px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:520px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works {
    padding-right: 15px;
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .ctaRow {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
    justify-content: center;
  }

  .btn.primary {
    width: 300px;
  }

  .btn {
    width: 300px;
  }

  .works {
    padding-right: 10px;
    padding-left: 10px;
  }

  .works h1 {
    margin-bottom: 30px;
    font-size: 24px !important;
  }

  .pill,
  .primery {
    width: 300px;
    justify-content: center;
  }

  .contactRow {
    justify-content: center;
    gap: 17px;
  }

  h1 {
    margin-bottom: 15px;
    margin-top: 15px;
    text-align: center;
    font-size: 24px;
  }

  .card h3,
  .kpi b {
    margin-bottom: 10px;
    margin-top: 15px;
    text-align: left;
    font-size: 22px;
  }

  h3 {
    text-align: left;
    font-size: 22px;
  }

  footer {
    justify-content: center;
    padding-top: 20px;
  }

  .hcard {
    padding: 15px;
  }

  .brand-text {
    font-size: 17px;
  }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: calc(var(--navH) + 30px);
    padding-bottom: 10px;
  }

  .home-contact-actions {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 330px) {
  .brand-text {
    font-size: 16px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 620px;
  padding: 15px 15px;
  background: #151e2c;
  color: #ffffff;
  border: #363d44 1px solid;
  border-radius: 12px;
  box-shadow: 0 10px 30px #00000066;
  font-size: 14px;
  z-index: 99999;
}

.cookie-banner a {
  color: #7db4ff;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #4592ff;
}

.cookie-banner button {
  margin-left: auto;
  background: #ffffff;
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner button:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
    width: 308px;
    bottom: 10px;
    border-radius: 8px;
  }

  .cookie-banner span {
    white-space: normal;
    flex: 1;
  }

  .cookie-banner button {
    width: auto;
    padding: 8px 14px;
    font-size: 14px;
    margin-left: 6px;
    flex-shrink: 0;
  }

  .cookie-banner a {
    white-space: nowrap;
  }
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
    max-width: 620px;
    bottom: 10px;
    border-radius: 8px;
  }
}

main {
  flex: 1;
}

.burger {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.burger-ico {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, .92);
  transition: transform .18s ease;
}

#menuBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9000;
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .btnnav {
    font-size: 12px;
    min-height: 42px;
    border-radius: 12px;
    max-width: 100%;
  }

  .btnnav-top {
    font-size: 12px;
  }
}

@media (max-width: 1199px) {
  .nav {
    z-index: 10000;
  }

  .btnnav-top {
    font-size: 13px;
  }

  .home-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .burger {
    display: inline-flex;
  }

  .navin>.menu {
    display: none;
  }

  body.menu-open #menuBackdrop {
    display: block;
  }

  body.menu-open .navin>.menu {
    display: flex;
  }

  .navin>.menu {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(15, 23, 42, .98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    z-index: 10001;
    pointer-events: auto;
  }

  .navin>.menu a {
    color: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
  }

  .navin>.menu a:active,
  .navin>.menu a:hover {
    background: rgba(255, 255, 255, .12);
  }

  body.menu-open .burger-ico {
    transform: rotate(90deg);
  }

  .navin {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .navin>.brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
  }

  .navin>.brand .brand-link {
    gap: 7px;
  }

  .navin>.brand .brand-text {
    font-size: clamp(13px, 4.1vw, 18px);
    white-space: nowrap;
  }

  .navin>.btnnav {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    padding: 7px 11px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    min-height: 32px;
  }

  .navin>.burger {
    order: 3;
    flex: 0 0 39px;
    margin: 0;
  }
}

.converter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.converter .dropzone {
  grid-column: 1;
  align-self: stretch;
}

.converter .controls {
  grid-column: 2;
  margin-top: 0;
}

.converter .hr,
.converter .results {
  grid-column: 1 / -1;
}

.controls {
  grid-template-columns: 1fr !important;
}

@media (max-width: 900px) {
  .converter {
    grid-template-columns: 1fr;
  }

  .converter .dropzone,
  .converter .controls {
    grid-column: 1 / -1;
  }
}

.ctrl-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .ctrl-actions {
    flex-direction: column;
    gap: 14px;
  }

  .ctrl-actions .btn {
    width: 100%;
  }
}

.fileList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.fileCard {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 10px;
  transition: 0.2s ease;
}

.fileCard:hover {
  background: rgba(255, 255, 255, 0.04);
}

.thumb {
  width: 100%;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fileName {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

.fileSub {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.fileActions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.fileActions .smallBtn {
  flex: 1;
  font-size: 12px;
  padding: 6px 8px;
}

@media (max-width: 480px) {
  .fileList {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dz-inner {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
}

.dropzone {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone.drag {
  outline: 2px dashed rgba(110, 168, 254, .85);
  outline-offset: 6px;
  background: rgba(110, 168, 254, .06);
}

.dropzone::after {
  content: "Перетащите файлы СЮДА";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  opacity: .75;
}

.results .fileList {
  max-height: 520px;
  overflow: auto;
  padding-right: 6px;
}

.results .fileList::-webkit-scrollbar {
  width: 8px;
}

.results .fileList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
}

.results .fileList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .hcard {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ctrl-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-items: start;
  }

  .ctrl-actions .btn {
    width: auto;
    min-width: 180px;
  }

  .card p {
    text-align: center;
  }

  #downloadAllBtn {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
  }
}

@media (max-width: 768px) {

  .wrap,
  .hcard,
  .converter,
  .results,
  .fileList {
    min-width: 0;
  }

  .hcard {
    padding-left: 14px;
    padding-right: 14px;
  }

  .dz-hint,
  #resultsMeta,
  .fileSub {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .fileList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fileCard {
    min-width: 0;
  }

  .fileName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fileActions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .fileActions .smallBtn {
    min-width: 0;
    padding: 6px 8px;
    font-size: 12px;
  }

  .ctrl-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card p {
    text-align: left;
    font-size: 15px;
  }

  .btnnav-top {
    min-height: 42px;
    max-width: 100%;
    font-size: 14px;
  }

  .btnnav {
    min-height: 32px;
    max-width: 100%;
    font-size: 12px;
    border-radius: 9px;
  }

  p,
  li,
  a,
  code {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .fileList {
    grid-template-columns: 1fr;
  }
}

/* Часть 2. Главная страница */
.home {
  color: var(--text);
}

.home .btn {
  width: auto;
  min-width: 196px;
  min-height: 45px;
}

.home .btn.primary {
  width: auto;
  background: linear-gradient(125deg, #203a58, #244c59);
  border-color: rgba(126, 166, 205, .45);
}

.home .btn.primary:hover {
  background: linear-gradient(125deg, #2a4b71, #2c5d69);
  border-color: rgba(145, 185, 225, .62);
}

.home .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .91fr);
  gap: clamp(25px, 4vw, 25px);
  align-items: center;
  padding: 40px 0 48px;
}

.home-hero-copy,
.home-hero-visual {
  min-width: 0;
}

.home-eyebrow,
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e4e9f3;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #8eb4dd;
  box-shadow: 0 0 0 4px rgba(142, 180, 221, .1);
}

.home .home-hero h1 {
  font-size: clamp(29px, 3vw, 43px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 720;
  margin: 24px 0 20px;
  max-width: 700px;
  text-align: left;
}

.home-hero h1 span {
  color: #91b8e2;
}

.home-intro {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.6;
  color: #e4e9f3;
  margin: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 29px 0 26px;
}

.home-secondary,
.home-inline-link {
  color: #b9d7f5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}

.home-secondary:hover,
.home-inline-link:hover {
  color: #fff;
}

.home-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  color: #e4e9f3;
  font-size: 14px;
  line-height: 1.5;
}

.home-hero-facts>span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-check {
  color: #93b9de;
  font-weight: 800;
}

.home-hero-visual {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.home-showcase-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 760px;
  margin: 0 auto;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 21px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-benefits>div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 12px;
  align-content: start;
  padding: 7px 20px;
}

.home-benefits>div:first-child {
  padding-left: 0;
}

.home-benefits>div+div {
  border-left: 1px solid var(--line);
}

.home-benefit-index {
  grid-row: span 2;
  color: #7398c4;
  font-size: 15px;
  font-weight: 750;
  padding-top: 3px;
  font-family: 'Montserrat', sans-serif;
}

.home-benefits strong {
  font-size: 15px;
  font-weight: 650;
}

.home-benefits>div>span:last-child {
  font-size: 15px;
  color: #e4e9f3;
}

.home .home-section {
  padding: 75px 0 0;
  margin: 0 0 0;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  margin-bottom: 23px;
}

.home .home-section-head h2,
.home .home-contact h2 {
  margin: 7px 0 0;
  font-size: clamp(23px, 2.3vw, 28px);
  font-weight: 680;
  line-height: 1.35;
  letter-spacing: -.015em;
  text-align: left;
}

.home-section-head>p {
  max-width: 480px;
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.6;
  color: #e4e9f3;
}

.home-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.home-service {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px 28px 25px;
  background: linear-gradient(145deg, rgba(24, 36, 55, .9), rgba(14, 22, 35, .85));
  min-height: 245px;
  transition: transform .2s ease, border-color .2s ease;
}

.home-service:hover,
.home-work-item:hover,
.home-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(153, 190, 225, .34);
}

.home-service-num {
  color: #a4bdd9;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
}

.home-service-symbol {
  position: absolute;
  right: 23px;
  top: 17px;
  color: #e4e9f3;
  font-size: 28px;
  opacity: .75;
  font-weight: 400;
}

.home .home-service h3 {
  margin: 19px 0 7px;
  font-size: 20px;
  font-weight: 670;
  text-align: left;
}

.home-service p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #e4e9f3;
  max-width: 480px;
}

.home-service a {
  margin-top: auto;
  color: #9dc3ee;
  font-weight: 600;
  font-size: 14px;
}

.home-service a:hover {
  color: #fff;
}

.home-work-section {
  position: relative;
}

.home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

@media (min-width: 1200px) {
  .home-work-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-work-item {
  min-width: 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #111b29;
  transition: transform .2s ease, border-color .2s ease;
}

.home-work-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1b2b3d;
}

.home-work-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: transform .35s ease;
}

.home-work-item:hover img {
  transform: scale(1.045);
}

.home-work-info {
  padding: 16px 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-work-info b,
.home-work-info small {
  display: block;
}

.home-work-info b {
  font-size: 17px;
  font-weight: 650;
}

.home-work-info small {
  font-size: 16px;
  color: #e4e9f3;
  margin-top: 4px;
}

.home-work-info>span:last-child {
  color: #a8c7ea;
  font-size: 19px;
}

.home-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.home-plan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;
  min-height: 267px;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #111a28;
  transition: transform .2s ease, border-color .2s ease;
}

.home-plan-featured {
  background: linear-gradient(155deg, #1c3048, #111d2d);
  border-color: rgba(133, 174, 220, .42);
}

.home-plan-tag {
  color: #97b5d9;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  font-weight: 700;
}

.home .home-plan h3 {
  font-size: 19px;
  font-weight: 660;
  line-height: 1.3;
  margin: 15px 0 8px;
  text-align: left;
}

.home-plan p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #e4e9f3;
}

.home-price-label {
  display: block;
  color: #c9d5e3;
  font-size: 14px;
}

.home-price-amount {
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 720;
  margin: 2px 0 16px;
  white-space: nowrap;
}

.home-price-amount small {
  font-size: 16px;
  font-weight: 450;
  color: #c9d5e3;
}

.home-plan-link {
  display: block;
  border-radius: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(157, 192, 235, .28);
  color: #c9d5e3;
  background: rgba(122, 165, 215, .09);
  text-align: center;
  font-size: 14px;
  font-weight: 650;
}

.home-plan-link:hover {
  background: rgba(122, 165, 215, .18);
}

.home-included {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: 16px;
  padding: 24px 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 27, 41, .58);
}

.home .home-included h3 {
  font-size: 17px;
  margin: 0 0 7px;
  font-weight: 650;
  text-align: left;
}

.home-included p {
  font-size: 15px;
  line-height: 1.6;
  color: #e4e9f3;
  margin: 0;
}

.home-included-side {
  min-width: 210px;
  border-left: 1px solid var(--line);
  padding-left: 25px;
}

.home-included-side span {
  display: block;
  color: #9cacc0;
  font-size: 13px;
}

.home-included-side strong {
  display: block;
  margin: 5px 0;
  font-size: 14px;
  font-weight: 650;
}

.home-price-details {
  margin-top: 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(17, 27, 41, .52);
}


.home-price-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  color: #e4efff;
  font-size: 17px;
  background: linear-gradient(110deg,
      rgba(46, 83, 125, .25),
      rgba(24, 42, 65, .12));
  transition: background .25s ease;
}

.home-price-details summary::-webkit-details-marker {
  display: none;
}

.home-price-details summary::marker {
  content: "";
}

.home-price-details summary:hover {
  background: rgba(65, 111, 157, .23);
}

.home-price-details summary:focus-visible {
  outline: 2px solid #92b5d9;
  outline-offset: -3px;
}

.home-price-summary-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-price-summary-text small {
  color: #e2e7eb;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}


.home-price-chevron {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(145, 184, 226, .35);
  border-radius: 10px;
  background: rgba(110, 168, 254, .12);
}

.home-price-chevron::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid #a8cfff;
  border-bottom: 2px solid #a8cfff;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s ease;
}


.home-price-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.home-price-details[open] .home-price-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.home-extra-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  padding: 24px;
}

.home .home-extra-prices h3 {
  font-size: 16px;
  margin: 0 0 15px;
  font-weight: 660;
  text-align: left;
}

.home-extra-prices p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  color: #eff4ff;
  margin: 8px 0;
}

.home-extra-prices b {
  color: #eff4ff;
  white-space: nowrap;
  font-weight: 640;
}

.home-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.home-process-grid>div {
  padding: 22px 23px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 28, 43, .75);
}

.home-process-grid>div>span {
  font-size: 18px;
  font-weight: 750;
  color: #92b5d9;
  font-family: 'Montserrat', sans-serif;
}

.home .home-process-grid h3 {
  font-size: 18px;
  font-weight: 660;
  text-align: left;
  margin: 15px 0 7px;
}

.home-process-grid p {
  font-size: 15px;
  line-height: 1.6;
  color: #e4e9f3;
  margin: 0;
}

section.home-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 50px;
  align-items: center;
  margin: 77px 0 10px;
  padding: 42px 48px;
  border-radius: 18px;
  border: 1px solid rgba(140, 173, 214, .3);
  background: radial-gradient(circle at 90% 10%, rgba(68, 113, 157, .2), transparent 55%), linear-gradient(135deg, #17263b, #111a28);
}

.home-contact p {
  color: #e4e9f3;
  font-size: 15px;
  line-height: 1.6;
  margin: 15px 0 14px;
  max-width: 670px;
}

.home-contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
  color: #e4e9f3;
  font-size: 18px;
}

.home-contact-phone:hover {
  color: #fff;
}

.home-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 440px;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
}

.home-contact-actions .btn {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  font-size: 15px;
}

/* Кнопка портфолио — автоматический блик */

.home-contact-actions .contact-portfolio {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.home-contact-actions .contact-portfolio:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

.home-contact-actions .contact-portfolio::before {
  animation: contactShine 6s ease-in-out infinite;
}


@keyframes contactShine {

  0%,
  65% {
    left: -60%;
  }

  85%,
  100% {
    left: 130%;
  }
}

/* Анкета — обычная кнопка без блика */
.home-contact-actions .contact-form {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font-weight: 600;
}

.home-contact-actions .contact-form:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

@media (prefers-reduced-motion: reduce) {
  .home-contact-actions .contact-portfolio::before {
    animation: none;
  }
}



/* Компактные ноутбуки и планшеты (альбомная ориентация). */
@media (max-width: 1100px) {
  .home .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, .90fr);
    gap: 28px;
    padding: 27px 0 37px;
  }

  .home .home-hero h1 {
    font-size: clamp(28px, 3.2vw, 37px);
    margin: 18px 0 15px;
  }

  .home-intro {
    font-size: 15px;
    line-height: 1.6;
  }

  .home-hero-facts {
    gap: 8px 12px;
  }

  .home-actions {
    gap: 10px;
    margin: 22px 0 20px;
  }

  .home .home-actions .btn {
    min-width: 0;
    font-size: 14px;
  }
}

/* Планшеты (портретная ориентация). Две колонки: предложение + иллюстрация. */
@media (max-width: 900px) {
  .home .home-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 20px;
    padding: 18px 0 30px;
  }

  .home .home-hero h1 {
    font-size: clamp(26px, 3.7vw, 33px);
    line-height: 1.22;
  }

  .home-eyebrow {
    font-size: 10px;
    letter-spacing: .035em;
  }

  .home-intro {
    font-size: 15px;
    line-height: 1.58;
  }

  .home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 17px 0 0;
  }

  .home .home-actions .btn {
    width: 100%;
    min-height: 42px;
    min-width: 0;
    padding: 8px 6px;
    gap: 5px;
    white-space: nowrap;
    justify-content: center;
  }

  .home-actions .home-secondary {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 5px 0;
    font-size: 13px;
  }

  .home-hero-facts {
    display: none;
  }

  .home-showcase-image {
    max-width: 100%;
  }

  .home-benefits>div {
    padding: 7px 12px;
  }

  .home .home-section {
    padding-top: 55px;
  }

  .home-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .home-pricing {
    gap: 10px;
  }

  .home-plan {
    padding: 18px;
  }

  .home-price-amount {
    font-size: 22px;
  }

  .home-extra-prices {
    gap: 12px;
  }

  section.home-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding: 30px;
    margin-top: 55px;
  }

  .home-contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .home-process-grid>div>span {
    font-size: 16px;
  }

  .home-extra-prices p {
    font-size: 12px;
  }
}

/* Телефоны и небольшие планшеты: контент в одну колонку, CTA в одну строку. */
@media (max-width: 740px) {
  .home-wrap {
    padding-top: calc(var(--navH) + 15px);
  }

  .home .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 20px;
  }

  .home .home-hero h1 {
    font-size: clamp(25px, 6.9vw, 32px);
    line-height: 1.3;
    text-align: left;
    margin: 15px 0 18px;
    letter-spacing: -.025em;
  }

  .home-eyebrow {
    font-size: 10px;
    letter-spacing: .01em;
  }

  .home-intro {
    font-size: 15px;
    line-height: 1.5;
  }

  .home-actions {
    margin: 21px 0 0;
  }

  .home-hero-visual {
    width: 100%;
    max-width: 510px;
    margin: 0 auto;
  }

  .home-showcase-image {
    width: 100%;
    max-width: 100%;
  }

  .home-benefits {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .home-benefits>div,
  .home-benefits>div:first-child {
    padding: 12px 3px;
  }

  .home-benefits>div+div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .home-services,
  .home-pricing,
  .home-work-grid,
  .home-process-grid,
  .home-extra-prices {
    grid-template-columns: 1fr;
  }

  .home-process-grid>div>span {
    font-size: 15px;
  }

  .home-service {
    padding: 22px;
    min-height: 200px;
  }

  .home .home-section-head h2,
  .home .home-contact h2 {
    font-size: 23px;
    text-align: left;
  }

  .home-plan {
    min-height: 225px;
  }

  .home-included {
    flex-direction: column;
    align-items: stretch;
    padding: 21px;
    gap: 17px;
  }

  .home-included-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0 0;
    min-width: 0;
  }

  .home-extra-prices {
    gap: 18px;
  }

  section.home-contact {
    padding: 25px 20px;
  }

  .home-contact-actions {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    width: 100%;
  }

  .home-contact-actions .btn {
    width: 100%;
  }

  .home-extra-prices p {
    font-size: 14px;
  }
}

/* Очень узкие экраны (320–359 px). */
@media (max-width: 359px) {
  .home .home-hero h1 {
    font-size: 25px;
  }

  .home .home-actions .btn {
    font-size: 12px;
    padding: 8px 3px;
  }

  .home-eyebrow {
    font-size: 9.5px;
  }
}

/* Уважение системной настройки уменьшения анимации. */
@media (prefers-reduced-motion: reduce) {

  .home-service,
  .home-work-item,
  .home-plan,
  .home-work-image img {
    transition: none;
  }
}