:root {
  --dark: rgb(70, 70, 70);
  --black-bg: #2C2C2C;
  --dark-bg: #555555;
  --orange: rgb(255, 137, 10);
  --orange-hover: rgb(230, 120, 0);
  --bg: #EEEEEE;
  --green: #C0EBC5;
  --white: #ffffff;

  --fs-2xs:  0.6875rem;
  --fs-xs:   0.75rem;
  --fs-sm-:  0.8125rem;
  --fs-sm:   0.875rem;
  --fs-md:   0.9375rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;

  --fs-h2:    clamp(1.4rem, 0.6rem + 2vw, 2rem);
  --fs-h3:    clamp(1.25rem, 1rem + 0.8vw, 1.525rem);
  --fs-h3-lg: clamp(1.5rem, 0.6rem + 2.2vw, 2.25rem);

  --text-sm: var(--fs-sm);
  --text-md: var(--fs-md);

  --radius: 4px;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --border-color: #ddd;

  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);

  --gap-base: 2rem;
  --gap-lg: 2.25rem;
  --gap-xl: 2.5rem;
  --card-padding: 2.25rem 2rem;
  --section-py: 4.375rem;
  --section-py-sm: 2.625rem;

  --touch-target: 44px;
  --text-muted: #777;
  --transition: 0.3s ease;

  --z-header: 1000;
  --z-modal: 2000;

  --hero-label-fs:      clamp(0.75rem, 3vw, 4rem);
  --hero-title-fs:      clamp(2rem, 7vw, 9rem);
  --hero-subtitle-fs:   clamp(0.875rem, 2vw, 2.5rem);
  --hero-free-label-fs: clamp(0.7rem, 1.75vw, 2rem);
  --hero-more-title-fs: clamp(0.875rem, 4vw, 3rem);
  --hero-more-text-fs:  clamp(0.75rem, 1.5vw, 2rem);

  --hero-label-fs-cqi:      clamp(0.75rem, 5.5cqi, 4rem);
  --hero-title-fs-cqi:      clamp(2rem, 14cqi, 8rem);
  --hero-subtitle-fs-cqi:   clamp(0.875rem, 4cqi, 2.5rem);
  --hero-free-label-fs-cqi: clamp(0.7rem, 3.5cqi, 2rem);
  --hero-more-title-fs-cqi: clamp(0.875rem, 4cqi, 3rem);
  --hero-more-text-fs-cqi:  clamp(0.75rem, 3cqi, 2rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: clamp(16px, 0.5vw + 9.5px, 32px);
  scroll-behavior: auto;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--bg);
  overflow-x: clip;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-hover);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  margin: 0 auto;
  padding: 0 5%;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .container { padding: 0 2%; }
}

@media (min-width: 640px) {
  .download__file-name br { display: none; }
}


@media (max-width: 639px) {
  .advantages__card { padding: 5% 4%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  min-height: var(--touch-target);
}

.btn--orange {
  background: var(--orange);
  color: var(--white);
}

.btn--orange:hover {
  background: var(--orange-hover);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn--outline:hover {
  background: var(--orange);
  color: var(--white);
}

.btn--sm {
  padding: 0.4rem 1.25rem;
  font-size: var(--fs-sm-);
  min-height: 36px;
}

.section__title {
  font-size: clamp(1.4rem, 0.6rem + 2vw, 2rem);
  margin-bottom: var(--gap-xl);
  color: var(--dark);
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--black-bg);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: var(--z-header);
}

.header__row1 {
  display: flex;
  align-items: center;
  min-height: 60px;
  gap: 0.5rem;
}

.header__logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-xl);
  flex-shrink: 0;
  line-height: 1;
}

.header__logo .c-orange { color: var(--orange); font-weight: 700; }

@media (max-width: 1023px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1.5rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    gap: 0;
    z-index: 100;
  }

  .header__nav a {
    padding: 0.75rem 0;
    font-size: var(--fs-md) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    color: rgba(255,255,255,0.85);
  }

  .header__nav a:last-child { border-bottom: none; }

  .header__nav.active {
    display: flex !important;
    animation: navSlideDown 0.2s ease;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
  }
}

@media (min-width: 1024px) {
  .header__row1 {
    min-height: 72px;
    gap: 0.75rem;
    padding-block: clamp(0rem, 0.6vw, 1.25rem);
  }

  .header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
  }

  .header__logo    { font-size: clamp(1.5rem, 2vw, 2.5rem); }
  .header__actions { margin-left: 0; }
  .header__phone   { margin-left: auto; }
}

@media (min-width: 1280px) {
  .header__nav    { gap: 1.25rem; }
  .header__row1   { gap: 1.5rem; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header__link {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm-);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}

.header__link:hover { color: var(--orange); }

@media (min-width: 1280px) { .header__link { font-size: var(--fs-md); } }

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) { .header__actions { gap: 0.75rem; } }

.header__phone {
  display: none;
  color: var(--white);
  font-weight: 600;
  font-size: var(--text-md);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}

.header__phone:hover { color: var(--orange); }

@media (min-width: 640px) { .header__phone { display: block; } }
@media (min-width: 1024px) { .header__phone { font-size: var(--fs-lg); } }

.header__tg {
  display: none;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 640px) { .header__tg-phone2, .header__tg { display: flex; align-items: center; } }

.header__demo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 500;
  font-size: var(--fs-sm);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background var(--transition);
}

.header__demo:hover  { background: rgb(230, 120, 0);}
.header__demo span   { white-space: nowrap; }

.header__cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 639px) {
  .header__cta-group {
    gap: 0;
  }
  .header__row1 {
    padding-top: 0.5rem;
  }
  .header__logo {
    font-size: var(--fs-2xl);
  }
}

@media (min-width: 1024px) {
  .header__cta-group { order: -1; }

  .header__demo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: var(--fs-md);
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .header__demo {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: var(--fs-sm);
  }
  .header__phone  { font-size: var(--fs-sm); }
  .header__actions { gap: 0.375rem; }
}

button, a { touch-action: manipulation; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) and (max-width: 1023px) { .burger--tablet { display: flex; } }

@media (max-width: 639px) { .burger--mobile { display: flex; margin-left: auto; } }

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

.header__row2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) { .header__row2 { display: none; } }

.header__phone2 {
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-base);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}

.header__phone2:hover { color: var(--orange); }

.hero {
  background: var(--bg);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 639px) {
  .hero__img-wrap { height: 200px; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.hero__card {
  container-type: inline-size;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.75rem;
  height: 100%;
}

.hero__title-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__label {
  font-size: var(--hero-label-fs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.hero__title {
  font-size: var(--hero-title-fs);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.hero__title .c-orange { color: var(--orange); }

.hero__subtitle {
  font-size: var(--hero-subtitle-fs);
  font-weight: 500;
  line-height: 1.625;
  color: var(--dark);
  margin-bottom: 1rem;
}


.hero__subtitle-line {
  display: block;
  margin-top: 0.25rem;
}

.hero__subtitle-badge {
  background-image: linear-gradient(to bottom, transparent 0%, #FF890A 0%, #FF890A 100%, transparent 100%);
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 0.125rem 0.5rem;
  display: inline;
  line-height: 1.5;
  animation: hero-highlight 1.1s cubic-bezier(.32, .32, .15, 1.17) 0.4s forwards;
}

@keyframes hero-highlight {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}

@media (max-width: 639px) {
  .hero__subtitle-line  { display: inline; }
  .hero__subtitle-badge {
    background-image: none;
    animation: none;
    color: var(--orange);
    padding: 0;
  }
}

.heading-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
}

.heading-word.in-view {
  animation: heading-word-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heading-word-up {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .heading-word { opacity: 1; transform: none; animation: none !important; }
}

.hero__inner {
  container-type: inline-size;
  border: 1px solid #e5e7eb;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 1rem;
  flex: 0;
}

.hero__free-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}

.hero__free-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 137, 10, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
  font-size: var(--fs-lg);
}

.hero__free-label {
  font-size: var(--hero-free-label-fs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.375;
  letter-spacing: 0.025em;
  text-align: left;
}

.hero__more-title {
  font-size: var(--hero-more-title-fs);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 0.25rem;
  text-align: center;
}

.hero__more-text {
  font-size: var(--hero-more-text-fs);
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ========== HERO: шрифты (все брейкпоинты) ========== */
@media (max-width: 639px) {
  .hero__title      { font-size: clamp(2rem,    9vw,   2.5rem); }
  .hero__label      { font-size: clamp(1.125rem, 4.5vw, 1.375rem); }
  .hero__subtitle   { font-size: clamp(1rem,    4vw,   1.25rem); font-weight: 500; }
  .hero__free-label { font-size: clamp(0.8rem,  3.5vw, 1rem); }
  .hero__more-title { font-size: clamp(0.875rem, 3.5vw, 1rem); }
  .hero__more-text  { font-size: clamp(0.875rem, 4vw,   1rem); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__subtitle   { font-size: clamp(1rem,    3vw, 1.5rem); }
  .hero__free-label { font-size: clamp(0.875rem, 4vw, 1rem); }
  .hero__more-title { font-size: clamp(0.875rem, 4vw, 1.125rem); }
  .hero__more-text  { font-size: clamp(0.875rem, 4vw, 1rem); }
}

.hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
}

.hero__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 640px) {
  .hero__card           { padding-left: 2rem; padding-right: 2rem; }
  .hero__inner          { padding: 1.25rem; }
  .hero__img-wrap       { height: 260px; }
}

.hero__img-wrap--desktop { display: none; }

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__img-wrap--mobile  { display: none; }
  .hero__img-wrap--desktop { display: block; height: 40vh; }
}

@media (min-width: 1024px) {
  .hero__img-wrap--mobile  { display: none; }
  .hero__img-wrap--desktop { display: block; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .hero__card {
    padding: 2.5rem 2.5rem 2rem;
    text-align: left;
    align-self: start;
  }
  .hero__img-wrap--desktop  { height: 100%; min-height: 0; }
  .hero__free-row            { justify-content: flex-start; }
  .hero__more-title          { text-align: left; }
  .hero__more-text           { text-align: left; }
}

@supports (font-size: 1cqi) {
  @media (min-width: 1024px) {
    .hero__label      { font-size: var(--hero-label-fs-cqi); text-align: center; }
    .hero__title      { font-size: var(--hero-title-fs-cqi); text-align: center; }
    .hero__subtitle   { font-size: var(--hero-subtitle-fs-cqi); }
    .hero__free-label { font-size: var(--hero-free-label-fs-cqi); }
    .hero__more-title { font-size: var(--hero-more-title-fs-cqi); }
    .hero__more-text  { font-size: var(--hero-more-text-fs-cqi); }
  }
}

.form__input {
  padding: 0.625rem 0.875rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: max(1rem, 16px);
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  min-height: var(--touch-target);
}

.form__input:focus  { border-color: var(--orange); }
.form__input.error  { border-color: #e74c3c; }

.form__btn {
  background: var(--orange);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: var(--fs-base);
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  white-space: nowrap;
  cursor: pointer;
  width: 100%;
  min-height: var(--touch-target);
  transition: background var(--transition);
}

.form__btn:hover { background: rgb(230, 120, 0); }

.form__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-width: 640px) {
  .form__btn { width: auto; }
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px)  { .hero__form { flex-direction: row; } }
@media (min-width: 1024px) { .hero__form { flex-direction: column; } }
@media (min-width: 1280px) { .hero__form { flex-direction: row; } }

.hero__form .form__input {
  width: auto;
  min-width: 140px;
  flex: 1;
}

.hero__form .form__btn { flex-shrink: 0; }

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast__item {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: var(--fs-sm);
  color: #fff;
  max-width: 420px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  animation: toast-in 0.3s ease;
}

.toast__item--success { background: #2a8a2a; }
.toast__item--error   { background: #e05000; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
  .toast {
    right: 50%;
    transform: translateX(50%);
    align-items: center;
    bottom: 1.5rem;
  }
  .toast__item {
    width: calc(100vw - 2rem);
    max-width: 100%;
    text-align: center;
    overflow-wrap: break-word;
  }
}

.versions {
  padding: var(--section-py-sm) 0;
  background: var(--green);
}

.versions__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.versions__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.versions__header h2 {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.525rem);
  font-weight: 600;
  color: var(--dark);
}

.versions__item {
  margin-bottom: 1.25rem;
}

.versions__item h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.versions__item ul {
  list-style: disc;
  padding-left: 1rem;
}

.versions__item li {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.versions__item li:not(:last-child) {
  padding-block-end: calc(15px / 2);
}

.versions__download-link {
  display: inline-block;
  margin: 0.75rem 0 1.25rem;
  color: var(--orange);
  font-weight: 600;
}

.versions__telegram {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
}

.versions__telegram-link {
  display: flex;
  align-items: center;
  color: #2C2C2C;
  width: 100%;
  font-size: var(--fs-md);
  gap: 1rem;
}

.versions__telegram-link img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
}

.advantages {
  padding: var(--section-py-sm) 0;
  background: var(--bg);
}

.advantages__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}

.advantages__title {
  font-size: clamp(1.5rem, 0.6rem + 2.2vw, 2.25rem);
  flex-shrink: 0;
}

.advantages__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 35vw;
  text-align: justify;
  line-height: 1.3;
  font-weight: 500;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.advantages__card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: var(--white);
  background-repeat: no-repeat;
  background-size: 10% auto;
  background-position: right 1rem bottom 1rem;
  padding: var(--card-padding);
  position: relative;
}

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

.advantages__card:nth-child(1) { background-image: url('../assets/svg/adv/adv-monitoring.svg'); }
.advantages__card:nth-child(2) { background-image: url('../assets/svg/adv/adv-editor.svg'); }
.advantages__card:nth-child(3) { background-image: url('../assets/svg/adv/adv-web.svg'); }
.advantages__card:nth-child(4) { background-image: url('../assets/svg/adv/adv-calc.svg'); }
.advantages__card:nth-child(5) { background-image: url('../assets/svg/adv/adv-free.svg'); }
.advantages__card:nth-child(6) { background-image: url('../assets/svg/adv/adv-database.svg'); }

.advantages__card h3 {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  background: var(--dark);
  color: var(--white);
  padding: 0.4em 0.8em;
  margin-bottom: 1.25rem;
}

.advantages__card p {
  font-size: var(--text-sm);
  line-height: 1.6;
  word-spacing: -.3mm;
  color: #555;
  padding-bottom: 15%;
  
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.about {
  padding: var(--section-py-sm) 0;
  background: var(--dark-bg);
}

.about__section-title {
  color: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.about__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
}

.about__card-icon {
  font-size: 2.25rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.about__card-icon i {
  margin: 0 0.25rem;
}

.about__card p {
  font-size: var(--fs-base);
  line-height: 1.6;
  word-spacing: -.3mm;

  color: var(--dark);
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.about__card-img {
  margin-top: 1rem;
  margin-bottom: 1.75rem;
  width: 100%;
  height: clamp(40px, 5vh + 10px, 64px);
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius);
}

.mnemo {
  padding: var(--section-py-sm) 0;
  background: var(--dark-bg);
}

.mnemo__title {
  color: var(--white);
}

.mnemo .splide__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.splide__pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 1.5rem !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 !important;
}
.splide__pagination li {
  line-height: 0 !important;
  display: inline-flex !important;
}
.splide__pagination button.splide__pagination__page {
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  min-height: 6px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  transition: background var(--transition);
  opacity: 1 !important;
  transform: none !important;
}
.splide__pagination button.splide__pagination__page.is-active {
  background: var(--dark) !important;
  transform: none !important;
}
.mnemo .splide__pagination button.splide__pagination__page {
  background: rgba(255,255,255,0.3) !important;
}
.mnemo .splide__pagination button.splide__pagination__page.is-active {
  background: var(--white) !important;
}

.download {
  padding: var(--section-py-sm) 0;
  background: var(--bg);
}

.download__section-title {
  text-align: left;
}

.download__layout {
  display: flex;
  gap: var(--gap-xl);
}

.download__left {
  flex: 1;
  background-color: #fff;
  padding: 3%;
  box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
}

.download__right {
  flex: .5 1 0;
}

.download__row {
  display: flex;
  gap: 1.875rem;
  margin-bottom: 1.875rem;
}

.download__block {
  flex: 1;
  min-width: 0;
}

.download__block h3,
.download__subtitle,
.download__drivers h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.download__block h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.download__subtitle {
  margin-top: 1.25rem;
}

.download__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  object-fit: contain;
}

.download__icon[src*="windows"],
.download__icon[src*="linux"] {
  padding: 0.3rem;
}

.download__block p {
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
  color: #555;
}

.download__drivers {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
}

.download__drivers h3 {
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
}

.download__drivers > p {
  font-size: var(--text-sm);
  color: #555;
  margin-bottom: 0.75rem;
}

.download__item {
  margin-bottom: 1rem;
}

.download__item p {
  margin-bottom: 0.25rem;
}

.download__meta {
  color: #999 !important;
}

.download__text-link {
  font-size: var(--text-sm);
  color: var(--orange);
  text-decoration: underline;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.download__note {
  font-size: var(--fs-xs);
  color: #999;
  margin-top: 0.75rem;
}

.download__license-cta {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
}

.download__demo-limits h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.download__demo-limits ul {
  list-style: disc;
  padding-left: 1rem;
}

.download__demo-limits li {
  font-size: var(--text-sm);
  margin-bottom: 0.25rem;
  color: #555;
  line-height: 1.5;
}

.download__demo-limits li:not(:last-child) {
  padding-block-end: calc(15px / 2);
}

.download__file-row {
  display: flex;
  align-items: center;
  padding: 0.375rem 0;
}

.download__file-name {
  order: 1;
  flex-shrink: 1;
  min-width: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.download__file-row::after {
  content: '';
  order: 2;
  flex: 1;
  min-width: 0.5rem;
  border-bottom: 2px dotted #555;
  margin: 0 0.3rem;
  align-self: center;
}

.download__file-link {
  order: 3;
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--orange);
  text-decoration: underline;
}

.price {
  padding: var(--section-py-sm) 0;
  background: var(--bg);
}

.price__section-title {
  text-align: left;
}

.price__layout {
  display: flex;
  gap: var(--gap-base);
}

.price__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price__right {
  flex: 0.5;
}

.price__tab {
  flex: 1;
  border-left: 4px solid var(--border-color);
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
  cursor: pointer;
}

.price__tab--active {
  border-left-color: var(--orange);
}

.price__tab h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.fa-icon {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.125em;
}

.price__calc-btn {
  font-size: var(--fs-2xs);
  padding: 4px 12px;
  vertical-align: middle;
}

.price__tab ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.price__tab li {
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 0.25rem;
  color: #555;
}

.price__form {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price__form > p {
  font-size: var(--fs-lg);
  font-weight: 600;
  text-align: center;
  color: #555;
  margin-bottom: 0.25rem;
  line-height: 1.3em;
}

.price__form-radio {
  display: flex;
  gap: 1.25rem;
  font-size: var(--text-sm);
  flex-wrap: wrap;
}

.price__form-radio label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  min-height: var(--touch-target);
}

.price__form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
}

.price__form-label {
  font-size: var(--fs-md);
}

.price__form-textarea textarea {
  font-family: Montserrat, sans-serif;
  font-size: var(--fs-base);
  font-weight: 500;
  width: 100%;
  padding: 6px 16px;
}

.price__captcha {
  min-height: 20px;
}

.projects {
  padding: var(--section-py-sm) 0;
  background: var(--bg);
}

.projects__section-title {
  text-align: left;
}

.projects__card {
  text-align: center;
}

.projects__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.projects__card h3 {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.projects__card p {
  font-size: var(--fs-sm-);
  color: var(--text-muted);
  font-style: italic;
}

.partners {
  padding: var(--section-py-sm) 0;
  background: var(--bg);
}

.partners__section-title {
  text-align: left;
}

.partners__grid {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
  flex-wrap: wrap;
}

.partners__item img {
  height: auto;
  max-width: 100%;
  filter: grayscale(0);
  transition: filter var(--transition);
}

.partners__item img:hover {
  filter: grayscale(0.5);
}

.faq {
  padding: var(--section-py-sm) 0;
  background: var(--white);
}

.faq__title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.faq__item[open] {
  box-shadow: var(--shadow-card);
}

.faq__question {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  color: var(--orange);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}

@media (hover: hover) {
  .faq__question:hover {
    background: var(--bg);
  }
}

details[open] .faq__question {
  background: var(--bg);
}

details[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.18s ease, opacity 0.18s ease;
}

.faq__answer {
  padding: 0.875rem 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border-color);
}

.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: var(--section-py-sm) 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr auto;
  gap: var(--gap-xl);
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer__heading {
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__col p {
  font-size: var(--fs-sm-);
  line-height: 1.7;
}

.footer__contacts p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.footer__contacts .fa-icon {
  width: 18px;
  flex-shrink: 0;
}

.footer__contacts a {
  color: rgba(255,255,255,0.85);
}

.footer__contacts a:hover {
  color: var(--orange);
}

.footer__callback-btn {
  margin-top: 1rem;
  font-size: var(--fs-sm-);
  padding: 0.625rem 1.25rem;
}

.footer__subscribe-btn {
  margin-top: 0.75rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a {
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-sm-);
}
.footer__nav a:hover {
  color: var(--orange);
}

.footer__col--qr {
  text-align: center;
}

.footer__col--qr img {
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
}

.footer__col--qr span {
  display: block;
  font-size: var(--fs-xs);
  margin-top: 0.375rem;
  color: rgba(255,255,255,0.5);
}

.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem;
  max-width: 420px;
  width: 90%;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__content h3 {
  margin-bottom: 1.25rem;
  text-align: left;
  font-size: var(--fs-xl);
}

.modal__text {
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

.modal__content--calc {
  max-width: 500px;
}

.modal__content--calc .form__input {
  margin-bottom: 0.75rem;
}

.calc-modal__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
}

.calc-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid #f0c040;
  border-radius: 50%;
  color: #e74c3c;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.calc-modal__notice p {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--dark);
}

.calc-modal__result {
  font-size: var(--fs-base);
  font-weight: 500;
  margin: 1rem 0;
  color: var(--dark);
}

.calc-modal__result span {
  font-weight: 700;
}

.calc-modal__close-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: var(--fs-base);
}

.modal__content .form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dark);
  cursor: pointer;
  line-height: 1;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1023px) {
  .hero__content {
    padding: 2.25rem 2rem 1.75rem;
  }

  .hero__image {
    flex: 1 1 50%;
    max-width: 50%;
  }

  .advantages__top {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .advantages__title {
    text-align: center;
  }

  .advantages__desc {
    text-align: center;
    max-width: none;
    font-size: var(--fs-base);
  }

  .advantages__card h3 {
    font-size: var(--fs-base);
  }

  .advantages__card p {
    font-size: var(--fs-base);
  }

  .versions__item h3 {
    font-size: var(--fs-lg);
  }

  .versions__item li {
    font-size: var(--fs-base);
  }

  .versions__download-link {
    font-size: var(--fs-base);
  }

  .versions__telegram-link {
    font-size: var(--fs-base);
  }

  .download__layout {
    flex-direction: column;
  }

  .download__right {
    flex: auto;
  }

  .download__left {
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .download__row {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .download__block {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.05);
  }

  .download__drivers {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 0 35px 0 rgba(0, 0, 0, 0.05);
    border-top: none;
  }

  .download__block h3,
  .download__drivers h3 {
    font-size: var(--fs-lg);
  }

  .download__block p,
  .download__text-link,
  .download__license-cta,
  .download__file-name,
  .download__file-link {
    font-size: var(--fs-base);
  }

  .download__meta,
  .download__note {
    font-size: var(--fs-sm);
  }

  .download__demo-limits h3 {
    font-size: var(--fs-lg);
  }

  .download__demo-limits li {
    font-size: var(--fs-base);
  }

  .price__tab h3 {
    font-size: var(--fs-lg);
  }

  .price__tab li,
  .price__form-radio,
  .price__form-label {
    font-size: var(--fs-base);
  }

  .projects__card h3 {
    font-size: var(--fs-base);
  }

  .projects__card p {
    font-size: var(--fs-sm);
  }

  .price__layout {
    flex-direction: column;
  }

  .price__right {
    flex: auto;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--qr {
    text-align: right;
  }

  .footer__col--qr a {
    display: flex;
    justify-content: flex-end;
  }
  .footer__col--qr img { margin: 0; }
  
  .footer__col:nth-child(2) {
    text-align: right;
  }
}

@media (max-width: 768px) {

  .price__tab li,
  .price__form-radio,
  .price__form-label {
    font-size: var(--fs-sm);
  }

  .price__tab h3 {
    font-size: var(--fs-md);
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 1.875rem;
    text-align: center;
  }

  .footer__contacts p {
    justify-content: center;
  }

  .footer__nav {
    align-items: center;
  }

  .footer__col:nth-child(2) {
    text-align: center;
  }

  .footer__col--qr {
    text-align: center;
  }

  .footer__col--qr a {
    display: flex;
    justify-content: center;
  }

  .partners__grid {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer__heading {
    font-size: var(--fs-lg);
  }

  .footer__col p,
  .footer__contacts p,
  .footer__nav a,
  .footer__callback-btn,
  .footer__subscribe-btn {
    font-size: var(--fs-base);
  }

  .footer__col--qr span,
  .footer__bottom p {
    font-size: var(--fs-sm);
  }
}

@media (max-width: 480px) {
  .price__form-radio {
    flex-direction: column;
    gap: 0.25rem;
  }

  .modal__content {
    width: 95%;
    padding: 1.25rem;
  }
}
